]> code.delx.au - gnu-emacs/blob - autogen/configure
isnan: Fix porting problem to Solaris 10 with bundled gcc.
[gnu-emacs] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_header_list=
603 ac_func_list=
604 gl_getopt_required=POSIX
605 gl_getopt_required=POSIX
606 ac_subst_vars='gltests_LTLIBOBJS
607 gltests_LIBOBJS
608 gl_LTLIBOBJS
609 gl_LIBOBJS
610 am__EXEEXT_FALSE
611 am__EXEEXT_TRUE
612 LTLIBOBJS
613 LIBOBJS
614 SUBDIR_MAKEFILES_IN
615 LIB_GCC
616 LD_FIRSTFLAG
617 LD_SWITCH_SYSTEM_TEMACS
618 LIBGNU_LTLIBDEPS
619 LIBGNU_LIBDEPS
620 gltests_WITNESS
621 gl_GNULIB_ENABLED_verify_FALSE
622 gl_GNULIB_ENABLED_verify_TRUE
623 gl_GNULIB_ENABLED_strtoull_FALSE
624 gl_GNULIB_ENABLED_strtoull_TRUE
625 gl_GNULIB_ENABLED_strtoll_FALSE
626 gl_GNULIB_ENABLED_strtoll_TRUE
627 gl_GNULIB_ENABLED_stat_FALSE
628 gl_GNULIB_ENABLED_stat_TRUE
629 gl_GNULIB_ENABLED_sigprocmask_FALSE
630 gl_GNULIB_ENABLED_sigprocmask_TRUE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
632 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
633 gl_GNULIB_ENABLED_dosname_FALSE
634 gl_GNULIB_ENABLED_dosname_TRUE
635 LTLIBINTL
636 LIBINTL
637 HAVE_UNISTD_H
638 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
639 NEXT_UNISTD_H
640 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
641 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
642 TIME_H_DEFINES_STRUCT_TIMESPEC
643 NEXT_AS_FIRST_DIRECTIVE_TIME_H
644 NEXT_TIME_H
645 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
646 NEXT_SYS_STAT_H
647 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
648 NEXT_STDLIB_H
649 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
650 NEXT_STDIO_H
651 REPLACE_VSPRINTF
652 REPLACE_VSNPRINTF
653 REPLACE_VPRINTF
654 REPLACE_VFPRINTF
655 REPLACE_VDPRINTF
656 REPLACE_VASPRINTF
657 REPLACE_TMPFILE
658 REPLACE_STDIO_WRITE_FUNCS
659 REPLACE_STDIO_READ_FUNCS
660 REPLACE_SPRINTF
661 REPLACE_SNPRINTF
662 REPLACE_RENAMEAT
663 REPLACE_RENAME
664 REPLACE_REMOVE
665 REPLACE_PRINTF
666 REPLACE_POPEN
667 REPLACE_PERROR
668 REPLACE_OBSTACK_PRINTF
669 REPLACE_GETLINE
670 REPLACE_GETDELIM
671 REPLACE_FTELLO
672 REPLACE_FTELL
673 REPLACE_FSEEKO
674 REPLACE_FSEEK
675 REPLACE_FREOPEN
676 REPLACE_FPURGE
677 REPLACE_FPRINTF
678 REPLACE_FOPEN
679 REPLACE_FFLUSH
680 REPLACE_FCLOSE
681 REPLACE_DPRINTF
682 HAVE_VDPRINTF
683 HAVE_VASPRINTF
684 HAVE_RENAMEAT
685 HAVE_FTELLO
686 HAVE_FSEEKO
687 HAVE_DPRINTF
688 HAVE_DECL_VSNPRINTF
689 HAVE_DECL_SNPRINTF
690 HAVE_DECL_OBSTACK_PRINTF
691 HAVE_DECL_GETLINE
692 HAVE_DECL_GETDELIM
693 HAVE_DECL_FTELLO
694 HAVE_DECL_FSEEKO
695 HAVE_DECL_FPURGE
696 GNULIB_VSPRINTF_POSIX
697 GNULIB_VSNPRINTF
698 GNULIB_VPRINTF_POSIX
699 GNULIB_VPRINTF
700 GNULIB_VFPRINTF_POSIX
701 GNULIB_VFPRINTF
702 GNULIB_VDPRINTF
703 GNULIB_VSCANF
704 GNULIB_VFSCANF
705 GNULIB_VASPRINTF
706 GNULIB_TMPFILE
707 GNULIB_STDIO_H_SIGPIPE
708 GNULIB_STDIO_H_NONBLOCKING
709 GNULIB_SPRINTF_POSIX
710 GNULIB_SNPRINTF
711 GNULIB_SCANF
712 GNULIB_RENAMEAT
713 GNULIB_RENAME
714 GNULIB_REMOVE
715 GNULIB_PUTS
716 GNULIB_PUTCHAR
717 GNULIB_PUTC
718 GNULIB_PRINTF_POSIX
719 GNULIB_PRINTF
720 GNULIB_POPEN
721 GNULIB_PERROR
722 GNULIB_OBSTACK_PRINTF_POSIX
723 GNULIB_OBSTACK_PRINTF
724 GNULIB_GETS
725 GNULIB_GETLINE
726 GNULIB_GETDELIM
727 GNULIB_GETCHAR
728 GNULIB_GETC
729 GNULIB_FWRITE
730 GNULIB_FTELLO
731 GNULIB_FTELL
732 GNULIB_FSEEKO
733 GNULIB_FSEEK
734 GNULIB_FSCANF
735 GNULIB_FREOPEN
736 GNULIB_FREAD
737 GNULIB_FPUTS
738 GNULIB_FPUTC
739 GNULIB_FPURGE
740 GNULIB_FPRINTF_POSIX
741 GNULIB_FPRINTF
742 GNULIB_FOPEN
743 GNULIB_FGETS
744 GNULIB_FGETC
745 GNULIB_FFLUSH
746 GNULIB_FCLOSE
747 GNULIB_DPRINTF
748 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
749 NEXT_STDDEF_H
750 GL_GENERATE_STDDEF_H_FALSE
751 GL_GENERATE_STDDEF_H_TRUE
752 STDDEF_H
753 HAVE_WCHAR_T
754 REPLACE_NULL
755 HAVE__BOOL
756 GL_GENERATE_STDBOOL_H_FALSE
757 GL_GENERATE_STDBOOL_H_TRUE
758 STDBOOL_H
759 GL_GENERATE_STDARG_H_FALSE
760 GL_GENERATE_STDARG_H_TRUE
761 STDARG_H
762 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
763 NEXT_STDARG_H
764 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
765 NEXT_SIGNAL_H
766 REPLACE_PTHREAD_SIGMASK
767 HAVE_SIGHANDLER_T
768 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
769 HAVE_STRUCT_SIGACTION_SA_SIGACTION
770 HAVE_SIGACTION
771 HAVE_SIGINFO_T
772 HAVE_SIGSET_T
773 HAVE_PTHREAD_SIGMASK
774 HAVE_POSIX_SIGNALBLOCKING
775 GNULIB_SIGACTION
776 GNULIB_SIGPROCMASK
777 GNULIB_SIGNAL_H_SIGPIPE
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_FCHMODAT
825 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
826 NEXT_INTTYPES_H
827 UINT64_MAX_EQ_ULONG_MAX
828 UINT32_MAX_LT_UINTMAX_MAX
829 PRIPTR_PREFIX
830 PRI_MACROS_BROKEN
831 INT64_MAX_EQ_LONG_MAX
832 INT32_MAX_LT_INTMAX_MAX
833 HAVE_DECL_STRTOUMAX
834 HAVE_DECL_STRTOIMAX
835 HAVE_DECL_IMAXDIV
836 HAVE_DECL_IMAXABS
837 GNULIB_STRTOUMAX
838 GNULIB_STRTOIMAX
839 GNULIB_IMAXDIV
840 GNULIB_IMAXABS
841 GL_GENERATE_STDINT_H_FALSE
842 GL_GENERATE_STDINT_H_TRUE
843 STDINT_H
844 WINT_T_SUFFIX
845 WCHAR_T_SUFFIX
846 SIG_ATOMIC_T_SUFFIX
847 SIZE_T_SUFFIX
848 PTRDIFF_T_SUFFIX
849 HAVE_SIGNED_WINT_T
850 HAVE_SIGNED_WCHAR_T
851 HAVE_SIGNED_SIG_ATOMIC_T
852 BITSIZEOF_WINT_T
853 BITSIZEOF_WCHAR_T
854 BITSIZEOF_SIG_ATOMIC_T
855 BITSIZEOF_SIZE_T
856 BITSIZEOF_PTRDIFF_T
857 APPLE_UNIVERSAL_BUILD
858 HAVE_SYS_BITYPES_H
859 HAVE_SYS_INTTYPES_H
860 HAVE_STDINT_H
861 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
862 NEXT_STDINT_H
863 HAVE_SYS_TYPES_H
864 HAVE_INTTYPES_H
865 HAVE_WCHAR_H
866 HAVE_UNSIGNED_LONG_LONG_INT
867 HAVE_LONG_LONG_INT
868 GETOPT_H
869 HAVE_GETOPT_H
870 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
871 NEXT_GETOPT_H
872 PRAGMA_COLUMNS
873 PRAGMA_SYSTEM_HEADER
874 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
875 INCLUDE_NEXT
876 GETLOADAVG_LIBS
877 REPLACE_WCTOMB
878 REPLACE_UNSETENV
879 REPLACE_STRTOD
880 REPLACE_SETENV
881 REPLACE_REALPATH
882 REPLACE_REALLOC
883 REPLACE_PUTENV
884 REPLACE_MKSTEMP
885 REPLACE_MBTOWC
886 REPLACE_MALLOC
887 REPLACE_CANONICALIZE_FILE_NAME
888 REPLACE_CALLOC
889 HAVE_DECL_UNSETENV
890 HAVE_UNLOCKPT
891 HAVE_SYS_LOADAVG_H
892 HAVE_STRUCT_RANDOM_DATA
893 HAVE_STRTOULL
894 HAVE_STRTOLL
895 HAVE_STRTOD
896 HAVE_DECL_SETENV
897 HAVE_SETENV
898 HAVE_RPMATCH
899 HAVE_REALPATH
900 HAVE_RANDOM_R
901 HAVE_RANDOM_H
902 HAVE_PTSNAME
903 HAVE_MKSTEMPS
904 HAVE_MKSTEMP
905 HAVE_MKOSTEMPS
906 HAVE_MKOSTEMP
907 HAVE_MKDTEMP
908 HAVE_GRANTPT
909 HAVE_GETSUBOPT
910 HAVE_DECL_GETLOADAVG
911 HAVE_CANONICALIZE_FILE_NAME
912 HAVE_ATOLL
913 HAVE__EXIT
914 GNULIB_WCTOMB
915 GNULIB_UNSETENV
916 GNULIB_UNLOCKPT
917 GNULIB_SYSTEM_POSIX
918 GNULIB_STRTOULL
919 GNULIB_STRTOLL
920 GNULIB_STRTOD
921 GNULIB_SETENV
922 GNULIB_RPMATCH
923 GNULIB_REALPATH
924 GNULIB_REALLOC_POSIX
925 GNULIB_RANDOM_R
926 GNULIB_PUTENV
927 GNULIB_PTSNAME
928 GNULIB_MKSTEMPS
929 GNULIB_MKSTEMP
930 GNULIB_MKOSTEMPS
931 GNULIB_MKOSTEMP
932 GNULIB_MKDTEMP
933 GNULIB_MBTOWC
934 GNULIB_MALLOC_POSIX
935 GNULIB_GRANTPT
936 GNULIB_GETSUBOPT
937 GNULIB_GETLOADAVG
938 GNULIB_CANONICALIZE_FILE_NAME
939 GNULIB_CALLOC_POSIX
940 GNULIB_ATOLL
941 GNULIB__EXIT
942 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
943 UNISTD_H_HAVE_WINSOCK2_H
944 REPLACE_WRITE
945 REPLACE_USLEEP
946 REPLACE_UNLINKAT
947 REPLACE_UNLINK
948 REPLACE_TTYNAME_R
949 REPLACE_SYMLINK
950 REPLACE_SLEEP
951 REPLACE_RMDIR
952 REPLACE_READLINK
953 REPLACE_READ
954 REPLACE_PWRITE
955 REPLACE_PREAD
956 REPLACE_LSEEK
957 REPLACE_LINKAT
958 REPLACE_LINK
959 REPLACE_LCHOWN
960 REPLACE_GETPAGESIZE
961 REPLACE_GETGROUPS
962 REPLACE_GETLOGIN_R
963 REPLACE_GETDOMAINNAME
964 REPLACE_GETCWD
965 REPLACE_FCHOWNAT
966 REPLACE_DUP2
967 REPLACE_DUP
968 REPLACE_CLOSE
969 REPLACE_CHOWN
970 HAVE_SYS_PARAM_H
971 HAVE_OS_H
972 HAVE_DECL_TTYNAME_R
973 HAVE_DECL_GETUSERSHELL
974 HAVE_DECL_GETPAGESIZE
975 HAVE_DECL_GETLOGIN_R
976 HAVE_DECL_GETDOMAINNAME
977 HAVE_DECL_FCHDIR
978 HAVE_DECL_ENVIRON
979 HAVE_USLEEP
980 HAVE_UNLINKAT
981 HAVE_SYMLINKAT
982 HAVE_SYMLINK
983 HAVE_SLEEP
984 HAVE_READLINKAT
985 HAVE_READLINK
986 HAVE_PWRITE
987 HAVE_PREAD
988 HAVE_PIPE2
989 HAVE_PIPE
990 HAVE_LINKAT
991 HAVE_LINK
992 HAVE_LCHOWN
993 HAVE_GROUP_MEMBER
994 HAVE_GETPAGESIZE
995 HAVE_GETLOGIN
996 HAVE_GETHOSTNAME
997 HAVE_GETGROUPS
998 HAVE_GETDTABLESIZE
999 HAVE_FTRUNCATE
1000 HAVE_FSYNC
1001 HAVE_FCHOWNAT
1002 HAVE_FCHDIR
1003 HAVE_FACCESSAT
1004 HAVE_EUIDACCESS
1005 HAVE_DUP3
1006 HAVE_DUP2
1007 HAVE_CHOWN
1008 GNULIB_WRITE
1009 GNULIB_USLEEP
1010 GNULIB_UNLINKAT
1011 GNULIB_UNLINK
1012 GNULIB_UNISTD_H_SIGPIPE
1013 GNULIB_UNISTD_H_NONBLOCKING
1014 GNULIB_UNISTD_H_GETOPT
1015 GNULIB_TTYNAME_R
1016 GNULIB_SYMLINKAT
1017 GNULIB_SYMLINK
1018 GNULIB_SLEEP
1019 GNULIB_RMDIR
1020 GNULIB_READLINKAT
1021 GNULIB_READLINK
1022 GNULIB_READ
1023 GNULIB_PWRITE
1024 GNULIB_PREAD
1025 GNULIB_PIPE2
1026 GNULIB_PIPE
1027 GNULIB_LSEEK
1028 GNULIB_LINKAT
1029 GNULIB_LINK
1030 GNULIB_LCHOWN
1031 GNULIB_GROUP_MEMBER
1032 GNULIB_GETUSERSHELL
1033 GNULIB_GETPAGESIZE
1034 GNULIB_GETLOGIN_R
1035 GNULIB_GETLOGIN
1036 GNULIB_GETHOSTNAME
1037 GNULIB_GETGROUPS
1038 GNULIB_GETDTABLESIZE
1039 GNULIB_GETDOMAINNAME
1040 GNULIB_GETCWD
1041 GNULIB_FTRUNCATE
1042 GNULIB_FSYNC
1043 GNULIB_FCHOWNAT
1044 GNULIB_FCHDIR
1045 GNULIB_FACCESSAT
1046 GNULIB_EUIDACCESS
1047 GNULIB_ENVIRON
1048 GNULIB_DUP3
1049 GNULIB_DUP2
1050 GNULIB_CLOSE
1051 GNULIB_CHOWN
1052 GL_GENERATE_ALLOCA_H_FALSE
1053 GL_GENERATE_ALLOCA_H_TRUE
1054 ALLOCA_H
1055 ALLOCA
1056 GL_COND_LIBTOOL_FALSE
1057 GL_COND_LIBTOOL_TRUE
1058 POST_ALLOC_OBJ
1059 PRE_ALLOC_OBJ
1060 CYGWIN_OBJ
1061 RALLOC_OBJ
1062 OLDXMENU_DEPS
1063 LIBX_OTHER
1064 LIBXMENU
1065 OLDXMENU
1066 OLDXMENU_TARGET
1067 LIBXT_OTHER
1068 TOOLKIT_LIBW
1069 WIDGET_OBJ
1070 XOBJ
1071 XMENU_OBJ
1072 FONT_OBJ
1073 OTHER_FILES
1074 GNU_OBJC_CFLAGS
1075 ns_appsrc
1076 ns_appresdir
1077 ns_appbindir
1078 ns_appdir
1079 S_FILE
1080 M_FILE
1081 X_TOOLKIT_TYPE
1082 C_SWITCH_X_SYSTEM
1083 C_SWITCH_X_SITE
1084 LD_SWITCH_X_SITE
1085 gameuser
1086 gamedir
1087 bitmapdir
1088 archlibdir
1089 etcdir
1090 x_default_search_path
1091 lisppath
1092 locallisppath
1093 lispdir
1094 srcdir
1095 canonical
1096 configuration
1097 version
1098 KRB4LIB
1099 DESLIB
1100 KRB5LIB
1101 CRYPTOLIB
1102 COM_ERRLIB
1103 LIBRESOLV
1104 LIBHESIOD
1105 TERMCAP_OBJ
1106 LIBS_TERMCAP
1107 BLESSMAIL_TARGET
1108 LIBS_MAIL
1109 liblockfile
1110 LIBXML2_LIBS
1111 LIBXML2_CFLAGS
1112 LIBXSM
1113 LIBGPM
1114 LIBGIF
1115 LIBTIFF
1116 LIBPNG
1117 LIBJPEG
1118 LIBXPM
1119 M17N_FLT_LIBS
1120 M17N_FLT_CFLAGS
1121 LIBOTF_LIBS
1122 LIBOTF_CFLAGS
1123 FREETYPE_LIBS
1124 FREETYPE_CFLAGS
1125 XFT_LIBS
1126 XFT_CFLAGS
1127 FONTCONFIG_LIBS
1128 FONTCONFIG_CFLAGS
1129 LIBXMU
1130 LIBXTR6
1131 LIBGNUTLS_LIBS
1132 LIBGNUTLS_CFLAGS
1133 LIBSELINUX_LIBS
1134 SETTINGS_LIBS
1135 SETTINGS_CFLAGS
1136 GCONF_LIBS
1137 GCONF_CFLAGS
1138 GSETTINGS_LIBS
1139 GSETTINGS_CFLAGS
1140 DBUS_OBJ
1141 DBUS_LIBS
1142 DBUS_CFLAGS
1143 GTK_OBJ
1144 GTK_LIBS
1145 GTK_CFLAGS
1146 IMAGEMAGICK_LIBS
1147 IMAGEMAGICK_CFLAGS
1148 RSVG_LIBS
1149 RSVG_CFLAGS
1150 LIB_PTHREAD
1151 VMLIMIT_OBJ
1152 GMALLOC_OBJ
1153 HAVE_XSERVER
1154 LIB_STANDARD
1155 NS_OBJC_OBJ
1156 NS_OBJ
1157 TEMACS_LDFLAGS2
1158 LD_SWITCH_X_SITE_AUX_RPATH
1159 LD_SWITCH_X_SITE_AUX
1160 XMKMF
1161 DEPFLAGS
1162 MKDEPDIR
1163 CFLAGS_SOUND
1164 ALSA_LIBS
1165 ALSA_CFLAGS
1166 PKG_CONFIG
1167 LIBSOUND
1168 CRT_DIR
1169 START_FILES
1170 LIB_MATH
1171 LIBS_SYSTEM
1172 C_SWITCH_SYSTEM
1173 UNEXEC_OBJ
1174 C_SWITCH_MACHINE
1175 LD_SWITCH_SYSTEM
1176 CANNOT_DUMP
1177 HAVE_MAKEINFO
1178 GZIP_PROG
1179 INSTALL_INFO
1180 C_WARNINGS_SWITCH
1181 RANLIB
1182 ARFLAGS
1183 AR
1184 EGREP
1185 GREP
1186 CPP
1187 am__fastdepCC_FALSE
1188 am__fastdepCC_TRUE
1189 CCDEPMODE
1190 AMDEPBACKSLASH
1191 AMDEP_FALSE
1192 AMDEP_TRUE
1193 am__quote
1194 am__include
1195 DEPDIR
1196 OBJEXT
1197 EXEEXT
1198 ac_ct_CC
1199 CPPFLAGS
1200 LDFLAGS
1201 CFLAGS
1202 CC
1203 host_os
1204 host_vendor
1205 host_cpu
1206 host
1207 build_os
1208 build_vendor
1209 build_cpu
1210 build
1211 PROFILING_CFLAGS
1212 MAINT
1213 GZIP_INFO
1214 am__untar
1215 am__tar
1216 AMTAR
1217 am__leading_dot
1218 SET_MAKE
1219 AWK
1220 mkdir_p
1221 MKDIR_P
1222 INSTALL_STRIP_PROGRAM
1223 STRIP
1224 install_sh
1225 MAKEINFO
1226 AUTOHEADER
1227 AUTOMAKE
1228 AUTOCONF
1229 ACLOCAL
1230 VERSION
1231 PACKAGE
1232 CYGPATH_W
1233 am__isrc
1234 INSTALL_DATA
1235 INSTALL_SCRIPT
1236 INSTALL_PROGRAM
1237 target_alias
1238 host_alias
1239 build_alias
1240 LIBS
1241 ECHO_T
1242 ECHO_N
1243 ECHO_C
1244 DEFS
1245 mandir
1246 localedir
1247 libdir
1248 psdir
1249 pdfdir
1250 dvidir
1251 htmldir
1252 infodir
1253 docdir
1254 oldincludedir
1255 includedir
1256 localstatedir
1257 sharedstatedir
1258 sysconfdir
1259 datadir
1260 datarootdir
1261 libexecdir
1262 sbindir
1263 bindir
1264 program_transform_name
1265 prefix
1266 exec_prefix
1267 PACKAGE_URL
1268 PACKAGE_BUGREPORT
1269 PACKAGE_STRING
1270 PACKAGE_VERSION
1271 PACKAGE_TARNAME
1272 PACKAGE_NAME
1273 PATH_SEPARATOR
1274 SHELL'
1275 ac_subst_files='deps_frag
1276 lisp_frag
1277 ns_frag'
1278 ac_user_opts='
1279 enable_option_checking
1280 with_pop
1281 with_kerberos
1282 with_kerberos5
1283 with_hesiod
1284 with_mmdf
1285 with_mail_unlink
1286 with_mailhost
1287 with_sound
1288 with_sync_input
1289 with_x_toolkit
1290 with_wide_int
1291 with_xpm
1292 with_jpeg
1293 with_tiff
1294 with_gif
1295 with_png
1296 with_rsvg
1297 with_xml2
1298 with_imagemagick
1299 with_xft
1300 with_libotf
1301 with_m17n_flt
1302 with_toolkit_scroll_bars
1303 with_xaw3d
1304 with_xim
1305 with_ns
1306 with_gpm
1307 with_dbus
1308 with_gconf
1309 with_gsettings
1310 with_selinux
1311 with_gnutls
1312 with_makeinfo
1313 with_compress_info
1314 with_pkg_config_prog
1315 with_crt_dir
1316 with_gameuser
1317 with_gnustep_conf
1318 enable_ns_self_contained
1319 enable_asserts
1320 enable_maintainer_mode
1321 enable_locallisppath
1322 enable_checking
1323 enable_use_lisp_union_type
1324 enable_profiling
1325 enable_autodepend
1326 enable_dependency_tracking
1327 enable_largefile
1328 with_x
1329 '
1330 ac_precious_vars='build_alias
1331 host_alias
1332 target_alias
1333 CC
1334 CFLAGS
1335 LDFLAGS
1336 LIBS
1337 CPPFLAGS
1338 CPP
1339 XMKMF'
1340
1341
1342 # Initialize some variables set by options.
1343 ac_init_help=
1344 ac_init_version=false
1345 ac_unrecognized_opts=
1346 ac_unrecognized_sep=
1347 # The variables have the same names as the options, with
1348 # dashes changed to underlines.
1349 cache_file=/dev/null
1350 exec_prefix=NONE
1351 no_create=
1352 no_recursion=
1353 prefix=NONE
1354 program_prefix=NONE
1355 program_suffix=NONE
1356 program_transform_name=s,x,x,
1357 silent=
1358 site=
1359 srcdir=
1360 verbose=
1361 x_includes=NONE
1362 x_libraries=NONE
1363
1364 # Installation directory options.
1365 # These are left unexpanded so users can "make install exec_prefix=/foo"
1366 # and all the variables that are supposed to be based on exec_prefix
1367 # by default will actually change.
1368 # Use braces instead of parens because sh, perl, etc. also accept them.
1369 # (The list follows the same order as the GNU Coding Standards.)
1370 bindir='${exec_prefix}/bin'
1371 sbindir='${exec_prefix}/sbin'
1372 libexecdir='${exec_prefix}/libexec'
1373 datarootdir='${prefix}/share'
1374 datadir='${datarootdir}'
1375 sysconfdir='${prefix}/etc'
1376 sharedstatedir='${prefix}/com'
1377 localstatedir='${prefix}/var'
1378 includedir='${prefix}/include'
1379 oldincludedir='/usr/include'
1380 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1381 infodir='${datarootdir}/info'
1382 htmldir='${docdir}'
1383 dvidir='${docdir}'
1384 pdfdir='${docdir}'
1385 psdir='${docdir}'
1386 libdir='${exec_prefix}/lib'
1387 localedir='${datarootdir}/locale'
1388 mandir='${datarootdir}/man'
1389
1390 ac_prev=
1391 ac_dashdash=
1392 for ac_option
1393 do
1394 # If the previous option needs an argument, assign it.
1395 if test -n "$ac_prev"; then
1396 eval $ac_prev=\$ac_option
1397 ac_prev=
1398 continue
1399 fi
1400
1401 case $ac_option in
1402 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1403 *=) ac_optarg= ;;
1404 *) ac_optarg=yes ;;
1405 esac
1406
1407 # Accept the important Cygnus configure options, so we can diagnose typos.
1408
1409 case $ac_dashdash$ac_option in
1410 --)
1411 ac_dashdash=yes ;;
1412
1413 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1414 ac_prev=bindir ;;
1415 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1416 bindir=$ac_optarg ;;
1417
1418 -build | --build | --buil | --bui | --bu)
1419 ac_prev=build_alias ;;
1420 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1421 build_alias=$ac_optarg ;;
1422
1423 -cache-file | --cache-file | --cache-fil | --cache-fi \
1424 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1425 ac_prev=cache_file ;;
1426 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1427 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1428 cache_file=$ac_optarg ;;
1429
1430 --config-cache | -C)
1431 cache_file=config.cache ;;
1432
1433 -datadir | --datadir | --datadi | --datad)
1434 ac_prev=datadir ;;
1435 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1436 datadir=$ac_optarg ;;
1437
1438 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1439 | --dataroo | --dataro | --datar)
1440 ac_prev=datarootdir ;;
1441 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1442 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1443 datarootdir=$ac_optarg ;;
1444
1445 -disable-* | --disable-*)
1446 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1447 # Reject names that are not valid shell variable names.
1448 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1449 as_fn_error $? "invalid feature name: $ac_useropt"
1450 ac_useropt_orig=$ac_useropt
1451 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1452 case $ac_user_opts in
1453 *"
1454 "enable_$ac_useropt"
1455 "*) ;;
1456 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1457 ac_unrecognized_sep=', ';;
1458 esac
1459 eval enable_$ac_useropt=no ;;
1460
1461 -docdir | --docdir | --docdi | --doc | --do)
1462 ac_prev=docdir ;;
1463 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1464 docdir=$ac_optarg ;;
1465
1466 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1467 ac_prev=dvidir ;;
1468 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1469 dvidir=$ac_optarg ;;
1470
1471 -enable-* | --enable-*)
1472 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1473 # Reject names that are not valid shell variable names.
1474 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1475 as_fn_error $? "invalid feature name: $ac_useropt"
1476 ac_useropt_orig=$ac_useropt
1477 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1478 case $ac_user_opts in
1479 *"
1480 "enable_$ac_useropt"
1481 "*) ;;
1482 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1483 ac_unrecognized_sep=', ';;
1484 esac
1485 eval enable_$ac_useropt=\$ac_optarg ;;
1486
1487 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1488 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1489 | --exec | --exe | --ex)
1490 ac_prev=exec_prefix ;;
1491 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1492 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1493 | --exec=* | --exe=* | --ex=*)
1494 exec_prefix=$ac_optarg ;;
1495
1496 -gas | --gas | --ga | --g)
1497 # Obsolete; use --with-gas.
1498 with_gas=yes ;;
1499
1500 -help | --help | --hel | --he | -h)
1501 ac_init_help=long ;;
1502 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1503 ac_init_help=recursive ;;
1504 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1505 ac_init_help=short ;;
1506
1507 -host | --host | --hos | --ho)
1508 ac_prev=host_alias ;;
1509 -host=* | --host=* | --hos=* | --ho=*)
1510 host_alias=$ac_optarg ;;
1511
1512 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1513 ac_prev=htmldir ;;
1514 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1515 | --ht=*)
1516 htmldir=$ac_optarg ;;
1517
1518 -includedir | --includedir | --includedi | --included | --include \
1519 | --includ | --inclu | --incl | --inc)
1520 ac_prev=includedir ;;
1521 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1522 | --includ=* | --inclu=* | --incl=* | --inc=*)
1523 includedir=$ac_optarg ;;
1524
1525 -infodir | --infodir | --infodi | --infod | --info | --inf)
1526 ac_prev=infodir ;;
1527 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1528 infodir=$ac_optarg ;;
1529
1530 -libdir | --libdir | --libdi | --libd)
1531 ac_prev=libdir ;;
1532 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1533 libdir=$ac_optarg ;;
1534
1535 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1536 | --libexe | --libex | --libe)
1537 ac_prev=libexecdir ;;
1538 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1539 | --libexe=* | --libex=* | --libe=*)
1540 libexecdir=$ac_optarg ;;
1541
1542 -localedir | --localedir | --localedi | --localed | --locale)
1543 ac_prev=localedir ;;
1544 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1545 localedir=$ac_optarg ;;
1546
1547 -localstatedir | --localstatedir | --localstatedi | --localstated \
1548 | --localstate | --localstat | --localsta | --localst | --locals)
1549 ac_prev=localstatedir ;;
1550 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1551 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1552 localstatedir=$ac_optarg ;;
1553
1554 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1555 ac_prev=mandir ;;
1556 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1557 mandir=$ac_optarg ;;
1558
1559 -nfp | --nfp | --nf)
1560 # Obsolete; use --without-fp.
1561 with_fp=no ;;
1562
1563 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1564 | --no-cr | --no-c | -n)
1565 no_create=yes ;;
1566
1567 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1568 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1569 no_recursion=yes ;;
1570
1571 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1572 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1573 | --oldin | --oldi | --old | --ol | --o)
1574 ac_prev=oldincludedir ;;
1575 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1576 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1577 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1578 oldincludedir=$ac_optarg ;;
1579
1580 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1581 ac_prev=prefix ;;
1582 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1583 prefix=$ac_optarg ;;
1584
1585 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1586 | --program-pre | --program-pr | --program-p)
1587 ac_prev=program_prefix ;;
1588 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1589 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1590 program_prefix=$ac_optarg ;;
1591
1592 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1593 | --program-suf | --program-su | --program-s)
1594 ac_prev=program_suffix ;;
1595 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1596 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1597 program_suffix=$ac_optarg ;;
1598
1599 -program-transform-name | --program-transform-name \
1600 | --program-transform-nam | --program-transform-na \
1601 | --program-transform-n | --program-transform- \
1602 | --program-transform | --program-transfor \
1603 | --program-transfo | --program-transf \
1604 | --program-trans | --program-tran \
1605 | --progr-tra | --program-tr | --program-t)
1606 ac_prev=program_transform_name ;;
1607 -program-transform-name=* | --program-transform-name=* \
1608 | --program-transform-nam=* | --program-transform-na=* \
1609 | --program-transform-n=* | --program-transform-=* \
1610 | --program-transform=* | --program-transfor=* \
1611 | --program-transfo=* | --program-transf=* \
1612 | --program-trans=* | --program-tran=* \
1613 | --progr-tra=* | --program-tr=* | --program-t=*)
1614 program_transform_name=$ac_optarg ;;
1615
1616 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1617 ac_prev=pdfdir ;;
1618 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1619 pdfdir=$ac_optarg ;;
1620
1621 -psdir | --psdir | --psdi | --psd | --ps)
1622 ac_prev=psdir ;;
1623 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1624 psdir=$ac_optarg ;;
1625
1626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1627 | -silent | --silent | --silen | --sile | --sil)
1628 silent=yes ;;
1629
1630 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1631 ac_prev=sbindir ;;
1632 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1633 | --sbi=* | --sb=*)
1634 sbindir=$ac_optarg ;;
1635
1636 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1637 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1638 | --sharedst | --shareds | --shared | --share | --shar \
1639 | --sha | --sh)
1640 ac_prev=sharedstatedir ;;
1641 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1642 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1643 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1644 | --sha=* | --sh=*)
1645 sharedstatedir=$ac_optarg ;;
1646
1647 -site | --site | --sit)
1648 ac_prev=site ;;
1649 -site=* | --site=* | --sit=*)
1650 site=$ac_optarg ;;
1651
1652 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1653 ac_prev=srcdir ;;
1654 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1655 srcdir=$ac_optarg ;;
1656
1657 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1658 | --syscon | --sysco | --sysc | --sys | --sy)
1659 ac_prev=sysconfdir ;;
1660 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1661 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1662 sysconfdir=$ac_optarg ;;
1663
1664 -target | --target | --targe | --targ | --tar | --ta | --t)
1665 ac_prev=target_alias ;;
1666 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1667 target_alias=$ac_optarg ;;
1668
1669 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1670 verbose=yes ;;
1671
1672 -version | --version | --versio | --versi | --vers | -V)
1673 ac_init_version=: ;;
1674
1675 -with-* | --with-*)
1676 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1677 # Reject names that are not valid shell variable names.
1678 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1679 as_fn_error $? "invalid package name: $ac_useropt"
1680 ac_useropt_orig=$ac_useropt
1681 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1682 case $ac_user_opts in
1683 *"
1684 "with_$ac_useropt"
1685 "*) ;;
1686 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1687 ac_unrecognized_sep=', ';;
1688 esac
1689 eval with_$ac_useropt=\$ac_optarg ;;
1690
1691 -without-* | --without-*)
1692 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1693 # Reject names that are not valid shell variable names.
1694 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1695 as_fn_error $? "invalid package name: $ac_useropt"
1696 ac_useropt_orig=$ac_useropt
1697 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1698 case $ac_user_opts in
1699 *"
1700 "with_$ac_useropt"
1701 "*) ;;
1702 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1703 ac_unrecognized_sep=', ';;
1704 esac
1705 eval with_$ac_useropt=no ;;
1706
1707 --x)
1708 # Obsolete; use --with-x.
1709 with_x=yes ;;
1710
1711 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1712 | --x-incl | --x-inc | --x-in | --x-i)
1713 ac_prev=x_includes ;;
1714 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1715 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1716 x_includes=$ac_optarg ;;
1717
1718 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1719 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1720 ac_prev=x_libraries ;;
1721 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1722 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1723 x_libraries=$ac_optarg ;;
1724
1725 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1726 Try \`$0 --help' for more information"
1727 ;;
1728
1729 *=*)
1730 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1731 # Reject names that are not valid shell variable names.
1732 case $ac_envvar in #(
1733 '' | [0-9]* | *[!_$as_cr_alnum]* )
1734 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1735 esac
1736 eval $ac_envvar=\$ac_optarg
1737 export $ac_envvar ;;
1738
1739 *)
1740 # FIXME: should be removed in autoconf 3.0.
1741 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1742 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1743 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1744 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1745 ;;
1746
1747 esac
1748 done
1749
1750 if test -n "$ac_prev"; then
1751 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1752 as_fn_error $? "missing argument to $ac_option"
1753 fi
1754
1755 if test -n "$ac_unrecognized_opts"; then
1756 case $enable_option_checking in
1757 no) ;;
1758 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1759 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1760 esac
1761 fi
1762
1763 # Check all directory arguments for consistency.
1764 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1765 datadir sysconfdir sharedstatedir localstatedir includedir \
1766 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1767 libdir localedir mandir
1768 do
1769 eval ac_val=\$$ac_var
1770 # Remove trailing slashes.
1771 case $ac_val in
1772 */ )
1773 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1774 eval $ac_var=\$ac_val;;
1775 esac
1776 # Be sure to have absolute directory names.
1777 case $ac_val in
1778 [\\/$]* | ?:[\\/]* ) continue;;
1779 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1780 esac
1781 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1782 done
1783
1784 # There might be people who depend on the old broken behavior: `$host'
1785 # used to hold the argument of --host etc.
1786 # FIXME: To remove some day.
1787 build=$build_alias
1788 host=$host_alias
1789 target=$target_alias
1790
1791 # FIXME: To remove some day.
1792 if test "x$host_alias" != x; then
1793 if test "x$build_alias" = x; then
1794 cross_compiling=maybe
1795 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1796 If a cross compiler is detected then cross compile mode will be used" >&2
1797 elif test "x$build_alias" != "x$host_alias"; then
1798 cross_compiling=yes
1799 fi
1800 fi
1801
1802 ac_tool_prefix=
1803 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1804
1805 test "$silent" = yes && exec 6>/dev/null
1806
1807
1808 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1809 ac_ls_di=`ls -di .` &&
1810 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1811 as_fn_error $? "working directory cannot be determined"
1812 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1813 as_fn_error $? "pwd does not report name of working directory"
1814
1815
1816 # Find the source files, if location was not specified.
1817 if test -z "$srcdir"; then
1818 ac_srcdir_defaulted=yes
1819 # Try the directory containing this script, then the parent directory.
1820 ac_confdir=`$as_dirname -- "$as_myself" ||
1821 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1822 X"$as_myself" : 'X\(//\)[^/]' \| \
1823 X"$as_myself" : 'X\(//\)$' \| \
1824 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1825 $as_echo X"$as_myself" |
1826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1827 s//\1/
1828 q
1829 }
1830 /^X\(\/\/\)[^/].*/{
1831 s//\1/
1832 q
1833 }
1834 /^X\(\/\/\)$/{
1835 s//\1/
1836 q
1837 }
1838 /^X\(\/\).*/{
1839 s//\1/
1840 q
1841 }
1842 s/.*/./; q'`
1843 srcdir=$ac_confdir
1844 if test ! -r "$srcdir/$ac_unique_file"; then
1845 srcdir=..
1846 fi
1847 else
1848 ac_srcdir_defaulted=no
1849 fi
1850 if test ! -r "$srcdir/$ac_unique_file"; then
1851 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1852 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1853 fi
1854 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1855 ac_abs_confdir=`(
1856 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1857 pwd)`
1858 # When building in place, set srcdir=.
1859 if test "$ac_abs_confdir" = "$ac_pwd"; then
1860 srcdir=.
1861 fi
1862 # Remove unnecessary trailing slashes from srcdir.
1863 # Double slashes in file names in object file debugging info
1864 # mess up M-x gdb in Emacs.
1865 case $srcdir in
1866 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1867 esac
1868 for ac_var in $ac_precious_vars; do
1869 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1870 eval ac_env_${ac_var}_value=\$${ac_var}
1871 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1872 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1873 done
1874
1875 #
1876 # Report the --help message.
1877 #
1878 if test "$ac_init_help" = "long"; then
1879 # Omit some internal or obsolete options to make the list less imposing.
1880 # This message is too long to be a string in the A/UX 3.1 sh.
1881 cat <<_ACEOF
1882 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1883
1884 Usage: $0 [OPTION]... [VAR=VALUE]...
1885
1886 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1887 VAR=VALUE. See below for descriptions of some of the useful variables.
1888
1889 Defaults for the options are specified in brackets.
1890
1891 Configuration:
1892 -h, --help display this help and exit
1893 --help=short display options specific to this package
1894 --help=recursive display the short help of all the included packages
1895 -V, --version display version information and exit
1896 -q, --quiet, --silent do not print \`checking ...' messages
1897 --cache-file=FILE cache test results in FILE [disabled]
1898 -C, --config-cache alias for \`--cache-file=config.cache'
1899 -n, --no-create do not create output files
1900 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1901
1902 Installation directories:
1903 --prefix=PREFIX install architecture-independent files in PREFIX
1904 [$ac_default_prefix]
1905 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1906 [PREFIX]
1907
1908 By default, \`make install' will install all the files in
1909 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1910 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1911 for instance \`--prefix=\$HOME'.
1912
1913 For better control, use the options below.
1914
1915 Fine tuning of the installation directories:
1916 --bindir=DIR user executables [EPREFIX/bin]
1917 --sbindir=DIR system admin executables [EPREFIX/sbin]
1918 --libexecdir=DIR program executables [EPREFIX/libexec]
1919 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1920 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1921 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1922 --libdir=DIR object code libraries [EPREFIX/lib]
1923 --includedir=DIR C header files [PREFIX/include]
1924 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1925 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1926 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1927 --infodir=DIR info documentation [DATAROOTDIR/info]
1928 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1929 --mandir=DIR man documentation [DATAROOTDIR/man]
1930 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1931 --htmldir=DIR html documentation [DOCDIR]
1932 --dvidir=DIR dvi documentation [DOCDIR]
1933 --pdfdir=DIR pdf documentation [DOCDIR]
1934 --psdir=DIR ps documentation [DOCDIR]
1935 _ACEOF
1936
1937 cat <<\_ACEOF
1938
1939 Program names:
1940 --program-prefix=PREFIX prepend PREFIX to installed program names
1941 --program-suffix=SUFFIX append SUFFIX to installed program names
1942 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1943
1944 X features:
1945 --x-includes=DIR X include files are in DIR
1946 --x-libraries=DIR X library files are in DIR
1947
1948 System types:
1949 --build=BUILD configure for building on BUILD [guessed]
1950 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1951 _ACEOF
1952 fi
1953
1954 if test -n "$ac_init_help"; then
1955 case $ac_init_help in
1956 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1957 esac
1958 cat <<\_ACEOF
1959
1960 Optional Features:
1961 --disable-option-checking ignore unrecognized --enable/--with options
1962 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1963 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1964 --disable-ns-self-contained
1965 disable self contained build under NeXTstep
1966 --enable-asserts compile code with asserts enabled
1967 --disable-maintainer-mode
1968 disable make rules and dependencies not useful (and
1969 sometimes confusing) to the casual installer
1970 --enable-locallisppath=PATH
1971 directories Emacs should search for lisp files
1972 specific to this site
1973 --enable-checking[=LIST]
1974 enable expensive run-time checks. With LIST, enable
1975 only specific categories of checks. Categories are:
1976 all,yes,no. Flags are: stringbytes, stringoverrun,
1977 stringfreelist, xmallocoverrun, conslist
1978 --enable-use-lisp-union-type
1979 use a union for the Lisp_Object data type. This is
1980 only useful for development for catching certain
1981 types of bugs.
1982 --enable-profiling build emacs with profiling support. This might not
1983 work on all platforms
1984 --enable-autodepend automatically generate dependencies to .h-files.
1985 Requires GNU Make and Gcc. Enabled if GNU Make and
1986 Gcc is found
1987 --disable-dependency-tracking speeds up one-time build
1988 --enable-dependency-tracking do not reject slow dependency extractors
1989 --disable-largefile omit support for large files
1990
1991 Optional Packages:
1992 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1993 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1994 --without-pop don't support POP mail retrieval with movemail
1995 --with-kerberos support Kerberos-authenticated POP
1996 --with-kerberos5 support Kerberos version 5 authenticated POP
1997 --with-hesiod support Hesiod to get the POP server host
1998 --with-mmdf support MMDF mailboxes
1999 --with-mail-unlink unlink, rather than empty, mail spool after reading
2000 --with-mailhost=HOSTNAME
2001 string giving default POP mail host
2002 --without-sound don't compile with sound support
2003 --without-sync-input process async input synchronously
2004 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2005 lucid or athena, motif, no)
2006 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2007 --without-xpm don't compile with XPM image support
2008 --without-jpeg don't compile with JPEG image support
2009 --without-tiff don't compile with TIFF image support
2010 --without-gif don't compile with GIF image support
2011 --without-png don't compile with PNG image support
2012 --without-rsvg don't compile with SVG image support
2013 --without-xml2 don't compile with XML parsing support
2014 --without-imagemagick don't compile with ImageMagick image support
2015 --without-xft don't use XFT for anti aliased fonts
2016 --without-libotf don't use libotf for OpenType font support
2017 --without-m17n-flt don't use m17n-flt for text shaping
2018 --without-toolkit-scroll-bars
2019 don't use Motif or Xaw3d scroll bars
2020 --without-xaw3d don't use Xaw3d
2021 --without-xim don't use X11 XIM
2022 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2023 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2024 console
2025 --without-dbus don't compile with D-Bus support
2026 --without-gconf don't compile with GConf support
2027 --without-gsettings don't compile with GSettings support
2028 --without-selinux don't compile with SELinux support
2029 --without-gnutls don't use -lgnutls for SSL/TLS support
2030 --without-makeinfo don't require makeinfo for building manuals
2031 --without-compress-info don't compress the installed Info pages
2032 --with-pkg-config-prog=PATH
2033 path to pkg-config for finding GTK and librsvg
2034 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2035 /usr/lib, or /usr/lib64 on some platforms.
2036 --with-gameuser=USER user for shared game score files
2037 --with-gnustep-conf=PATH
2038 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2039 or /etc/GNUstep/GNUstep.conf
2040 --with-x use the X Window System
2041
2042 Some influential environment variables:
2043 CC C compiler command
2044 CFLAGS C compiler flags
2045 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2046 nonstandard directory <lib dir>
2047 LIBS libraries to pass to the linker, e.g. -l<library>
2048 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2049 you have headers in a nonstandard directory <include dir>
2050 CPP C preprocessor
2051 XMKMF Path to xmkmf, Makefile generator for X Window System
2052
2053 Use these variables to override the choices made by `configure' or to help
2054 it to find libraries and programs with nonstandard names/locations.
2055
2056 Report bugs to the package provider.
2057 _ACEOF
2058 ac_status=$?
2059 fi
2060
2061 if test "$ac_init_help" = "recursive"; then
2062 # If there are subdirs, report their specific --help.
2063 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2064 test -d "$ac_dir" ||
2065 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2066 continue
2067 ac_builddir=.
2068
2069 case "$ac_dir" in
2070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2071 *)
2072 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2073 # A ".." for each directory in $ac_dir_suffix.
2074 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2075 case $ac_top_builddir_sub in
2076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2078 esac ;;
2079 esac
2080 ac_abs_top_builddir=$ac_pwd
2081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2082 # for backward compatibility:
2083 ac_top_builddir=$ac_top_build_prefix
2084
2085 case $srcdir in
2086 .) # We are building in place.
2087 ac_srcdir=.
2088 ac_top_srcdir=$ac_top_builddir_sub
2089 ac_abs_top_srcdir=$ac_pwd ;;
2090 [\\/]* | ?:[\\/]* ) # Absolute name.
2091 ac_srcdir=$srcdir$ac_dir_suffix;
2092 ac_top_srcdir=$srcdir
2093 ac_abs_top_srcdir=$srcdir ;;
2094 *) # Relative name.
2095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2096 ac_top_srcdir=$ac_top_build_prefix$srcdir
2097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2098 esac
2099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2100
2101 cd "$ac_dir" || { ac_status=$?; continue; }
2102 # Check for guested configure.
2103 if test -f "$ac_srcdir/configure.gnu"; then
2104 echo &&
2105 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2106 elif test -f "$ac_srcdir/configure"; then
2107 echo &&
2108 $SHELL "$ac_srcdir/configure" --help=recursive
2109 else
2110 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2111 fi || ac_status=$?
2112 cd "$ac_pwd" || { ac_status=$?; break; }
2113 done
2114 fi
2115
2116 test -n "$ac_init_help" && exit $ac_status
2117 if $ac_init_version; then
2118 cat <<\_ACEOF
2119 emacs configure 24.0.50
2120 generated by GNU Autoconf 2.68
2121
2122 Copyright (C) 2010 Free Software Foundation, Inc.
2123 This configure script is free software; the Free Software Foundation
2124 gives unlimited permission to copy, distribute and modify it.
2125 _ACEOF
2126 exit
2127 fi
2128
2129 ## ------------------------ ##
2130 ## Autoconf initialization. ##
2131 ## ------------------------ ##
2132
2133 # ac_fn_c_try_compile LINENO
2134 # --------------------------
2135 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_compile ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 rm -f conftest.$ac_objext
2140 if { { ac_try="$ac_compile"
2141 case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144 esac
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_compile") 2>conftest.err
2148 ac_status=$?
2149 if test -s conftest.err; then
2150 grep -v '^ *+' conftest.err >conftest.er1
2151 cat conftest.er1 >&5
2152 mv -f conftest.er1 conftest.err
2153 fi
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } && {
2156 test -z "$ac_c_werror_flag" ||
2157 test ! -s conftest.err
2158 } && test -s conftest.$ac_objext; then :
2159 ac_retval=0
2160 else
2161 $as_echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 ac_retval=1
2165 fi
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status $ac_retval
2168
2169 } # ac_fn_c_try_compile
2170
2171 # ac_fn_c_try_cpp LINENO
2172 # ----------------------
2173 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2174 ac_fn_c_try_cpp ()
2175 {
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if { { ac_try="$ac_cpp conftest.$ac_ext"
2178 case "(($ac_try" in
2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180 *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2185 ac_status=$?
2186 if test -s conftest.err; then
2187 grep -v '^ *+' conftest.err >conftest.er1
2188 cat conftest.er1 >&5
2189 mv -f conftest.er1 conftest.err
2190 fi
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; } > conftest.i && {
2193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2194 test ! -s conftest.err
2195 }; then :
2196 ac_retval=0
2197 else
2198 $as_echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201 ac_retval=1
2202 fi
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2205
2206 } # ac_fn_c_try_cpp
2207
2208 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2209 # -------------------------------------------------------
2210 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2211 # the include files in INCLUDES and setting the cache variable VAR
2212 # accordingly.
2213 ac_fn_c_check_header_mongrel ()
2214 {
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if eval \${$3+:} false; then :
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 fi
2222 eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 else
2226 # Is the header compilable?
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2228 $as_echo_n "checking $2 usability... " >&6; }
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2231 $4
2232 #include <$2>
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 ac_header_compiler=yes
2236 else
2237 ac_header_compiler=no
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2241 $as_echo "$ac_header_compiler" >&6; }
2242
2243 # Is the header present?
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2245 $as_echo_n "checking $2 presence... " >&6; }
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 #include <$2>
2249 _ACEOF
2250 if ac_fn_c_try_cpp "$LINENO"; then :
2251 ac_header_preproc=yes
2252 else
2253 ac_header_preproc=no
2254 fi
2255 rm -f conftest.err conftest.i conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2257 $as_echo "$ac_header_preproc" >&6; }
2258
2259 # So? What about this header?
2260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2261 yes:no: )
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2263 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2266 ;;
2267 no:yes:* )
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2269 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2271 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2273 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2275 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2277 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2278 ;;
2279 esac
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2281 $as_echo_n "checking for $2... " >&6; }
2282 if eval \${$3+:} false; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 eval "$3=\$ac_header_compiler"
2286 fi
2287 eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2290 fi
2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292
2293 } # ac_fn_c_check_header_mongrel
2294
2295 # ac_fn_c_try_run LINENO
2296 # ----------------------
2297 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2298 # that executables *can* be run.
2299 ac_fn_c_try_run ()
2300 {
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 if { { ac_try="$ac_link"
2303 case "(($ac_try" in
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2306 esac
2307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_link") 2>&5
2310 ac_status=$?
2311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2312 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2313 { { case "(($ac_try" in
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2316 esac
2317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318 $as_echo "$ac_try_echo"; } >&5
2319 (eval "$ac_try") 2>&5
2320 ac_status=$?
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; }; }; then :
2323 ac_retval=0
2324 else
2325 $as_echo "$as_me: program exited with status $ac_status" >&5
2326 $as_echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 ac_retval=$ac_status
2330 fi
2331 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 as_fn_set_status $ac_retval
2334
2335 } # ac_fn_c_try_run
2336
2337 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2338 # -------------------------------------------------------
2339 # Tests whether HEADER exists and can be compiled using the include files in
2340 # INCLUDES, setting the cache variable VAR accordingly.
2341 ac_fn_c_check_header_compile ()
2342 {
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 $as_echo_n "checking for $2... " >&6; }
2346 if eval \${$3+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 $4
2352 #include <$2>
2353 _ACEOF
2354 if ac_fn_c_try_compile "$LINENO"; then :
2355 eval "$3=yes"
2356 else
2357 eval "$3=no"
2358 fi
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 fi
2361 eval ac_res=\$$3
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365
2366 } # ac_fn_c_check_header_compile
2367
2368 # ac_fn_c_try_link LINENO
2369 # -----------------------
2370 # Try to link conftest.$ac_ext, and return whether this succeeded.
2371 ac_fn_c_try_link ()
2372 {
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 rm -f conftest.$ac_objext conftest$ac_exeext
2375 if { { ac_try="$ac_link"
2376 case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379 esac
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_link") 2>conftest.err
2383 ac_status=$?
2384 if test -s conftest.err; then
2385 grep -v '^ *+' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 mv -f conftest.er1 conftest.err
2388 fi
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } && {
2391 test -z "$ac_c_werror_flag" ||
2392 test ! -s conftest.err
2393 } && test -s conftest$ac_exeext && {
2394 test "$cross_compiling" = yes ||
2395 $as_test_x conftest$ac_exeext
2396 }; then :
2397 ac_retval=0
2398 else
2399 $as_echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 ac_retval=1
2403 fi
2404 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2405 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2406 # interfere with the next link command; also delete a directory that is
2407 # left behind by Apple's compiler. We do this before executing the actions.
2408 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 as_fn_set_status $ac_retval
2411
2412 } # ac_fn_c_try_link
2413
2414 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2415 # ---------------------------------------------
2416 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2417 # accordingly.
2418 ac_fn_c_check_decl ()
2419 {
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 as_decl_name=`echo $2|sed 's/ *(.*//'`
2422 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2424 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2425 if eval \${$3+:} false; then :
2426 $as_echo_n "(cached) " >&6
2427 else
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2430 $4
2431 int
2432 main ()
2433 {
2434 #ifndef $as_decl_name
2435 #ifdef __cplusplus
2436 (void) $as_decl_use;
2437 #else
2438 (void) $as_decl_name;
2439 #endif
2440 #endif
2441
2442 ;
2443 return 0;
2444 }
2445 _ACEOF
2446 if ac_fn_c_try_compile "$LINENO"; then :
2447 eval "$3=yes"
2448 else
2449 eval "$3=no"
2450 fi
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 fi
2453 eval ac_res=\$$3
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455 $as_echo "$ac_res" >&6; }
2456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457
2458 } # ac_fn_c_check_decl
2459
2460 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2461 # ----------------------------------------------
2462 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2463 ac_fn_c_check_header_preproc ()
2464 {
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467 $as_echo_n "checking for $2... " >&6; }
2468 if eval \${$3+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2473 #include <$2>
2474 _ACEOF
2475 if ac_fn_c_try_cpp "$LINENO"; then :
2476 eval "$3=yes"
2477 else
2478 eval "$3=no"
2479 fi
2480 rm -f conftest.err conftest.i conftest.$ac_ext
2481 fi
2482 eval ac_res=\$$3
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486
2487 } # ac_fn_c_check_header_preproc
2488
2489 # ac_fn_c_check_func LINENO FUNC VAR
2490 # ----------------------------------
2491 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2492 ac_fn_c_check_func ()
2493 {
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if eval \${$3+:} false; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2504 #define $2 innocuous_$2
2505
2506 /* System header to define __stub macros and hopefully few prototypes,
2507 which can conflict with char $2 (); below.
2508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2509 <limits.h> exists even on freestanding compilers. */
2510
2511 #ifdef __STDC__
2512 # include <limits.h>
2513 #else
2514 # include <assert.h>
2515 #endif
2516
2517 #undef $2
2518
2519 /* Override any GCC internal prototype to avoid an error.
2520 Use char because int might match the return type of a GCC
2521 builtin and then its argument prototype would still apply. */
2522 #ifdef __cplusplus
2523 extern "C"
2524 #endif
2525 char $2 ();
2526 /* The GNU C library defines this for functions which it implements
2527 to always fail with ENOSYS. Some functions are actually named
2528 something starting with __ and the normal name is an alias. */
2529 #if defined __stub_$2 || defined __stub___$2
2530 choke me
2531 #endif
2532
2533 int
2534 main ()
2535 {
2536 return $2 ();
2537 ;
2538 return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_link "$LINENO"; then :
2542 eval "$3=yes"
2543 else
2544 eval "$3=no"
2545 fi
2546 rm -f core conftest.err conftest.$ac_objext \
2547 conftest$ac_exeext conftest.$ac_ext
2548 fi
2549 eval ac_res=\$$3
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553
2554 } # ac_fn_c_check_func
2555
2556 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2557 # ----------------------------------------------------
2558 # Tries to find if the field MEMBER exists in type AGGR, after including
2559 # INCLUDES, setting cache variable VAR accordingly.
2560 ac_fn_c_check_member ()
2561 {
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2564 $as_echo_n "checking for $2.$3... " >&6; }
2565 if eval \${$4+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 $5
2571 int
2572 main ()
2573 {
2574 static $2 ac_aggr;
2575 if (ac_aggr.$3)
2576 return 0;
2577 ;
2578 return 0;
2579 }
2580 _ACEOF
2581 if ac_fn_c_try_compile "$LINENO"; then :
2582 eval "$4=yes"
2583 else
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2586 $5
2587 int
2588 main ()
2589 {
2590 static $2 ac_aggr;
2591 if (sizeof ac_aggr.$3)
2592 return 0;
2593 ;
2594 return 0;
2595 }
2596 _ACEOF
2597 if ac_fn_c_try_compile "$LINENO"; then :
2598 eval "$4=yes"
2599 else
2600 eval "$4=no"
2601 fi
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 fi
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606 eval ac_res=\$$4
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2610
2611 } # ac_fn_c_check_member
2612
2613 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2614 # -------------------------------------------
2615 # Tests whether TYPE exists after having included INCLUDES, setting cache
2616 # variable VAR accordingly.
2617 ac_fn_c_check_type ()
2618 {
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2621 $as_echo_n "checking for $2... " >&6; }
2622 if eval \${$3+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 eval "$3=no"
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2628 $4
2629 int
2630 main ()
2631 {
2632 if (sizeof ($2))
2633 return 0;
2634 ;
2635 return 0;
2636 }
2637 _ACEOF
2638 if ac_fn_c_try_compile "$LINENO"; then :
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2641 $4
2642 int
2643 main ()
2644 {
2645 if (sizeof (($2)))
2646 return 0;
2647 ;
2648 return 0;
2649 }
2650 _ACEOF
2651 if ac_fn_c_try_compile "$LINENO"; then :
2652
2653 else
2654 eval "$3=yes"
2655 fi
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660 eval ac_res=\$$3
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2664
2665 } # ac_fn_c_check_type
2666
2667 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2668 # --------------------------------------------
2669 # Tries to find the compile-time value of EXPR in a program that includes
2670 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2671 # computed
2672 ac_fn_c_compute_int ()
2673 {
2674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2675 if test "$cross_compiling" = yes; then
2676 # Depending upon the size, compute the lo and hi bounds.
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2679 $4
2680 int
2681 main ()
2682 {
2683 static int test_array [1 - 2 * !(($2) >= 0)];
2684 test_array [0] = 0
2685
2686 ;
2687 return 0;
2688 }
2689 _ACEOF
2690 if ac_fn_c_try_compile "$LINENO"; then :
2691 ac_lo=0 ac_mid=0
2692 while :; do
2693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h. */
2695 $4
2696 int
2697 main ()
2698 {
2699 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2700 test_array [0] = 0
2701
2702 ;
2703 return 0;
2704 }
2705 _ACEOF
2706 if ac_fn_c_try_compile "$LINENO"; then :
2707 ac_hi=$ac_mid; break
2708 else
2709 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2710 if test $ac_lo -le $ac_mid; then
2711 ac_lo= ac_hi=
2712 break
2713 fi
2714 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2715 fi
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 done
2718 else
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2721 $4
2722 int
2723 main ()
2724 {
2725 static int test_array [1 - 2 * !(($2) < 0)];
2726 test_array [0] = 0
2727
2728 ;
2729 return 0;
2730 }
2731 _ACEOF
2732 if ac_fn_c_try_compile "$LINENO"; then :
2733 ac_hi=-1 ac_mid=-1
2734 while :; do
2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2737 $4
2738 int
2739 main ()
2740 {
2741 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2742 test_array [0] = 0
2743
2744 ;
2745 return 0;
2746 }
2747 _ACEOF
2748 if ac_fn_c_try_compile "$LINENO"; then :
2749 ac_lo=$ac_mid; break
2750 else
2751 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2752 if test $ac_mid -le $ac_hi; then
2753 ac_lo= ac_hi=
2754 break
2755 fi
2756 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2757 fi
2758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759 done
2760 else
2761 ac_lo= ac_hi=
2762 fi
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 fi
2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2766 # Binary search between lo and hi bounds.
2767 while test "x$ac_lo" != "x$ac_hi"; do
2768 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h. */
2771 $4
2772 int
2773 main ()
2774 {
2775 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2776 test_array [0] = 0
2777
2778 ;
2779 return 0;
2780 }
2781 _ACEOF
2782 if ac_fn_c_try_compile "$LINENO"; then :
2783 ac_hi=$ac_mid
2784 else
2785 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2786 fi
2787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 done
2789 case $ac_lo in #((
2790 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2791 '') ac_retval=1 ;;
2792 esac
2793 else
2794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2796 $4
2797 static long int longval () { return $2; }
2798 static unsigned long int ulongval () { return $2; }
2799 #include <stdio.h>
2800 #include <stdlib.h>
2801 int
2802 main ()
2803 {
2804
2805 FILE *f = fopen ("conftest.val", "w");
2806 if (! f)
2807 return 1;
2808 if (($2) < 0)
2809 {
2810 long int i = longval ();
2811 if (i != ($2))
2812 return 1;
2813 fprintf (f, "%ld", i);
2814 }
2815 else
2816 {
2817 unsigned long int i = ulongval ();
2818 if (i != ($2))
2819 return 1;
2820 fprintf (f, "%lu", i);
2821 }
2822 /* Do not output a trailing newline, as this causes \r\n confusion
2823 on some platforms. */
2824 return ferror (f) || fclose (f) != 0;
2825
2826 ;
2827 return 0;
2828 }
2829 _ACEOF
2830 if ac_fn_c_try_run "$LINENO"; then :
2831 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2832 else
2833 ac_retval=1
2834 fi
2835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2836 conftest.$ac_objext conftest.beam conftest.$ac_ext
2837 rm -f conftest.val
2838
2839 fi
2840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2841 as_fn_set_status $ac_retval
2842
2843 } # ac_fn_c_compute_int
2844 cat >config.log <<_ACEOF
2845 This file contains any messages produced by compilers while
2846 running configure, to aid debugging if configure makes a mistake.
2847
2848 It was created by emacs $as_me 24.0.50, which was
2849 generated by GNU Autoconf 2.68. Invocation command line was
2850
2851 $ $0 $@
2852
2853 _ACEOF
2854 exec 5>>config.log
2855 {
2856 cat <<_ASUNAME
2857 ## --------- ##
2858 ## Platform. ##
2859 ## --------- ##
2860
2861 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2862 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2863 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2864 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2865 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2866
2867 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2868 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2869
2870 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2871 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2872 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2873 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2874 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2875 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2876 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2877
2878 _ASUNAME
2879
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 $as_echo "PATH: $as_dir"
2886 done
2887 IFS=$as_save_IFS
2888
2889 } >&5
2890
2891 cat >&5 <<_ACEOF
2892
2893
2894 ## ----------- ##
2895 ## Core tests. ##
2896 ## ----------- ##
2897
2898 _ACEOF
2899
2900
2901 # Keep a trace of the command line.
2902 # Strip out --no-create and --no-recursion so they do not pile up.
2903 # Strip out --silent because we don't want to record it for future runs.
2904 # Also quote any args containing shell meta-characters.
2905 # Make two passes to allow for proper duplicate-argument suppression.
2906 ac_configure_args=
2907 ac_configure_args0=
2908 ac_configure_args1=
2909 ac_must_keep_next=false
2910 for ac_pass in 1 2
2911 do
2912 for ac_arg
2913 do
2914 case $ac_arg in
2915 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2917 | -silent | --silent | --silen | --sile | --sil)
2918 continue ;;
2919 *\'*)
2920 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2921 esac
2922 case $ac_pass in
2923 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2924 2)
2925 as_fn_append ac_configure_args1 " '$ac_arg'"
2926 if test $ac_must_keep_next = true; then
2927 ac_must_keep_next=false # Got value, back to normal.
2928 else
2929 case $ac_arg in
2930 *=* | --config-cache | -C | -disable-* | --disable-* \
2931 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2932 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2933 | -with-* | --with-* | -without-* | --without-* | --x)
2934 case "$ac_configure_args0 " in
2935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2936 esac
2937 ;;
2938 -* ) ac_must_keep_next=true ;;
2939 esac
2940 fi
2941 as_fn_append ac_configure_args " '$ac_arg'"
2942 ;;
2943 esac
2944 done
2945 done
2946 { ac_configure_args0=; unset ac_configure_args0;}
2947 { ac_configure_args1=; unset ac_configure_args1;}
2948
2949 # When interrupted or exit'd, cleanup temporary files, and complete
2950 # config.log. We remove comments because anyway the quotes in there
2951 # would cause problems or look ugly.
2952 # WARNING: Use '\'' to represent an apostrophe within the trap.
2953 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2954 trap 'exit_status=$?
2955 # Save into config.log some information that might help in debugging.
2956 {
2957 echo
2958
2959 $as_echo "## ---------------- ##
2960 ## Cache variables. ##
2961 ## ---------------- ##"
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 $as_echo "## ----------------- ##
2996 ## Output variables. ##
2997 ## ----------------- ##"
2998 echo
2999 for ac_var in $ac_subst_vars
3000 do
3001 eval ac_val=\$$ac_var
3002 case $ac_val in
3003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3004 esac
3005 $as_echo "$ac_var='\''$ac_val'\''"
3006 done | sort
3007 echo
3008
3009 if test -n "$ac_subst_files"; then
3010 $as_echo "## ------------------- ##
3011 ## File substitutions. ##
3012 ## ------------------- ##"
3013 echo
3014 for ac_var in $ac_subst_files
3015 do
3016 eval ac_val=\$$ac_var
3017 case $ac_val in
3018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3019 esac
3020 $as_echo "$ac_var='\''$ac_val'\''"
3021 done | sort
3022 echo
3023 fi
3024
3025 if test -s confdefs.h; then
3026 $as_echo "## ----------- ##
3027 ## confdefs.h. ##
3028 ## ----------- ##"
3029 echo
3030 cat confdefs.h
3031 echo
3032 fi
3033 test "$ac_signal" != 0 &&
3034 $as_echo "$as_me: caught signal $ac_signal"
3035 $as_echo "$as_me: exit $exit_status"
3036 } >&5
3037 rm -f core *.core core.conftest.* &&
3038 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3039 exit $exit_status
3040 ' 0
3041 for ac_signal in 1 2 13 15; do
3042 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3043 done
3044 ac_signal=0
3045
3046 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3047 rm -f -r conftest* confdefs.h
3048
3049 $as_echo "/* confdefs.h */" > confdefs.h
3050
3051 # Predefined preprocessor variables.
3052
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE_NAME "$PACKAGE_NAME"
3055 _ACEOF
3056
3057 cat >>confdefs.h <<_ACEOF
3058 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3059 _ACEOF
3060
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3063 _ACEOF
3064
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_STRING "$PACKAGE_STRING"
3067 _ACEOF
3068
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3071 _ACEOF
3072
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_URL "$PACKAGE_URL"
3075 _ACEOF
3076
3077
3078 # Let the site file select an alternate cache file if it wants to.
3079 # Prefer an explicitly selected file to automatically selected ones.
3080 ac_site_file1=NONE
3081 ac_site_file2=NONE
3082 if test -n "$CONFIG_SITE"; then
3083 # We do not want a PATH search for config.site.
3084 case $CONFIG_SITE in #((
3085 -*) ac_site_file1=./$CONFIG_SITE;;
3086 */*) ac_site_file1=$CONFIG_SITE;;
3087 *) ac_site_file1=./$CONFIG_SITE;;
3088 esac
3089 elif test "x$prefix" != xNONE; then
3090 ac_site_file1=$prefix/share/config.site
3091 ac_site_file2=$prefix/etc/config.site
3092 else
3093 ac_site_file1=$ac_default_prefix/share/config.site
3094 ac_site_file2=$ac_default_prefix/etc/config.site
3095 fi
3096 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3097 do
3098 test "x$ac_site_file" = xNONE && continue
3099 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3101 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3102 sed 's/^/| /' "$ac_site_file" >&5
3103 . "$ac_site_file" \
3104 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error $? "failed to load site script $ac_site_file
3107 See \`config.log' for more details" "$LINENO" 5; }
3108 fi
3109 done
3110
3111 if test -r "$cache_file"; then
3112 # Some versions of bash will fail to source /dev/null (special files
3113 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3114 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3116 $as_echo "$as_me: loading cache $cache_file" >&6;}
3117 case $cache_file in
3118 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3119 *) . "./$cache_file";;
3120 esac
3121 fi
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3124 $as_echo "$as_me: creating cache $cache_file" >&6;}
3125 >$cache_file
3126 fi
3127
3128 as_fn_append ac_header_list " stdlib.h"
3129 as_fn_append ac_header_list " unistd.h"
3130 as_fn_append ac_header_list " sys/param.h"
3131 as_fn_append ac_func_list " readlinkat"
3132 gl_getopt_required=GNU
3133 as_fn_append ac_header_list " getopt.h"
3134 as_fn_append ac_header_list " wchar.h"
3135 as_fn_append ac_header_list " stdint.h"
3136 as_fn_append ac_header_list " inttypes.h"
3137 as_fn_append ac_func_list " lstat"
3138 as_fn_append ac_func_list " alarm"
3139 as_fn_append ac_func_list " pthread_sigmask"
3140 as_fn_append ac_func_list " readlink"
3141 as_fn_append ac_header_list " sys/socket.h"
3142 as_fn_append ac_func_list " tzset"
3143 as_fn_append ac_func_list " strtoimax"
3144 as_fn_append ac_func_list " strtoumax"
3145 as_fn_append ac_func_list " symlink"
3146 as_fn_append ac_header_list " sys/stat.h"
3147 as_fn_append ac_header_list " sys/time.h"
3148 as_fn_append ac_func_list " localtime_r"
3149 # Check that the precious variables saved in the cache have kept the same
3150 # value.
3151 ac_cache_corrupted=false
3152 for ac_var in $ac_precious_vars; do
3153 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3154 eval ac_new_set=\$ac_env_${ac_var}_set
3155 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3156 eval ac_new_val=\$ac_env_${ac_var}_value
3157 case $ac_old_set,$ac_new_set in
3158 set,)
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3160 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3161 ac_cache_corrupted=: ;;
3162 ,set)
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3164 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3165 ac_cache_corrupted=: ;;
3166 ,);;
3167 *)
3168 if test "x$ac_old_val" != "x$ac_new_val"; then
3169 # differences in whitespace do not lead to failure.
3170 ac_old_val_w=`echo x $ac_old_val`
3171 ac_new_val_w=`echo x $ac_new_val`
3172 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3174 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3175 ac_cache_corrupted=:
3176 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3178 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3179 eval $ac_var=\$ac_old_val
3180 fi
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3182 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3184 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3185 fi;;
3186 esac
3187 # Pass precious variables to config.status.
3188 if test "$ac_new_set" = set; then
3189 case $ac_new_val in
3190 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3191 *) ac_arg=$ac_var=$ac_new_val ;;
3192 esac
3193 case " $ac_configure_args " in
3194 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3195 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3196 esac
3197 fi
3198 done
3199 if $ac_cache_corrupted; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3203 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3204 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3205 fi
3206 ## -------------------- ##
3207 ## Main body of script. ##
3208 ## -------------------- ##
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
3216
3217 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3218
3219
3220 ac_aux_dir=
3221 for ac_dir in build-aux "$srcdir"/build-aux; do
3222 if test -f "$ac_dir/install-sh"; then
3223 ac_aux_dir=$ac_dir
3224 ac_install_sh="$ac_aux_dir/install-sh -c"
3225 break
3226 elif test -f "$ac_dir/install.sh"; then
3227 ac_aux_dir=$ac_dir
3228 ac_install_sh="$ac_aux_dir/install.sh -c"
3229 break
3230 elif test -f "$ac_dir/shtool"; then
3231 ac_aux_dir=$ac_dir
3232 ac_install_sh="$ac_aux_dir/shtool install -c"
3233 break
3234 fi
3235 done
3236 if test -z "$ac_aux_dir"; then
3237 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3238 fi
3239
3240 # These three variables are undocumented and unsupported,
3241 # and are intended to be withdrawn in a future Autoconf release.
3242 # They can cause serious problems if a builder's source tree is in a directory
3243 # whose full name contains unusual characters.
3244 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3245 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3246 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3247
3248
3249 am__api_version='1.11'
3250
3251 # Find a good install program. We prefer a C program (faster),
3252 # so one script is as good as another. But avoid the broken or
3253 # incompatible versions:
3254 # SysV /etc/install, /usr/sbin/install
3255 # SunOS /usr/etc/install
3256 # IRIX /sbin/install
3257 # AIX /bin/install
3258 # AmigaOS /C/install, which installs bootblocks on floppy discs
3259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3262 # OS/2's system install, which has a completely different semantic
3263 # ./install, which can be erroneously created by make from ./install.sh.
3264 # Reject install programs that cannot install multiple files.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3266 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3267 if test -z "$INSTALL"; then
3268 if ${ac_cv_path_install+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 # Account for people who put trailing slashes in PATH elements.
3277 case $as_dir/ in #((
3278 ./ | .// | /[cC]/* | \
3279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3280 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3281 /usr/ucb/* ) ;;
3282 *)
3283 # OSF1 and SCO ODT 3.0 have their own names for install.
3284 # Don't use installbsd from OSF since it installs stuff as root
3285 # by default.
3286 for ac_prog in ginstall scoinst install; do
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3289 if test $ac_prog = install &&
3290 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3291 # AIX install. It has an incompatible calling convention.
3292 :
3293 elif test $ac_prog = install &&
3294 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3295 # program-specific install script used by HP pwplus--don't use.
3296 :
3297 else
3298 rm -rf conftest.one conftest.two conftest.dir
3299 echo one > conftest.one
3300 echo two > conftest.two
3301 mkdir conftest.dir
3302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3303 test -s conftest.one && test -s conftest.two &&
3304 test -s conftest.dir/conftest.one &&
3305 test -s conftest.dir/conftest.two
3306 then
3307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308 break 3
3309 fi
3310 fi
3311 fi
3312 done
3313 done
3314 ;;
3315 esac
3316
3317 done
3318 IFS=$as_save_IFS
3319
3320 rm -rf conftest.one conftest.two conftest.dir
3321
3322 fi
3323 if test "${ac_cv_path_install+set}" = set; then
3324 INSTALL=$ac_cv_path_install
3325 else
3326 # As a last resort, use the slow shell script. Don't cache a
3327 # value for INSTALL within a source directory, because that will
3328 # break other packages using the cache if that directory is
3329 # removed, or if the value is a relative name.
3330 INSTALL=$ac_install_sh
3331 fi
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3334 $as_echo "$INSTALL" >&6; }
3335
3336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3337 # It thinks the first close brace ends the variable substitution.
3338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3339
3340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3341
3342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3345 $as_echo_n "checking whether build environment is sane... " >&6; }
3346 # Just in case
3347 sleep 1
3348 echo timestamp > conftest.file
3349 # Reject unsafe characters in $srcdir or the absolute working directory
3350 # name. Accept space and tab only in the latter.
3351 am_lf='
3352 '
3353 case `pwd` in
3354 *[\\\"\#\$\&\'\`$am_lf]*)
3355 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3356 esac
3357 case $srcdir in
3358 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3359 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3360 esac
3361
3362 # Do `set' in a subshell so we don't clobber the current shell's
3363 # arguments. Must try -L first in case configure is actually a
3364 # symlink; some systems play weird games with the mod time of symlinks
3365 # (eg FreeBSD returns the mod time of the symlink's containing
3366 # directory).
3367 if (
3368 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3369 if test "$*" = "X"; then
3370 # -L didn't work.
3371 set X `ls -t "$srcdir/configure" conftest.file`
3372 fi
3373 rm -f conftest.file
3374 if test "$*" != "X $srcdir/configure conftest.file" \
3375 && test "$*" != "X conftest.file $srcdir/configure"; then
3376
3377 # If neither matched, then we have a broken ls. This can happen
3378 # if, for instance, CONFIG_SHELL is bash and it inherits a
3379 # broken ls alias from the environment. This has actually
3380 # happened. Such a system could not be considered "sane".
3381 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3382 alias in your environment" "$LINENO" 5
3383 fi
3384
3385 test "$2" = conftest.file
3386 )
3387 then
3388 # Ok.
3389 :
3390 else
3391 as_fn_error $? "newly created file is older than distributed files!
3392 Check your system clock" "$LINENO" 5
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3396 test "$program_prefix" != NONE &&
3397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3398 # Use a double $ so make ignores it.
3399 test "$program_suffix" != NONE &&
3400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3401 # Double any \ or $.
3402 # By default was `s,x,x', remove it if useless.
3403 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3404 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3405
3406 # expand $ac_aux_dir to an absolute path
3407 am_aux_dir=`cd $ac_aux_dir && pwd`
3408
3409 if test x"${MISSING+set}" != xset; then
3410 case $am_aux_dir in
3411 *\ * | *\ *)
3412 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3413 *)
3414 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3415 esac
3416 fi
3417 # Use eval to expand $SHELL
3418 if eval "$MISSING --run true"; then
3419 am_missing_run="$MISSING --run "
3420 else
3421 am_missing_run=
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3423 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3424 fi
3425
3426 if test x"${install_sh}" != xset; then
3427 case $am_aux_dir in
3428 *\ * | *\ *)
3429 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3430 *)
3431 install_sh="\${SHELL} $am_aux_dir/install-sh"
3432 esac
3433 fi
3434
3435 # Installed binaries are usually stripped using `strip' when the user
3436 # run `make install-strip'. However `strip' might not be the right
3437 # tool to use in cross-compilation environments, therefore Automake
3438 # will honor the `STRIP' environment variable to overrule this program.
3439 if test "$cross_compiling" != no; then
3440 if test -n "$ac_tool_prefix"; then
3441 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3442 set dummy ${ac_tool_prefix}strip; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if ${ac_cv_prog_STRIP+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test -n "$STRIP"; then
3449 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 STRIP=$ac_cv_prog_STRIP
3469 if test -n "$STRIP"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3471 $as_echo "$STRIP" >&6; }
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 fi
3476
3477
3478 fi
3479 if test -z "$ac_cv_prog_STRIP"; then
3480 ac_ct_STRIP=$STRIP
3481 # Extract the first word of "strip", so it can be a program name with args.
3482 set dummy strip; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$ac_ct_STRIP"; then
3489 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_ac_ct_STRIP="strip"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502 done
3503 done
3504 IFS=$as_save_IFS
3505
3506 fi
3507 fi
3508 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3509 if test -n "$ac_ct_STRIP"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3511 $as_echo "$ac_ct_STRIP" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3515 fi
3516
3517 if test "x$ac_ct_STRIP" = x; then
3518 STRIP=":"
3519 else
3520 case $cross_compiling:$ac_tool_warned in
3521 yes:)
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3524 ac_tool_warned=yes ;;
3525 esac
3526 STRIP=$ac_ct_STRIP
3527 fi
3528 else
3529 STRIP="$ac_cv_prog_STRIP"
3530 fi
3531
3532 fi
3533 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3534
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3536 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3537 if test -z "$MKDIR_P"; then
3538 if ${ac_cv_path_mkdir+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3543 do
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_prog in mkdir gmkdir; do
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3549 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3550 'mkdir (GNU coreutils) '* | \
3551 'mkdir (coreutils) '* | \
3552 'mkdir (fileutils) '4.1*)
3553 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3554 break 3;;
3555 esac
3556 done
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562
3563 test -d ./--version && rmdir ./--version
3564 if test "${ac_cv_path_mkdir+set}" = set; then
3565 MKDIR_P="$ac_cv_path_mkdir -p"
3566 else
3567 # As a last resort, use the slow shell script. Don't cache a
3568 # value for MKDIR_P within a source directory, because that will
3569 # break other packages using the cache if that directory is
3570 # removed, or if the value is a relative name.
3571 MKDIR_P="$ac_install_sh -d"
3572 fi
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3575 $as_echo "$MKDIR_P" >&6; }
3576
3577
3578 mkdir_p="$MKDIR_P"
3579 case $mkdir_p in
3580 [\\/$]* | ?:[\\/]*) ;;
3581 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3582 esac
3583
3584 for ac_prog in gawk mawk nawk awk
3585 do
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy $ac_prog; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if ${ac_cv_prog_AWK+:} false; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if test -n "$AWK"; then
3594 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_AWK="$ac_prog"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607 done
3608 done
3609 IFS=$as_save_IFS
3610
3611 fi
3612 fi
3613 AWK=$ac_cv_prog_AWK
3614 if test -n "$AWK"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3616 $as_echo "$AWK" >&6; }
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 fi
3621
3622
3623 test -n "$AWK" && break
3624 done
3625
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3627 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3628 set x ${MAKE-make}
3629 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3630 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 cat >conftest.make <<\_ACEOF
3634 SHELL = /bin/sh
3635 all:
3636 @echo '@@@%%%=$(MAKE)=@@@%%%'
3637 _ACEOF
3638 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3640 *@@@%%%=?*=@@@%%%*)
3641 eval ac_cv_prog_make_${ac_make}_set=yes;;
3642 *)
3643 eval ac_cv_prog_make_${ac_make}_set=no;;
3644 esac
3645 rm -f conftest.make
3646 fi
3647 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3650 SET_MAKE=
3651 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 SET_MAKE="MAKE=${MAKE-make}"
3655 fi
3656
3657 rm -rf .tst 2>/dev/null
3658 mkdir .tst 2>/dev/null
3659 if test -d .tst; then
3660 am__leading_dot=.
3661 else
3662 am__leading_dot=_
3663 fi
3664 rmdir .tst 2>/dev/null
3665
3666 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3667 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3668 # is not polluted with repeated "-I."
3669 am__isrc=' -I$(srcdir)'
3670 # test to see if srcdir already configured
3671 if test -f $srcdir/config.status; then
3672 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3673 fi
3674 fi
3675
3676 # test whether we have cygpath
3677 if test -z "$CYGPATH_W"; then
3678 if (cygpath --version) >/dev/null 2>/dev/null; then
3679 CYGPATH_W='cygpath -w'
3680 else
3681 CYGPATH_W=echo
3682 fi
3683 fi
3684
3685
3686 # Define the identity of the package.
3687 PACKAGE='emacs'
3688 VERSION='24.0.50'
3689
3690
3691 cat >>confdefs.h <<_ACEOF
3692 #define PACKAGE "$PACKAGE"
3693 _ACEOF
3694
3695
3696 cat >>confdefs.h <<_ACEOF
3697 #define VERSION "$VERSION"
3698 _ACEOF
3699
3700 # Some tools Automake needs.
3701
3702 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3703
3704
3705 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3706
3707
3708 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3709
3710
3711 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3712
3713
3714 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3715
3716 # We need awk for the "check" target. The system "awk" is bad on
3717 # some platforms.
3718 # Always define AMTAR for backward compatibility.
3719
3720 AMTAR=${AMTAR-"${am_missing_run}tar"}
3721
3722 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3723
3724
3725
3726
3727
3728
3729
3730
3731 lispdir='${datadir}/emacs/${version}/lisp'
3732 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3733 '${datadir}/emacs/site-lisp'
3734 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3735 etcdir='${datadir}/emacs/${version}/etc'
3736 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3737 docdir='${datadir}/emacs/${version}/etc'
3738 gamedir='${localstatedir}/games/emacs'
3739
3740
3741
3742
3743 # Check whether --with-pop was given.
3744 if test "${with_pop+set}" = set; then :
3745 withval=$with_pop;
3746 else
3747 with_pop=yes
3748 fi
3749
3750 if test "$with_pop" = yes; then
3751 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3752
3753 fi
3754
3755
3756 # Check whether --with-kerberos was given.
3757 if test "${with_kerberos+set}" = set; then :
3758 withval=$with_kerberos;
3759 else
3760 with_kerberos=no
3761 fi
3762
3763 if test "$with_kerberos" != no; then
3764 $as_echo "#define KERBEROS 1" >>confdefs.h
3765
3766 fi
3767
3768
3769 # Check whether --with-kerberos5 was given.
3770 if test "${with_kerberos5+set}" = set; then :
3771 withval=$with_kerberos5;
3772 else
3773 with_kerberos5=no
3774 fi
3775
3776 if test "${with_kerberos5}" != no; then
3777 if test "${with_kerberos}" = no; then
3778 with_kerberos=yes
3779 $as_echo "#define KERBEROS 1" >>confdefs.h
3780
3781 fi
3782
3783 $as_echo "#define KERBEROS5 1" >>confdefs.h
3784
3785 fi
3786
3787
3788 # Check whether --with-hesiod was given.
3789 if test "${with_hesiod+set}" = set; then :
3790 withval=$with_hesiod;
3791 else
3792 with_hesiod=no
3793 fi
3794
3795 if test "$with_hesiod" != no; then
3796
3797 $as_echo "#define HESIOD 1" >>confdefs.h
3798
3799 fi
3800
3801
3802 # Check whether --with-mmdf was given.
3803 if test "${with_mmdf+set}" = set; then :
3804 withval=$with_mmdf;
3805 else
3806 with_mmdf=no
3807 fi
3808
3809 if test "$with_mmdf" != no; then
3810
3811 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3812
3813 fi
3814
3815
3816 # Check whether --with-mail-unlink was given.
3817 if test "${with_mail_unlink+set}" = set; then :
3818 withval=$with_mail_unlink;
3819 else
3820 with_mail_unlink=no
3821 fi
3822
3823 if test "$with_mail_unlink" != no; then
3824
3825 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3826
3827 fi
3828
3829
3830 # Check whether --with-mailhost was given.
3831 if test "${with_mailhost+set}" = set; then :
3832 withval=$with_mailhost;
3833 cat >>confdefs.h <<_ACEOF
3834 #define MAILHOST "$withval"
3835 _ACEOF
3836
3837 fi
3838
3839
3840
3841 # Check whether --with-sound was given.
3842 if test "${with_sound+set}" = set; then :
3843 withval=$with_sound;
3844 else
3845 with_sound=yes
3846 fi
3847
3848
3849
3850 # Check whether --with-sync-input was given.
3851 if test "${with_sync_input+set}" = set; then :
3852 withval=$with_sync_input;
3853 else
3854 with_sync_input=yes
3855 fi
3856
3857 if test "$with_sync_input" = yes; then
3858
3859 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3860
3861 fi
3862
3863
3864 # Check whether --with-x-toolkit was given.
3865 if test "${with_x_toolkit+set}" = set; then :
3866 withval=$with_x_toolkit; case "${withval}" in
3867 y | ye | yes ) val=gtk ;;
3868 n | no ) val=no ;;
3869 l | lu | luc | luci | lucid ) val=lucid ;;
3870 a | at | ath | athe | athen | athena ) val=athena ;;
3871 m | mo | mot | moti | motif ) val=motif ;;
3872 g | gt | gtk ) val=gtk ;;
3873 gtk3 ) val=gtk3 ;;
3874 * )
3875 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3876 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3877 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3878 ;;
3879 esac
3880 with_x_toolkit=$val
3881
3882 fi
3883
3884
3885
3886 # Check whether --with-wide-int was given.
3887 if test "${with_wide_int+set}" = set; then :
3888 withval=$with_wide_int;
3889 else
3890 with_wide_int=no
3891 fi
3892
3893 if test "$with_wide_int" = yes; then
3894
3895 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3896
3897 fi
3898
3899
3900 # Check whether --with-xpm was given.
3901 if test "${with_xpm+set}" = set; then :
3902 withval=$with_xpm;
3903 else
3904 with_xpm=yes
3905 fi
3906
3907
3908 # Check whether --with-jpeg was given.
3909 if test "${with_jpeg+set}" = set; then :
3910 withval=$with_jpeg;
3911 else
3912 with_jpeg=yes
3913 fi
3914
3915
3916 # Check whether --with-tiff was given.
3917 if test "${with_tiff+set}" = set; then :
3918 withval=$with_tiff;
3919 else
3920 with_tiff=yes
3921 fi
3922
3923
3924 # Check whether --with-gif was given.
3925 if test "${with_gif+set}" = set; then :
3926 withval=$with_gif;
3927 else
3928 with_gif=yes
3929 fi
3930
3931
3932 # Check whether --with-png was given.
3933 if test "${with_png+set}" = set; then :
3934 withval=$with_png;
3935 else
3936 with_png=yes
3937 fi
3938
3939
3940 # Check whether --with-rsvg was given.
3941 if test "${with_rsvg+set}" = set; then :
3942 withval=$with_rsvg;
3943 else
3944 with_rsvg=yes
3945 fi
3946
3947
3948 # Check whether --with-xml2 was given.
3949 if test "${with_xml2+set}" = set; then :
3950 withval=$with_xml2;
3951 else
3952 with_xml2=yes
3953 fi
3954
3955
3956 # Check whether --with-imagemagick was given.
3957 if test "${with_imagemagick+set}" = set; then :
3958 withval=$with_imagemagick;
3959 else
3960 with_imagemagick=yes
3961 fi
3962
3963
3964
3965 # Check whether --with-xft was given.
3966 if test "${with_xft+set}" = set; then :
3967 withval=$with_xft;
3968 else
3969 with_xft=yes
3970 fi
3971
3972
3973 # Check whether --with-libotf was given.
3974 if test "${with_libotf+set}" = set; then :
3975 withval=$with_libotf;
3976 else
3977 with_libotf=yes
3978 fi
3979
3980
3981 # Check whether --with-m17n-flt was given.
3982 if test "${with_m17n_flt+set}" = set; then :
3983 withval=$with_m17n_flt;
3984 else
3985 with_m17n_flt=yes
3986 fi
3987
3988
3989
3990 # Check whether --with-toolkit-scroll-bars was given.
3991 if test "${with_toolkit_scroll_bars+set}" = set; then :
3992 withval=$with_toolkit_scroll_bars;
3993 else
3994 with_toolkit_scroll_bars=yes
3995 fi
3996
3997
3998 # Check whether --with-xaw3d was given.
3999 if test "${with_xaw3d+set}" = set; then :
4000 withval=$with_xaw3d;
4001 else
4002 with_xaw3d=yes
4003 fi
4004
4005
4006 # Check whether --with-xim was given.
4007 if test "${with_xim+set}" = set; then :
4008 withval=$with_xim;
4009 else
4010 with_xim=yes
4011 fi
4012
4013
4014 # Check whether --with-ns was given.
4015 if test "${with_ns+set}" = set; then :
4016 withval=$with_ns;
4017 else
4018 with_ns=no
4019 fi
4020
4021
4022
4023 # Check whether --with-gpm was given.
4024 if test "${with_gpm+set}" = set; then :
4025 withval=$with_gpm;
4026 else
4027 with_gpm=yes
4028 fi
4029
4030
4031 # Check whether --with-dbus was given.
4032 if test "${with_dbus+set}" = set; then :
4033 withval=$with_dbus;
4034 else
4035 with_dbus=yes
4036 fi
4037
4038
4039 # Check whether --with-gconf was given.
4040 if test "${with_gconf+set}" = set; then :
4041 withval=$with_gconf;
4042 else
4043 with_gconf=yes
4044 fi
4045
4046
4047 # Check whether --with-gsettings was given.
4048 if test "${with_gsettings+set}" = set; then :
4049 withval=$with_gsettings;
4050 else
4051 with_gsettings=yes
4052 fi
4053
4054
4055 # Check whether --with-selinux was given.
4056 if test "${with_selinux+set}" = set; then :
4057 withval=$with_selinux;
4058 else
4059 with_selinux=yes
4060 fi
4061
4062
4063 # Check whether --with-gnutls was given.
4064 if test "${with_gnutls+set}" = set; then :
4065 withval=$with_gnutls;
4066 else
4067 with_gnutls=yes
4068 fi
4069
4070
4071 ## For the times when you want to build Emacs but don't have
4072 ## a suitable makeinfo, and can live without the manuals.
4073
4074 # Check whether --with-makeinfo was given.
4075 if test "${with_makeinfo+set}" = set; then :
4076 withval=$with_makeinfo;
4077 else
4078 with_makeinfo=yes
4079 fi
4080
4081
4082 ## This is an option because I do not know if all info/man support
4083 ## compressed files, nor how to test if they do so.
4084
4085 # Check whether --with-compress-info was given.
4086 if test "${with_compress_info+set}" = set; then :
4087 withval=$with_compress_info;
4088 else
4089 with_compress_info=yes
4090 fi
4091
4092 if test $with_compress_info = yes; then
4093 GZIP_INFO=yes
4094 else
4095 GZIP_INFO=
4096 fi
4097
4098
4099
4100 # Check whether --with-pkg-config-prog was given.
4101 if test "${with_pkg_config_prog+set}" = set; then :
4102 withval=$with_pkg_config_prog;
4103 fi
4104
4105 if test "X${with_pkg_config_prog}" != X; then
4106 if test "${with_pkg_config_prog}" != yes; then
4107 PKG_CONFIG="${with_pkg_config_prog}"
4108 fi
4109 fi
4110
4111 CRT_DIR=
4112
4113 # Check whether --with-crt-dir was given.
4114 if test "${with_crt_dir+set}" = set; then :
4115 withval=$with_crt_dir;
4116 fi
4117
4118 CRT_DIR="${with_crt_dir}"
4119
4120
4121 # Check whether --with-gameuser was given.
4122 if test "${with_gameuser+set}" = set; then :
4123 withval=$with_gameuser;
4124 fi
4125
4126 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4127 && gameuser="${with_gameuser}"
4128 test "X$gameuser" = X && gameuser=games
4129
4130
4131 # Check whether --with-gnustep-conf was given.
4132 if test "${with_gnustep_conf+set}" = set; then :
4133 withval=$with_gnustep_conf;
4134 fi
4135
4136 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4137 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4138 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4139 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4140
4141 # Check whether --enable-ns-self-contained was given.
4142 if test "${enable_ns_self_contained+set}" = set; then :
4143 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4144 else
4145 EN_NS_SELF_CONTAINED=yes
4146 fi
4147
4148
4149 # Check whether --enable-asserts was given.
4150 if test "${enable_asserts+set}" = set; then :
4151 enableval=$enable_asserts; USE_XASSERTS=$enableval
4152 else
4153 USE_XASSERTS=no
4154 fi
4155
4156
4157 # Check whether --enable-maintainer-mode was given.
4158 if test "${enable_maintainer_mode+set}" = set; then :
4159 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4160 else
4161 USE_MAINTAINER_MODE=yes
4162 fi
4163
4164 if test $USE_MAINTAINER_MODE = yes; then
4165 MAINT=
4166 else
4167 MAINT=#
4168 fi
4169
4170
4171 # Check whether --enable-locallisppath was given.
4172 if test "${enable_locallisppath+set}" = set; then :
4173 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4174 locallisppath=
4175 elif test "${enableval}" != "yes"; then
4176 locallisppath=${enableval}
4177 fi
4178 fi
4179
4180
4181 # Check whether --enable-checking was given.
4182 if test "${enable_checking+set}" = set; then :
4183 enableval=$enable_checking; ac_checking_flags="${enableval}"
4184 fi
4185
4186 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4187 for check in $ac_checking_flags
4188 do
4189 case $check in
4190 # these set all the flags to specific states
4191 yes) ac_enable_checking=1 ;;
4192 no) ac_enable_checking= ;
4193 ac_gc_check_stringbytes= ;
4194 ac_gc_check_string_overrun= ;
4195 ac_gc_check_string_free_list= ;
4196 ac_xmalloc_overrun= ;
4197 ac_gc_check_cons_list= ;;
4198 all) ac_enable_checking=1 ;
4199 ac_gc_check_stringbytes=1 ;
4200 ac_gc_check_string_overrun=1 ;
4201 ac_gc_check_string_free_list=1 ;
4202 ac_xmalloc_overrun=1 ;
4203 ac_gc_check_cons_list=1 ;;
4204 # these enable particular checks
4205 stringbytes) ac_gc_check_stringbytes=1 ;;
4206 stringoverrun) ac_gc_check_string_overrun=1 ;;
4207 stringfreelist) ac_gc_check_string_free_list=1 ;;
4208 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4209 conslist) ac_gc_check_cons_list=1 ;;
4210 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
4211 esac
4212 done
4213 IFS="$ac_save_IFS"
4214
4215 if test x$ac_enable_checking != x ; then
4216
4217 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4218
4219 fi
4220 if test x$ac_gc_check_stringbytes != x ; then
4221
4222 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4223
4224 fi
4225 if test x$ac_gc_check_string_overrun != x ; then
4226
4227 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4228
4229 fi
4230 if test x$ac_gc_check_string_free_list != x ; then
4231
4232 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4233
4234 fi
4235 if test x$ac_xmalloc_overrun != x ; then
4236
4237 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4238
4239 fi
4240 if test x$ac_gc_check_cons_list != x ; then
4241
4242 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4243
4244 fi
4245
4246 # Check whether --enable-use-lisp-union-type was given.
4247 if test "${enable_use_lisp_union_type+set}" = set; then :
4248 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4249
4250 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4251
4252 fi
4253 fi
4254
4255
4256
4257 # Check whether --enable-profiling was given.
4258 if test "${enable_profiling+set}" = set; then :
4259 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4260 fi
4261
4262 if test x$ac_enable_profiling != x ; then
4263 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4264 else
4265 PROFILING_CFLAGS=
4266 fi
4267
4268
4269 # Check whether --enable-autodepend was given.
4270 if test "${enable_autodepend+set}" = set; then :
4271 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4272 else
4273 ac_enable_autodepend=yes
4274 fi
4275
4276
4277 #### Make srcdir absolute, if it isn't already. It's important to
4278 #### avoid running the path through pwd unnecessarily, since pwd can
4279 #### give you automounter prefixes, which can go away. We do all this
4280 #### so Emacs can find its files when run uninstalled.
4281 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4282 unset CDPATH
4283 case "${srcdir}" in
4284 /* ) ;;
4285 . )
4286 ## We may be able to use the $PWD environment variable to make this
4287 ## absolute. But sometimes PWD is inaccurate.
4288 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4289 ## but that tested only for a well-formed and valid PWD,
4290 ## it did not object when PWD was well-formed and valid but just wrong.
4291 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4292 then
4293 srcdir="$PWD"
4294 else
4295 srcdir="`(cd ${srcdir}; pwd)`"
4296 fi
4297 ;;
4298 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4299 esac
4300
4301 #### Given the configuration name, set machfile and opsysfile to the
4302 #### names of the m/*.h and s/*.h files we should use.
4303
4304 ### Canonicalize the configuration name.
4305
4306 # Make sure we can run config.sub.
4307 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4308 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4311 $as_echo_n "checking build system type... " >&6; }
4312 if ${ac_cv_build+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 ac_build_alias=$build_alias
4316 test "x$ac_build_alias" = x &&
4317 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4318 test "x$ac_build_alias" = x &&
4319 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4320 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4321 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4322
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4325 $as_echo "$ac_cv_build" >&6; }
4326 case $ac_cv_build in
4327 *-*-*) ;;
4328 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4329 esac
4330 build=$ac_cv_build
4331 ac_save_IFS=$IFS; IFS='-'
4332 set x $ac_cv_build
4333 shift
4334 build_cpu=$1
4335 build_vendor=$2
4336 shift; shift
4337 # Remember, the first character of IFS is used to create $*,
4338 # except with old shells:
4339 build_os=$*
4340 IFS=$ac_save_IFS
4341 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4342
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4345 $as_echo_n "checking host system type... " >&6; }
4346 if ${ac_cv_host+:} false; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test "x$host_alias" = x; then
4350 ac_cv_host=$ac_cv_build
4351 else
4352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4353 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4354 fi
4355
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4358 $as_echo "$ac_cv_host" >&6; }
4359 case $ac_cv_host in
4360 *-*-*) ;;
4361 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4362 esac
4363 host=$ac_cv_host
4364 ac_save_IFS=$IFS; IFS='-'
4365 set x $ac_cv_host
4366 shift
4367 host_cpu=$1
4368 host_vendor=$2
4369 shift; shift
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4372 host_os=$*
4373 IFS=$ac_save_IFS
4374 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4375
4376
4377 canonical=$host
4378 configuration=${host_alias-${build_alias-$host}}
4379
4380
4381
4382 ### If you add support for a new configuration, add code to this
4383 ### switch statement to recognize your configuration name and select
4384 ### the appropriate operating system and machine description files.
4385
4386 ### You would hope that you could choose an m/*.h file pretty much
4387 ### based on the machine portion of the configuration name, and an s/*.h
4388 ### file based on the operating system portion. However, it turns out
4389 ### that each m/*.h file is pretty manufacturer-specific - for
4390 ### example mips.h is MIPS
4391 ### So we basically have to have a special case for each
4392 ### configuration name.
4393 ###
4394 ### As far as handling version numbers on operating systems is
4395 ### concerned, make sure things will fail in a fixable way. If
4396 ### /etc/MACHINES doesn't say anything about version numbers, be
4397 ### prepared to handle anything reasonably. If version numbers
4398 ### matter, be sure /etc/MACHINES says something about it.
4399
4400 machine='' opsys='' unported=no
4401 case "${canonical}" in
4402
4403 ## GNU/Linux and similar ports
4404 *-*-linux* )
4405 opsys=gnu-linux
4406 case ${canonical} in
4407 alpha*) machine=alpha ;;
4408 s390-*) machine=ibms390 ;;
4409 s390x-*) machine=ibms390x ;;
4410 powerpc*) machine=macppc ;;
4411 sparc*) machine=sparc ;;
4412 ia64*) machine=ia64 ;;
4413 m68k*) machine=m68k ;;
4414 x86_64*) machine=amdx86-64 ;;
4415 esac
4416 ;;
4417
4418 ## FreeBSD ports
4419 *-*-freebsd* )
4420 opsys=freebsd
4421 case "${canonical}" in
4422 alpha*) machine=alpha ;;
4423 amd64-*|x86_64-*) machine=amdx86-64 ;;
4424 ia64-*) machine=ia64 ;;
4425 i[3456]86-*) machine=intel386 ;;
4426 powerpc-*) machine=macppc ;;
4427 sparc-*) machine=sparc ;;
4428 sparc64-*) machine=sparc ;;
4429 esac
4430 ;;
4431
4432 ## FreeBSD kernel + glibc based userland
4433 *-*-kfreebsd*gnu* )
4434 opsys=gnu-kfreebsd
4435 case "${canonical}" in
4436 alpha*) machine=alpha ;;
4437 amd64-*|x86_64-*) machine=amdx86-64 ;;
4438 ia64-*) machine=ia64 ;;
4439 i[3456]86-*) machine=intel386 ;;
4440 powerpc-*) machine=macppc ;;
4441 sparc-*) machine=sparc ;;
4442 sparc64-*) machine=sparc ;;
4443 esac
4444 ;;
4445
4446 ## NetBSD ports
4447 *-*-netbsd* )
4448 opsys=netbsd
4449 case "${canonical}" in
4450 alpha*) machine=alpha ;;
4451 x86_64-*) machine=amdx86-64 ;;
4452 i[3456]86-*) machine=intel386 ;;
4453 m68k-*) machine=m68k ;;
4454 powerpc-*) machine=macppc ;;
4455 sparc*-) machine=sparc ;;
4456 vax-*) machine=vax ;;
4457 esac
4458 ;;
4459
4460 ## OpenBSD ports
4461 *-*-openbsd* )
4462 opsys=openbsd
4463 case "${canonical}" in
4464 alpha*) machine=alpha ;;
4465 x86_64-*) machine=amdx86-64 ;;
4466 i386-*) machine=intel386 ;;
4467 powerpc-*) machine=macppc ;;
4468 sparc*) machine=sparc ;;
4469 vax-*) machine=vax ;;
4470 esac
4471 ;;
4472
4473 ## Apple Darwin / Mac OS X
4474 *-apple-darwin* )
4475 case "${canonical}" in
4476 i[3456]86-* ) machine=intel386 ;;
4477 powerpc-* ) machine=macppc ;;
4478 x86_64-* ) machine=amdx86-64 ;;
4479 * ) unported=yes ;;
4480 esac
4481 opsys=darwin
4482 # Define CPP as follows to make autoconf work correctly.
4483 CPP="${CC-cc} -E -no-cpp-precomp"
4484 # Use fink packages if available.
4485 if test -d /sw/include && test -d /sw/lib; then
4486 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4487 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4488 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4489 fi
4490 ;;
4491
4492 ## HP 9000 series 700 and 800, running HP/UX
4493 hppa*-hp-hpux10.2* )
4494 opsys=hpux10-20
4495 ;;
4496 hppa*-hp-hpux1[1-9]* )
4497 opsys=hpux11
4498 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4499 ;;
4500
4501 ## IBM machines
4502 rs6000-ibm-aix4.[23]* )
4503 machine=ibmrs6000 opsys=aix4-2
4504 ;;
4505 powerpc-ibm-aix4.[23]* )
4506 machine=ibmrs6000 opsys=aix4-2
4507 ;;
4508 rs6000-ibm-aix[56]* )
4509 machine=ibmrs6000 opsys=aix4-2
4510 ;;
4511 powerpc-ibm-aix[56]* )
4512 machine=ibmrs6000 opsys=aix4-2
4513 ;;
4514
4515 ## Silicon Graphics machines
4516 ## Iris 4D
4517 mips-sgi-irix6.5 )
4518 opsys=irix6-5
4519 # Without defining _LANGUAGE_C, things get masked out in the headers
4520 # so that, for instance, grepping for `free' in stdlib.h fails and
4521 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4522 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4523 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4524 ;;
4525
4526 ## Suns
4527 *-sun-solaris* \
4528 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4529 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4530 case "${canonical}" in
4531 i[3456]86-*-* ) machine=intel386 ;;
4532 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4533 sparc* ) machine=sparc ;;
4534 * ) unported=yes ;;
4535 esac
4536 case "${canonical}" in
4537 *-sunos5.6* | *-solaris2.6* )
4538 opsys=sol2-6
4539 NON_GNU_CPP=/usr/ccs/lib/cpp
4540 RANLIB="ar -ts"
4541 ;;
4542 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4543 opsys=sol2-6
4544 emacs_check_sunpro_c=yes
4545 NON_GNU_CPP=/usr/ccs/lib/cpp
4546 ;;
4547 *-sunos5* | *-solaris* )
4548 opsys=sol2-10
4549 emacs_check_sunpro_c=yes
4550 NON_GNU_CPP=/usr/ccs/lib/cpp
4551 ;;
4552 esac
4553 ## Watch out for a compiler that we know will not work.
4554 case "${canonical}" in
4555 *-solaris* | *-sunos5* )
4556 if [ "x$CC" = x/usr/ucb/cc ]; then
4557 ## /usr/ucb/cc doesn't work;
4558 ## we should find some other compiler that does work.
4559 unset CC
4560 fi
4561 ;;
4562 *) ;;
4563 esac
4564 ;;
4565
4566 ## Intel 386 machines where we don't care about the manufacturer.
4567 i[3456]86-*-* )
4568 machine=intel386
4569 case "${canonical}" in
4570 *-cygwin ) opsys=cygwin ;;
4571 *-darwin* ) opsys=darwin
4572 CPP="${CC-cc} -E -no-cpp-precomp"
4573 ;;
4574 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4575 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4576 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4577 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4578 esac
4579 ;;
4580
4581 * )
4582 unported=yes
4583 ;;
4584 esac
4585
4586 ### If the code above didn't choose an operating system, just choose
4587 ### an operating system based on the configuration name. You really
4588 ### only want to use this when you have no idea what the right
4589 ### operating system is; if you know what operating systems a machine
4590 ### runs, it's cleaner to make it explicit in the case statement
4591 ### above.
4592 if test x"${opsys}" = x; then
4593 case "${canonical}" in
4594 *-gnu* ) opsys=gnu ;;
4595 * )
4596 unported=yes
4597 ;;
4598 esac
4599 fi
4600
4601
4602
4603 if test $unported = yes; then
4604 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4605 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4606 fi
4607
4608 if test -n "$machine"; then
4609 machfile="m/${machine}.h"
4610 else
4611 machfile=
4612 fi
4613 opsysfile="s/${opsys}.h"
4614
4615
4616 #### Choose a compiler.
4617 test -n "$CC" && cc_specified=yes
4618
4619 # Save the value of CFLAGS that the user specified.
4620 SPECIFIED_CFLAGS="$CFLAGS"
4621
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if ${ac_cv_prog_CC+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4648 fi
4649 done
4650 done
4651 IFS=$as_save_IFS
4652
4653 fi
4654 fi
4655 CC=$ac_cv_prog_CC
4656 if test -n "$CC"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4658 $as_echo "$CC" >&6; }
4659 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4662 fi
4663
4664
4665 fi
4666 if test -z "$ac_cv_prog_CC"; then
4667 ac_ct_CC=$CC
4668 # Extract the first word of "gcc", so it can be a program name with args.
4669 set dummy gcc; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC="gcc"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4698 $as_echo "$ac_ct_CC" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 fi
4703
4704 if test "x$ac_ct_CC" = x; then
4705 CC=""
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned=yes ;;
4712 esac
4713 CC=$ac_ct_CC
4714 fi
4715 else
4716 CC="$ac_cv_prog_CC"
4717 fi
4718
4719 if test -z "$CC"; then
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}cc; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if ${ac_cv_prog_CC+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$CC"; then
4729 ac_cv_prog_CC="$CC" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_CC="${ac_tool_prefix}cc"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746 fi
4747 fi
4748 CC=$ac_cv_prog_CC
4749 if test -n "$CC"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4751 $as_echo "$CC" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 fi
4756
4757
4758 fi
4759 fi
4760 if test -z "$CC"; then
4761 # Extract the first word of "cc", so it can be a program name with args.
4762 set dummy cc; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_CC+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4770 else
4771 ac_prog_rejected=no
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780 ac_prog_rejected=yes
4781 continue
4782 fi
4783 ac_cv_prog_CC="cc"
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4786 fi
4787 done
4788 done
4789 IFS=$as_save_IFS
4790
4791 if test $ac_prog_rejected = yes; then
4792 # We found a bogon in the path, so make sure we never use it.
4793 set dummy $ac_cv_prog_CC
4794 shift
4795 if test $# != 0; then
4796 # We chose a different compiler from the bogus one.
4797 # However, it has the same basename, so the bogon will be chosen
4798 # first if we set CC to just the basename; use the full file name.
4799 shift
4800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4801 fi
4802 fi
4803 fi
4804 fi
4805 CC=$ac_cv_prog_CC
4806 if test -n "$CC"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4808 $as_echo "$CC" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814
4815 fi
4816 if test -z "$CC"; then
4817 if test -n "$ac_tool_prefix"; then
4818 for ac_prog in cl.exe
4819 do
4820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_prog_CC+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$CC"; then
4828 ac_cv_prog_CC="$CC" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 CC=$ac_cv_prog_CC
4848 if test -n "$CC"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850 $as_echo "$CC" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855
4856
4857 test -n "$CC" && break
4858 done
4859 fi
4860 if test -z "$CC"; then
4861 ac_ct_CC=$CC
4862 for ac_prog in cl.exe
4863 do
4864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$ac_ct_CC"; then
4872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_CC="$ac_prog"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4892 if test -n "$ac_ct_CC"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4894 $as_echo "$ac_ct_CC" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899
4900
4901 test -n "$ac_ct_CC" && break
4902 done
4903
4904 if test "x$ac_ct_CC" = x; then
4905 CC=""
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913 CC=$ac_ct_CC
4914 fi
4915 fi
4916
4917 fi
4918
4919
4920 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4922 as_fn_error $? "no acceptable C compiler found in \$PATH
4923 See \`config.log' for more details" "$LINENO" 5; }
4924
4925 # Provide some information about the compiler.
4926 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4927 set X $ac_compile
4928 ac_compiler=$2
4929 for ac_option in --version -v -V -qversion; do
4930 { { ac_try="$ac_compiler $ac_option >&5"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 $as_echo "$ac_try_echo"; } >&5
4937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4938 ac_status=$?
4939 if test -s conftest.err; then
4940 sed '10a\
4941 ... rest of stderr output deleted ...
4942 10q' conftest.err >conftest.er1
4943 cat conftest.er1 >&5
4944 fi
4945 rm -f conftest.er1 conftest.err
4946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4947 test $ac_status = 0; }
4948 done
4949
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952
4953 int
4954 main ()
4955 {
4956
4957 ;
4958 return 0;
4959 }
4960 _ACEOF
4961 ac_clean_files_save=$ac_clean_files
4962 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4963 # Try to create an executable without -o first, disregard a.out.
4964 # It will help us diagnose broken compilers, and finding out an intuition
4965 # of exeext.
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4967 $as_echo_n "checking whether the C compiler works... " >&6; }
4968 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4969
4970 # The possible output files:
4971 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4972
4973 ac_rmfiles=
4974 for ac_file in $ac_files
4975 do
4976 case $ac_file in
4977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4979 esac
4980 done
4981 rm -f $ac_rmfiles
4982
4983 if { { ac_try="$ac_link_default"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989 $as_echo "$ac_try_echo"; } >&5
4990 (eval "$ac_link_default") 2>&5
4991 ac_status=$?
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }; then :
4994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4995 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4996 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4997 # so that the user can short-circuit this test for compilers unknown to
4998 # Autoconf.
4999 for ac_file in $ac_files ''
5000 do
5001 test -f "$ac_file" || continue
5002 case $ac_file in
5003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5004 ;;
5005 [ab].out )
5006 # We found the default executable, but exeext='' is most
5007 # certainly right.
5008 break;;
5009 *.* )
5010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5011 then :; else
5012 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5013 fi
5014 # We set ac_cv_exeext here because the later test for it is not
5015 # safe: cross compilers may not add the suffix if given an `-o'
5016 # argument, so we may need to know it at that point already.
5017 # Even if this section looks crufty: it has the advantage of
5018 # actually working.
5019 break;;
5020 * )
5021 break;;
5022 esac
5023 done
5024 test "$ac_cv_exeext" = no && ac_cv_exeext=
5025
5026 else
5027 ac_file=''
5028 fi
5029 if test -z "$ac_file"; then :
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 $as_echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5037 as_fn_error 77 "C compiler cannot create executables
5038 See \`config.log' for more details" "$LINENO" 5; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5041 $as_echo "yes" >&6; }
5042 fi
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5044 $as_echo_n "checking for C compiler default output file name... " >&6; }
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5046 $as_echo "$ac_file" >&6; }
5047 ac_exeext=$ac_cv_exeext
5048
5049 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5050 ac_clean_files=$ac_clean_files_save
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5052 $as_echo_n "checking for suffix of executables... " >&6; }
5053 if { { ac_try="$ac_link"
5054 case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057 esac
5058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5059 $as_echo "$ac_try_echo"; } >&5
5060 (eval "$ac_link") 2>&5
5061 ac_status=$?
5062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5063 test $ac_status = 0; }; then :
5064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5065 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5066 # work properly (i.e., refer to `conftest.exe'), while it won't with
5067 # `rm'.
5068 for ac_file in conftest.exe conftest conftest.*; do
5069 test -f "$ac_file" || continue
5070 case $ac_file in
5071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5073 break;;
5074 * ) break;;
5075 esac
5076 done
5077 else
5078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5080 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5081 See \`config.log' for more details" "$LINENO" 5; }
5082 fi
5083 rm -f conftest conftest$ac_cv_exeext
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5085 $as_echo "$ac_cv_exeext" >&6; }
5086
5087 rm -f conftest.$ac_ext
5088 EXEEXT=$ac_cv_exeext
5089 ac_exeext=$EXEEXT
5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h. */
5092 #include <stdio.h>
5093 int
5094 main ()
5095 {
5096 FILE *f = fopen ("conftest.out", "w");
5097 return ferror (f) || fclose (f) != 0;
5098
5099 ;
5100 return 0;
5101 }
5102 _ACEOF
5103 ac_clean_files="$ac_clean_files conftest.out"
5104 # Check that the compiler produces executables we can run. If not, either
5105 # the compiler is broken, or we cross compile.
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5107 $as_echo_n "checking whether we are cross compiling... " >&6; }
5108 if test "$cross_compiling" != yes; then
5109 { { ac_try="$ac_link"
5110 case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5115 $as_echo "$ac_try_echo"; } >&5
5116 (eval "$ac_link") 2>&5
5117 ac_status=$?
5118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5119 test $ac_status = 0; }
5120 if { ac_try='./conftest$ac_cv_exeext'
5121 { { case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124 esac
5125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5126 $as_echo "$ac_try_echo"; } >&5
5127 (eval "$ac_try") 2>&5
5128 ac_status=$?
5129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130 test $ac_status = 0; }; }; then
5131 cross_compiling=no
5132 else
5133 if test "$cross_compiling" = maybe; then
5134 cross_compiling=yes
5135 else
5136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5138 as_fn_error $? "cannot run C compiled programs.
5139 If you meant to cross compile, use \`--host'.
5140 See \`config.log' for more details" "$LINENO" 5; }
5141 fi
5142 fi
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5145 $as_echo "$cross_compiling" >&6; }
5146
5147 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5148 ac_clean_files=$ac_clean_files_save
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5150 $as_echo_n "checking for suffix of object files... " >&6; }
5151 if ${ac_cv_objext+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h. */
5156
5157 int
5158 main ()
5159 {
5160
5161 ;
5162 return 0;
5163 }
5164 _ACEOF
5165 rm -f conftest.o conftest.obj
5166 if { { ac_try="$ac_compile"
5167 case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5170 esac
5171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5172 $as_echo "$ac_try_echo"; } >&5
5173 (eval "$ac_compile") 2>&5
5174 ac_status=$?
5175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5176 test $ac_status = 0; }; then :
5177 for ac_file in conftest.o conftest.obj conftest.*; do
5178 test -f "$ac_file" || continue;
5179 case $ac_file in
5180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5182 break;;
5183 esac
5184 done
5185 else
5186 $as_echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5188
5189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5191 as_fn_error $? "cannot compute suffix of object files: cannot compile
5192 See \`config.log' for more details" "$LINENO" 5; }
5193 fi
5194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5197 $as_echo "$ac_cv_objext" >&6; }
5198 OBJEXT=$ac_cv_objext
5199 ac_objext=$OBJEXT
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5201 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5202 if ${ac_cv_c_compiler_gnu+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207
5208 int
5209 main ()
5210 {
5211 #ifndef __GNUC__
5212 choke me
5213 #endif
5214
5215 ;
5216 return 0;
5217 }
5218 _ACEOF
5219 if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_compiler_gnu=yes
5221 else
5222 ac_compiler_gnu=no
5223 fi
5224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5226
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5229 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5230 if test $ac_compiler_gnu = yes; then
5231 GCC=yes
5232 else
5233 GCC=
5234 fi
5235 ac_test_CFLAGS=${CFLAGS+set}
5236 ac_save_CFLAGS=$CFLAGS
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5238 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5239 if ${ac_cv_prog_cc_g+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 ac_save_c_werror_flag=$ac_c_werror_flag
5243 ac_c_werror_flag=yes
5244 ac_cv_prog_cc_g=no
5245 CFLAGS="-g"
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248
5249 int
5250 main ()
5251 {
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258 ac_cv_prog_cc_g=yes
5259 else
5260 CFLAGS=""
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263
5264 int
5265 main ()
5266 {
5267
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273
5274 else
5275 ac_c_werror_flag=$ac_save_c_werror_flag
5276 CFLAGS="-g"
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279
5280 int
5281 main ()
5282 {
5283
5284 ;
5285 return 0;
5286 }
5287 _ACEOF
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289 ac_cv_prog_cc_g=yes
5290 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_c_werror_flag=$ac_save_c_werror_flag
5297 fi
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5299 $as_echo "$ac_cv_prog_cc_g" >&6; }
5300 if test "$ac_test_CFLAGS" = set; then
5301 CFLAGS=$ac_save_CFLAGS
5302 elif test $ac_cv_prog_cc_g = yes; then
5303 if test "$GCC" = yes; then
5304 CFLAGS="-g -O2"
5305 else
5306 CFLAGS="-g"
5307 fi
5308 else
5309 if test "$GCC" = yes; then
5310 CFLAGS="-O2"
5311 else
5312 CFLAGS=
5313 fi
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5316 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5317 if ${ac_cv_prog_cc_c89+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 ac_cv_prog_cc_c89=no
5321 ac_save_CC=$CC
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 #include <stdarg.h>
5325 #include <stdio.h>
5326 #include <sys/types.h>
5327 #include <sys/stat.h>
5328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5329 struct buf { int x; };
5330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5331 static char *e (p, i)
5332 char **p;
5333 int i;
5334 {
5335 return p[i];
5336 }
5337 static char *f (char * (*g) (char **, int), char **p, ...)
5338 {
5339 char *s;
5340 va_list v;
5341 va_start (v,p);
5342 s = g (p, va_arg (v,int));
5343 va_end (v);
5344 return s;
5345 }
5346
5347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5348 function prototypes and stuff, but not '\xHH' hex character constants.
5349 These don't provoke an error unfortunately, instead are silently treated
5350 as 'x'. The following induces an error, until -std is added to get
5351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5352 array size at least. It's necessary to write '\x00'==0 to get something
5353 that's true only with -std. */
5354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5355
5356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5357 inside strings and character constants. */
5358 #define FOO(x) 'x'
5359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5360
5361 int test (int i, double x);
5362 struct s1 {int (*f) (int a);};
5363 struct s2 {int (*f) (double a);};
5364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5365 int argc;
5366 char **argv;
5367 int
5368 main ()
5369 {
5370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5371 ;
5372 return 0;
5373 }
5374 _ACEOF
5375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5377 do
5378 CC="$ac_save_CC $ac_arg"
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_prog_cc_c89=$ac_arg
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext
5383 test "x$ac_cv_prog_cc_c89" != "xno" && break
5384 done
5385 rm -f conftest.$ac_ext
5386 CC=$ac_save_CC
5387
5388 fi
5389 # AC_CACHE_VAL
5390 case "x$ac_cv_prog_cc_c89" in
5391 x)
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5393 $as_echo "none needed" >&6; } ;;
5394 xno)
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5396 $as_echo "unsupported" >&6; } ;;
5397 *)
5398 CC="$CC $ac_cv_prog_cc_c89"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5401 esac
5402 if test "x$ac_cv_prog_cc_c89" != xno; then :
5403
5404 fi
5405
5406 ac_ext=c
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411 DEPDIR="${am__leading_dot}deps"
5412
5413 ac_config_commands="$ac_config_commands depfiles"
5414
5415
5416 am_make=${MAKE-make}
5417 cat > confinc << 'END'
5418 am__doit:
5419 @echo this is the am__doit target
5420 .PHONY: am__doit
5421 END
5422 # If we don't find an include directive, just comment out the code.
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5424 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5425 am__include="#"
5426 am__quote=
5427 _am_result=none
5428 # First try GNU make style include.
5429 echo "include confinc" > confmf
5430 # Ignore all kinds of additional output from `make'.
5431 case `$am_make -s -f confmf 2> /dev/null` in #(
5432 *the\ am__doit\ target*)
5433 am__include=include
5434 am__quote=
5435 _am_result=GNU
5436 ;;
5437 esac
5438 # Now try BSD make style include.
5439 if test "$am__include" = "#"; then
5440 echo '.include "confinc"' > confmf
5441 case `$am_make -s -f confmf 2> /dev/null` in #(
5442 *the\ am__doit\ target*)
5443 am__include=.include
5444 am__quote="\""
5445 _am_result=BSD
5446 ;;
5447 esac
5448 fi
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5452 $as_echo "$_am_result" >&6; }
5453 rm -f confinc confmf
5454
5455 # Check whether --enable-dependency-tracking was given.
5456 if test "${enable_dependency_tracking+set}" = set; then :
5457 enableval=$enable_dependency_tracking;
5458 fi
5459
5460 if test "x$enable_dependency_tracking" != xno; then
5461 am_depcomp="$ac_aux_dir/depcomp"
5462 AMDEPBACKSLASH='\'
5463 fi
5464 if test "x$enable_dependency_tracking" != xno; then
5465 AMDEP_TRUE=
5466 AMDEP_FALSE='#'
5467 else
5468 AMDEP_TRUE='#'
5469 AMDEP_FALSE=
5470 fi
5471
5472
5473
5474 depcc="$CC" am_compiler_list=
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5477 $as_echo_n "checking dependency style of $depcc... " >&6; }
5478 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5482 # We make a subdir and do the tests there. Otherwise we can end up
5483 # making bogus files that we don't know about and never remove. For
5484 # instance it was reported that on HP-UX the gcc test will end up
5485 # making a dummy file named `D' -- because `-MD' means `put the output
5486 # in D'.
5487 mkdir conftest.dir
5488 # Copy depcomp to subdir because otherwise we won't find it if we're
5489 # using a relative directory.
5490 cp "$am_depcomp" conftest.dir
5491 cd conftest.dir
5492 # We will build objects and dependencies in a subdirectory because
5493 # it helps to detect inapplicable dependency modes. For instance
5494 # both Tru64's cc and ICC support -MD to output dependencies as a
5495 # side effect of compilation, but ICC will put the dependencies in
5496 # the current directory while Tru64 will put them in the object
5497 # directory.
5498 mkdir sub
5499
5500 am_cv_CC_dependencies_compiler_type=none
5501 if test "$am_compiler_list" = ""; then
5502 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5503 fi
5504 am__universal=false
5505 case " $depcc " in #(
5506 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5507 esac
5508
5509 for depmode in $am_compiler_list; do
5510 # Setup a source with many dependencies, because some compilers
5511 # like to wrap large dependency lists on column 80 (with \), and
5512 # we should not choose a depcomp mode which is confused by this.
5513 #
5514 # We need to recreate these files for each test, as the compiler may
5515 # overwrite some of them when testing with obscure command lines.
5516 # This happens at least with the AIX C compiler.
5517 : > sub/conftest.c
5518 for i in 1 2 3 4 5 6; do
5519 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5520 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5521 # Solaris 8's {/usr,}/bin/sh.
5522 touch sub/conftst$i.h
5523 done
5524 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5525
5526 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5527 # mode. It turns out that the SunPro C++ compiler does not properly
5528 # handle `-M -o', and we need to detect this. Also, some Intel
5529 # versions had trouble with output in subdirs
5530 am__obj=sub/conftest.${OBJEXT-o}
5531 am__minus_obj="-o $am__obj"
5532 case $depmode in
5533 gcc)
5534 # This depmode causes a compiler race in universal mode.
5535 test "$am__universal" = false || continue
5536 ;;
5537 nosideeffect)
5538 # after this tag, mechanisms are not by side-effect, so they'll
5539 # only be used when explicitly requested
5540 if test "x$enable_dependency_tracking" = xyes; then
5541 continue
5542 else
5543 break
5544 fi
5545 ;;
5546 msvisualcpp | msvcmsys)
5547 # This compiler won't grok `-c -o', but also, the minuso test has
5548 # not run yet. These depmodes are late enough in the game, and
5549 # so weak that their functioning should not be impacted.
5550 am__obj=conftest.${OBJEXT-o}
5551 am__minus_obj=
5552 ;;
5553 none) break ;;
5554 esac
5555 if depmode=$depmode \
5556 source=sub/conftest.c object=$am__obj \
5557 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5558 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5559 >/dev/null 2>conftest.err &&
5560 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5561 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5562 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5563 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5564 # icc doesn't choke on unknown options, it will just issue warnings
5565 # or remarks (even with -Werror). So we grep stderr for any message
5566 # that says an option was ignored or not supported.
5567 # When given -MP, icc 7.0 and 7.1 complain thusly:
5568 # icc: Command line warning: ignoring option '-M'; no argument required
5569 # The diagnosis changed in icc 8.0:
5570 # icc: Command line remark: option '-MP' not supported
5571 if (grep 'ignoring option' conftest.err ||
5572 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5573 am_cv_CC_dependencies_compiler_type=$depmode
5574 break
5575 fi
5576 fi
5577 done
5578
5579 cd ..
5580 rm -rf conftest.dir
5581 else
5582 am_cv_CC_dependencies_compiler_type=none
5583 fi
5584
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5587 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5588 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5589
5590 if
5591 test "x$enable_dependency_tracking" != xno \
5592 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5593 am__fastdepCC_TRUE=
5594 am__fastdepCC_FALSE='#'
5595 else
5596 am__fastdepCC_TRUE='#'
5597 am__fastdepCC_FALSE=
5598 fi
5599
5600
5601 if test "x$CC" != xcc; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5603 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5606 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5607 fi
5608 set dummy $CC; ac_cc=`$as_echo "$2" |
5609 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5610 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615
5616 int
5617 main ()
5618 {
5619
5620 ;
5621 return 0;
5622 }
5623 _ACEOF
5624 # Make sure it works both with $CC and with simple cc.
5625 # We do the test twice because some compilers refuse to overwrite an
5626 # existing .o file with -o, though they will create one.
5627 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5628 rm -f conftest2.*
5629 if { { case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5634 $as_echo "$ac_try_echo"; } >&5
5635 (eval "$ac_try") 2>&5
5636 ac_status=$?
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; } &&
5639 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5644 $as_echo "$ac_try_echo"; } >&5
5645 (eval "$ac_try") 2>&5
5646 ac_status=$?
5647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5648 test $ac_status = 0; };
5649 then
5650 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5651 if test "x$CC" != xcc; then
5652 # Test first that cc exists at all.
5653 if { ac_try='cc -c conftest.$ac_ext >&5'
5654 { { case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657 esac
5658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5659 $as_echo "$ac_try_echo"; } >&5
5660 (eval "$ac_try") 2>&5
5661 ac_status=$?
5662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663 test $ac_status = 0; }; }; then
5664 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5665 rm -f conftest2.*
5666 if { { case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669 esac
5670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5671 $as_echo "$ac_try_echo"; } >&5
5672 (eval "$ac_try") 2>&5
5673 ac_status=$?
5674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5675 test $ac_status = 0; } &&
5676 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5681 $as_echo "$ac_try_echo"; } >&5
5682 (eval "$ac_try") 2>&5
5683 ac_status=$?
5684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5685 test $ac_status = 0; };
5686 then
5687 # cc works too.
5688 :
5689 else
5690 # cc exists but doesn't like -o.
5691 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5692 fi
5693 fi
5694 fi
5695 else
5696 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5697 fi
5698 rm -f core conftest*
5699
5700 fi
5701 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5703 $as_echo "yes" >&6; }
5704 else
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707
5708 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5709
5710 fi
5711
5712 # FIXME: we rely on the cache variable name because
5713 # there is no other way.
5714 set dummy $CC
5715 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5716 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5717 if test "$am_t" != yes; then
5718 # Losing compiler, so override with the script.
5719 # FIXME: It is wrong to rewrite CC.
5720 # But if we don't then we get into trouble of one sort or another.
5721 # A longer-term fix would be to have automake use am__CC in this case,
5722 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5723 CC="$am_aux_dir/compile $CC"
5724 fi
5725
5726
5727
5728 # Initialize gnulib right after verifying that the C compiler works.
5729
5730 ac_ext=c
5731 ac_cpp='$CPP $CPPFLAGS'
5732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5736 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5737 # On Suns, sometimes $CPP names a directory.
5738 if test -n "$CPP" && test -d "$CPP"; then
5739 CPP=
5740 fi
5741 if test -z "$CPP"; then
5742 if ${ac_cv_prog_CPP+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 # Double quotes because CPP needs to be expanded
5746 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5747 do
5748 ac_preproc_ok=false
5749 for ac_c_preproc_warn_flag in '' yes
5750 do
5751 # Use a header file that comes with gcc, so configuring glibc
5752 # with a fresh cross-compiler works.
5753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5754 # <limits.h> exists even on freestanding compilers.
5755 # On the NeXT, cc -E runs the code through the compiler's parser,
5756 # not just through cpp. "Syntax error" is here to catch this case.
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #ifdef __STDC__
5760 # include <limits.h>
5761 #else
5762 # include <assert.h>
5763 #endif
5764 Syntax error
5765 _ACEOF
5766 if ac_fn_c_try_cpp "$LINENO"; then :
5767
5768 else
5769 # Broken: fails on valid input.
5770 continue
5771 fi
5772 rm -f conftest.err conftest.i conftest.$ac_ext
5773
5774 # OK, works on sane cases. Now check whether nonexistent headers
5775 # can be detected and how.
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778 #include <ac_nonexistent.h>
5779 _ACEOF
5780 if ac_fn_c_try_cpp "$LINENO"; then :
5781 # Broken: success on invalid input.
5782 continue
5783 else
5784 # Passes both tests.
5785 ac_preproc_ok=:
5786 break
5787 fi
5788 rm -f conftest.err conftest.i conftest.$ac_ext
5789
5790 done
5791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5792 rm -f conftest.i conftest.err conftest.$ac_ext
5793 if $ac_preproc_ok; then :
5794 break
5795 fi
5796
5797 done
5798 ac_cv_prog_CPP=$CPP
5799
5800 fi
5801 CPP=$ac_cv_prog_CPP
5802 else
5803 ac_cv_prog_CPP=$CPP
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5806 $as_echo "$CPP" >&6; }
5807 ac_preproc_ok=false
5808 for ac_c_preproc_warn_flag in '' yes
5809 do
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 #ifdef __STDC__
5819 # include <limits.h>
5820 #else
5821 # include <assert.h>
5822 #endif
5823 Syntax error
5824 _ACEOF
5825 if ac_fn_c_try_cpp "$LINENO"; then :
5826
5827 else
5828 # Broken: fails on valid input.
5829 continue
5830 fi
5831 rm -f conftest.err conftest.i conftest.$ac_ext
5832
5833 # OK, works on sane cases. Now check whether nonexistent headers
5834 # can be detected and how.
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 #include <ac_nonexistent.h>
5838 _ACEOF
5839 if ac_fn_c_try_cpp "$LINENO"; then :
5840 # Broken: success on invalid input.
5841 continue
5842 else
5843 # Passes both tests.
5844 ac_preproc_ok=:
5845 break
5846 fi
5847 rm -f conftest.err conftest.i conftest.$ac_ext
5848
5849 done
5850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5851 rm -f conftest.i conftest.err conftest.$ac_ext
5852 if $ac_preproc_ok; then :
5853
5854 else
5855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5857 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5858 See \`config.log' for more details" "$LINENO" 5; }
5859 fi
5860
5861 ac_ext=c
5862 ac_cpp='$CPP $CPPFLAGS'
5863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5866
5867
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5869 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5870 if ${ac_cv_path_GREP+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if test -z "$GREP"; then
5874 ac_path_GREP_found=false
5875 # Loop through the user's path and test for each of PROGNAME-LIST
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5878 do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_prog in grep ggrep; do
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5884 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5885 # Check for GNU ac_path_GREP and select it if it is found.
5886 # Check for GNU $ac_path_GREP
5887 case `"$ac_path_GREP" --version 2>&1` in
5888 *GNU*)
5889 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5890 *)
5891 ac_count=0
5892 $as_echo_n 0123456789 >"conftest.in"
5893 while :
5894 do
5895 cat "conftest.in" "conftest.in" >"conftest.tmp"
5896 mv "conftest.tmp" "conftest.in"
5897 cp "conftest.in" "conftest.nl"
5898 $as_echo 'GREP' >> "conftest.nl"
5899 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5901 as_fn_arith $ac_count + 1 && ac_count=$as_val
5902 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5903 # Best one so far, save it but keep looking for a better one
5904 ac_cv_path_GREP="$ac_path_GREP"
5905 ac_path_GREP_max=$ac_count
5906 fi
5907 # 10*(2^10) chars as input seems more than enough
5908 test $ac_count -gt 10 && break
5909 done
5910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5911 esac
5912
5913 $ac_path_GREP_found && break 3
5914 done
5915 done
5916 done
5917 IFS=$as_save_IFS
5918 if test -z "$ac_cv_path_GREP"; then
5919 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5920 fi
5921 else
5922 ac_cv_path_GREP=$GREP
5923 fi
5924
5925 fi
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5927 $as_echo "$ac_cv_path_GREP" >&6; }
5928 GREP="$ac_cv_path_GREP"
5929
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5932 $as_echo_n "checking for egrep... " >&6; }
5933 if ${ac_cv_path_EGREP+:} false; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5937 then ac_cv_path_EGREP="$GREP -E"
5938 else
5939 if test -z "$EGREP"; then
5940 ac_path_EGREP_found=false
5941 # Loop through the user's path and test for each of PROGNAME-LIST
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5944 do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_prog in egrep; do
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5950 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5951 # Check for GNU ac_path_EGREP and select it if it is found.
5952 # Check for GNU $ac_path_EGREP
5953 case `"$ac_path_EGREP" --version 2>&1` in
5954 *GNU*)
5955 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5956 *)
5957 ac_count=0
5958 $as_echo_n 0123456789 >"conftest.in"
5959 while :
5960 do
5961 cat "conftest.in" "conftest.in" >"conftest.tmp"
5962 mv "conftest.tmp" "conftest.in"
5963 cp "conftest.in" "conftest.nl"
5964 $as_echo 'EGREP' >> "conftest.nl"
5965 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5967 as_fn_arith $ac_count + 1 && ac_count=$as_val
5968 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5969 # Best one so far, save it but keep looking for a better one
5970 ac_cv_path_EGREP="$ac_path_EGREP"
5971 ac_path_EGREP_max=$ac_count
5972 fi
5973 # 10*(2^10) chars as input seems more than enough
5974 test $ac_count -gt 10 && break
5975 done
5976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5977 esac
5978
5979 $ac_path_EGREP_found && break 3
5980 done
5981 done
5982 done
5983 IFS=$as_save_IFS
5984 if test -z "$ac_cv_path_EGREP"; then
5985 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5986 fi
5987 else
5988 ac_cv_path_EGREP=$EGREP
5989 fi
5990
5991 fi
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5994 $as_echo "$ac_cv_path_EGREP" >&6; }
5995 EGREP="$ac_cv_path_EGREP"
5996
5997
5998
5999
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6001 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6002 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008
6009 #ifdef __ACK__
6010 Amsterdam
6011 #endif
6012
6013 _ACEOF
6014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6016 gl_cv_c_amsterdam_compiler=yes
6017 else
6018 gl_cv_c_amsterdam_compiler=no
6019 fi
6020 rm -f conftest*
6021
6022
6023 fi
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6025 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6026 if test -z "$AR"; then
6027 if test $gl_cv_c_amsterdam_compiler = yes; then
6028 AR='cc -c.a'
6029 if test -z "$ARFLAGS"; then
6030 ARFLAGS='-o'
6031 fi
6032 else
6033 if test -n "$ac_tool_prefix"; then
6034 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6035 set dummy ${ac_tool_prefix}ar; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_AR+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$AR"; then
6042 ac_cv_prog_AR="$AR" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_prog_AR="${ac_tool_prefix}ar"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 AR=$ac_cv_prog_AR
6062 if test -n "$AR"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6064 $as_echo "$AR" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069
6070
6071 fi
6072 if test -z "$ac_cv_prog_AR"; then
6073 ac_ct_AR=$AR
6074 # Extract the first word of "ar", so it can be a program name with args.
6075 set dummy ar; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 if test -n "$ac_ct_AR"; then
6082 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_ac_ct_AR="ar"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 break 2
6094 fi
6095 done
6096 done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6102 if test -n "$ac_ct_AR"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6104 $as_echo "$ac_ct_AR" >&6; }
6105 else
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109
6110 if test "x$ac_ct_AR" = x; then
6111 AR="ar"
6112 else
6113 case $cross_compiling:$ac_tool_warned in
6114 yes:)
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117 ac_tool_warned=yes ;;
6118 esac
6119 AR=$ac_ct_AR
6120 fi
6121 else
6122 AR="$ac_cv_prog_AR"
6123 fi
6124
6125 if test -z "$ARFLAGS"; then
6126 ARFLAGS='cru'
6127 fi
6128 fi
6129 else
6130 if test -z "$ARFLAGS"; then
6131 ARFLAGS='cru'
6132 fi
6133 fi
6134
6135
6136 if test -z "$RANLIB"; then
6137 if test $gl_cv_c_amsterdam_compiler = yes; then
6138 RANLIB=':'
6139 else
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_RANLIB+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 if test -n "$RANLIB"; then
6149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 RANLIB=$ac_cv_prog_RANLIB
6169 if test -n "$RANLIB"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6171 $as_echo "$RANLIB" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178 fi
6179 if test -z "$ac_cv_prog_RANLIB"; then
6180 ac_ct_RANLIB=$RANLIB
6181 # Extract the first word of "ranlib", so it can be a program name with args.
6182 set dummy ranlib; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$ac_ct_RANLIB"; then
6189 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_RANLIB="ranlib"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6209 if test -n "$ac_ct_RANLIB"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6211 $as_echo "$ac_ct_RANLIB" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217 if test "x$ac_ct_RANLIB" = x; then
6218 RANLIB=":"
6219 else
6220 case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226 RANLIB=$ac_ct_RANLIB
6227 fi
6228 else
6229 RANLIB="$ac_cv_prog_RANLIB"
6230 fi
6231
6232 fi
6233 fi
6234
6235
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6237 $as_echo_n "checking for ANSI C header files... " >&6; }
6238 if ${ac_cv_header_stdc+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 #include <stdlib.h>
6244 #include <stdarg.h>
6245 #include <string.h>
6246 #include <float.h>
6247
6248 int
6249 main ()
6250 {
6251
6252 ;
6253 return 0;
6254 }
6255 _ACEOF
6256 if ac_fn_c_try_compile "$LINENO"; then :
6257 ac_cv_header_stdc=yes
6258 else
6259 ac_cv_header_stdc=no
6260 fi
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262
6263 if test $ac_cv_header_stdc = yes; then
6264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6267 #include <string.h>
6268
6269 _ACEOF
6270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6271 $EGREP "memchr" >/dev/null 2>&1; then :
6272
6273 else
6274 ac_cv_header_stdc=no
6275 fi
6276 rm -f conftest*
6277
6278 fi
6279
6280 if test $ac_cv_header_stdc = yes; then
6281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 #include <stdlib.h>
6285
6286 _ACEOF
6287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288 $EGREP "free" >/dev/null 2>&1; then :
6289
6290 else
6291 ac_cv_header_stdc=no
6292 fi
6293 rm -f conftest*
6294
6295 fi
6296
6297 if test $ac_cv_header_stdc = yes; then
6298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6299 if test "$cross_compiling" = yes; then :
6300 :
6301 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 #include <ctype.h>
6305 #include <stdlib.h>
6306 #if ((' ' & 0x0FF) == 0x020)
6307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6309 #else
6310 # define ISLOWER(c) \
6311 (('a' <= (c) && (c) <= 'i') \
6312 || ('j' <= (c) && (c) <= 'r') \
6313 || ('s' <= (c) && (c) <= 'z'))
6314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6315 #endif
6316
6317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6318 int
6319 main ()
6320 {
6321 int i;
6322 for (i = 0; i < 256; i++)
6323 if (XOR (islower (i), ISLOWER (i))
6324 || toupper (i) != TOUPPER (i))
6325 return 2;
6326 return 0;
6327 }
6328 _ACEOF
6329 if ac_fn_c_try_run "$LINENO"; then :
6330
6331 else
6332 ac_cv_header_stdc=no
6333 fi
6334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6335 conftest.$ac_objext conftest.beam conftest.$ac_ext
6336 fi
6337
6338 fi
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6341 $as_echo "$ac_cv_header_stdc" >&6; }
6342 if test $ac_cv_header_stdc = yes; then
6343
6344 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6345
6346 fi
6347
6348 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6349 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6350 inttypes.h stdint.h unistd.h
6351 do :
6352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6353 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6354 "
6355 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6356 cat >>confdefs.h <<_ACEOF
6357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6358 _ACEOF
6359
6360 fi
6361
6362 done
6363
6364
6365
6366
6367
6368 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6369 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6370 MINIX=yes
6371 else
6372 MINIX=
6373 fi
6374
6375
6376 if test "$MINIX" = yes; then
6377
6378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6379
6380
6381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6382
6383
6384 $as_echo "#define _MINIX 1" >>confdefs.h
6385
6386 fi
6387
6388 case "$host_os" in
6389 hpux*)
6390
6391 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6392
6393 ;;
6394 esac
6395
6396
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6398 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6399 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404
6405 # define __EXTENSIONS__ 1
6406 $ac_includes_default
6407 int
6408 main ()
6409 {
6410
6411 ;
6412 return 0;
6413 }
6414 _ACEOF
6415 if ac_fn_c_try_compile "$LINENO"; then :
6416 ac_cv_safe_to_define___extensions__=yes
6417 else
6418 ac_cv_safe_to_define___extensions__=no
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 fi
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6423 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6424 test $ac_cv_safe_to_define___extensions__ = yes &&
6425 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6426
6427 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6428
6429 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6430
6431 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6432
6433 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6434
6435 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6436
6437
6438
6439
6440
6441
6442
6443
6444 # Check whether --enable-largefile was given.
6445 if test "${enable_largefile+set}" = set; then :
6446 enableval=$enable_largefile;
6447 fi
6448
6449 if test "$enable_largefile" != no; then
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6452 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6453 if ${ac_cv_sys_largefile_CC+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 ac_cv_sys_largefile_CC=no
6457 if test "$GCC" != yes; then
6458 ac_save_CC=$CC
6459 while :; do
6460 # IRIX 6.2 and later do not support large files by default,
6461 # so use the C compiler's -n32 option if that helps.
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <sys/types.h>
6465 /* Check that off_t can represent 2**63 - 1 correctly.
6466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6467 since some C++ compilers masquerading as C compilers
6468 incorrectly reject 9223372036854775807. */
6469 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6471 && LARGE_OFF_T % 2147483647 == 1)
6472 ? 1 : -1];
6473 int
6474 main ()
6475 {
6476
6477 ;
6478 return 0;
6479 }
6480 _ACEOF
6481 if ac_fn_c_try_compile "$LINENO"; then :
6482 break
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext
6485 CC="$CC -n32"
6486 if ac_fn_c_try_compile "$LINENO"; then :
6487 ac_cv_sys_largefile_CC=' -n32'; break
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext
6490 break
6491 done
6492 CC=$ac_save_CC
6493 rm -f conftest.$ac_ext
6494 fi
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6497 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6498 if test "$ac_cv_sys_largefile_CC" != no; then
6499 CC=$CC$ac_cv_sys_largefile_CC
6500 fi
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6503 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6504 if ${ac_cv_sys_file_offset_bits+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 while :; do
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <sys/types.h>
6511 /* Check that off_t can represent 2**63 - 1 correctly.
6512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6513 since some C++ compilers masquerading as C compilers
6514 incorrectly reject 9223372036854775807. */
6515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6517 && LARGE_OFF_T % 2147483647 == 1)
6518 ? 1 : -1];
6519 int
6520 main ()
6521 {
6522
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 if ac_fn_c_try_compile "$LINENO"; then :
6528 ac_cv_sys_file_offset_bits=no; break
6529 fi
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6533 #define _FILE_OFFSET_BITS 64
6534 #include <sys/types.h>
6535 /* Check that off_t can represent 2**63 - 1 correctly.
6536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6537 since some C++ compilers masquerading as C compilers
6538 incorrectly reject 9223372036854775807. */
6539 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6541 && LARGE_OFF_T % 2147483647 == 1)
6542 ? 1 : -1];
6543 int
6544 main ()
6545 {
6546
6547 ;
6548 return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_compile "$LINENO"; then :
6552 ac_cv_sys_file_offset_bits=64; break
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 ac_cv_sys_file_offset_bits=unknown
6556 break
6557 done
6558 fi
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6560 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6561 case $ac_cv_sys_file_offset_bits in #(
6562 no | unknown) ;;
6563 *)
6564 cat >>confdefs.h <<_ACEOF
6565 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6566 _ACEOF
6567 ;;
6568 esac
6569 rm -rf conftest*
6570 if test $ac_cv_sys_file_offset_bits = unknown; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6572 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6573 if ${ac_cv_sys_large_files+:} false; then :
6574 $as_echo_n "(cached) " >&6
6575 else
6576 while :; do
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #include <sys/types.h>
6580 /* Check that off_t can represent 2**63 - 1 correctly.
6581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6582 since some C++ compilers masquerading as C compilers
6583 incorrectly reject 9223372036854775807. */
6584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6586 && LARGE_OFF_T % 2147483647 == 1)
6587 ? 1 : -1];
6588 int
6589 main ()
6590 {
6591
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 ac_cv_sys_large_files=no; break
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6601 /* end confdefs.h. */
6602 #define _LARGE_FILES 1
6603 #include <sys/types.h>
6604 /* Check that off_t can represent 2**63 - 1 correctly.
6605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6606 since some C++ compilers masquerading as C compilers
6607 incorrectly reject 9223372036854775807. */
6608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6610 && LARGE_OFF_T % 2147483647 == 1)
6611 ? 1 : -1];
6612 int
6613 main ()
6614 {
6615
6616 ;
6617 return 0;
6618 }
6619 _ACEOF
6620 if ac_fn_c_try_compile "$LINENO"; then :
6621 ac_cv_sys_large_files=1; break
6622 fi
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 ac_cv_sys_large_files=unknown
6625 break
6626 done
6627 fi
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6629 $as_echo "$ac_cv_sys_large_files" >&6; }
6630 case $ac_cv_sys_large_files in #(
6631 no | unknown) ;;
6632 *)
6633 cat >>confdefs.h <<_ACEOF
6634 #define _LARGE_FILES $ac_cv_sys_large_files
6635 _ACEOF
6636 ;;
6637 esac
6638 rm -rf conftest*
6639 fi
6640
6641
6642 fi
6643
6644 case $ac_cv_prog_cc_stdc in #(
6645 no) :
6646 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6647 *) :
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6649 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6650 if ${ac_cv_prog_cc_c99+:} false; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 ac_cv_prog_cc_c99=no
6654 ac_save_CC=$CC
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 #include <stdarg.h>
6658 #include <stdbool.h>
6659 #include <stdlib.h>
6660 #include <wchar.h>
6661 #include <stdio.h>
6662
6663 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6664 #define debug(...) fprintf (stderr, __VA_ARGS__)
6665 #define showlist(...) puts (#__VA_ARGS__)
6666 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6667 static void
6668 test_varargs_macros (void)
6669 {
6670 int x = 1234;
6671 int y = 5678;
6672 debug ("Flag");
6673 debug ("X = %d\n", x);
6674 showlist (The first, second, and third items.);
6675 report (x>y, "x is %d but y is %d", x, y);
6676 }
6677
6678 // Check long long types.
6679 #define BIG64 18446744073709551615ull
6680 #define BIG32 4294967295ul
6681 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6682 #if !BIG_OK
6683 your preprocessor is broken;
6684 #endif
6685 #if BIG_OK
6686 #else
6687 your preprocessor is broken;
6688 #endif
6689 static long long int bignum = -9223372036854775807LL;
6690 static unsigned long long int ubignum = BIG64;
6691
6692 struct incomplete_array
6693 {
6694 int datasize;
6695 double data[];
6696 };
6697
6698 struct named_init {
6699 int number;
6700 const wchar_t *name;
6701 double average;
6702 };
6703
6704 typedef const char *ccp;
6705
6706 static inline int
6707 test_restrict (ccp restrict text)
6708 {
6709 // See if C++-style comments work.
6710 // Iterate through items via the restricted pointer.
6711 // Also check for declarations in for loops.
6712 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6713 continue;
6714 return 0;
6715 }
6716
6717 // Check varargs and va_copy.
6718 static void
6719 test_varargs (const char *format, ...)
6720 {
6721 va_list args;
6722 va_start (args, format);
6723 va_list args_copy;
6724 va_copy (args_copy, args);
6725
6726 const char *str;
6727 int number;
6728 float fnumber;
6729
6730 while (*format)
6731 {
6732 switch (*format++)
6733 {
6734 case 's': // string
6735 str = va_arg (args_copy, const char *);
6736 break;
6737 case 'd': // int
6738 number = va_arg (args_copy, int);
6739 break;
6740 case 'f': // float
6741 fnumber = va_arg (args_copy, double);
6742 break;
6743 default:
6744 break;
6745 }
6746 }
6747 va_end (args_copy);
6748 va_end (args);
6749 }
6750
6751 int
6752 main ()
6753 {
6754
6755 // Check bool.
6756 _Bool success = false;
6757
6758 // Check restrict.
6759 if (test_restrict ("String literal") == 0)
6760 success = true;
6761 char *restrict newvar = "Another string";
6762
6763 // Check varargs.
6764 test_varargs ("s, d' f .", "string", 65, 34.234);
6765 test_varargs_macros ();
6766
6767 // Check flexible array members.
6768 struct incomplete_array *ia =
6769 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6770 ia->datasize = 10;
6771 for (int i = 0; i < ia->datasize; ++i)
6772 ia->data[i] = i * 1.234;
6773
6774 // Check named initializers.
6775 struct named_init ni = {
6776 .number = 34,
6777 .name = L"Test wide string",
6778 .average = 543.34343,
6779 };
6780
6781 ni.number = 58;
6782
6783 int dynamic_array[ni.number];
6784 dynamic_array[ni.number - 1] = 543;
6785
6786 // work around unused variable warnings
6787 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6788 || dynamic_array[ni.number - 1] != 543);
6789
6790 ;
6791 return 0;
6792 }
6793 _ACEOF
6794 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6795 do
6796 CC="$ac_save_CC $ac_arg"
6797 if ac_fn_c_try_compile "$LINENO"; then :
6798 ac_cv_prog_cc_c99=$ac_arg
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext
6801 test "x$ac_cv_prog_cc_c99" != "xno" && break
6802 done
6803 rm -f conftest.$ac_ext
6804 CC=$ac_save_CC
6805
6806 fi
6807 # AC_CACHE_VAL
6808 case "x$ac_cv_prog_cc_c99" in
6809 x)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6811 $as_echo "none needed" >&6; } ;;
6812 xno)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6814 $as_echo "unsupported" >&6; } ;;
6815 *)
6816 CC="$CC $ac_cv_prog_cc_c99"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6818 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6819 esac
6820 if test "x$ac_cv_prog_cc_c99" != xno; then :
6821 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6824 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6825 if ${ac_cv_prog_cc_c89+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 ac_cv_prog_cc_c89=no
6829 ac_save_CC=$CC
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 #include <stdarg.h>
6833 #include <stdio.h>
6834 #include <sys/types.h>
6835 #include <sys/stat.h>
6836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6837 struct buf { int x; };
6838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6839 static char *e (p, i)
6840 char **p;
6841 int i;
6842 {
6843 return p[i];
6844 }
6845 static char *f (char * (*g) (char **, int), char **p, ...)
6846 {
6847 char *s;
6848 va_list v;
6849 va_start (v,p);
6850 s = g (p, va_arg (v,int));
6851 va_end (v);
6852 return s;
6853 }
6854
6855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6856 function prototypes and stuff, but not '\xHH' hex character constants.
6857 These don't provoke an error unfortunately, instead are silently treated
6858 as 'x'. The following induces an error, until -std is added to get
6859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6860 array size at least. It's necessary to write '\x00'==0 to get something
6861 that's true only with -std. */
6862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6863
6864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6865 inside strings and character constants. */
6866 #define FOO(x) 'x'
6867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6868
6869 int test (int i, double x);
6870 struct s1 {int (*f) (int a);};
6871 struct s2 {int (*f) (double a);};
6872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6873 int argc;
6874 char **argv;
6875 int
6876 main ()
6877 {
6878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6885 do
6886 CC="$ac_save_CC $ac_arg"
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 ac_cv_prog_cc_c89=$ac_arg
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext
6891 test "x$ac_cv_prog_cc_c89" != "xno" && break
6892 done
6893 rm -f conftest.$ac_ext
6894 CC=$ac_save_CC
6895
6896 fi
6897 # AC_CACHE_VAL
6898 case "x$ac_cv_prog_cc_c89" in
6899 x)
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6901 $as_echo "none needed" >&6; } ;;
6902 xno)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6904 $as_echo "unsupported" >&6; } ;;
6905 *)
6906 CC="$CC $ac_cv_prog_cc_c89"
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6908 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6909 esac
6910 if test "x$ac_cv_prog_cc_c89" != xno; then :
6911 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6912 else
6913 ac_cv_prog_cc_stdc=no
6914 fi
6915
6916 fi
6917 ;;
6918 esac
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6920 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6921 if ${ac_cv_prog_cc_stdc+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 fi
6924
6925 case $ac_cv_prog_cc_stdc in #(
6926 no) :
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6928 $as_echo "unsupported" >&6; } ;; #(
6929 '') :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6931 $as_echo "none needed" >&6; } ;; #(
6932 *) :
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6934 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6935 esac
6936
6937
6938
6939 # Code from module alloca-opt:
6940 # Code from module allocator:
6941 # Code from module careadlinkat:
6942 # Code from module crypto/md5:
6943 # Code from module crypto/sha1:
6944 # Code from module crypto/sha256:
6945 # Code from module crypto/sha512:
6946 # Code from module dosname:
6947 # Code from module dtoastr:
6948 # Code from module dup2:
6949 # Code from module extensions:
6950
6951 # Code from module filemode:
6952 # Code from module getloadavg:
6953 # Code from module getopt-gnu:
6954 # Code from module getopt-posix:
6955 # Code from module gettext-h:
6956 # Code from module ignore-value:
6957 # Code from module include_next:
6958 # Code from module intprops:
6959 # Code from module inttypes-incomplete:
6960 # Code from module largefile:
6961
6962 # Code from module lstat:
6963 # Code from module mktime:
6964 # Code from module multiarch:
6965 # Code from module nocrash:
6966 # Code from module pthread_sigmask:
6967 # Code from module readlink:
6968 # Code from module signal:
6969 # Code from module sigprocmask:
6970 # Code from module snippet/_Noreturn:
6971 # Code from module snippet/arg-nonnull:
6972 # Code from module snippet/c++defs:
6973 # Code from module snippet/warn-on-use:
6974 # Code from module socklen:
6975 # Code from module ssize_t:
6976 # Code from module stat:
6977 # Code from module stdarg:
6978
6979 # Code from module stdbool:
6980 # Code from module stddef:
6981 # Code from module stdint:
6982 # Code from module stdio:
6983 # Code from module stdlib:
6984 # Code from module strftime:
6985 # Code from module strtoimax:
6986 # Code from module strtoll:
6987 # Code from module strtoull:
6988 # Code from module strtoumax:
6989 # Code from module symlink:
6990 # Code from module sys_stat:
6991 # Code from module time:
6992 # Code from module time_r:
6993 # Code from module u64:
6994 # Code from module unistd:
6995 # Code from module verify:
6996
6997
6998 # On Suns, sometimes $CPP names a directory.
6999 if test -n "$CPP" && test -d "$CPP"; then
7000 CPP=
7001 fi
7002
7003 ## If not using gcc, and on Solaris, and no CPP specified, see if
7004 ## using a Sun compiler, which needs -Xs to prevent whitespace.
7005 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
7006 test x"$CPP" = x; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
7008 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
7009 if ${emacs_cv_sunpro_c+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014
7015 int
7016 main ()
7017 {
7018 #ifndef __SUNPRO_C
7019 fail;
7020 #endif
7021
7022 ;
7023 return 0;
7024 }
7025 _ACEOF
7026 if ac_fn_c_try_link "$LINENO"; then :
7027 emacs_cv_sunpro_c=yes
7028 else
7029 emacs_cv_sunpro_c=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7033 fi
7034
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
7036 $as_echo "$emacs_cv_sunpro_c" >&6; }
7037
7038 if test x"$emacs_cv_sunpro_c" = xyes; then
7039 NON_GNU_CPP="$CC -E -Xs"
7040 fi
7041 fi
7042
7043 #### Some systems specify a CPP to use unless we are using GCC.
7044 #### Now that we know whether we are using GCC, we can decide whether
7045 #### to use that one.
7046 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
7047 then
7048 CPP="$NON_GNU_CPP"
7049 fi
7050
7051 #### Some systems specify a CC to use unless we are using GCC.
7052 #### Now that we know whether we are using GCC, we can decide whether
7053 #### to use that one.
7054 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
7055 test x$cc_specified != xyes
7056 then
7057 CC="$NON_GNU_CC"
7058 fi
7059
7060 if test x$GCC = xyes; then
7061 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
7062 else
7063 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
7064 fi
7065
7066 ### Use -Wdeclaration-after-statement if the compiler supports it
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
7068 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
7069 SAVE_CFLAGS="$CFLAGS"
7070 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7073
7074 int
7075 main ()
7076 {
7077
7078 ;
7079 return 0;
7080 }
7081 _ACEOF
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083 has_option=yes
7084 else
7085 has_option=no
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088 if test $has_option = yes; then
7089 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7092 $as_echo "$has_option" >&6; }
7093 CFLAGS="$SAVE_CFLAGS"
7094 unset has_option
7095 unset SAVE_CFLAGS
7096
7097 ### Use -Wold-style-definition if the compiler supports it
7098 # This can be removed when conversion to standard C is finished.
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
7100 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
7101 SAVE_CFLAGS="$CFLAGS"
7102 CFLAGS="$CFLAGS -Wold-style-definition"
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7105
7106 int
7107 main ()
7108 {
7109
7110 ;
7111 return 0;
7112 }
7113 _ACEOF
7114 if ac_fn_c_try_compile "$LINENO"; then :
7115 has_option=yes
7116 else
7117 has_option=no
7118 fi
7119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7120 if test $has_option = yes; then
7121 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
7122 fi
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7124 $as_echo "$has_option" >&6; }
7125 CFLAGS="$SAVE_CFLAGS"
7126 unset has_option
7127 unset SAVE_CFLAGS
7128
7129 ### Use -Wimplicit-function-declaration if the compiler supports it
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
7131 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
7132 SAVE_CFLAGS="$CFLAGS"
7133 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136
7137 int
7138 main ()
7139 {
7140
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"; then :
7146 has_option=yes
7147 else
7148 has_option=no
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 if test $has_option = yes; then
7152 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
7153 fi
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
7155 $as_echo "$has_option" >&6; }
7156 CFLAGS="$SAVE_CFLAGS"
7157 unset has_option
7158 unset SAVE_CFLAGS
7159
7160
7161
7162
7163 #### Some other nice autoconf tests.
7164
7165 ac_ext=c
7166 ac_cpp='$CPP $CPPFLAGS'
7167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7171 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7172 # On Suns, sometimes $CPP names a directory.
7173 if test -n "$CPP" && test -d "$CPP"; then
7174 CPP=
7175 fi
7176 if test -z "$CPP"; then
7177 if ${ac_cv_prog_CPP+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 # Double quotes because CPP needs to be expanded
7181 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7182 do
7183 ac_preproc_ok=false
7184 for ac_c_preproc_warn_flag in '' yes
7185 do
7186 # Use a header file that comes with gcc, so configuring glibc
7187 # with a fresh cross-compiler works.
7188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189 # <limits.h> exists even on freestanding compilers.
7190 # On the NeXT, cc -E runs the code through the compiler's parser,
7191 # not just through cpp. "Syntax error" is here to catch this case.
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194 #ifdef __STDC__
7195 # include <limits.h>
7196 #else
7197 # include <assert.h>
7198 #endif
7199 Syntax error
7200 _ACEOF
7201 if ac_fn_c_try_cpp "$LINENO"; then :
7202
7203 else
7204 # Broken: fails on valid input.
7205 continue
7206 fi
7207 rm -f conftest.err conftest.i conftest.$ac_ext
7208
7209 # OK, works on sane cases. Now check whether nonexistent headers
7210 # can be detected and how.
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #include <ac_nonexistent.h>
7214 _ACEOF
7215 if ac_fn_c_try_cpp "$LINENO"; then :
7216 # Broken: success on invalid input.
7217 continue
7218 else
7219 # Passes both tests.
7220 ac_preproc_ok=:
7221 break
7222 fi
7223 rm -f conftest.err conftest.i conftest.$ac_ext
7224
7225 done
7226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7227 rm -f conftest.i conftest.err conftest.$ac_ext
7228 if $ac_preproc_ok; then :
7229 break
7230 fi
7231
7232 done
7233 ac_cv_prog_CPP=$CPP
7234
7235 fi
7236 CPP=$ac_cv_prog_CPP
7237 else
7238 ac_cv_prog_CPP=$CPP
7239 fi
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7241 $as_echo "$CPP" >&6; }
7242 ac_preproc_ok=false
7243 for ac_c_preproc_warn_flag in '' yes
7244 do
7245 # Use a header file that comes with gcc, so configuring glibc
7246 # with a fresh cross-compiler works.
7247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7248 # <limits.h> exists even on freestanding compilers.
7249 # On the NeXT, cc -E runs the code through the compiler's parser,
7250 # not just through cpp. "Syntax error" is here to catch this case.
7251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h. */
7253 #ifdef __STDC__
7254 # include <limits.h>
7255 #else
7256 # include <assert.h>
7257 #endif
7258 Syntax error
7259 _ACEOF
7260 if ac_fn_c_try_cpp "$LINENO"; then :
7261
7262 else
7263 # Broken: fails on valid input.
7264 continue
7265 fi
7266 rm -f conftest.err conftest.i conftest.$ac_ext
7267
7268 # OK, works on sane cases. Now check whether nonexistent headers
7269 # can be detected and how.
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 #include <ac_nonexistent.h>
7273 _ACEOF
7274 if ac_fn_c_try_cpp "$LINENO"; then :
7275 # Broken: success on invalid input.
7276 continue
7277 else
7278 # Passes both tests.
7279 ac_preproc_ok=:
7280 break
7281 fi
7282 rm -f conftest.err conftest.i conftest.$ac_ext
7283
7284 done
7285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7286 rm -f conftest.i conftest.err conftest.$ac_ext
7287 if $ac_preproc_ok; then :
7288
7289 else
7290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7292 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7293 See \`config.log' for more details" "$LINENO" 5; }
7294 fi
7295
7296 ac_ext=c
7297 ac_cpp='$CPP $CPPFLAGS'
7298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301
7302
7303 if test "x$RANLIB" = x; then
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_RANLIB+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 if test -n "$RANLIB"; then
7313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326 done
7327 done
7328 IFS=$as_save_IFS
7329
7330 fi
7331 fi
7332 RANLIB=$ac_cv_prog_RANLIB
7333 if test -n "$RANLIB"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7335 $as_echo "$RANLIB" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7339 fi
7340
7341
7342 fi
7343 if test -z "$ac_cv_prog_RANLIB"; then
7344 ac_ct_RANLIB=$RANLIB
7345 # Extract the first word of "ranlib", so it can be a program name with args.
7346 set dummy ranlib; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 if test -n "$ac_ct_RANLIB"; then
7353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_prog_ac_ct_RANLIB="ranlib"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370 fi
7371 fi
7372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7373 if test -n "$ac_ct_RANLIB"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7375 $as_echo "$ac_ct_RANLIB" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381 if test "x$ac_ct_RANLIB" = x; then
7382 RANLIB=":"
7383 else
7384 case $cross_compiling:$ac_tool_warned in
7385 yes:)
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388 ac_tool_warned=yes ;;
7389 esac
7390 RANLIB=$ac_ct_RANLIB
7391 fi
7392 else
7393 RANLIB="$ac_cv_prog_RANLIB"
7394 fi
7395
7396 fi
7397
7398 ## Although we're running on an amd64 kernel, we're actually compiling for
7399 ## the x86 architecture. The user should probably have provided an
7400 ## explicit --build to `configure', but if everything else than the kernel
7401 ## is running in i386 mode, we can help them out.
7402 if test "$machine" = "amdx86-64"; then
7403 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
7404 if test "x$ac_cv_have_decl_i386" = xyes; then :
7405
7406 fi
7407
7408 if test "$ac_cv_have_decl_i386" = "yes"; then
7409 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
7410 machine=intel386
7411 machfile="m/${machine}.h"
7412 fi
7413 fi
7414
7415 # Extract the first word of "install-info", so it can be a program name with args.
7416 set dummy install-info; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_path_INSTALL_INFO+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 case $INSTALL_INFO in
7423 [\\/]* | ?:[\\/]*)
7424 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7425 ;;
7426 *)
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7437 fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442 ;;
7443 esac
7444 fi
7445 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7446 if test -n "$INSTALL_INFO"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7448 $as_echo "$INSTALL_INFO" >&6; }
7449 else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453
7454
7455 # Extract the first word of "install-info", so it can be a program name with args.
7456 set dummy install-info; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_path_INSTALL_INFO+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 case $INSTALL_INFO in
7463 [\\/]* | ?:[\\/]*)
7464 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7465 ;;
7466 *)
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in /usr/sbin
7469 do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 break 2
7477 fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482 ;;
7483 esac
7484 fi
7485 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7486 if test -n "$INSTALL_INFO"; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7488 $as_echo "$INSTALL_INFO" >&6; }
7489 else
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492 fi
7493
7494
7495 # Extract the first word of "install-info", so it can be a program name with args.
7496 set dummy install-info; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_path_INSTALL_INFO+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 case $INSTALL_INFO in
7503 [\\/]* | ?:[\\/]*)
7504 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7505 ;;
7506 *)
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in /sbin
7509 do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7517 fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7523 ;;
7524 esac
7525 fi
7526 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7527 if test -n "$INSTALL_INFO"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7529 $as_echo "$INSTALL_INFO" >&6; }
7530 else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 # Extract the first word of "gzip", so it can be a program name with args.
7537 set dummy gzip; ac_word=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if ${ac_cv_path_GZIP_PROG+:} false; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7543 case $GZIP_PROG in
7544 [\\/]* | ?:[\\/]*)
7545 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7546 ;;
7547 *)
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563 ;;
7564 esac
7565 fi
7566 GZIP_PROG=$ac_cv_path_GZIP_PROG
7567 if test -n "$GZIP_PROG"; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7569 $as_echo "$GZIP_PROG" >&6; }
7570 else
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575
7576
7577
7578 ## Need makeinfo >= 4.6 (?) to build the manuals.
7579 # Extract the first word of "makeinfo", so it can be a program name with args.
7580 set dummy makeinfo; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if ${ac_cv_path_MAKEINFO+:} false; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 case $MAKEINFO in
7587 [\\/]* | ?:[\\/]*)
7588 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7589 ;;
7590 *)
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7601 fi
7602 done
7603 done
7604 IFS=$as_save_IFS
7605
7606 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7607 ;;
7608 esac
7609 fi
7610 MAKEINFO=$ac_cv_path_MAKEINFO
7611 if test -n "$MAKEINFO"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7613 $as_echo "$MAKEINFO" >&6; }
7614 else
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7617 fi
7618
7619
7620 if test "$MAKEINFO" != "no" && \
7621 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
7622 MAKEINFO=no
7623 fi
7624
7625 ## Makeinfo is unusual. For a released Emacs, the manuals are
7626 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7627 ## therefore in the category of "special tools" not normally required, which
7628 ## configure does not have to check for (eg autoconf itself).
7629 ## In a Bazaar checkout on the other hand, the manuals are not included.
7630 ## So makeinfo is a requirement to build from Bazaar, and configure
7631 ## should test for it as it does for any other build requirement.
7632 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7633 ## with pre-built manuals, from a Bazaar checkout.
7634 HAVE_MAKEINFO=yes
7635
7636 if test "$MAKEINFO" = "no"; then
7637 MAKEINFO=makeinfo
7638 if test "x${with_makeinfo}" = "xno"; then
7639 HAVE_MAKEINFO=no
7640 elif test ! -e $srcdir/info/emacs; then
7641 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
7642 source tree does not seem to have pre-built manuals in the \`info' directory.
7643 Either install a suitable version of makeinfo, or re-run configure
7644 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7645 fi
7646 fi
7647
7648
7649
7650 if test x$GCC = xyes; then
7651 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7652 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7653 else
7654 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7655 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7656 fi
7657
7658
7659 late_LDFLAGS=$LDFLAGS
7660 if test x$GCC = xyes; then
7661 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7662 else
7663 LDFLAGS="$LDFLAGS -znocombreloc"
7664 fi
7665
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7667 $as_echo_n "checking for -znocombreloc... " >&6; }
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7670
7671 int
7672 main ()
7673 {
7674
7675 ;
7676 return 0;
7677 }
7678 _ACEOF
7679 if ac_fn_c_try_link "$LINENO"; then :
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7681 $as_echo "yes" >&6; }
7682 else
7683 LDFLAGS=$late_LDFLAGS
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext \
7688 conftest$ac_exeext conftest.$ac_ext
7689
7690
7691 # The value of CPP is a quoted variable reference, so we need to do this
7692 # to get its actual value...
7693 CPP=`eval "echo $CPP"`
7694
7695
7696 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7697 case "$opsys" in
7698 your-opsys-here) CANNOT_DUMP=yes ;;
7699 esac
7700
7701 test "$CANNOT_DUMP" = "yes" && \
7702
7703 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7704
7705
7706
7707
7708
7709 UNEXEC_OBJ=unexelf.o
7710 case "$opsys" in
7711 # MSDOS uses unexcoff.o
7712 # MSWindows uses unexw32.o
7713 aix4-2)
7714 UNEXEC_OBJ=unexaix.o
7715 ;;
7716 cygwin)
7717 UNEXEC_OBJ=unexcw.o
7718 ;;
7719 darwin)
7720 UNEXEC_OBJ=unexmacosx.o
7721 ;;
7722 hpux10-20 | hpux11)
7723 UNEXEC_OBJ=unexhp9k800.o
7724 ;;
7725 sol2-10)
7726 # Use the Solaris dldump() function, called from unexsol.c, to dump
7727 # emacs, instead of the generic ELF dump code found in unexelf.c.
7728 # The resulting binary has a complete symbol table, and is better
7729 # for debugging and other observability tools (debuggers, pstack, etc).
7730 #
7731 # If you encounter a problem using dldump(), please consider sending
7732 # a message to the OpenSolaris tools-linking mailing list:
7733 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7734 #
7735 # It is likely that dldump() works with older Solaris too, but this has
7736 # not been tested, so for now this change is for Solaris 10 or newer.
7737 UNEXEC_OBJ=unexsol.o
7738 ;;
7739 esac
7740
7741 LD_SWITCH_SYSTEM=
7742 case "$opsys" in
7743 freebsd)
7744 ## Let `ld' find image libs and similar things in /usr/local/lib.
7745 ## The system compiler, GCC, has apparently been modified to not
7746 ## look there, contrary to what a stock GCC would do.
7747 LD_SWITCH_SYSTEM=-L/usr/local/lib
7748 ;;
7749
7750 gnu-linux)
7751 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7752 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7753 ;;
7754
7755 netbsd)
7756 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7757 ;;
7758
7759 openbsd)
7760 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7761 ## otherwise Emacs dumps core on elf systems.
7762 LD_SWITCH_SYSTEM="-Z"
7763 ;;
7764 esac
7765
7766
7767 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7768
7769 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7770 ## which has not been defined yet. When this was handled with cpp,
7771 ## it was expanded to null when configure sourced the s/*.h file.
7772 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7773 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7774 ## (or somesuch), but because it is supposed to go at the _front_
7775 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7776 ## Compare with the gnu-linux case below, which added to the end
7777 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7778 ## LD_SWITCH_SYSTEM_TEMACS.
7779 case "$opsys" in
7780 netbsd|openbsd)
7781 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7782 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7783 esac
7784
7785
7786 C_SWITCH_MACHINE=
7787 if test "$machine" = "alpha"; then
7788 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7789 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
7790
7791 fi
7792
7793 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7794 ## With ELF, make sure that all common symbols get allocated to in the
7795 ## data section. Otherwise, the dump of temacs may miss variables in
7796 ## the shared library that have been initialized. For example, with
7797 ## GNU libc, __malloc_initialized would normally be resolved to the
7798 ## shared library's .bss section, which is fatal.
7799 if test "x$GCC" = "xyes"; then
7800 C_SWITCH_MACHINE="-fno-common"
7801 else
7802 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7803 fi
7804 else
7805 UNEXEC_OBJ=unexalpha.o
7806 fi
7807 fi
7808
7809
7810
7811
7812 C_SWITCH_SYSTEM=
7813 ## Some programs in src produce warnings saying certain subprograms
7814 ## are too complex and need a MAXMEM value greater than 2000 for
7815 ## additional optimization. --nils@exp-math.uni-essen.de
7816 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7817 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7818 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7819 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7820
7821
7822
7823 LIBS_SYSTEM=
7824 case "$opsys" in
7825 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7826 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7827
7828 freebsd) LIBS_SYSTEM="-lutil" ;;
7829
7830 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7831
7832 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7833
7834 ## Motif needs -lgen.
7835 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7836 esac
7837
7838
7839
7840 ### Make sure subsequent tests use flags consistent with the build flags.
7841
7842 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7843 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7844 else
7845 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7846 fi
7847
7848 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7849
7850 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
7851
7852
7853 # Check whether --enable-largefile was given.
7854 if test "${enable_largefile+set}" = set; then :
7855 enableval=$enable_largefile;
7856 fi
7857
7858 if test "$enable_largefile" != no; then
7859
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7861 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7862 if ${ac_cv_sys_largefile_CC+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 ac_cv_sys_largefile_CC=no
7866 if test "$GCC" != yes; then
7867 ac_save_CC=$CC
7868 while :; do
7869 # IRIX 6.2 and later do not support large files by default,
7870 # so use the C compiler's -n32 option if that helps.
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 #include <sys/types.h>
7874 /* Check that off_t can represent 2**63 - 1 correctly.
7875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7876 since some C++ compilers masquerading as C compilers
7877 incorrectly reject 9223372036854775807. */
7878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7880 && LARGE_OFF_T % 2147483647 == 1)
7881 ? 1 : -1];
7882 int
7883 main ()
7884 {
7885
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 if ac_fn_c_try_compile "$LINENO"; then :
7891 break
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext
7894 CC="$CC -n32"
7895 if ac_fn_c_try_compile "$LINENO"; then :
7896 ac_cv_sys_largefile_CC=' -n32'; break
7897 fi
7898 rm -f core conftest.err conftest.$ac_objext
7899 break
7900 done
7901 CC=$ac_save_CC
7902 rm -f conftest.$ac_ext
7903 fi
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7906 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7907 if test "$ac_cv_sys_largefile_CC" != no; then
7908 CC=$CC$ac_cv_sys_largefile_CC
7909 fi
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7912 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7913 if ${ac_cv_sys_file_offset_bits+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 while :; do
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7919 #include <sys/types.h>
7920 /* Check that off_t can represent 2**63 - 1 correctly.
7921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7922 since some C++ compilers masquerading as C compilers
7923 incorrectly reject 9223372036854775807. */
7924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7926 && LARGE_OFF_T % 2147483647 == 1)
7927 ? 1 : -1];
7928 int
7929 main ()
7930 {
7931
7932 ;
7933 return 0;
7934 }
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937 ac_cv_sys_file_offset_bits=no; break
7938 fi
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 #define _FILE_OFFSET_BITS 64
7943 #include <sys/types.h>
7944 /* Check that off_t can represent 2**63 - 1 correctly.
7945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7946 since some C++ compilers masquerading as C compilers
7947 incorrectly reject 9223372036854775807. */
7948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7950 && LARGE_OFF_T % 2147483647 == 1)
7951 ? 1 : -1];
7952 int
7953 main ()
7954 {
7955
7956 ;
7957 return 0;
7958 }
7959 _ACEOF
7960 if ac_fn_c_try_compile "$LINENO"; then :
7961 ac_cv_sys_file_offset_bits=64; break
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 ac_cv_sys_file_offset_bits=unknown
7965 break
7966 done
7967 fi
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7969 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7970 case $ac_cv_sys_file_offset_bits in #(
7971 no | unknown) ;;
7972 *)
7973 cat >>confdefs.h <<_ACEOF
7974 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7975 _ACEOF
7976 ;;
7977 esac
7978 rm -rf conftest*
7979 if test $ac_cv_sys_file_offset_bits = unknown; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7981 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7982 if ${ac_cv_sys_large_files+:} false; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 while :; do
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 #include <sys/types.h>
7989 /* Check that off_t can represent 2**63 - 1 correctly.
7990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7991 since some C++ compilers masquerading as C compilers
7992 incorrectly reject 9223372036854775807. */
7993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7995 && LARGE_OFF_T % 2147483647 == 1)
7996 ? 1 : -1];
7997 int
7998 main ()
7999 {
8000
8001 ;
8002 return 0;
8003 }
8004 _ACEOF
8005 if ac_fn_c_try_compile "$LINENO"; then :
8006 ac_cv_sys_large_files=no; break
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 #define _LARGE_FILES 1
8012 #include <sys/types.h>
8013 /* Check that off_t can represent 2**63 - 1 correctly.
8014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8015 since some C++ compilers masquerading as C compilers
8016 incorrectly reject 9223372036854775807. */
8017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8019 && LARGE_OFF_T % 2147483647 == 1)
8020 ? 1 : -1];
8021 int
8022 main ()
8023 {
8024
8025 ;
8026 return 0;
8027 }
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 ac_cv_sys_large_files=1; break
8031 fi
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 ac_cv_sys_large_files=unknown
8034 break
8035 done
8036 fi
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8038 $as_echo "$ac_cv_sys_large_files" >&6; }
8039 case $ac_cv_sys_large_files in #(
8040 no | unknown) ;;
8041 *)
8042 cat >>confdefs.h <<_ACEOF
8043 #define _LARGE_FILES $ac_cv_sys_large_files
8044 _ACEOF
8045 ;;
8046 esac
8047 rm -rf conftest*
8048 fi
8049
8050
8051 fi
8052
8053
8054
8055 LIB_MATH=-lm
8056 LIB_STANDARD=
8057 START_FILES=
8058
8059 case $opsys in
8060 cygwin )
8061 LIB_MATH=
8062 START_FILES='pre-crt0.o'
8063 ;;
8064 darwin )
8065 ## Adding -lm confuses the dynamic linker, so omit it.
8066 LIB_MATH=
8067 START_FILES='pre-crt0.o'
8068 ;;
8069 freebsd )
8070 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8071 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8072 ;;
8073 gnu-linux | gnu-kfreebsd )
8074 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8075 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8076 ;;
8077 hpux10-20 | hpux11 )
8078 LIB_STANDARD=-lc
8079 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8080 ;;
8081 netbsd | openbsd )
8082 if test -f $CRT_DIR/crti.o; then
8083 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8084 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8085 else
8086 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8087 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8088 fi
8089 ;;
8090 esac
8091
8092
8093
8094
8095 crt_files=
8096
8097 for file in x $LIB_STANDARD $START_FILES; do
8098 case "$file" in
8099 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8100 esac
8101 done
8102
8103 if test "x$crt_files" != x; then
8104
8105 ## If user specified a crt-dir, use that unconditionally.
8106 crt_gcc=no
8107
8108 if test "X$CRT_DIR" = "X"; then
8109
8110 CRT_DIR=/usr/lib # default
8111
8112 case "$canonical" in
8113 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8114 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8115 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8116 ## For anything else (eg /usr/lib32), it is up the user to specify
8117 ## the location (bug#5655).
8118 ## Test for crtn.o, not just the directory, because sometimes the
8119 ## directory exists but does not have the relevant files (bug#1287).
8120 ## FIXME better to test for binary compatibility somehow.
8121 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8122 ;;
8123
8124 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8125 esac
8126
8127 case "$opsys" in
8128 hpux10-20) CRT_DIR=/lib ;;
8129 esac
8130
8131 test "x${GCC}" = xyes && crt_gcc=yes
8132
8133 fi # CRT_DIR = ""
8134
8135 crt_missing=
8136
8137 for file in $crt_files; do
8138
8139 ## If we're using gcc, try to determine it automatically by asking
8140 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8141 ## system-dependent default from above.]
8142 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8143
8144 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8145 case "$crt_file" in
8146 */*)
8147 CRT_DIR=`$as_dirname -- "$crt_file" ||
8148 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8149 X"$crt_file" : 'X\(//\)[^/]' \| \
8150 X"$crt_file" : 'X\(//\)$' \| \
8151 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8152 $as_echo X"$crt_file" |
8153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8154 s//\1/
8155 q
8156 }
8157 /^X\(\/\/\)[^/].*/{
8158 s//\1/
8159 q
8160 }
8161 /^X\(\/\/\)$/{
8162 s//\1/
8163 q
8164 }
8165 /^X\(\/\).*/{
8166 s//\1/
8167 q
8168 }
8169 s/.*/./; q'`
8170 ;;
8171 esac
8172 fi
8173
8174 crt_gcc=no
8175
8176 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8177 done # $crt_files
8178
8179 test "x$crt_missing" = x || \
8180 as_fn_error $? "Required file(s) not found:$crt_missing
8181 Try using the --with-crt-dir option." "$LINENO" 5
8182
8183 fi # crt_files != ""
8184
8185
8186
8187
8188
8189
8190
8191 if test "${with_sound}" != "no"; then
8192 # Sound support for GNU/Linux and the free BSDs.
8193 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8194 do :
8195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8196 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8197 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8198 cat >>confdefs.h <<_ACEOF
8199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8200 _ACEOF
8201 have_sound_header=yes
8202 fi
8203
8204 done
8205
8206 # Emulation library used on NetBSD.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8208 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8209 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-lossaudio $LIBS"
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 char _oss_ioctl ();
8224 int
8225 main ()
8226 {
8227 return _oss_ioctl ();
8228 ;
8229 return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 ac_cv_lib_ossaudio__oss_ioctl=yes
8234 else
8235 ac_cv_lib_ossaudio__oss_ioctl=no
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 LIBS=$ac_check_lib_save_LIBS
8240 fi
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8242 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8243 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
8244 LIBSOUND=-lossaudio
8245 else
8246 LIBSOUND=
8247 fi
8248
8249
8250
8251 ALSA_REQUIRED=1.0.0
8252 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8253
8254 succeeded=no
8255
8256 # Extract the first word of "pkg-config", so it can be a program name with args.
8257 set dummy pkg-config; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 case $PKG_CONFIG in
8264 [\\/]* | ?:[\\/]*)
8265 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8266 ;;
8267 *)
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271 IFS=$as_save_IFS
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277 break 2
8278 fi
8279 done
8280 done
8281 IFS=$as_save_IFS
8282
8283 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8284 ;;
8285 esac
8286 fi
8287 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8288 if test -n "$PKG_CONFIG"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8290 $as_echo "$PKG_CONFIG" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295
8296
8297
8298 if test "$PKG_CONFIG" = "no" ; then
8299 HAVE_ALSA=no
8300 else
8301 PKG_CONFIG_MIN_VERSION=0.9.0
8302 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8304 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8305
8306 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8308 $as_echo "yes" >&6; }
8309 succeeded=yes
8310
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
8312 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
8313 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
8315 $as_echo "$ALSA_CFLAGS" >&6; }
8316
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
8318 $as_echo_n "checking ALSA_LIBS... " >&6; }
8319 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
8321 $as_echo "$ALSA_LIBS" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 ALSA_CFLAGS=""
8326 ALSA_LIBS=""
8327 ## If we have a custom action on failure, don't print errors, but
8328 ## do set a variable so people can do so.
8329 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
8330
8331 fi
8332
8333
8334
8335 else
8336 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8337 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8338 fi
8339 fi
8340
8341 if test $succeeded = yes; then
8342 HAVE_ALSA=yes
8343 else
8344 HAVE_ALSA=no
8345 fi
8346
8347 if test $HAVE_ALSA = yes; then
8348 SAVE_CFLAGS="$CFLAGS"
8349 SAVE_LDFLAGS="$LDFLAGS"
8350 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8351 LDFLAGS="$ALSA_LIBS $LDFLAGS"
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 #include <asoundlib.h>
8355 int
8356 main ()
8357 {
8358 snd_lib_error_set_handler (0);
8359 ;
8360 return 0;
8361 }
8362 _ACEOF
8363 if ac_fn_c_try_compile "$LINENO"; then :
8364 emacs_alsa_normal=yes
8365 else
8366 emacs_alsa_normal=no
8367 fi
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369 if test "$emacs_alsa_normal" != yes; then
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8372 #include <alsa/asoundlib.h>
8373 int
8374 main ()
8375 {
8376 snd_lib_error_set_handler (0);
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_compile "$LINENO"; then :
8382 emacs_alsa_subdir=yes
8383 else
8384 emacs_alsa_subdir=no
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 if test "$emacs_alsa_subdir" != yes; then
8388 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8389 fi
8390 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8391 fi
8392
8393 CFLAGS="$SAVE_CFLAGS"
8394 LDFLAGS="$SAVE_LDFLAGS"
8395 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8396 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8397
8398 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8399
8400 fi
8401
8402 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8403 case "$opsys" in
8404 gnu-linux|freebsd|netbsd)
8405
8406 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8407
8408 ;;
8409 esac
8410 fi
8411
8412
8413 fi
8414
8415 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
8416 linux/version.h sys/systeminfo.h \
8417 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
8418 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
8419 sys/utsname.h pwd.h utmp.h dirent.h util.h
8420 do :
8421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8422 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8424 cat >>confdefs.h <<_ACEOF
8425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8426 _ACEOF
8427
8428 fi
8429
8430 done
8431
8432
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8434 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <sys/personality.h>
8438 int
8439 main ()
8440 {
8441 personality (PER_LINUX32)
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 if ac_fn_c_try_compile "$LINENO"; then :
8447 emacs_cv_personality_linux32=yes
8448 else
8449 emacs_cv_personality_linux32=no
8450 fi
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8453 $as_echo "$emacs_cv_personality_linux32" >&6; }
8454
8455 if test $emacs_cv_personality_linux32 = yes; then
8456
8457 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8458
8459 fi
8460
8461 for ac_header in term.h
8462 do :
8463 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8464 if test "x$ac_cv_header_term_h" = xyes; then :
8465 cat >>confdefs.h <<_ACEOF
8466 #define HAVE_TERM_H 1
8467 _ACEOF
8468
8469 fi
8470
8471 done
8472
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8474 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8475 if ${ac_cv_header_time+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 #include <sys/types.h>
8481 #include <sys/time.h>
8482 #include <time.h>
8483
8484 int
8485 main ()
8486 {
8487 if ((struct tm *) 0)
8488 return 0;
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_compile "$LINENO"; then :
8494 ac_cv_header_time=yes
8495 else
8496 ac_cv_header_time=no
8497 fi
8498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499 fi
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8501 $as_echo "$ac_cv_header_time" >&6; }
8502 if test $ac_cv_header_time = yes; then
8503
8504 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8505
8506 fi
8507
8508 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8509 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
8510 ac_have_decl=1
8511 else
8512 ac_have_decl=0
8513 fi
8514
8515 cat >>confdefs.h <<_ACEOF
8516 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8517 _ACEOF
8518
8519 if test $ac_cv_have_decl_sys_siglist != yes; then
8520 # For Tru64, at least:
8521 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8522 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
8523 ac_have_decl=1
8524 else
8525 ac_have_decl=0
8526 fi
8527
8528 cat >>confdefs.h <<_ACEOF
8529 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8530 _ACEOF
8531
8532 if test $ac_cv_have_decl___sys_siglist = yes; then
8533
8534 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8535
8536 fi
8537 fi
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8539 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8540 if ${ac_cv_header_sys_wait_h+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <sys/types.h>
8546 #include <sys/wait.h>
8547 #ifndef WEXITSTATUS
8548 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8549 #endif
8550 #ifndef WIFEXITED
8551 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8552 #endif
8553
8554 int
8555 main ()
8556 {
8557 int s;
8558 wait (&s);
8559 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_compile "$LINENO"; then :
8565 ac_cv_header_sys_wait_h=yes
8566 else
8567 ac_cv_header_sys_wait_h=no
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 fi
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8572 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8573 if test $ac_cv_header_sys_wait_h = yes; then
8574
8575 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8576
8577 fi
8578
8579
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8581 $as_echo_n "checking for struct utimbuf... " >&6; }
8582 if ${emacs_cv_struct_utimbuf+:} false; then :
8583 $as_echo_n "(cached) " >&6
8584 else
8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8587 #ifdef TIME_WITH_SYS_TIME
8588 #include <sys/time.h>
8589 #include <time.h>
8590 #else
8591 #ifdef HAVE_SYS_TIME_H
8592 #include <sys/time.h>
8593 #else
8594 #include <time.h>
8595 #endif
8596 #endif
8597 #ifdef HAVE_UTIME_H
8598 #include <utime.h>
8599 #endif
8600 int
8601 main ()
8602 {
8603 static struct utimbuf x; x.actime = x.modtime;
8604 ;
8605 return 0;
8606 }
8607 _ACEOF
8608 if ac_fn_c_try_compile "$LINENO"; then :
8609 emacs_cv_struct_utimbuf=yes
8610 else
8611 emacs_cv_struct_utimbuf=no
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8616 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8617 if test $emacs_cv_struct_utimbuf = yes; then
8618
8619 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8620
8621 fi
8622
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8624 $as_echo_n "checking for speed_t... " >&6; }
8625 if ${emacs_cv_speed_t+:} false; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8630 #include <termios.h>
8631 int
8632 main ()
8633 {
8634 speed_t x = 1;
8635 ;
8636 return 0;
8637 }
8638 _ACEOF
8639 if ac_fn_c_try_compile "$LINENO"; then :
8640 emacs_cv_speed_t=yes
8641 else
8642 emacs_cv_speed_t=no
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8647 $as_echo "$emacs_cv_speed_t" >&6; }
8648 if test $emacs_cv_speed_t = yes; then
8649
8650 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8651
8652 fi
8653
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8655 $as_echo_n "checking for struct timeval... " >&6; }
8656 if ${emacs_cv_struct_timeval+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 #ifdef TIME_WITH_SYS_TIME
8662 #include <sys/time.h>
8663 #include <time.h>
8664 #else
8665 #ifdef HAVE_SYS_TIME_H
8666 #include <sys/time.h>
8667 #else
8668 #include <time.h>
8669 #endif
8670 #endif
8671 int
8672 main ()
8673 {
8674 static struct timeval x; x.tv_sec = x.tv_usec;
8675 ;
8676 return 0;
8677 }
8678 _ACEOF
8679 if ac_fn_c_try_compile "$LINENO"; then :
8680 emacs_cv_struct_timeval=yes
8681 else
8682 emacs_cv_struct_timeval=no
8683 fi
8684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8687 $as_echo "$emacs_cv_struct_timeval" >&6; }
8688 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8689 if test $emacs_cv_struct_timeval = yes; then
8690
8691 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8692
8693 fi
8694
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8696 $as_echo_n "checking for struct exception... " >&6; }
8697 if ${emacs_cv_struct_exception+:} false; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h. */
8702 #include <math.h>
8703 int
8704 main ()
8705 {
8706 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8707 ;
8708 return 0;
8709 }
8710 _ACEOF
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712 emacs_cv_struct_exception=yes
8713 else
8714 emacs_cv_struct_exception=no
8715 fi
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8719 $as_echo "$emacs_cv_struct_exception" >&6; }
8720 HAVE_EXCEPTION=$emacs_cv_struct_exception
8721 if test $emacs_cv_struct_exception != yes; then
8722
8723 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8724
8725 fi
8726
8727 for ac_header in sys/socket.h
8728 do :
8729 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
8730 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
8731 cat >>confdefs.h <<_ACEOF
8732 #define HAVE_SYS_SOCKET_H 1
8733 _ACEOF
8734
8735 fi
8736
8737 done
8738
8739 for ac_header in net/if.h
8740 do :
8741 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8742 #if HAVE_SYS_SOCKET_H
8743 #include <sys/socket.h>
8744 #endif
8745 "
8746 if test "x$ac_cv_header_net_if_h" = xyes; then :
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_NET_IF_H 1
8749 _ACEOF
8750
8751 fi
8752
8753 done
8754
8755 for ac_header in ifaddrs.h
8756 do :
8757 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8758 #if HAVE_SYS_SOCKET_H
8759 #include <sys/socket.h>
8760 #endif
8761 "
8762 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_IFADDRS_H 1
8765 _ACEOF
8766
8767 fi
8768
8769 done
8770
8771 for ac_header in net/if_dl.h
8772 do :
8773 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8774 #if HAVE_SYS_SOCKET_H
8775 #include <sys/socket.h>
8776 #endif
8777 "
8778 if test "x$ac_cv_header_net_if_dl_h" = xyes; then :
8779 cat >>confdefs.h <<_ACEOF
8780 #define HAVE_NET_IF_DL_H 1
8781 _ACEOF
8782
8783 fi
8784
8785 done
8786
8787 for ac_func in getifaddrs freeifaddrs
8788 do :
8789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8792 cat >>confdefs.h <<_ACEOF
8793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8794 _ACEOF
8795
8796 fi
8797 done
8798
8799
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8801 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8802 if ${ac_cv_struct_tm+:} false; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 #include <sys/types.h>
8808 #include <time.h>
8809
8810 int
8811 main ()
8812 {
8813 struct tm tm;
8814 int *p = &tm.tm_sec;
8815 return !p;
8816 ;
8817 return 0;
8818 }
8819 _ACEOF
8820 if ac_fn_c_try_compile "$LINENO"; then :
8821 ac_cv_struct_tm=time.h
8822 else
8823 ac_cv_struct_tm=sys/time.h
8824 fi
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8828 $as_echo "$ac_cv_struct_tm" >&6; }
8829 if test $ac_cv_struct_tm = sys/time.h; then
8830
8831 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8832
8833 fi
8834
8835 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8836 #include <$ac_cv_struct_tm>
8837
8838 "
8839 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8840
8841 cat >>confdefs.h <<_ACEOF
8842 #define HAVE_STRUCT_TM_TM_ZONE 1
8843 _ACEOF
8844
8845
8846 fi
8847
8848 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8849
8850 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8851
8852 else
8853 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8854 "
8855 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8856 ac_have_decl=1
8857 else
8858 ac_have_decl=0
8859 fi
8860
8861 cat >>confdefs.h <<_ACEOF
8862 #define HAVE_DECL_TZNAME $ac_have_decl
8863 _ACEOF
8864
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8866 $as_echo_n "checking for tzname... " >&6; }
8867 if ${ac_cv_var_tzname+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 #include <time.h>
8873 #if !HAVE_DECL_TZNAME
8874 extern char *tzname[];
8875 #endif
8876
8877 int
8878 main ()
8879 {
8880 return tzname[0][0];
8881 ;
8882 return 0;
8883 }
8884 _ACEOF
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 ac_cv_var_tzname=yes
8887 else
8888 ac_cv_var_tzname=no
8889 fi
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8894 $as_echo "$ac_cv_var_tzname" >&6; }
8895 if test $ac_cv_var_tzname = yes; then
8896
8897 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8898
8899 fi
8900 fi
8901
8902 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8903 "
8904 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
8905
8906 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8907
8908 fi
8909
8910 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8911 #if HAVE_SYS_SOCKET_H
8912 #include <sys/socket.h>
8913 #endif
8914 #if HAVE_NET_IF_H
8915 #include <net/if.h>
8916 #endif
8917 "
8918 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
8919
8920 cat >>confdefs.h <<_ACEOF
8921 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8922 _ACEOF
8923
8924
8925 fi
8926 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8927 #if HAVE_SYS_SOCKET_H
8928 #include <sys/socket.h>
8929 #endif
8930 #if HAVE_NET_IF_H
8931 #include <net/if.h>
8932 #endif
8933 "
8934 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
8935
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8938 _ACEOF
8939
8940
8941 fi
8942 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8943 #if HAVE_SYS_SOCKET_H
8944 #include <sys/socket.h>
8945 #endif
8946 #if HAVE_NET_IF_H
8947 #include <net/if.h>
8948 #endif
8949 "
8950 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
8951
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8954 _ACEOF
8955
8956
8957 fi
8958 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8959 #if HAVE_SYS_SOCKET_H
8960 #include <sys/socket.h>
8961 #endif
8962 #if HAVE_NET_IF_H
8963 #include <net/if.h>
8964 #endif
8965 "
8966 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
8967
8968 cat >>confdefs.h <<_ACEOF
8969 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8970 _ACEOF
8971
8972
8973 fi
8974 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8975 #if HAVE_SYS_SOCKET_H
8976 #include <sys/socket.h>
8977 #endif
8978 #if HAVE_NET_IF_H
8979 #include <net/if.h>
8980 #endif
8981 "
8982 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
8983
8984 cat >>confdefs.h <<_ACEOF
8985 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8986 _ACEOF
8987
8988
8989 fi
8990 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
8991 #if HAVE_SYS_SOCKET_H
8992 #include <sys/socket.h>
8993 #endif
8994 #if HAVE_NET_IF_H
8995 #include <net/if.h>
8996 #endif
8997 "
8998 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = xyes; then :
8999
9000 cat >>confdefs.h <<_ACEOF
9001 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9002 _ACEOF
9003
9004
9005 fi
9006
9007
9008
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9010 $as_echo_n "checking for function prototypes... " >&6; }
9011 if test "$ac_cv_prog_cc_c89" != no; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9013 $as_echo "yes" >&6; }
9014
9015 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9016
9017
9018 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9019
9020 else
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9023 fi
9024
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9026 $as_echo_n "checking for working volatile... " >&6; }
9027 if ${ac_cv_c_volatile+:} false; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032
9033 int
9034 main ()
9035 {
9036
9037 volatile int x;
9038 int * volatile y = (int *) 0;
9039 return !x && !y;
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_compile "$LINENO"; then :
9045 ac_cv_c_volatile=yes
9046 else
9047 ac_cv_c_volatile=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050 fi
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9052 $as_echo "$ac_cv_c_volatile" >&6; }
9053 if test $ac_cv_c_volatile = no; then
9054
9055 $as_echo "#define volatile /**/" >>confdefs.h
9056
9057 fi
9058
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9060 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9061 if ${ac_cv_c_const+:} false; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9066
9067 int
9068 main ()
9069 {
9070 /* FIXME: Include the comments suggested by Paul. */
9071 #ifndef __cplusplus
9072 /* Ultrix mips cc rejects this. */
9073 typedef int charset[2];
9074 const charset cs;
9075 /* SunOS 4.1.1 cc rejects this. */
9076 char const *const *pcpcc;
9077 char **ppc;
9078 /* NEC SVR4.0.2 mips cc rejects this. */
9079 struct point {int x, y;};
9080 static struct point const zero = {0,0};
9081 /* AIX XL C 1.02.0.0 rejects this.
9082 It does not let you subtract one const X* pointer from another in
9083 an arm of an if-expression whose if-part is not a constant
9084 expression */
9085 const char *g = "string";
9086 pcpcc = &g + (g ? g-g : 0);
9087 /* HPUX 7.0 cc rejects these. */
9088 ++pcpcc;
9089 ppc = (char**) pcpcc;
9090 pcpcc = (char const *const *) ppc;
9091 { /* SCO 3.2v4 cc rejects this. */
9092 char *t;
9093 char const *s = 0 ? (char *) 0 : (char const *) 0;
9094
9095 *t++ = 0;
9096 if (s) return 0;
9097 }
9098 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9099 int x[] = {25, 17};
9100 const int *foo = &x[0];
9101 ++foo;
9102 }
9103 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9104 typedef const int *iptr;
9105 iptr p = 0;
9106 ++p;
9107 }
9108 { /* AIX XL C 1.02.0.0 rejects this saying
9109 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9110 struct s { int j; const int *ap[3]; };
9111 struct s *b; b->j = 5;
9112 }
9113 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9114 const int foo = 10;
9115 if (!foo) return 0;
9116 }
9117 return !cs[0] && !zero.x;
9118 #endif
9119
9120 ;
9121 return 0;
9122 }
9123 _ACEOF
9124 if ac_fn_c_try_compile "$LINENO"; then :
9125 ac_cv_c_const=yes
9126 else
9127 ac_cv_c_const=no
9128 fi
9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 fi
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9132 $as_echo "$ac_cv_c_const" >&6; }
9133 if test $ac_cv_c_const = no; then
9134
9135 $as_echo "#define const /**/" >>confdefs.h
9136
9137 fi
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9140 $as_echo_n "checking for void * support... " >&6; }
9141 if ${emacs_cv_void_star+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146
9147 int
9148 main ()
9149 {
9150 void * foo;
9151 ;
9152 return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_compile "$LINENO"; then :
9156 emacs_cv_void_star=yes
9157 else
9158 emacs_cv_void_star=no
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9163 $as_echo "$emacs_cv_void_star" >&6; }
9164 if test $emacs_cv_void_star = yes; then
9165 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9166
9167 else
9168 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9169
9170 fi
9171
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9173 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9174 if ${ac_cv_c_bigendian+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 ac_cv_c_bigendian=unknown
9178 # See if we're dealing with a universal compiler.
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181 #ifndef __APPLE_CC__
9182 not a universal capable compiler
9183 #endif
9184 typedef int dummy;
9185
9186 _ACEOF
9187 if ac_fn_c_try_compile "$LINENO"; then :
9188
9189 # Check for potential -arch flags. It is not universal unless
9190 # there are at least two -arch flags with different values.
9191 ac_arch=
9192 ac_prev=
9193 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9194 if test -n "$ac_prev"; then
9195 case $ac_word in
9196 i?86 | x86_64 | ppc | ppc64)
9197 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9198 ac_arch=$ac_word
9199 else
9200 ac_cv_c_bigendian=universal
9201 break
9202 fi
9203 ;;
9204 esac
9205 ac_prev=
9206 elif test "x$ac_word" = "x-arch"; then
9207 ac_prev=arch
9208 fi
9209 done
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212 if test $ac_cv_c_bigendian = unknown; then
9213 # See if sys/param.h defines the BYTE_ORDER macro.
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 #include <sys/types.h>
9217 #include <sys/param.h>
9218
9219 int
9220 main ()
9221 {
9222 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9223 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9224 && LITTLE_ENDIAN)
9225 bogus endian macros
9226 #endif
9227
9228 ;
9229 return 0;
9230 }
9231 _ACEOF
9232 if ac_fn_c_try_compile "$LINENO"; then :
9233 # It does; now see whether it defined to BIG_ENDIAN or not.
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236 #include <sys/types.h>
9237 #include <sys/param.h>
9238
9239 int
9240 main ()
9241 {
9242 #if BYTE_ORDER != BIG_ENDIAN
9243 not big endian
9244 #endif
9245
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 if ac_fn_c_try_compile "$LINENO"; then :
9251 ac_cv_c_bigendian=yes
9252 else
9253 ac_cv_c_bigendian=no
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 fi
9259 if test $ac_cv_c_bigendian = unknown; then
9260 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 #include <limits.h>
9264
9265 int
9266 main ()
9267 {
9268 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9269 bogus endian macros
9270 #endif
9271
9272 ;
9273 return 0;
9274 }
9275 _ACEOF
9276 if ac_fn_c_try_compile "$LINENO"; then :
9277 # It does; now see whether it defined to _BIG_ENDIAN or not.
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9280 #include <limits.h>
9281
9282 int
9283 main ()
9284 {
9285 #ifndef _BIG_ENDIAN
9286 not big endian
9287 #endif
9288
9289 ;
9290 return 0;
9291 }
9292 _ACEOF
9293 if ac_fn_c_try_compile "$LINENO"; then :
9294 ac_cv_c_bigendian=yes
9295 else
9296 ac_cv_c_bigendian=no
9297 fi
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 fi
9300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9301 fi
9302 if test $ac_cv_c_bigendian = unknown; then
9303 # Compile a test program.
9304 if test "$cross_compiling" = yes; then :
9305 # Try to guess by grepping values from an object file.
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9308 short int ascii_mm[] =
9309 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9310 short int ascii_ii[] =
9311 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9312 int use_ascii (int i) {
9313 return ascii_mm[i] + ascii_ii[i];
9314 }
9315 short int ebcdic_ii[] =
9316 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9317 short int ebcdic_mm[] =
9318 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9319 int use_ebcdic (int i) {
9320 return ebcdic_mm[i] + ebcdic_ii[i];
9321 }
9322 extern int foo;
9323
9324 int
9325 main ()
9326 {
9327 return use_ascii (foo) == use_ebcdic (foo);
9328 ;
9329 return 0;
9330 }
9331 _ACEOF
9332 if ac_fn_c_try_compile "$LINENO"; then :
9333 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9334 ac_cv_c_bigendian=yes
9335 fi
9336 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9337 if test "$ac_cv_c_bigendian" = unknown; then
9338 ac_cv_c_bigendian=no
9339 else
9340 # finding both strings is unlikely to happen, but who knows?
9341 ac_cv_c_bigendian=unknown
9342 fi
9343 fi
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346 else
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 $ac_includes_default
9350 int
9351 main ()
9352 {
9353
9354 /* Are we little or big endian? From Harbison&Steele. */
9355 union
9356 {
9357 long int l;
9358 char c[sizeof (long int)];
9359 } u;
9360 u.l = 1;
9361 return u.c[sizeof (long int) - 1] == 1;
9362
9363 ;
9364 return 0;
9365 }
9366 _ACEOF
9367 if ac_fn_c_try_run "$LINENO"; then :
9368 ac_cv_c_bigendian=no
9369 else
9370 ac_cv_c_bigendian=yes
9371 fi
9372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9373 conftest.$ac_objext conftest.beam conftest.$ac_ext
9374 fi
9375
9376 fi
9377 fi
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9379 $as_echo "$ac_cv_c_bigendian" >&6; }
9380 case $ac_cv_c_bigendian in #(
9381 yes)
9382 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9383 ;; #(
9384 no)
9385 ;; #(
9386 universal)
9387
9388 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9389
9390 ;; #(
9391 *)
9392 as_fn_error $? "unknown endianness
9393 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9394 esac
9395
9396
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
9398 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
9399 if ${emacs_cv_attribute_aligned+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9404 char __attribute__ ((__aligned__ (1 << 3))) c;
9405 int
9406 main ()
9407 {
9408
9409 ;
9410 return 0;
9411 }
9412 _ACEOF
9413 if ac_fn_c_try_compile "$LINENO"; then :
9414 emacs_cv_attribute_aligned=yes
9415 else
9416 emacs_cv_attribute_aligned=no
9417 fi
9418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 fi
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
9421 $as_echo "$emacs_cv_attribute_aligned" >&6; }
9422 if test $emacs_cv_attribute_aligned = yes; then
9423
9424 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
9425
9426 fi
9427
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9429 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9430 set x ${MAKE-make}
9431 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9432 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 cat >conftest.make <<\_ACEOF
9436 SHELL = /bin/sh
9437 all:
9438 @echo '@@@%%%=$(MAKE)=@@@%%%'
9439 _ACEOF
9440 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9441 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9442 *@@@%%%=?*=@@@%%%*)
9443 eval ac_cv_prog_make_${ac_make}_set=yes;;
9444 *)
9445 eval ac_cv_prog_make_${ac_make}_set=no;;
9446 esac
9447 rm -f conftest.make
9448 fi
9449 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9451 $as_echo "yes" >&6; }
9452 SET_MAKE=
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455 $as_echo "no" >&6; }
9456 SET_MAKE="MAKE=${MAKE-make}"
9457 fi
9458
9459
9460 DEPFLAGS=
9461 MKDEPDIR=":"
9462 deps_frag=deps.mk
9463 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9465 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9466 HAVE_GNU_MAKE=no
9467 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9468 if test "x$testval" != x; then
9469 HAVE_GNU_MAKE=yes
9470 else
9471 ac_enable_autodepend=no
9472 fi
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9474 $as_echo "$HAVE_GNU_MAKE" >&6; }
9475 if test $HAVE_GNU_MAKE = yes; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9477 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9478 SAVE_CFLAGS="$CFLAGS"
9479 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482
9483 int
9484 main ()
9485 {
9486
9487 ;
9488 return 0;
9489 }
9490 _ACEOF
9491 if ac_fn_c_try_compile "$LINENO"; then :
9492
9493 else
9494 ac_enable_autodepend=no
9495 fi
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497 CFLAGS="$SAVE_CFLAGS"
9498 test -f deps.d || ac_enable_autodepend=no
9499 rm -rf deps.d
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9501 $as_echo "$ac_enable_autodepend" >&6; }
9502 fi
9503 if test $ac_enable_autodepend = yes; then
9504 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9505 ## In parallel builds, another make might create depdir between
9506 ## the first test and mkdir, so stick another test on the end.
9507 ## Or use install-sh -d? mkdir -p is not portable.
9508 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9509 deps_frag=autodeps.mk
9510 fi
9511 fi
9512 deps_frag=$srcdir/src/$deps_frag
9513
9514
9515
9516
9517
9518 lisp_frag=$srcdir/src/lisp.mk
9519
9520
9521
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9523 $as_echo_n "checking for long file names... " >&6; }
9524 if ${ac_cv_sys_long_file_names+:} false; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 ac_cv_sys_long_file_names=yes
9528 # Test for long file names in all the places we know might matter:
9529 # . the current directory, where building will happen
9530 # $prefix/lib where we will be installing things
9531 # $exec_prefix/lib likewise
9532 # $TMPDIR if set, where it might want to write temporary files
9533 # /tmp where it might want to write temporary files
9534 # /var/tmp likewise
9535 # /usr/tmp likewise
9536 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9537 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9538 # in the usual case where exec_prefix is '${prefix}'.
9539 case $ac_dir in #(
9540 . | /* | ?:[\\/]*) ;; #(
9541 *) continue;;
9542 esac
9543 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9544 ac_xdir=$ac_dir/cf$$
9545 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9546 ac_tf1=$ac_xdir/conftest9012345
9547 ac_tf2=$ac_xdir/conftest9012346
9548 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9549 ac_cv_sys_long_file_names=no
9550 rm -f -r "$ac_xdir" 2>/dev/null
9551 test $ac_cv_sys_long_file_names = no && break
9552 done
9553 fi
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9555 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9556 if test $ac_cv_sys_long_file_names = yes; then
9557
9558 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9559
9560 fi
9561
9562
9563 #### Choose a window system.
9564
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9566 $as_echo_n "checking for X... " >&6; }
9567
9568
9569 # Check whether --with-x was given.
9570 if test "${with_x+set}" = set; then :
9571 withval=$with_x;
9572 fi
9573
9574 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9575 if test "x$with_x" = xno; then
9576 # The user explicitly disabled X.
9577 have_x=disabled
9578 else
9579 case $x_includes,$x_libraries in #(
9580 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
9581 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 # One or both of the vars are not set, and there is no cached value.
9585 ac_x_includes=no ac_x_libraries=no
9586 rm -f -r conftest.dir
9587 if mkdir conftest.dir; then
9588 cd conftest.dir
9589 cat >Imakefile <<'_ACEOF'
9590 incroot:
9591 @echo incroot='${INCROOT}'
9592 usrlibdir:
9593 @echo usrlibdir='${USRLIBDIR}'
9594 libdir:
9595 @echo libdir='${LIBDIR}'
9596 _ACEOF
9597 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9598 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9599 for ac_var in incroot usrlibdir libdir; do
9600 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9601 done
9602 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9603 for ac_extension in a so sl dylib la dll; do
9604 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9605 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9606 ac_im_usrlibdir=$ac_im_libdir; break
9607 fi
9608 done
9609 # Screen out bogus values from the imake configuration. They are
9610 # bogus both because they are the default anyway, and because
9611 # using them would break gcc on systems where it needs fixed includes.
9612 case $ac_im_incroot in
9613 /usr/include) ac_x_includes= ;;
9614 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9615 esac
9616 case $ac_im_usrlibdir in
9617 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9618 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9619 esac
9620 fi
9621 cd ..
9622 rm -f -r conftest.dir
9623 fi
9624
9625 # Standard set of common directories for X headers.
9626 # Check X11 before X11Rn because it is often a symlink to the current release.
9627 ac_x_header_dirs='
9628 /usr/X11/include
9629 /usr/X11R7/include
9630 /usr/X11R6/include
9631 /usr/X11R5/include
9632 /usr/X11R4/include
9633
9634 /usr/include/X11
9635 /usr/include/X11R7
9636 /usr/include/X11R6
9637 /usr/include/X11R5
9638 /usr/include/X11R4
9639
9640 /usr/local/X11/include
9641 /usr/local/X11R7/include
9642 /usr/local/X11R6/include
9643 /usr/local/X11R5/include
9644 /usr/local/X11R4/include
9645
9646 /usr/local/include/X11
9647 /usr/local/include/X11R7
9648 /usr/local/include/X11R6
9649 /usr/local/include/X11R5
9650 /usr/local/include/X11R4
9651
9652 /usr/X386/include
9653 /usr/x386/include
9654 /usr/XFree86/include/X11
9655
9656 /usr/include
9657 /usr/local/include
9658 /usr/unsupported/include
9659 /usr/athena/include
9660 /usr/local/x11r5/include
9661 /usr/lpp/Xamples/include
9662
9663 /usr/openwin/include
9664 /usr/openwin/share/include'
9665
9666 if test "$ac_x_includes" = no; then
9667 # Guess where to find include files, by looking for Xlib.h.
9668 # First, try using that file with no special directory specified.
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9671 #include <X11/Xlib.h>
9672 _ACEOF
9673 if ac_fn_c_try_cpp "$LINENO"; then :
9674 # We can compile using X headers with no special include directory.
9675 ac_x_includes=
9676 else
9677 for ac_dir in $ac_x_header_dirs; do
9678 if test -r "$ac_dir/X11/Xlib.h"; then
9679 ac_x_includes=$ac_dir
9680 break
9681 fi
9682 done
9683 fi
9684 rm -f conftest.err conftest.i conftest.$ac_ext
9685 fi # $ac_x_includes = no
9686
9687 if test "$ac_x_libraries" = no; then
9688 # Check for the libraries.
9689 # See if we find them without any special options.
9690 # Don't add to $LIBS permanently.
9691 ac_save_LIBS=$LIBS
9692 LIBS="-lX11 $LIBS"
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 #include <X11/Xlib.h>
9696 int
9697 main ()
9698 {
9699 XrmInitialize ()
9700 ;
9701 return 0;
9702 }
9703 _ACEOF
9704 if ac_fn_c_try_link "$LINENO"; then :
9705 LIBS=$ac_save_LIBS
9706 # We can link X programs with no special library path.
9707 ac_x_libraries=
9708 else
9709 LIBS=$ac_save_LIBS
9710 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9711 do
9712 # Don't even attempt the hair of trying to link an X program!
9713 for ac_extension in a so sl dylib la dll; do
9714 if test -r "$ac_dir/libX11.$ac_extension"; then
9715 ac_x_libraries=$ac_dir
9716 break 2
9717 fi
9718 done
9719 done
9720 fi
9721 rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 fi # $ac_x_libraries = no
9724
9725 case $ac_x_includes,$ac_x_libraries in #(
9726 no,* | *,no | *\'*)
9727 # Didn't find X, or a directory has "'" in its name.
9728 ac_cv_have_x="have_x=no";; #(
9729 *)
9730 # Record where we found X for the cache.
9731 ac_cv_have_x="have_x=yes\
9732 ac_x_includes='$ac_x_includes'\
9733 ac_x_libraries='$ac_x_libraries'"
9734 esac
9735 fi
9736 ;; #(
9737 *) have_x=yes;;
9738 esac
9739 eval "$ac_cv_have_x"
9740 fi # $with_x != no
9741
9742 if test "$have_x" != yes; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9744 $as_echo "$have_x" >&6; }
9745 no_x=yes
9746 else
9747 # If each of the values was on the command line, it overrides each guess.
9748 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9749 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9750 # Update the cache value to reflect the command line values.
9751 ac_cv_have_x="have_x=yes\
9752 ac_x_includes='$x_includes'\
9753 ac_x_libraries='$x_libraries'"
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9755 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9756 fi
9757
9758 if test "$no_x" = yes; then
9759 window_system=none
9760 else
9761 window_system=x11
9762 fi
9763
9764 ## Workaround for bug in autoconf <= 2.62.
9765 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9766 ## No need to do anything special for these standard directories.
9767 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9768
9769 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9770
9771 fi
9772
9773 LD_SWITCH_X_SITE_AUX=
9774 LD_SWITCH_X_SITE_AUX_RPATH=
9775 if test "${x_libraries}" != NONE; then
9776 if test -n "${x_libraries}"; then
9777 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9778 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9779 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9780 fi
9781 x_default_search_path=""
9782 x_search_path=${x_libraries}
9783 if test -z "${x_search_path}"; then
9784 x_search_path=/usr/lib
9785 fi
9786 for x_library in `echo ${x_search_path}: | \
9787 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9788 x_search_path="\
9789 ${x_library}/X11/%L/%T/%N%C%S:\
9790 ${x_library}/X11/%l/%T/%N%C%S:\
9791 ${x_library}/X11/%T/%N%C%S:\
9792 ${x_library}/X11/%L/%T/%N%S:\
9793 ${x_library}/X11/%l/%T/%N%S:\
9794 ${x_library}/X11/%T/%N%S"
9795 if test x"${x_default_search_path}" = x; then
9796 x_default_search_path=${x_search_path}
9797 else
9798 x_default_search_path="${x_search_path}:${x_default_search_path}"
9799 fi
9800 done
9801 fi
9802
9803
9804
9805 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9806 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9807 fi
9808
9809 if test x"${x_includes}" = x; then
9810 bitmapdir=/usr/include/X11/bitmaps
9811 else
9812 # accumulate include directories that have X11 bitmap subdirectories
9813 bmd_acc="dummyval"
9814 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9815 if test -d "${bmd}/X11/bitmaps"; then
9816 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9817 fi
9818 if test -d "${bmd}/bitmaps"; then
9819 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9820 fi
9821 done
9822 if test ${bmd_acc} != "dummyval"; then
9823 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9824 fi
9825 fi
9826
9827 HAVE_NS=no
9828 NS_IMPL_COCOA=no
9829 NS_IMPL_GNUSTEP=no
9830 tmp_CPPFLAGS="$CPPFLAGS"
9831 tmp_CFLAGS="$CFLAGS"
9832 CPPFLAGS="$CPPFLAGS -x objective-c"
9833 CFLAGS="$CFLAGS -x objective-c"
9834 TEMACS_LDFLAGS2="\${LDFLAGS}"
9835 if test "${with_ns}" != no; then
9836 if test "${opsys}" = darwin; then
9837 NS_IMPL_COCOA=yes
9838 ns_appdir=`pwd`/nextstep/Emacs.app
9839 ns_appbindir=${ns_appdir}/Contents/MacOS/
9840 ns_appresdir=${ns_appdir}/Contents/Resources
9841 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9842 elif test -f $GNUSTEP_CONFIG_FILE; then
9843 NS_IMPL_GNUSTEP=yes
9844 ns_appdir=`pwd`/nextstep/Emacs.app
9845 ns_appbindir=${ns_appdir}/
9846 ns_appresdir=${ns_appdir}/Resources
9847 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9848 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9849 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9850 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9851 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9852 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9853 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9854 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9855 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9856 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9857 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9858 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9859 LIB_STANDARD=
9860 START_FILES=
9861 TEMACS_LDFLAGS2=
9862 fi
9863 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9864 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
9865 HAVE_NS=yes
9866 else
9867 as_fn_error $? "\`--with-ns' was specified, but the include
9868 files are missing or cannot be compiled." "$LINENO" 5
9869 fi
9870
9871
9872 NS_HAVE_NSINTEGER=yes
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9875 #include <Foundation/NSObjCRuntime.h>
9876 int
9877 main ()
9878 {
9879 NSInteger i;
9880 ;
9881 return 0;
9882 }
9883 _ACEOF
9884 if ac_fn_c_try_compile "$LINENO"; then :
9885 ns_have_nsinteger=yes
9886 else
9887 ns_have_nsinteger=no
9888 fi
9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890 if test $ns_have_nsinteger = no; then
9891 NS_HAVE_NSINTEGER=no
9892 fi
9893 fi
9894
9895
9896 ns_frag=/dev/null
9897 NS_OBJ=
9898 NS_OBJC_OBJ=
9899 if test "${HAVE_NS}" = yes; then
9900 window_system=nextstep
9901 with_xft=no
9902 # set up packaging dirs
9903 exec_prefix=${ns_appbindir}
9904 libexecdir=${ns_appbindir}/libexec
9905 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9906 prefix=${ns_appresdir}
9907 fi
9908 ns_frag=$srcdir/src/ns.mk
9909 NS_OBJ="fontset.o fringe.o image.o"
9910 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9911 fi
9912 CFLAGS="$tmp_CFLAGS"
9913 CPPFLAGS="$tmp_CPPFLAGS"
9914
9915
9916
9917
9918
9919 case "${window_system}" in
9920 x11 )
9921 HAVE_X_WINDOWS=yes
9922 HAVE_X11=yes
9923 case "${with_x_toolkit}" in
9924 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9925 motif ) USE_X_TOOLKIT=MOTIF ;;
9926 gtk ) with_gtk=yes
9927 USE_X_TOOLKIT=none ;;
9928 gtk3 ) with_gtk3=yes
9929 USE_X_TOOLKIT=none ;;
9930 no ) USE_X_TOOLKIT=none ;;
9931 * ) USE_X_TOOLKIT=maybe ;;
9932 esac
9933 ;;
9934 nextstep | none )
9935 HAVE_X_WINDOWS=no
9936 HAVE_X11=no
9937 USE_X_TOOLKIT=none
9938 ;;
9939 esac
9940
9941 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9942 # Extract the first word of "X", so it can be a program name with args.
9943 set dummy X; ac_word=$2
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 if test -n "$HAVE_XSERVER"; then
9950 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9951 else
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9954 do
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_prog_HAVE_XSERVER="true"
9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9962 fi
9963 done
9964 done
9965 IFS=$as_save_IFS
9966
9967 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9968 fi
9969 fi
9970 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9971 if test -n "$HAVE_XSERVER"; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9973 $as_echo "$HAVE_XSERVER" >&6; }
9974 else
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9977 fi
9978
9979
9980 if test "$HAVE_XSERVER" = true ||
9981 test -n "$DISPLAY" ||
9982 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9983 as_fn_error $? "You seem to be running X, but no X development libraries
9984 were found. You should install the relevant development files for X
9985 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9986 sure you have development files for image handling, i.e.
9987 tiff, gif, jpeg, png and xpm.
9988 If you are sure you want Emacs compiled without X window support, pass
9989 --without-x
9990 to configure." "$LINENO" 5
9991 fi
9992 fi
9993
9994 ### If we're using X11, we should use the X menu package.
9995 HAVE_MENUS=no
9996 case ${HAVE_X11} in
9997 yes ) HAVE_MENUS=yes ;;
9998 esac
9999
10000 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10001 # Assume not, until told otherwise.
10002 GNU_MALLOC=yes
10003 doug_lea_malloc=yes
10004 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10005 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
10006
10007 else
10008 doug_lea_malloc=no
10009 fi
10010
10011 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
10012 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
10013
10014 else
10015 doug_lea_malloc=no
10016 fi
10017
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
10019 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10020 if ${emacs_cv_var___after_morecore_hook+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 extern void (* __after_morecore_hook)();
10026 int
10027 main ()
10028 {
10029 __after_morecore_hook = 0
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 if ac_fn_c_try_link "$LINENO"; then :
10035 emacs_cv_var___after_morecore_hook=yes
10036 else
10037 emacs_cv_var___after_morecore_hook=no
10038 fi
10039 rm -f core conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10041 fi
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10043 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10044 if test $emacs_cv_var___after_morecore_hook = no; then
10045 doug_lea_malloc=no
10046 fi
10047
10048
10049 system_malloc=no
10050 case "$opsys" in
10051 ## darwin ld insists on the use of malloc routines in the System framework.
10052 darwin|sol2-10) system_malloc=yes ;;
10053 esac
10054
10055 if test "${system_malloc}" = "yes"; then
10056
10057 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10058
10059 GNU_MALLOC=no
10060 GNU_MALLOC_reason="
10061 (The GNU allocators don't work with this system configuration.)"
10062 GMALLOC_OBJ=
10063 VMLIMIT_OBJ=
10064 else
10065 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10066 VMLIMIT_OBJ=vm-limit.o
10067 fi
10068
10069
10070
10071 if test "$doug_lea_malloc" = "yes" ; then
10072 if test "$GNU_MALLOC" = yes ; then
10073 GNU_MALLOC_reason="
10074 (Using Doug Lea's new malloc from the GNU C Library.)"
10075 fi
10076
10077 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10078
10079
10080 ## Use mmap directly for allocating larger buffers.
10081 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10082 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10083 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10084 case "$opsys" in
10085 gnu*) REL_ALLOC=no ;;
10086 esac
10087 fi
10088
10089 if test x"${REL_ALLOC}" = x; then
10090 REL_ALLOC=${GNU_MALLOC}
10091 fi
10092
10093 use_mmap_for_buffers=no
10094 case "$opsys" in
10095 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10096 esac
10097
10098
10099
10100
10101 for ac_header in $ac_header_list
10102 do :
10103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10104 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10105 "
10106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10107 cat >>confdefs.h <<_ACEOF
10108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10109 _ACEOF
10110
10111 fi
10112
10113 done
10114
10115
10116
10117
10118
10119
10120
10121
10122 for ac_func in getpagesize
10123 do :
10124 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10125 if test "x$ac_cv_func_getpagesize" = xyes; then :
10126 cat >>confdefs.h <<_ACEOF
10127 #define HAVE_GETPAGESIZE 1
10128 _ACEOF
10129
10130 fi
10131 done
10132
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10134 $as_echo_n "checking for working mmap... " >&6; }
10135 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
10136 $as_echo_n "(cached) " >&6
10137 else
10138 if test "$cross_compiling" = yes; then :
10139 ac_cv_func_mmap_fixed_mapped=no
10140 else
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 $ac_includes_default
10144 /* malloc might have been renamed as rpl_malloc. */
10145 #undef malloc
10146
10147 /* Thanks to Mike Haertel and Jim Avera for this test.
10148 Here is a matrix of mmap possibilities:
10149 mmap private not fixed
10150 mmap private fixed at somewhere currently unmapped
10151 mmap private fixed at somewhere already mapped
10152 mmap shared not fixed
10153 mmap shared fixed at somewhere currently unmapped
10154 mmap shared fixed at somewhere already mapped
10155 For private mappings, we should verify that changes cannot be read()
10156 back from the file, nor mmap's back from the file at a different
10157 address. (There have been systems where private was not correctly
10158 implemented like the infamous i386 svr4.0, and systems where the
10159 VM page cache was not coherent with the file system buffer cache
10160 like early versions of FreeBSD and possibly contemporary NetBSD.)
10161 For shared mappings, we should conversely verify that changes get
10162 propagated back to all the places they're supposed to be.
10163
10164 Grep wants private fixed already mapped.
10165 The main things grep needs to know about mmap are:
10166 * does it exist and is it safe to write into the mmap'd area
10167 * how to use it (BSD variants) */
10168
10169 #include <fcntl.h>
10170 #include <sys/mman.h>
10171
10172 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10173 char *malloc ();
10174 #endif
10175
10176 /* This mess was copied from the GNU getpagesize.h. */
10177 #ifndef HAVE_GETPAGESIZE
10178 # ifdef _SC_PAGESIZE
10179 # define getpagesize() sysconf(_SC_PAGESIZE)
10180 # else /* no _SC_PAGESIZE */
10181 # ifdef HAVE_SYS_PARAM_H
10182 # include <sys/param.h>
10183 # ifdef EXEC_PAGESIZE
10184 # define getpagesize() EXEC_PAGESIZE
10185 # else /* no EXEC_PAGESIZE */
10186 # ifdef NBPG
10187 # define getpagesize() NBPG * CLSIZE
10188 # ifndef CLSIZE
10189 # define CLSIZE 1
10190 # endif /* no CLSIZE */
10191 # else /* no NBPG */
10192 # ifdef NBPC
10193 # define getpagesize() NBPC
10194 # else /* no NBPC */
10195 # ifdef PAGESIZE
10196 # define getpagesize() PAGESIZE
10197 # endif /* PAGESIZE */
10198 # endif /* no NBPC */
10199 # endif /* no NBPG */
10200 # endif /* no EXEC_PAGESIZE */
10201 # else /* no HAVE_SYS_PARAM_H */
10202 # define getpagesize() 8192 /* punt totally */
10203 # endif /* no HAVE_SYS_PARAM_H */
10204 # endif /* no _SC_PAGESIZE */
10205
10206 #endif /* no HAVE_GETPAGESIZE */
10207
10208 int
10209 main ()
10210 {
10211 char *data, *data2, *data3;
10212 const char *cdata2;
10213 int i, pagesize;
10214 int fd, fd2;
10215
10216 pagesize = getpagesize ();
10217
10218 /* First, make a file with some known garbage in it. */
10219 data = (char *) malloc (pagesize);
10220 if (!data)
10221 return 1;
10222 for (i = 0; i < pagesize; ++i)
10223 *(data + i) = rand ();
10224 umask (0);
10225 fd = creat ("conftest.mmap", 0600);
10226 if (fd < 0)
10227 return 2;
10228 if (write (fd, data, pagesize) != pagesize)
10229 return 3;
10230 close (fd);
10231
10232 /* Next, check that the tail of a page is zero-filled. File must have
10233 non-zero length, otherwise we risk SIGBUS for entire page. */
10234 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10235 if (fd2 < 0)
10236 return 4;
10237 cdata2 = "";
10238 if (write (fd2, cdata2, 1) != 1)
10239 return 5;
10240 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10241 if (data2 == MAP_FAILED)
10242 return 6;
10243 for (i = 0; i < pagesize; ++i)
10244 if (*(data2 + i))
10245 return 7;
10246 close (fd2);
10247 if (munmap (data2, pagesize))
10248 return 8;
10249
10250 /* Next, try to mmap the file at a fixed address which already has
10251 something else allocated at it. If we can, also make sure that
10252 we see the same garbage. */
10253 fd = open ("conftest.mmap", O_RDWR);
10254 if (fd < 0)
10255 return 9;
10256 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10257 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10258 return 10;
10259 for (i = 0; i < pagesize; ++i)
10260 if (*(data + i) != *(data2 + i))
10261 return 11;
10262
10263 /* Finally, make sure that changes to the mapped area do not
10264 percolate back to the file as seen by read(). (This is a bug on
10265 some variants of i386 svr4.0.) */
10266 for (i = 0; i < pagesize; ++i)
10267 *(data2 + i) = *(data2 + i) + 1;
10268 data3 = (char *) malloc (pagesize);
10269 if (!data3)
10270 return 12;
10271 if (read (fd, data3, pagesize) != pagesize)
10272 return 13;
10273 for (i = 0; i < pagesize; ++i)
10274 if (*(data + i) != *(data3 + i))
10275 return 14;
10276 close (fd);
10277 return 0;
10278 }
10279 _ACEOF
10280 if ac_fn_c_try_run "$LINENO"; then :
10281 ac_cv_func_mmap_fixed_mapped=yes
10282 else
10283 ac_cv_func_mmap_fixed_mapped=no
10284 fi
10285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10286 conftest.$ac_objext conftest.beam conftest.$ac_ext
10287 fi
10288
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10291 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10292 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10293
10294 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10295
10296 fi
10297 rm -f conftest.mmap conftest.txt
10298
10299 if test $use_mmap_for_buffers = yes; then
10300
10301 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10302
10303 REL_ALLOC=no
10304 fi
10305
10306 LIBS="$LIBS_SYSTEM $LIBS"
10307
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10309 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10310 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 ac_check_lib_save_LIBS=$LIBS
10314 LIBS="-ldnet $LIBS"
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10317
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10321 #ifdef __cplusplus
10322 extern "C"
10323 #endif
10324 char dnet_ntoa ();
10325 int
10326 main ()
10327 {
10328 return dnet_ntoa ();
10329 ;
10330 return 0;
10331 }
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"; then :
10334 ac_cv_lib_dnet_dnet_ntoa=yes
10335 else
10336 ac_cv_lib_dnet_dnet_ntoa=no
10337 fi
10338 rm -f core conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
10340 LIBS=$ac_check_lib_save_LIBS
10341 fi
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10343 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10344 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
10345 cat >>confdefs.h <<_ACEOF
10346 #define HAVE_LIBDNET 1
10347 _ACEOF
10348
10349 LIBS="-ldnet $LIBS"
10350
10351 fi
10352
10353
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10355 $as_echo_n "checking for main in -lXbsd... " >&6; }
10356 if ${ac_cv_lib_Xbsd_main+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lXbsd $LIBS"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363
10364
10365 int
10366 main ()
10367 {
10368 return main ();
10369 ;
10370 return 0;
10371 }
10372 _ACEOF
10373 if ac_fn_c_try_link "$LINENO"; then :
10374 ac_cv_lib_Xbsd_main=yes
10375 else
10376 ac_cv_lib_Xbsd_main=no
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_lib_save_LIBS
10381 fi
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10383 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10384 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
10385 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10386 fi
10387
10388
10389 LIB_PTHREAD=
10390 for ac_header in pthread.h
10391 do :
10392 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10393 if test "x$ac_cv_header_pthread_h" = xyes; then :
10394 cat >>confdefs.h <<_ACEOF
10395 #define HAVE_PTHREAD_H 1
10396 _ACEOF
10397
10398 fi
10399
10400 done
10401
10402 if test "$ac_cv_header_pthread_h"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10404 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10405 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 ac_check_lib_save_LIBS=$LIBS
10409 LIBS="-lpthread $LIBS"
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10412
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10416 #ifdef __cplusplus
10417 extern "C"
10418 #endif
10419 char pthread_self ();
10420 int
10421 main ()
10422 {
10423 return pthread_self ();
10424 ;
10425 return 0;
10426 }
10427 _ACEOF
10428 if ac_fn_c_try_link "$LINENO"; then :
10429 ac_cv_lib_pthread_pthread_self=yes
10430 else
10431 ac_cv_lib_pthread_pthread_self=no
10432 fi
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 LIBS=$ac_check_lib_save_LIBS
10436 fi
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10438 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10439 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10440 HAVE_PTHREAD=yes
10441 fi
10442
10443 fi
10444 if test "$HAVE_PTHREAD" = yes; then
10445 case "${canonical}" in
10446 *-hpux*) ;;
10447 *) LIB_PTHREAD="-lpthread" ;;
10448 esac
10449
10450 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10451
10452 fi
10453
10454
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10456 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10457 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-lpthreads $LIBS"
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10464
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 char cma_open ();
10472 int
10473 main ()
10474 {
10475 return cma_open ();
10476 ;
10477 return 0;
10478 }
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"; then :
10481 ac_cv_lib_pthreads_cma_open=yes
10482 else
10483 ac_cv_lib_pthreads_cma_open=no
10484 fi
10485 rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487 LIBS=$ac_check_lib_save_LIBS
10488 fi
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10490 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10491 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
10492 cat >>confdefs.h <<_ACEOF
10493 #define HAVE_LIBPTHREADS 1
10494 _ACEOF
10495
10496 LIBS="-lpthreads $LIBS"
10497
10498 fi
10499
10500
10501 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10502 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10503 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10504 ## added to LIBS in configure would never contain the pthreads part,
10505 ## but the value used in Makefiles might. FIXME?
10506 ##
10507 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10508 ## be harmless on older versions of X where it happens to exist.
10509 test "$opsys" = "aix4-2" && \
10510 test $ac_cv_lib_pthreads_cma_open = yes && \
10511 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10512
10513
10514 case ${host_os} in
10515 aix*)
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10517 $as_echo_n "checking for -bbigtoc option... " >&6; }
10518 if ${gdb_cv_bigtoc+:} false; then :
10519 $as_echo_n "(cached) " >&6
10520 else
10521
10522 case $GCC in
10523 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10524 *) gdb_cv_bigtoc=-bbigtoc ;;
10525 esac
10526
10527 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530
10531 int
10532 main ()
10533 {
10534 int i;
10535 ;
10536 return 0;
10537 }
10538 _ACEOF
10539 if ac_fn_c_try_link "$LINENO"; then :
10540
10541 else
10542 gdb_cv_bigtoc=
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
10546
10547 fi
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10549 $as_echo "$gdb_cv_bigtoc" >&6; }
10550 ;;
10551 esac
10552
10553 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10554 # used for the tests that follow. We set them back to REAL_CFLAGS and
10555 # REAL_CPPFLAGS later on.
10556
10557 REAL_CFLAGS="$CFLAGS"
10558 REAL_CPPFLAGS="$CPPFLAGS"
10559
10560 if test "${HAVE_X11}" = "yes"; then
10561 DEFS="$C_SWITCH_X_SITE $DEFS"
10562 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10563 LIBS="-lX11 $LIBS"
10564 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10565 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10566
10567 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10568 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10569 # but it's more convenient here to set LD_RUN_PATH
10570 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10571 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10572 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10573 export LD_RUN_PATH
10574 fi
10575
10576 if test "${opsys}" = "gnu-linux"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10578 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10581
10582 int
10583 main ()
10584 {
10585 XOpenDisplay ("foo");
10586 ;
10587 return 0;
10588 }
10589 _ACEOF
10590 if ac_fn_c_try_link "$LINENO"; then :
10591 xlinux_first_failure=no
10592 else
10593 xlinux_first_failure=yes
10594 fi
10595 rm -f core conftest.err conftest.$ac_objext \
10596 conftest$ac_exeext conftest.$ac_ext
10597 if test "${xlinux_first_failure}" = "yes"; then
10598 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10599 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10600 OLD_CPPFLAGS="$CPPFLAGS"
10601 OLD_LIBS="$LIBS"
10602 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10603 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10604 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10605 LIBS="$LIBS -b i486-linuxaout"
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608
10609 int
10610 main ()
10611 {
10612 XOpenDisplay ("foo");
10613 ;
10614 return 0;
10615 }
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"; then :
10618 xlinux_second_failure=no
10619 else
10620 xlinux_second_failure=yes
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
10624 if test "${xlinux_second_failure}" = "yes"; then
10625 # If we get the same failure with -b, there is no use adding -b.
10626 # So take it out. This plays safe.
10627 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10628 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10629 CPPFLAGS="$OLD_CPPFLAGS"
10630 LIBS="$OLD_LIBS"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10633 else
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10635 $as_echo "yes" >&6; }
10636 fi
10637 else
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10639 $as_echo "no" >&6; }
10640 fi
10641 fi
10642
10643 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10644 # header files included from there.
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10646 $as_echo_n "checking for Xkb... " >&6; }
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <X11/Xlib.h>
10650 #include <X11/XKBlib.h>
10651 int
10652 main ()
10653 {
10654 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10655 ;
10656 return 0;
10657 }
10658 _ACEOF
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 emacs_xkb=yes
10661 else
10662 emacs_xkb=no
10663 fi
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10667 $as_echo "$emacs_xkb" >&6; }
10668 if test $emacs_xkb = yes; then
10669
10670 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10671
10672 fi
10673
10674 for ac_func in XrmSetDatabase XScreenResourceString \
10675 XScreenNumberOfScreen XSetWMProtocols
10676 do :
10677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10678 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10679 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10680 cat >>confdefs.h <<_ACEOF
10681 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10682 _ACEOF
10683
10684 fi
10685 done
10686
10687 fi
10688
10689 if test "${window_system}" = "x11"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10691 $as_echo_n "checking X11 version 6... " >&6; }
10692 if ${emacs_cv_x11_version_6+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697 #include <X11/Xlib.h>
10698 int
10699 main ()
10700 {
10701 #if XlibSpecificationRelease < 6
10702 fail;
10703 #endif
10704
10705 ;
10706 return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710 emacs_cv_x11_version_6=yes
10711 else
10712 emacs_cv_x11_version_6=no
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716 fi
10717
10718 if test $emacs_cv_x11_version_6 = yes; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10720 $as_echo "6 or newer" >&6; }
10721
10722 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10723
10724
10725 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10726
10727 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10728 ## XIM support.
10729 case "$opsys" in
10730 sol2-*) : ;;
10731 *)
10732 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10733
10734 ;;
10735 esac
10736 else
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10738 $as_echo "before 6" >&6; }
10739 fi
10740 fi
10741
10742
10743 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10744 HAVE_RSVG=no
10745 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10746 if test "${with_rsvg}" != "no"; then
10747 RSVG_REQUIRED=2.11.0
10748 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10749
10750
10751 succeeded=no
10752
10753 # Extract the first word of "pkg-config", so it can be a program name with args.
10754 set dummy pkg-config; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 case $PKG_CONFIG in
10761 [\\/]* | ?:[\\/]*)
10762 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10763 ;;
10764 *)
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10767 do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10775 fi
10776 done
10777 done
10778 IFS=$as_save_IFS
10779
10780 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10781 ;;
10782 esac
10783 fi
10784 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10785 if test -n "$PKG_CONFIG"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10787 $as_echo "$PKG_CONFIG" >&6; }
10788 else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10791 fi
10792
10793
10794
10795 if test "$PKG_CONFIG" = "no" ; then
10796 :
10797 else
10798 PKG_CONFIG_MIN_VERSION=0.9.0
10799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10801 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10802
10803 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805 $as_echo "yes" >&6; }
10806 succeeded=yes
10807
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10809 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10810 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10812 $as_echo "$RSVG_CFLAGS" >&6; }
10813
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10815 $as_echo_n "checking RSVG_LIBS... " >&6; }
10816 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10818 $as_echo "$RSVG_LIBS" >&6; }
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 $as_echo "no" >&6; }
10822 RSVG_CFLAGS=""
10823 RSVG_LIBS=""
10824 ## If we have a custom action on failure, don't print errors, but
10825 ## do set a variable so people can do so.
10826 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10827
10828 fi
10829
10830
10831
10832 else
10833 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10834 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10835 fi
10836 fi
10837
10838 if test $succeeded = yes; then
10839 HAVE_RSVG=yes
10840 else
10841 :
10842 fi
10843
10844
10845
10846
10847 if test $HAVE_RSVG = yes; then
10848
10849 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10850
10851 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10852 LIBS="$RSVG_LIBS $LIBS"
10853 fi
10854 fi
10855 fi
10856
10857 HAVE_IMAGEMAGICK=no
10858 if test "${HAVE_X11}" = "yes"; then
10859 if test "${with_imagemagick}" != "no"; then
10860 ## 6.2.8 is the earliest version known to work, but earlier versions
10861 ## might work - let us know if you find one.
10862 ## 6.0.7 does not work. See bug#7955.
10863 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10864
10865 succeeded=no
10866
10867 # Extract the first word of "pkg-config", so it can be a program name with args.
10868 set dummy pkg-config; ac_word=$2
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10870 $as_echo_n "checking for $ac_word... " >&6; }
10871 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 case $PKG_CONFIG in
10875 [\\/]* | ?:[\\/]*)
10876 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10877 ;;
10878 *)
10879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880 for as_dir in $PATH
10881 do
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10886 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 break 2
10889 fi
10890 done
10891 done
10892 IFS=$as_save_IFS
10893
10894 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10895 ;;
10896 esac
10897 fi
10898 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10899 if test -n "$PKG_CONFIG"; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10901 $as_echo "$PKG_CONFIG" >&6; }
10902 else
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904 $as_echo "no" >&6; }
10905 fi
10906
10907
10908
10909 if test "$PKG_CONFIG" = "no" ; then
10910 :
10911 else
10912 PKG_CONFIG_MIN_VERSION=0.9.0
10913 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10915 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10916
10917 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10919 $as_echo "yes" >&6; }
10920 succeeded=yes
10921
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10923 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10924 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10926 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10927
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10929 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10930 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10932 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10933 else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10936 IMAGEMAGICK_CFLAGS=""
10937 IMAGEMAGICK_LIBS=""
10938 ## If we have a custom action on failure, don't print errors, but
10939 ## do set a variable so people can do so.
10940 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10941
10942 fi
10943
10944
10945
10946 else
10947 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10948 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10949 fi
10950 fi
10951
10952 if test $succeeded = yes; then
10953 HAVE_IMAGEMAGICK=yes
10954 else
10955 :
10956 fi
10957
10958
10959
10960
10961 if test $HAVE_IMAGEMAGICK = yes; then
10962
10963 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10964
10965 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10966 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10967 for ac_func in MagickExportImagePixels
10968 do :
10969 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10970 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
10971 cat >>confdefs.h <<_ACEOF
10972 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10973 _ACEOF
10974
10975 fi
10976 done
10977
10978 fi
10979 fi
10980 fi
10981
10982
10983 HAVE_GTK=no
10984 GTK_OBJ=
10985 if test "${with_gtk3}" = "yes"; then
10986 GLIB_REQUIRED=2.28
10987 GTK_REQUIRED=3.0
10988 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10989
10990
10991 succeeded=no
10992
10993 # Extract the first word of "pkg-config", so it can be a program name with args.
10994 set dummy pkg-config; ac_word=$2
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996 $as_echo_n "checking for $ac_word... " >&6; }
10997 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000 case $PKG_CONFIG in
11001 [\\/]* | ?:[\\/]*)
11002 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11003 ;;
11004 *)
11005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11006 for as_dir in $PATH
11007 do
11008 IFS=$as_save_IFS
11009 test -z "$as_dir" && as_dir=.
11010 for ac_exec_ext in '' $ac_executable_extensions; do
11011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11012 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 break 2
11015 fi
11016 done
11017 done
11018 IFS=$as_save_IFS
11019
11020 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11021 ;;
11022 esac
11023 fi
11024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11025 if test -n "$PKG_CONFIG"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11027 $as_echo "$PKG_CONFIG" >&6; }
11028 else
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 $as_echo "no" >&6; }
11031 fi
11032
11033
11034
11035 if test "$PKG_CONFIG" = "no" ; then
11036 pkg_check_gtk=no
11037 else
11038 PKG_CONFIG_MIN_VERSION=0.9.0
11039 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11041 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11042
11043 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11045 $as_echo "yes" >&6; }
11046 succeeded=yes
11047
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11049 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11050 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11052 $as_echo "$GTK_CFLAGS" >&6; }
11053
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11055 $as_echo_n "checking GTK_LIBS... " >&6; }
11056 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11058 $as_echo "$GTK_LIBS" >&6; }
11059 else
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 $as_echo "no" >&6; }
11062 GTK_CFLAGS=""
11063 GTK_LIBS=""
11064 ## If we have a custom action on failure, don't print errors, but
11065 ## do set a variable so people can do so.
11066 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11067
11068 fi
11069
11070
11071
11072 else
11073 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11074 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11075 fi
11076 fi
11077
11078 if test $succeeded = yes; then
11079 pkg_check_gtk=yes
11080 else
11081 pkg_check_gtk=no
11082 fi
11083
11084 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11085 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
11086 fi
11087
11088 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11089
11090 GTK_OBJ=emacsgtkfixed.o
11091 fi
11092
11093 if test "$pkg_check_gtk" != "yes"; then
11094 HAVE_GTK=no
11095 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11096 GLIB_REQUIRED=2.6
11097 GTK_REQUIRED=2.6
11098 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11099
11100
11101 succeeded=no
11102
11103 # Extract the first word of "pkg-config", so it can be a program name with args.
11104 set dummy pkg-config; ac_word=$2
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106 $as_echo_n "checking for $ac_word... " >&6; }
11107 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 case $PKG_CONFIG in
11111 [\\/]* | ?:[\\/]*)
11112 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11113 ;;
11114 *)
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11117 do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11125 fi
11126 done
11127 done
11128 IFS=$as_save_IFS
11129
11130 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11131 ;;
11132 esac
11133 fi
11134 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11135 if test -n "$PKG_CONFIG"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11137 $as_echo "$PKG_CONFIG" >&6; }
11138 else
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11141 fi
11142
11143
11144
11145 if test "$PKG_CONFIG" = "no" ; then
11146 pkg_check_gtk=no
11147 else
11148 PKG_CONFIG_MIN_VERSION=0.9.0
11149 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11151 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11152
11153 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11155 $as_echo "yes" >&6; }
11156 succeeded=yes
11157
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11159 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11160 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11162 $as_echo "$GTK_CFLAGS" >&6; }
11163
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11165 $as_echo_n "checking GTK_LIBS... " >&6; }
11166 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11168 $as_echo "$GTK_LIBS" >&6; }
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11172 GTK_CFLAGS=""
11173 GTK_LIBS=""
11174 ## If we have a custom action on failure, don't print errors, but
11175 ## do set a variable so people can do so.
11176 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11177
11178 fi
11179
11180
11181
11182 else
11183 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11184 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11185 fi
11186 fi
11187
11188 if test $succeeded = yes; then
11189 pkg_check_gtk=yes
11190 else
11191 pkg_check_gtk=no
11192 fi
11193
11194 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11195 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
11196 fi
11197 fi
11198 fi
11199
11200 if test x"$pkg_check_gtk" = xyes; then
11201
11202
11203
11204 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11205 CFLAGS="$CFLAGS $GTK_CFLAGS"
11206 LIBS="$GTK_LIBS $LIBS"
11207 GTK_COMPILES=no
11208 for ac_func in gtk_main
11209 do :
11210 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11211 if test "x$ac_cv_func_gtk_main" = xyes; then :
11212 cat >>confdefs.h <<_ACEOF
11213 #define HAVE_GTK_MAIN 1
11214 _ACEOF
11215 GTK_COMPILES=yes
11216 fi
11217 done
11218
11219 if test "${GTK_COMPILES}" != "yes"; then
11220 if test "$USE_X_TOOLKIT" != "maybe"; then
11221 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11222 fi
11223 else
11224 HAVE_GTK=yes
11225
11226 $as_echo "#define USE_GTK 1" >>confdefs.h
11227
11228 GTK_OBJ="gtkutil.o $GTK_OBJ"
11229 USE_X_TOOLKIT=none
11230 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11231 :
11232 else
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11234 closing open displays. This is no problem if you just use
11235 one display, but if you use more than one and close one of them
11236 Emacs may crash." >&5
11237 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11238 closing open displays. This is no problem if you just use
11239 one display, but if you use more than one and close one of them
11240 Emacs may crash." >&2;}
11241 sleep 3
11242 fi
11243 fi
11244
11245 fi
11246
11247
11248
11249 if test "${HAVE_GTK}" = "yes"; then
11250
11251 if test "$with_toolkit_scroll_bars" != no; then
11252 with_toolkit_scroll_bars=yes
11253 fi
11254
11255 HAVE_GTK_FILE_SELECTION=no
11256 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11257 #include <gtk/gtk.h>
11258 "
11259 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
11260 HAVE_GTK_FILE_SELECTION=yes
11261 else
11262 HAVE_GTK_FILE_SELECTION=no
11263 fi
11264
11265 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11266 for ac_func in gtk_file_selection_new
11267 do :
11268 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11269 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
11270 cat >>confdefs.h <<_ACEOF
11271 #define HAVE_GTK_FILE_SELECTION_NEW 1
11272 _ACEOF
11273
11274 fi
11275 done
11276
11277 fi
11278
11279
11280 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11281 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11282 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11283 gtk_orientable_set_orientation
11284 do :
11285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11286 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11287 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11288 cat >>confdefs.h <<_ACEOF
11289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11290 _ACEOF
11291
11292 fi
11293 done
11294
11295
11296 fi
11297
11298 HAVE_DBUS=no
11299 DBUS_OBJ=
11300 if test "${with_dbus}" = "yes"; then
11301
11302 succeeded=no
11303
11304 # Extract the first word of "pkg-config", so it can be a program name with args.
11305 set dummy pkg-config; ac_word=$2
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11307 $as_echo_n "checking for $ac_word... " >&6; }
11308 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11309 $as_echo_n "(cached) " >&6
11310 else
11311 case $PKG_CONFIG in
11312 [\\/]* | ?:[\\/]*)
11313 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11314 ;;
11315 *)
11316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317 for as_dir in $PATH
11318 do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11323 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 break 2
11326 fi
11327 done
11328 done
11329 IFS=$as_save_IFS
11330
11331 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11332 ;;
11333 esac
11334 fi
11335 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11336 if test -n "$PKG_CONFIG"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11338 $as_echo "$PKG_CONFIG" >&6; }
11339 else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11342 fi
11343
11344
11345
11346 if test "$PKG_CONFIG" = "no" ; then
11347 HAVE_DBUS=no
11348 else
11349 PKG_CONFIG_MIN_VERSION=0.9.0
11350 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11352 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11353
11354 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11356 $as_echo "yes" >&6; }
11357 succeeded=yes
11358
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
11360 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
11361 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
11363 $as_echo "$DBUS_CFLAGS" >&6; }
11364
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
11366 $as_echo_n "checking DBUS_LIBS... " >&6; }
11367 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
11369 $as_echo "$DBUS_LIBS" >&6; }
11370 else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373 DBUS_CFLAGS=""
11374 DBUS_LIBS=""
11375 ## If we have a custom action on failure, don't print errors, but
11376 ## do set a variable so people can do so.
11377 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11378
11379 fi
11380
11381
11382
11383 else
11384 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11385 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11386 fi
11387 fi
11388
11389 if test $succeeded = yes; then
11390 HAVE_DBUS=yes
11391 else
11392 HAVE_DBUS=no
11393 fi
11394
11395 if test "$HAVE_DBUS" = yes; then
11396 LIBS="$LIBS $DBUS_LIBS"
11397
11398 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11399
11400 for ac_func in dbus_watch_get_unix_fd
11401 do :
11402 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
11403 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
11404 cat >>confdefs.h <<_ACEOF
11405 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
11406 _ACEOF
11407
11408 fi
11409 done
11410
11411 DBUS_OBJ=dbusbind.o
11412 fi
11413 fi
11414
11415
11416 HAVE_GSETTINGS=no
11417 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11418
11419 succeeded=no
11420
11421 # Extract the first word of "pkg-config", so it can be a program name with args.
11422 set dummy pkg-config; ac_word=$2
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11424 $as_echo_n "checking for $ac_word... " >&6; }
11425 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 case $PKG_CONFIG in
11429 [\\/]* | ?:[\\/]*)
11430 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11431 ;;
11432 *)
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11440 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444 done
11445 done
11446 IFS=$as_save_IFS
11447
11448 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11449 ;;
11450 esac
11451 fi
11452 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11453 if test -n "$PKG_CONFIG"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11455 $as_echo "$PKG_CONFIG" >&6; }
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11459 fi
11460
11461
11462
11463 if test "$PKG_CONFIG" = "no" ; then
11464 HAVE_GSETTINGS=no
11465 else
11466 PKG_CONFIG_MIN_VERSION=0.9.0
11467 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11469 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11470
11471 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11473 $as_echo "yes" >&6; }
11474 succeeded=yes
11475
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
11477 $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
11478 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
11480 $as_echo "$GSETTINGS_CFLAGS" >&6; }
11481
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
11483 $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
11484 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
11486 $as_echo "$GSETTINGS_LIBS" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11490 GSETTINGS_CFLAGS=""
11491 GSETTINGS_LIBS=""
11492 ## If we have a custom action on failure, don't print errors, but
11493 ## do set a variable so people can do so.
11494 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
11495
11496 fi
11497
11498
11499
11500 else
11501 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11502 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11503 fi
11504 fi
11505
11506 if test $succeeded = yes; then
11507 HAVE_GSETTINGS=yes
11508 else
11509 HAVE_GSETTINGS=no
11510 fi
11511
11512 if test "$HAVE_GSETTINGS" = "yes"; then
11513
11514 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11515
11516 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11517 SETTINGS_LIBS="$GSETTINGS_LIBS"
11518 fi
11519 fi
11520
11521 HAVE_GCONF=no
11522 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11523
11524 succeeded=no
11525
11526 # Extract the first word of "pkg-config", so it can be a program name with args.
11527 set dummy pkg-config; ac_word=$2
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529 $as_echo_n "checking for $ac_word... " >&6; }
11530 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 case $PKG_CONFIG in
11534 [\\/]* | ?:[\\/]*)
11535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11536 ;;
11537 *)
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11540 do
11541 IFS=$as_save_IFS
11542 test -z "$as_dir" && as_dir=.
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547 break 2
11548 fi
11549 done
11550 done
11551 IFS=$as_save_IFS
11552
11553 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11554 ;;
11555 esac
11556 fi
11557 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11558 if test -n "$PKG_CONFIG"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11560 $as_echo "$PKG_CONFIG" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 fi
11565
11566
11567
11568 if test "$PKG_CONFIG" = "no" ; then
11569 HAVE_GCONF=no
11570 else
11571 PKG_CONFIG_MIN_VERSION=0.9.0
11572 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11574 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11575
11576 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11578 $as_echo "yes" >&6; }
11579 succeeded=yes
11580
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11582 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11583 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11585 $as_echo "$GCONF_CFLAGS" >&6; }
11586
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11588 $as_echo_n "checking GCONF_LIBS... " >&6; }
11589 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11591 $as_echo "$GCONF_LIBS" >&6; }
11592 else
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11595 GCONF_CFLAGS=""
11596 GCONF_LIBS=""
11597 ## If we have a custom action on failure, don't print errors, but
11598 ## do set a variable so people can do so.
11599 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11600
11601 fi
11602
11603
11604
11605 else
11606 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11607 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11608 fi
11609 fi
11610
11611 if test $succeeded = yes; then
11612 HAVE_GCONF=yes
11613 else
11614 HAVE_GCONF=no
11615 fi
11616
11617 if test "$HAVE_GCONF" = yes; then
11618
11619 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11620
11621 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11622 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11623 fi
11624 fi
11625
11626 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11627 SAVE_CFLAGS="$CFLAGS"
11628 SAVE_LDFLAGS="$LDFLAGS"
11629 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11630 LDFLAGS="$SETTINGS_LIBS $LDFLAGS"
11631 for ac_func in g_type_init
11632 do :
11633 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11634 if test "x$ac_cv_func_g_type_init" = xyes; then :
11635 cat >>confdefs.h <<_ACEOF
11636 #define HAVE_G_TYPE_INIT 1
11637 _ACEOF
11638
11639 fi
11640 done
11641
11642 CFLAGS="$SAVE_CFLAGS"
11643 LDFLAGS="$SAVE_LDFLAGS"
11644 fi
11645
11646
11647
11648
11649 HAVE_LIBSELINUX=no
11650 LIBSELINUX_LIBS=
11651 if test "${with_selinux}" = "yes"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11653 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11654 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 ac_check_lib_save_LIBS=$LIBS
11658 LIBS="-lselinux $LIBS"
11659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11661
11662 /* Override any GCC internal prototype to avoid an error.
11663 Use char because int might match the return type of a GCC
11664 builtin and then its argument prototype would still apply. */
11665 #ifdef __cplusplus
11666 extern "C"
11667 #endif
11668 char lgetfilecon ();
11669 int
11670 main ()
11671 {
11672 return lgetfilecon ();
11673 ;
11674 return 0;
11675 }
11676 _ACEOF
11677 if ac_fn_c_try_link "$LINENO"; then :
11678 ac_cv_lib_selinux_lgetfilecon=yes
11679 else
11680 ac_cv_lib_selinux_lgetfilecon=no
11681 fi
11682 rm -f core conftest.err conftest.$ac_objext \
11683 conftest$ac_exeext conftest.$ac_ext
11684 LIBS=$ac_check_lib_save_LIBS
11685 fi
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11687 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11688 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
11689 HAVE_LIBSELINUX=yes
11690 else
11691 HAVE_LIBSELINUX=no
11692 fi
11693
11694 if test "$HAVE_LIBSELINUX" = yes; then
11695
11696 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11697
11698 LIBSELINUX_LIBS=-lselinux
11699 fi
11700 fi
11701
11702
11703 HAVE_GNUTLS=no
11704 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11705 if test "${with_gnutls}" = "yes" ; then
11706
11707 succeeded=no
11708
11709 # Extract the first word of "pkg-config", so it can be a program name with args.
11710 set dummy pkg-config; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11714 $as_echo_n "(cached) " >&6
11715 else
11716 case $PKG_CONFIG in
11717 [\\/]* | ?:[\\/]*)
11718 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11719 ;;
11720 *)
11721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11723 do
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 break 2
11731 fi
11732 done
11733 done
11734 IFS=$as_save_IFS
11735
11736 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11737 ;;
11738 esac
11739 fi
11740 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11741 if test -n "$PKG_CONFIG"; then
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11743 $as_echo "$PKG_CONFIG" >&6; }
11744 else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11747 fi
11748
11749
11750
11751 if test "$PKG_CONFIG" = "no" ; then
11752 HAVE_GNUTLS=no
11753 else
11754 PKG_CONFIG_MIN_VERSION=0.9.0
11755 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11757 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11758
11759 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 $as_echo "yes" >&6; }
11762 succeeded=yes
11763
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11765 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11766 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11768 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11769
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11771 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11772 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11774 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11775 else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11778 LIBGNUTLS_CFLAGS=""
11779 LIBGNUTLS_LIBS=""
11780 ## If we have a custom action on failure, don't print errors, but
11781 ## do set a variable so people can do so.
11782 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11783
11784 fi
11785
11786
11787
11788 else
11789 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11790 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11791 fi
11792 fi
11793
11794 if test $succeeded = yes; then
11795 HAVE_GNUTLS=yes
11796 else
11797 HAVE_GNUTLS=no
11798 fi
11799
11800 if test "${HAVE_GNUTLS}" = "yes"; then
11801
11802 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11803
11804 fi
11805
11806 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11807 LIBS="$LIBGNUTLS_LIBS $LIBS"
11808 for ac_func in gnutls_certificate_set_verify_function
11809 do :
11810 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11811 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = xyes; then :
11812 cat >>confdefs.h <<_ACEOF
11813 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11814 _ACEOF
11815 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11816 fi
11817 done
11818
11819
11820 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11821
11822 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11823
11824 fi
11825 fi
11826
11827
11828
11829
11830 HAVE_XAW3D=no
11831 LUCID_LIBW=
11832 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11833 if test "$with_xaw3d" != no; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11835 $as_echo_n "checking for xaw3d... " >&6; }
11836 if ${emacs_cv_xaw3d+:} false; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11841
11842 #include <X11/Intrinsic.h>
11843 #include <X11/Xaw3d/Simple.h>
11844 int
11845 main ()
11846 {
11847
11848 ;
11849 return 0;
11850 }
11851 _ACEOF
11852 if ac_fn_c_try_link "$LINENO"; then :
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11854 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11855 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 ac_check_lib_save_LIBS=$LIBS
11859 LIBS="-lXaw3d $LIBS"
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862
11863 /* Override any GCC internal prototype to avoid an error.
11864 Use char because int might match the return type of a GCC
11865 builtin and then its argument prototype would still apply. */
11866 #ifdef __cplusplus
11867 extern "C"
11868 #endif
11869 char XawScrollbarSetThumb ();
11870 int
11871 main ()
11872 {
11873 return XawScrollbarSetThumb ();
11874 ;
11875 return 0;
11876 }
11877 _ACEOF
11878 if ac_fn_c_try_link "$LINENO"; then :
11879 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11880 else
11881 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11882 fi
11883 rm -f core conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11885 LIBS=$ac_check_lib_save_LIBS
11886 fi
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11888 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11889 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
11890 emacs_cv_xaw3d=yes
11891 else
11892 emacs_cv_xaw3d=no
11893 fi
11894
11895 else
11896 emacs_cv_xaw3d=no
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11900 fi
11901
11902 else
11903 emacs_cv_xaw3d=no
11904 fi
11905 if test $emacs_cv_xaw3d = yes; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11907 $as_echo "yes; using Lucid toolkit" >&6; }
11908 USE_X_TOOLKIT=LUCID
11909 HAVE_XAW3D=yes
11910 LUCID_LIBW=-lXaw3d
11911
11912 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11913
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11918 $as_echo_n "checking for libXaw... " >&6; }
11919 if ${emacs_cv_xaw+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924
11925 #include <X11/Intrinsic.h>
11926 #include <X11/Xaw/Simple.h>
11927 int
11928 main ()
11929 {
11930
11931 ;
11932 return 0;
11933 }
11934 _ACEOF
11935 if ac_fn_c_try_link "$LINENO"; then :
11936 emacs_cv_xaw=yes
11937 else
11938 emacs_cv_xaw=no
11939 fi
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 fi
11943
11944 if test $emacs_cv_xaw = yes; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11946 $as_echo "yes; using Lucid toolkit" >&6; }
11947 USE_X_TOOLKIT=LUCID
11948 LUCID_LIBW=-lXaw
11949 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11950 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11951 else
11952 as_fn_error $? "No X toolkit could be found.
11953 If you are sure you want Emacs compiled without an X toolkit, pass
11954 --with-x-toolkit=no
11955 to configure. Otherwise, install the development libraries for the toolkit
11956 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11957 fi
11958 fi
11959 fi
11960
11961 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11962
11963 LIBXTR6=
11964 if test "${USE_X_TOOLKIT}" != "none"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11966 $as_echo_n "checking X11 toolkit version... " >&6; }
11967 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 #include <X11/Intrinsic.h>
11973 int
11974 main ()
11975 {
11976 #if XtSpecificationRelease < 6
11977 fail;
11978 #endif
11979
11980 ;
11981 return 0;
11982 }
11983 _ACEOF
11984 if ac_fn_c_try_link "$LINENO"; then :
11985 emacs_cv_x11_toolkit_version_6=yes
11986 else
11987 emacs_cv_x11_toolkit_version_6=no
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext \
11990 conftest$ac_exeext conftest.$ac_ext
11991 fi
11992
11993 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11994 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11996 $as_echo "6 or newer" >&6; }
11997
11998 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11999
12000 LIBXTR6="-lSM -lICE"
12001 case "$opsys" in
12002 ## Use libw.a along with X11R6 Xt.
12003 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12004 esac
12005 else
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12007 $as_echo "before 6" >&6; }
12008 fi
12009
12010 OLDLIBS="$LIBS"
12011 if test x$HAVE_X11XTR6 = xyes; then
12012 LIBS="-lXt -lSM -lICE $LIBS"
12013 else
12014 LIBS="-lXt $LIBS"
12015 fi
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12017 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12018 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 ac_check_lib_save_LIBS=$LIBS
12022 LIBS="-lXmu $LIBS"
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025
12026 /* Override any GCC internal prototype to avoid an error.
12027 Use char because int might match the return type of a GCC
12028 builtin and then its argument prototype would still apply. */
12029 #ifdef __cplusplus
12030 extern "C"
12031 #endif
12032 char XmuConvertStandardSelection ();
12033 int
12034 main ()
12035 {
12036 return XmuConvertStandardSelection ();
12037 ;
12038 return 0;
12039 }
12040 _ACEOF
12041 if ac_fn_c_try_link "$LINENO"; then :
12042 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12043 else
12044 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12045 fi
12046 rm -f core conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12049 fi
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12051 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12052 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
12053 cat >>confdefs.h <<_ACEOF
12054 #define HAVE_LIBXMU 1
12055 _ACEOF
12056
12057 LIBS="-lXmu $LIBS"
12058
12059 fi
12060
12061 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12062 fi
12063
12064
12065 LIBXMU=-lXmu
12066 case $opsys in
12067 ## These systems don't supply Xmu.
12068 hpux* | aix4-2 )
12069 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12070 ;;
12071 esac
12072
12073
12074 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12075 if test "${HAVE_X11}" = "yes"; then
12076 if test "${USE_X_TOOLKIT}" != "none"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12078 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12079 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 ac_check_lib_save_LIBS=$LIBS
12083 LIBS="-lXext $LIBS"
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086
12087 /* Override any GCC internal prototype to avoid an error.
12088 Use char because int might match the return type of a GCC
12089 builtin and then its argument prototype would still apply. */
12090 #ifdef __cplusplus
12091 extern "C"
12092 #endif
12093 char XShapeQueryExtension ();
12094 int
12095 main ()
12096 {
12097 return XShapeQueryExtension ();
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103 ac_cv_lib_Xext_XShapeQueryExtension=yes
12104 else
12105 ac_cv_lib_Xext_XShapeQueryExtension=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109 LIBS=$ac_check_lib_save_LIBS
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12112 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12113 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
12114 cat >>confdefs.h <<_ACEOF
12115 #define HAVE_LIBXEXT 1
12116 _ACEOF
12117
12118 LIBS="-lXext $LIBS"
12119
12120 fi
12121
12122 fi
12123 fi
12124
12125 LIBXP=
12126 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
12128 $as_echo_n "checking for Motif version 2.1... " >&6; }
12129 if ${emacs_cv_motif_version_2_1+:} false; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12134 #include <Xm/Xm.h>
12135 int
12136 main ()
12137 {
12138 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12139 int x = 5;
12140 #else
12141 Motif version prior to 2.1.
12142 #endif
12143 ;
12144 return 0;
12145 }
12146 _ACEOF
12147 if ac_fn_c_try_compile "$LINENO"; then :
12148 emacs_cv_motif_version_2_1=yes
12149 else
12150 emacs_cv_motif_version_2_1=no
12151 fi
12152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153 fi
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12155 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12156 if test $emacs_cv_motif_version_2_1 = yes; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12158 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12159 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-lXp $LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char XpCreateContext ();
12174 int
12175 main ()
12176 {
12177 return XpCreateContext ();
12178 ;
12179 return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_link "$LINENO"; then :
12183 ac_cv_lib_Xp_XpCreateContext=yes
12184 else
12185 ac_cv_lib_Xp_XpCreateContext=no
12186 fi
12187 rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12190 fi
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12192 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12193 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
12194 LIBXP=-lXp
12195 fi
12196
12197 else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12199 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12200 if ${emacs_cv_lesstif+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 # We put this in CFLAGS temporarily to precede other -I options
12204 # that might be in CFLAGS temporarily.
12205 # We put this in CPPFLAGS where it precedes the other -I options.
12206 OLD_CPPFLAGS=$CPPFLAGS
12207 OLD_CFLAGS=$CFLAGS
12208 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12209 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12212 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12213 int
12214 main ()
12215 {
12216 int x = 5;
12217 ;
12218 return 0;
12219 }
12220 _ACEOF
12221 if ac_fn_c_try_compile "$LINENO"; then :
12222 emacs_cv_lesstif=yes
12223 else
12224 emacs_cv_lesstif=no
12225 fi
12226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12229 $as_echo "$emacs_cv_lesstif" >&6; }
12230 if test $emacs_cv_lesstif = yes; then
12231 # Make sure this -I option remains in CPPFLAGS after it is set
12232 # back to REAL_CPPFLAGS.
12233 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12234 # have those other -I options anyway. Ultimately, having this
12235 # directory ultimately in CPPFLAGS will be enough.
12236 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12237 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12238 else
12239 CFLAGS=$OLD_CFLAGS
12240 CPPFLAGS=$OLD_CPPFLAGS
12241 fi
12242 fi
12243 fi
12244
12245
12246 USE_TOOLKIT_SCROLL_BARS=no
12247 if test "${with_toolkit_scroll_bars}" != "no"; then
12248 if test "${USE_X_TOOLKIT}" != "none"; then
12249 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12250 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12251
12252 HAVE_XAW3D=no
12253 USE_TOOLKIT_SCROLL_BARS=yes
12254 elif test "${HAVE_XAW3D}" = "yes"; then
12255 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12256
12257 USE_TOOLKIT_SCROLL_BARS=yes
12258 fi
12259 elif test "${HAVE_GTK}" = "yes"; then
12260 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12261
12262 USE_TOOLKIT_SCROLL_BARS=yes
12263 elif test "${HAVE_NS}" = "yes"; then
12264 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12265
12266 USE_TOOLKIT_SCROLL_BARS=yes
12267 fi
12268 fi
12269
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12272
12273 #include <X11/Xlib.h>
12274 #include <X11/Xresource.h>
12275 int
12276 main ()
12277 {
12278 XIMProc callback;
12279 ;
12280 return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_compile "$LINENO"; then :
12284 HAVE_XIM=yes
12285
12286 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12287
12288 else
12289 HAVE_XIM=no
12290 fi
12291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12292
12293
12294 if test "${with_xim}" != "no"; then
12295
12296 $as_echo "#define USE_XIM 1" >>confdefs.h
12297
12298 fi
12299
12300
12301 if test "${HAVE_XIM}" != "no"; then
12302 late_CFLAGS=$CFLAGS
12303 if test "$GCC" = yes; then
12304 CFLAGS="$CFLAGS --pedantic-errors"
12305 fi
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308
12309 #include <X11/Xlib.h>
12310 #include <X11/Xresource.h>
12311 int
12312 main ()
12313 {
12314 Display *display;
12315 XrmDatabase db;
12316 char *res_name;
12317 char *res_class;
12318 XIMProc callback;
12319 XPointer *client_data;
12320 #ifndef __GNUC__
12321 /* If we're not using GCC, it's probably not XFree86, and this is
12322 probably right, but we can't use something like --pedantic-errors. */
12323 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12324 char*, XIMProc, XPointer*);
12325 #endif
12326 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12327 client_data);
12328 ;
12329 return 0;
12330 }
12331 _ACEOF
12332 if ac_fn_c_try_compile "$LINENO"; then :
12333 emacs_cv_arg6_star=yes
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336 if test "$emacs_cv_arg6_star" = yes; then
12337 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12338
12339 else
12340 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12341
12342 fi
12343 CFLAGS=$late_CFLAGS
12344 fi
12345
12346 ### Start of font-backend (under any platform) section.
12347 # (nothing here yet -- this is a placeholder)
12348 ### End of font-backend (under any platform) section.
12349
12350 ### Start of font-backend (under X11) section.
12351 if test "${HAVE_X11}" = "yes"; then
12352
12353 succeeded=no
12354
12355 # Extract the first word of "pkg-config", so it can be a program name with args.
12356 set dummy pkg-config; ac_word=$2
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 case $PKG_CONFIG in
12363 [\\/]* | ?:[\\/]*)
12364 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12365 ;;
12366 *)
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $PATH
12369 do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12374 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 break 2
12377 fi
12378 done
12379 done
12380 IFS=$as_save_IFS
12381
12382 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12383 ;;
12384 esac
12385 fi
12386 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12387 if test -n "$PKG_CONFIG"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12389 $as_echo "$PKG_CONFIG" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12393 fi
12394
12395
12396
12397 if test "$PKG_CONFIG" = "no" ; then
12398 HAVE_FC=no
12399 else
12400 PKG_CONFIG_MIN_VERSION=0.9.0
12401 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12403 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12404
12405 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12407 $as_echo "yes" >&6; }
12408 succeeded=yes
12409
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
12411 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12412 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
12414 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12415
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
12417 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12418 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
12420 $as_echo "$FONTCONFIG_LIBS" >&6; }
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 FONTCONFIG_CFLAGS=""
12425 FONTCONFIG_LIBS=""
12426 ## If we have a custom action on failure, don't print errors, but
12427 ## do set a variable so people can do so.
12428 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12429
12430 fi
12431
12432
12433
12434 else
12435 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12436 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12437 fi
12438 fi
12439
12440 if test $succeeded = yes; then
12441 HAVE_FC=yes
12442 else
12443 HAVE_FC=no
12444 fi
12445
12446
12447 ## Use -lXft if available, unless `--with-xft=no'.
12448 HAVE_XFT=maybe
12449 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12450 with_xft="no";
12451 fi
12452 if test "x${with_xft}" != "xno"; then
12453
12454
12455 succeeded=no
12456
12457 # Extract the first word of "pkg-config", so it can be a program name with args.
12458 set dummy pkg-config; ac_word=$2
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460 $as_echo_n "checking for $ac_word... " >&6; }
12461 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 case $PKG_CONFIG in
12465 [\\/]* | ?:[\\/]*)
12466 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12467 ;;
12468 *)
12469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470 for as_dir in $PATH
12471 do
12472 IFS=$as_save_IFS
12473 test -z "$as_dir" && as_dir=.
12474 for ac_exec_ext in '' $ac_executable_extensions; do
12475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12476 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12478 break 2
12479 fi
12480 done
12481 done
12482 IFS=$as_save_IFS
12483
12484 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12485 ;;
12486 esac
12487 fi
12488 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12489 if test -n "$PKG_CONFIG"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12491 $as_echo "$PKG_CONFIG" >&6; }
12492 else
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12495 fi
12496
12497
12498
12499 if test "$PKG_CONFIG" = "no" ; then
12500 HAVE_XFT=no
12501 else
12502 PKG_CONFIG_MIN_VERSION=0.9.0
12503 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12505 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12506
12507 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12509 $as_echo "yes" >&6; }
12510 succeeded=yes
12511
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
12513 $as_echo_n "checking XFT_CFLAGS... " >&6; }
12514 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
12516 $as_echo "$XFT_CFLAGS" >&6; }
12517
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
12519 $as_echo_n "checking XFT_LIBS... " >&6; }
12520 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
12522 $as_echo "$XFT_LIBS" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12526 XFT_CFLAGS=""
12527 XFT_LIBS=""
12528 ## If we have a custom action on failure, don't print errors, but
12529 ## do set a variable so people can do so.
12530 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12531
12532 fi
12533
12534
12535
12536 else
12537 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12538 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12539 fi
12540 fi
12541
12542 if test $succeeded = yes; then
12543 :
12544 else
12545 HAVE_XFT=no
12546 fi
12547
12548 ## Because xftfont.c uses XRenderQueryExtension, we also
12549 ## need to link to -lXrender.
12550 HAVE_XRENDER=no
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12552 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12553 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 ac_check_lib_save_LIBS=$LIBS
12557 LIBS="-lXrender $LIBS"
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560
12561 /* Override any GCC internal prototype to avoid an error.
12562 Use char because int might match the return type of a GCC
12563 builtin and then its argument prototype would still apply. */
12564 #ifdef __cplusplus
12565 extern "C"
12566 #endif
12567 char XRenderQueryExtension ();
12568 int
12569 main ()
12570 {
12571 return XRenderQueryExtension ();
12572 ;
12573 return 0;
12574 }
12575 _ACEOF
12576 if ac_fn_c_try_link "$LINENO"; then :
12577 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12578 else
12579 ac_cv_lib_Xrender_XRenderQueryExtension=no
12580 fi
12581 rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext conftest.$ac_ext
12583 LIBS=$ac_check_lib_save_LIBS
12584 fi
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12586 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12587 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
12588 HAVE_XRENDER=yes
12589 fi
12590
12591 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12592 OLD_CPPFLAGS="$CPPFLAGS"
12593 OLD_CFLAGS="$CFLAGS"
12594 OLD_LIBS="$LIBS"
12595 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12596 CFLAGS="$CFLAGS $XFT_CFLAGS"
12597 XFT_LIBS="-lXrender $XFT_LIBS"
12598 LIBS="$XFT_LIBS $LIBS"
12599 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12600 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12602 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12603 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 ac_check_lib_save_LIBS=$LIBS
12607 LIBS="-lXft $XFT_LIBS $LIBS"
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12610
12611 /* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12614 #ifdef __cplusplus
12615 extern "C"
12616 #endif
12617 char XftFontOpen ();
12618 int
12619 main ()
12620 {
12621 return XftFontOpen ();
12622 ;
12623 return 0;
12624 }
12625 _ACEOF
12626 if ac_fn_c_try_link "$LINENO"; then :
12627 ac_cv_lib_Xft_XftFontOpen=yes
12628 else
12629 ac_cv_lib_Xft_XftFontOpen=no
12630 fi
12631 rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 LIBS=$ac_check_lib_save_LIBS
12634 fi
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12636 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12637 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
12638 HAVE_XFT=yes
12639 fi
12640
12641 fi
12642
12643
12644
12645 if test "${HAVE_XFT}" = "yes"; then
12646
12647 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12648
12649
12650 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12651 else
12652 CPPFLAGS="$OLD_CPPFLAGS"
12653 CFLAGS="$OLD_CFLAGS"
12654 LIBS="$OLD_LIBS"
12655 fi # "${HAVE_XFT}" = "yes"
12656 fi # "$HAVE_XFT" != no
12657 fi # "x${with_xft}" != "xno"
12658
12659 ## We used to allow building with FreeType and without Xft.
12660 ## However, the ftx font backend driver is not in good shape.
12661 if test "$HAVE_XFT" != "yes"; then
12662 HAVE_XFT=no
12663 HAVE_FREETYPE=no
12664 else
12665
12666 succeeded=no
12667
12668 # Extract the first word of "pkg-config", so it can be a program name with args.
12669 set dummy pkg-config; ac_word=$2
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12671 $as_echo_n "checking for $ac_word... " >&6; }
12672 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 case $PKG_CONFIG in
12676 [\\/]* | ?:[\\/]*)
12677 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12678 ;;
12679 *)
12680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681 for as_dir in $PATH
12682 do
12683 IFS=$as_save_IFS
12684 test -z "$as_dir" && as_dir=.
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12687 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12689 break 2
12690 fi
12691 done
12692 done
12693 IFS=$as_save_IFS
12694
12695 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12696 ;;
12697 esac
12698 fi
12699 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12700 if test -n "$PKG_CONFIG"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12702 $as_echo "$PKG_CONFIG" >&6; }
12703 else
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12706 fi
12707
12708
12709
12710 if test "$PKG_CONFIG" = "no" ; then
12711 HAVE_FREETYPE=no
12712 else
12713 PKG_CONFIG_MIN_VERSION=0.9.0
12714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12716 $as_echo_n "checking for freetype2... " >&6; }
12717
12718 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12720 $as_echo "yes" >&6; }
12721 succeeded=yes
12722
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12724 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12725 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12727 $as_echo "$FREETYPE_CFLAGS" >&6; }
12728
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12730 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12731 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12733 $as_echo "$FREETYPE_LIBS" >&6; }
12734 else
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12737 FREETYPE_CFLAGS=""
12738 FREETYPE_LIBS=""
12739 ## If we have a custom action on failure, don't print errors, but
12740 ## do set a variable so people can do so.
12741 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12742
12743 fi
12744
12745
12746
12747 else
12748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12750 fi
12751 fi
12752
12753 if test $succeeded = yes; then
12754 HAVE_FREETYPE=yes
12755 else
12756 HAVE_FREETYPE=no
12757 fi
12758
12759
12760 test "$HAVE_FREETYPE" = "no" && as_fn_error $? "libxft requires libfreetype" "$LINENO" 5
12761 fi
12762
12763 HAVE_LIBOTF=no
12764 if test "${HAVE_FREETYPE}" = "yes"; then
12765
12766 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12767
12768 if test "${with_libotf}" != "no"; then
12769
12770 succeeded=no
12771
12772 # Extract the first word of "pkg-config", so it can be a program name with args.
12773 set dummy pkg-config; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 case $PKG_CONFIG in
12780 [\\/]* | ?:[\\/]*)
12781 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12782 ;;
12783 *)
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12794 fi
12795 done
12796 done
12797 IFS=$as_save_IFS
12798
12799 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12800 ;;
12801 esac
12802 fi
12803 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12804 if test -n "$PKG_CONFIG"; then
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12806 $as_echo "$PKG_CONFIG" >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810 fi
12811
12812
12813
12814 if test "$PKG_CONFIG" = "no" ; then
12815 HAVE_LIBOTF=no
12816 else
12817 PKG_CONFIG_MIN_VERSION=0.9.0
12818 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12820 $as_echo_n "checking for libotf... " >&6; }
12821
12822 if $PKG_CONFIG --exists "libotf" 2>&5; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12824 $as_echo "yes" >&6; }
12825 succeeded=yes
12826
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12828 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12829 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12831 $as_echo "$LIBOTF_CFLAGS" >&6; }
12832
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12834 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12835 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12837 $as_echo "$LIBOTF_LIBS" >&6; }
12838 else
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840 $as_echo "no" >&6; }
12841 LIBOTF_CFLAGS=""
12842 LIBOTF_LIBS=""
12843 ## If we have a custom action on failure, don't print errors, but
12844 ## do set a variable so people can do so.
12845 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12846
12847 fi
12848
12849
12850
12851 else
12852 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12853 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12854 fi
12855 fi
12856
12857 if test $succeeded = yes; then
12858 HAVE_LIBOTF=yes
12859 else
12860 HAVE_LIBOTF=no
12861 fi
12862
12863 if test "$HAVE_LIBOTF" = "yes"; then
12864
12865 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12866
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12868 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12869 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
12870 $as_echo_n "(cached) " >&6
12871 else
12872 ac_check_lib_save_LIBS=$LIBS
12873 LIBS="-lotf $LIBS"
12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12876
12877 /* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12880 #ifdef __cplusplus
12881 extern "C"
12882 #endif
12883 char OTF_get_variation_glyphs ();
12884 int
12885 main ()
12886 {
12887 return OTF_get_variation_glyphs ();
12888 ;
12889 return 0;
12890 }
12891 _ACEOF
12892 if ac_fn_c_try_link "$LINENO"; then :
12893 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12894 else
12895 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12896 fi
12897 rm -f core conftest.err conftest.$ac_objext \
12898 conftest$ac_exeext conftest.$ac_ext
12899 LIBS=$ac_check_lib_save_LIBS
12900 fi
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12902 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12903 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
12904 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12905 else
12906 HAVE_OTF_GET_VARIATION_GLYPHS=no
12907 fi
12908
12909 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12910
12911 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12912
12913 fi
12914 fi
12915 fi
12916 fi
12917
12918 HAVE_M17N_FLT=no
12919 if test "${HAVE_LIBOTF}" = yes; then
12920 if test "${with_m17n_flt}" != "no"; then
12921
12922 succeeded=no
12923
12924 # Extract the first word of "pkg-config", so it can be a program name with args.
12925 set dummy pkg-config; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 case $PKG_CONFIG in
12932 [\\/]* | ?:[\\/]*)
12933 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12934 ;;
12935 *)
12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937 for as_dir in $PATH
12938 do
12939 IFS=$as_save_IFS
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
12942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12943 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945 break 2
12946 fi
12947 done
12948 done
12949 IFS=$as_save_IFS
12950
12951 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12952 ;;
12953 esac
12954 fi
12955 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12956 if test -n "$PKG_CONFIG"; then
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12958 $as_echo "$PKG_CONFIG" >&6; }
12959 else
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 $as_echo "no" >&6; }
12962 fi
12963
12964
12965
12966 if test "$PKG_CONFIG" = "no" ; then
12967 HAVE_M17N_FLT=no
12968 else
12969 PKG_CONFIG_MIN_VERSION=0.9.0
12970 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12972 $as_echo_n "checking for m17n-flt... " >&6; }
12973
12974 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12976 $as_echo "yes" >&6; }
12977 succeeded=yes
12978
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12980 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12981 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12983 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12984
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12986 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12987 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12989 $as_echo "$M17N_FLT_LIBS" >&6; }
12990 else
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992 $as_echo "no" >&6; }
12993 M17N_FLT_CFLAGS=""
12994 M17N_FLT_LIBS=""
12995 ## If we have a custom action on failure, don't print errors, but
12996 ## do set a variable so people can do so.
12997 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12998
12999 fi
13000
13001
13002
13003 else
13004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13006 fi
13007 fi
13008
13009 if test $succeeded = yes; then
13010 HAVE_M17N_FLT=yes
13011 else
13012 HAVE_M17N_FLT=no
13013 fi
13014
13015 if test "$HAVE_M17N_FLT" = "yes"; then
13016
13017 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13018
13019 fi
13020 fi
13021 fi
13022 else
13023 HAVE_XFT=no
13024 HAVE_FREETYPE=no
13025 HAVE_LIBOTF=no
13026 HAVE_M17N_FLT=no
13027 fi
13028
13029 ### End of font-backend (under X11) section.
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040 ### Use -lXpm if available, unless `--with-xpm=no'.
13041 HAVE_XPM=no
13042 LIBXPM=
13043 if test "${HAVE_X11}" = "yes"; then
13044 if test "${with_xpm}" != "no"; then
13045 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13046 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13048 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13049 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 ac_check_lib_save_LIBS=$LIBS
13053 LIBS="-lXpm -lX11 $LIBS"
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13056
13057 /* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
13060 #ifdef __cplusplus
13061 extern "C"
13062 #endif
13063 char XpmReadFileToPixmap ();
13064 int
13065 main ()
13066 {
13067 return XpmReadFileToPixmap ();
13068 ;
13069 return 0;
13070 }
13071 _ACEOF
13072 if ac_fn_c_try_link "$LINENO"; then :
13073 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13074 else
13075 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13076 fi
13077 rm -f core conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13079 LIBS=$ac_check_lib_save_LIBS
13080 fi
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13082 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13083 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
13084 HAVE_XPM=yes
13085 fi
13086
13087 fi
13088
13089
13090 if test "${HAVE_XPM}" = "yes"; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13092 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 #include "X11/xpm.h"
13096 #ifndef XpmReturnAllocPixels
13097 no_return_alloc_pixels
13098 #endif
13099
13100 _ACEOF
13101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13102 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13103 HAVE_XPM=no
13104 else
13105 HAVE_XPM=yes
13106 fi
13107 rm -f conftest*
13108
13109
13110 if test "${HAVE_XPM}" = "yes"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13112 $as_echo "yes" >&6; }
13113 else
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13116 fi
13117 fi
13118 fi
13119
13120 if test "${HAVE_XPM}" = "yes"; then
13121
13122 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13123
13124 LIBXPM=-lXpm
13125 fi
13126 fi
13127
13128
13129 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13130 HAVE_JPEG=no
13131 LIBJPEG=
13132 if test "${HAVE_X11}" = "yes"; then
13133 if test "${with_jpeg}" != "no"; then
13134 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13135 if test "x$ac_cv_header_jerror_h" = xyes; then :
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13137 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13138 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 ac_check_lib_save_LIBS=$LIBS
13142 LIBS="-ljpeg $LIBS"
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char jpeg_destroy_compress ();
13153 int
13154 main ()
13155 {
13156 return jpeg_destroy_compress ();
13157 ;
13158 return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_link "$LINENO"; then :
13162 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13163 else
13164 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13165 fi
13166 rm -f core conftest.err conftest.$ac_objext \
13167 conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13169 fi
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13171 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13172 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
13173 HAVE_JPEG=yes
13174 fi
13175
13176 fi
13177
13178
13179 fi
13180
13181 if test "${HAVE_JPEG}" = "yes"; then
13182 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13183
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13186 #include <jpeglib.h>
13187 version=JPEG_LIB_VERSION
13188
13189 _ACEOF
13190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13191 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13192 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13193
13194 else
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13196 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13197 HAVE_JPEG=no
13198 fi
13199 rm -f conftest*
13200
13201 fi
13202 if test "${HAVE_JPEG}" = "yes"; then
13203 LIBJPEG=-ljpeg
13204 fi
13205 fi
13206
13207
13208 ### Use -lpng if available, unless `--with-png=no'.
13209 HAVE_PNG=no
13210 LIBPNG=
13211 if test "${HAVE_X11}" = "yes"; then
13212 if test "${with_png}" != "no"; then
13213 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13214 # in /usr/include/libpng.
13215 for ac_header in png.h libpng/png.h
13216 do :
13217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13218 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13219 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13220 cat >>confdefs.h <<_ACEOF
13221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13222 _ACEOF
13223
13224 fi
13225
13226 done
13227
13228 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13230 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13231 if ${ac_cv_lib_png_png_get_channels+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-lpng -lz -lm $LIBS"
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char png_get_channels ();
13246 int
13247 main ()
13248 {
13249 return png_get_channels ();
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"; then :
13255 ac_cv_lib_png_png_get_channels=yes
13256 else
13257 ac_cv_lib_png_png_get_channels=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LIBS=$ac_check_lib_save_LIBS
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13264 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13265 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
13266 HAVE_PNG=yes
13267 fi
13268
13269 fi
13270 fi
13271
13272 if test "${HAVE_PNG}" = "yes"; then
13273
13274 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13275
13276 LIBPNG="-lpng -lz -lm"
13277 fi
13278 fi
13279
13280
13281 ### Use -ltiff if available, unless `--with-tiff=no'.
13282 HAVE_TIFF=no
13283 LIBTIFF=
13284 if test "${HAVE_X11}" = "yes"; then
13285 if test "${with_tiff}" != "no"; then
13286 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13287 if test "x$ac_cv_header_tiffio_h" = xyes; then :
13288 tifflibs="-lz -lm"
13289 # At least one tiff package requires the jpeg library.
13290 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13292 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13293 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 ac_check_lib_save_LIBS=$LIBS
13297 LIBS="-ltiff $tifflibs $LIBS"
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300
13301 /* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply. */
13304 #ifdef __cplusplus
13305 extern "C"
13306 #endif
13307 char TIFFGetVersion ();
13308 int
13309 main ()
13310 {
13311 return TIFFGetVersion ();
13312 ;
13313 return 0;
13314 }
13315 _ACEOF
13316 if ac_fn_c_try_link "$LINENO"; then :
13317 ac_cv_lib_tiff_TIFFGetVersion=yes
13318 else
13319 ac_cv_lib_tiff_TIFFGetVersion=no
13320 fi
13321 rm -f core conftest.err conftest.$ac_objext \
13322 conftest$ac_exeext conftest.$ac_ext
13323 LIBS=$ac_check_lib_save_LIBS
13324 fi
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13326 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13327 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
13328 HAVE_TIFF=yes
13329 fi
13330
13331 fi
13332
13333
13334 fi
13335
13336 if test "${HAVE_TIFF}" = "yes"; then
13337
13338 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13339
13340 LIBTIFF=-ltiff
13341 fi
13342 fi
13343
13344
13345 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13346 HAVE_GIF=no
13347 LIBGIF=
13348 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13349 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13350 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
13351 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13352 # Earlier versions can crash Emacs.
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13354 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13355 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 ac_check_lib_save_LIBS=$LIBS
13359 LIBS="-lgif $LIBS"
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362
13363 /* Override any GCC internal prototype to avoid an error.
13364 Use char because int might match the return type of a GCC
13365 builtin and then its argument prototype would still apply. */
13366 #ifdef __cplusplus
13367 extern "C"
13368 #endif
13369 char EGifPutExtensionLast ();
13370 int
13371 main ()
13372 {
13373 return EGifPutExtensionLast ();
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_link "$LINENO"; then :
13379 ac_cv_lib_gif_EGifPutExtensionLast=yes
13380 else
13381 ac_cv_lib_gif_EGifPutExtensionLast=no
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext \
13384 conftest$ac_exeext conftest.$ac_ext
13385 LIBS=$ac_check_lib_save_LIBS
13386 fi
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13388 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13389 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
13390 HAVE_GIF=yes
13391 else
13392 HAVE_GIF=maybe
13393 fi
13394
13395 fi
13396
13397
13398
13399 if test "$HAVE_GIF" = yes; then
13400 LIBGIF=-lgif
13401 elif test "$HAVE_GIF" = maybe; then
13402 # If gif_lib.h but no libgif, try libungif.
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13404 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13405 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 ac_check_lib_save_LIBS=$LIBS
13409 LIBS="-lungif $LIBS"
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412
13413 /* Override any GCC internal prototype to avoid an error.
13414 Use char because int might match the return type of a GCC
13415 builtin and then its argument prototype would still apply. */
13416 #ifdef __cplusplus
13417 extern "C"
13418 #endif
13419 char EGifPutExtensionLast ();
13420 int
13421 main ()
13422 {
13423 return EGifPutExtensionLast ();
13424 ;
13425 return 0;
13426 }
13427 _ACEOF
13428 if ac_fn_c_try_link "$LINENO"; then :
13429 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13430 else
13431 ac_cv_lib_ungif_EGifPutExtensionLast=no
13432 fi
13433 rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LIBS=$ac_check_lib_save_LIBS
13436 fi
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13438 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13439 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
13440 HAVE_GIF=yes
13441 else
13442 HAVE_GIF=no
13443 fi
13444
13445 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13446 fi
13447
13448 if test "${HAVE_GIF}" = "yes"; then
13449
13450 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13451
13452 fi
13453 fi
13454
13455
13456 if test "${HAVE_X11}" = "yes"; then
13457 MISSING=""
13458 WITH_NO=""
13459 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13460 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13461 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13462 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13463 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13464 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13465 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13466 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13467 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13468 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13469
13470 if test "X${MISSING}" != X; then
13471 as_fn_error $? "The following required libraries were not found:
13472 $MISSING
13473 Maybe some development libraries/packages are missing?
13474 If you don't want to link with them give
13475 $WITH_NO
13476 as options to configure" "$LINENO" 5
13477 fi
13478 fi
13479
13480 ### Use -lgpm if available, unless `--with-gpm=no'.
13481 HAVE_GPM=no
13482 LIBGPM=
13483 if test "${with_gpm}" != "no"; then
13484 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13485 if test "x$ac_cv_header_gpm_h" = xyes; then :
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13487 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13488 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
13489 $as_echo_n "(cached) " >&6
13490 else
13491 ac_check_lib_save_LIBS=$LIBS
13492 LIBS="-lgpm $LIBS"
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495
13496 /* Override any GCC internal prototype to avoid an error.
13497 Use char because int might match the return type of a GCC
13498 builtin and then its argument prototype would still apply. */
13499 #ifdef __cplusplus
13500 extern "C"
13501 #endif
13502 char Gpm_Open ();
13503 int
13504 main ()
13505 {
13506 return Gpm_Open ();
13507 ;
13508 return 0;
13509 }
13510 _ACEOF
13511 if ac_fn_c_try_link "$LINENO"; then :
13512 ac_cv_lib_gpm_Gpm_Open=yes
13513 else
13514 ac_cv_lib_gpm_Gpm_Open=no
13515 fi
13516 rm -f core conftest.err conftest.$ac_objext \
13517 conftest$ac_exeext conftest.$ac_ext
13518 LIBS=$ac_check_lib_save_LIBS
13519 fi
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13521 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13522 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
13523 HAVE_GPM=yes
13524 fi
13525
13526 fi
13527
13528
13529
13530 if test "${HAVE_GPM}" = "yes"; then
13531
13532 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13533
13534 LIBGPM=-lgpm
13535 fi
13536 fi
13537
13538
13539 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
13540 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
13541
13542 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
13543
13544 fi
13545
13546
13547
13548 C_SWITCH_X_SYSTEM=
13549 ### Use NeXTstep API to implement GUI.
13550 if test "${HAVE_NS}" = "yes"; then
13551
13552 $as_echo "#define HAVE_NS 1" >>confdefs.h
13553
13554 if test "${NS_IMPL_COCOA}" = "yes"; then
13555
13556 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13557
13558 GNU_OBJC_CFLAGS=
13559 fi
13560 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13561
13562 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13563
13564 # See also .m.o rule in Makefile.in */
13565 # FIXME: are all these flags really needed? Document here why. */
13566 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
13567 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13568 fi
13569 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13570
13571 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13572
13573 fi
13574 # We also have mouse menus.
13575 HAVE_MENUS=yes
13576 OTHER_FILES=ns-app
13577 fi
13578
13579
13580 ### Use session management (-lSM -lICE) if available
13581 HAVE_X_SM=no
13582 LIBXSM=
13583 if test "${HAVE_X11}" = "yes"; then
13584 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13585 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13587 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13588 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591 ac_check_lib_save_LIBS=$LIBS
13592 LIBS="-lSM -lICE $LIBS"
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595
13596 /* Override any GCC internal prototype to avoid an error.
13597 Use char because int might match the return type of a GCC
13598 builtin and then its argument prototype would still apply. */
13599 #ifdef __cplusplus
13600 extern "C"
13601 #endif
13602 char SmcOpenConnection ();
13603 int
13604 main ()
13605 {
13606 return SmcOpenConnection ();
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"; then :
13612 ac_cv_lib_SM_SmcOpenConnection=yes
13613 else
13614 ac_cv_lib_SM_SmcOpenConnection=no
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13618 LIBS=$ac_check_lib_save_LIBS
13619 fi
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13621 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13622 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
13623 HAVE_X_SM=yes
13624 fi
13625
13626 fi
13627
13628
13629
13630 if test "${HAVE_X_SM}" = "yes"; then
13631
13632 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13633
13634 LIBXSM="-lSM -lICE"
13635 case "$LIBS" in
13636 *-lSM*) ;;
13637 *) LIBS="$LIBXSM $LIBS" ;;
13638 esac
13639 fi
13640 fi
13641
13642
13643 ### Use libxml (-lxml2) if available
13644 if test "${with_xml2}" != "no"; then
13645 ### I'm not sure what the version number should be, so I just guessed.
13646
13647 succeeded=no
13648
13649 # Extract the first word of "pkg-config", so it can be a program name with args.
13650 set dummy pkg-config; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 case $PKG_CONFIG in
13657 [\\/]* | ?:[\\/]*)
13658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13659 ;;
13660 *)
13661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662 for as_dir in $PATH
13663 do
13664 IFS=$as_save_IFS
13665 test -z "$as_dir" && as_dir=.
13666 for ac_exec_ext in '' $ac_executable_extensions; do
13667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13670 break 2
13671 fi
13672 done
13673 done
13674 IFS=$as_save_IFS
13675
13676 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13677 ;;
13678 esac
13679 fi
13680 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13681 if test -n "$PKG_CONFIG"; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13683 $as_echo "$PKG_CONFIG" >&6; }
13684 else
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 $as_echo "no" >&6; }
13687 fi
13688
13689
13690
13691 if test "$PKG_CONFIG" = "no" ; then
13692 HAVE_LIBXML2=no
13693 else
13694 PKG_CONFIG_MIN_VERSION=0.9.0
13695 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13697 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13698
13699 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13701 $as_echo "yes" >&6; }
13702 succeeded=yes
13703
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13705 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13706 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13708 $as_echo "$LIBXML2_CFLAGS" >&6; }
13709
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13711 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13712 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13714 $as_echo "$LIBXML2_LIBS" >&6; }
13715 else
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13717 $as_echo "no" >&6; }
13718 LIBXML2_CFLAGS=""
13719 LIBXML2_LIBS=""
13720 ## If we have a custom action on failure, don't print errors, but
13721 ## do set a variable so people can do so.
13722 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13723
13724 fi
13725
13726
13727
13728 else
13729 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13730 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13731 fi
13732 fi
13733
13734 if test $succeeded = yes; then
13735 HAVE_LIBXML2=yes
13736 else
13737 HAVE_LIBXML2=no
13738 fi
13739
13740 if test "${HAVE_LIBXML2}" = "yes"; then
13741 LIBS="$LIBXML2_LIBS $LIBS"
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13743 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13744 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
13745 $as_echo_n "(cached) " >&6
13746 else
13747 ac_check_lib_save_LIBS=$LIBS
13748 LIBS="-lxml2 $LIBS"
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13751
13752 /* Override any GCC internal prototype to avoid an error.
13753 Use char because int might match the return type of a GCC
13754 builtin and then its argument prototype would still apply. */
13755 #ifdef __cplusplus
13756 extern "C"
13757 #endif
13758 char htmlReadMemory ();
13759 int
13760 main ()
13761 {
13762 return htmlReadMemory ();
13763 ;
13764 return 0;
13765 }
13766 _ACEOF
13767 if ac_fn_c_try_link "$LINENO"; then :
13768 ac_cv_lib_xml2_htmlReadMemory=yes
13769 else
13770 ac_cv_lib_xml2_htmlReadMemory=no
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext \
13773 conftest$ac_exeext conftest.$ac_ext
13774 LIBS=$ac_check_lib_save_LIBS
13775 fi
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13777 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13778 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
13779 HAVE_LIBXML2=yes
13780 else
13781 HAVE_LIBXML2=no
13782 fi
13783
13784 if test "${HAVE_LIBXML2}" = "yes"; then
13785
13786 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13787
13788 else
13789 LIBXML2_LIBS=""
13790 LIBXML2_CFLAGS=""
13791 fi
13792 fi
13793 fi
13794
13795
13796
13797 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13799 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13800 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
13801 $as_echo_n "(cached) " >&6
13802 else
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13805 #include <netdb.h>
13806 int
13807 main ()
13808 {
13809 return h_errno;
13810 ;
13811 return 0;
13812 }
13813 _ACEOF
13814 if ac_fn_c_try_link "$LINENO"; then :
13815 emacs_cv_netdb_declares_h_errno=yes
13816 else
13817 emacs_cv_netdb_declares_h_errno=no
13818 fi
13819 rm -f core conftest.err conftest.$ac_objext \
13820 conftest$ac_exeext conftest.$ac_ext
13821 fi
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13823 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13824 if test $emacs_cv_netdb_declares_h_errno = yes; then
13825
13826 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13827
13828 fi
13829
13830 # fmod, logb, and frexp are found in -lm on most systems.
13831 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13833 $as_echo_n "checking for sqrt in -lm... " >&6; }
13834 if ${ac_cv_lib_m_sqrt+:} false; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 ac_check_lib_save_LIBS=$LIBS
13838 LIBS="-lm $LIBS"
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13841
13842 /* Override any GCC internal prototype to avoid an error.
13843 Use char because int might match the return type of a GCC
13844 builtin and then its argument prototype would still apply. */
13845 #ifdef __cplusplus
13846 extern "C"
13847 #endif
13848 char sqrt ();
13849 int
13850 main ()
13851 {
13852 return sqrt ();
13853 ;
13854 return 0;
13855 }
13856 _ACEOF
13857 if ac_fn_c_try_link "$LINENO"; then :
13858 ac_cv_lib_m_sqrt=yes
13859 else
13860 ac_cv_lib_m_sqrt=no
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 LIBS=$ac_check_lib_save_LIBS
13865 fi
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13867 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13868 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_LIBM 1
13871 _ACEOF
13872
13873 LIBS="-lm $LIBS"
13874
13875 fi
13876
13877
13878 # Check for mail-locking functions in a "mail" library. Probably this should
13879 # have the same check as for liblockfile below.
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13881 $as_echo_n "checking for maillock in -lmail... " >&6; }
13882 if ${ac_cv_lib_mail_maillock+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 ac_check_lib_save_LIBS=$LIBS
13886 LIBS="-lmail $LIBS"
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13889
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13893 #ifdef __cplusplus
13894 extern "C"
13895 #endif
13896 char maillock ();
13897 int
13898 main ()
13899 {
13900 return maillock ();
13901 ;
13902 return 0;
13903 }
13904 _ACEOF
13905 if ac_fn_c_try_link "$LINENO"; then :
13906 ac_cv_lib_mail_maillock=yes
13907 else
13908 ac_cv_lib_mail_maillock=no
13909 fi
13910 rm -f core conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13912 LIBS=$ac_check_lib_save_LIBS
13913 fi
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13915 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13916 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
13917 have_mail=yes
13918 else
13919 have_mail=no
13920 fi
13921
13922 if test $have_mail = yes; then
13923 LIBS_MAIL=-lmail
13924 LIBS="$LIBS_MAIL $LIBS"
13925
13926 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13927
13928 else
13929 LIBS_MAIL=
13930 fi
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13932 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13933 if ${ac_cv_lib_lockfile_maillock+:} false; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 ac_check_lib_save_LIBS=$LIBS
13937 LIBS="-llockfile $LIBS"
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940
13941 /* Override any GCC internal prototype to avoid an error.
13942 Use char because int might match the return type of a GCC
13943 builtin and then its argument prototype would still apply. */
13944 #ifdef __cplusplus
13945 extern "C"
13946 #endif
13947 char maillock ();
13948 int
13949 main ()
13950 {
13951 return maillock ();
13952 ;
13953 return 0;
13954 }
13955 _ACEOF
13956 if ac_fn_c_try_link "$LINENO"; then :
13957 ac_cv_lib_lockfile_maillock=yes
13958 else
13959 ac_cv_lib_lockfile_maillock=no
13960 fi
13961 rm -f core conftest.err conftest.$ac_objext \
13962 conftest$ac_exeext conftest.$ac_ext
13963 LIBS=$ac_check_lib_save_LIBS
13964 fi
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13966 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13967 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
13968 have_lockfile=yes
13969 else
13970 have_lockfile=no
13971 fi
13972
13973 if test $have_lockfile = yes; then
13974 LIBS_MAIL=-llockfile
13975 LIBS="$LIBS_MAIL $LIBS"
13976
13977 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13978
13979 else
13980 # If we have the shared liblockfile, assume we must use it for mail
13981 # locking (e.g. Debian). If we couldn't link against liblockfile
13982 # (no liblockfile.a installed), ensure that we don't need to.
13983 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13984 set dummy liblockfile.so; ac_word=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if ${ac_cv_prog_liblockfile+:} false; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 if test -n "$liblockfile"; then
13991 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13995 for as_dir in $as_dummy
13996 do
13997 IFS=$as_save_IFS
13998 test -z "$as_dir" && as_dir=.
13999 for ac_exec_ext in '' $ac_executable_extensions; do
14000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14001 ac_cv_prog_liblockfile="yes"
14002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14003 break 2
14004 fi
14005 done
14006 done
14007 IFS=$as_save_IFS
14008
14009 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14010 fi
14011 fi
14012 liblockfile=$ac_cv_prog_liblockfile
14013 if test -n "$liblockfile"; then
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14015 $as_echo "$liblockfile" >&6; }
14016 else
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 $as_echo "no" >&6; }
14019 fi
14020
14021
14022 if test $ac_cv_prog_liblockfile = yes; then
14023 as_fn_error $? "Shared liblockfile found but can't link against it.
14024 This probably means that movemail could lose mail.
14025 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14026 fi
14027 fi
14028 for ac_func in touchlock
14029 do :
14030 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
14031 if test "x$ac_cv_func_touchlock" = xyes; then :
14032 cat >>confdefs.h <<_ACEOF
14033 #define HAVE_TOUCHLOCK 1
14034 _ACEOF
14035
14036 fi
14037 done
14038
14039 for ac_header in maillock.h
14040 do :
14041 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
14042 if test "x$ac_cv_header_maillock_h" = xyes; then :
14043 cat >>confdefs.h <<_ACEOF
14044 #define HAVE_MAILLOCK_H 1
14045 _ACEOF
14046
14047 fi
14048
14049 done
14050
14051
14052
14053 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14054 ## interlock access to the mail spool. The alternative is a lock file named
14055 ## /usr/spool/mail/$USER.lock.
14056 mail_lock=no
14057 case "$opsys" in
14058 aix4-2) mail_lock="lockf" ;;
14059
14060 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14061
14062 ## On GNU/Linux systems, both methods are used by various mail programs.
14063 ## I assume most people are using newer mailers that have heard of flock.
14064 ## Change this if you need to.
14065 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14066 ## configure gets the right answers, and that means *NOT* using flock.
14067 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14068 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14069 ## Debian maintainer hasn't provided a clean fix for Emacs.
14070 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14071 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14072 ## correct logic. -- fx
14073 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14074 ## liblockfile is a Free Software replacement for libmail, used on
14075 ## Debian systems and elsewhere. -rfr.
14076 gnu-*)
14077 mail_lock="flock"
14078 if test $have_mail = yes || test $have_lockfile = yes; then
14079 test $ac_cv_header_maillock_h = yes && mail_lock=no
14080 fi
14081 ;;
14082 esac
14083
14084 BLESSMAIL_TARGET=
14085 case "$mail_lock" in
14086 flock)
14087 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14088 ;;
14089
14090 lockf)
14091 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14092 ;;
14093
14094 *) BLESSMAIL_TARGET="need-blessmail" ;;
14095 esac
14096
14097
14098
14099 for ac_func in gethostname getdomainname \
14100 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14101 random lrand48 logb frexp fmod rint cbrt ftime setsid \
14102 strerror fpathconf select euidaccess getpagesize tzset setlocale \
14103 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14104 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
14105 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14106 gai_strerror mkstemp getline getdelim mremap fsync sync \
14107 difftime mempcpy mblen mbrlen posix_memalign \
14108 cfmakeraw cfsetspeed isnan copysign __executable_start
14109 do :
14110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14111 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14112 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14113 cat >>confdefs.h <<_ACEOF
14114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14115 _ACEOF
14116
14117 fi
14118 done
14119
14120
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14122 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14123 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
14124 $as_echo_n "(cached) " >&6
14125 else
14126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14127 /* end confdefs.h. */
14128
14129 int
14130 main ()
14131 {
14132 __builtin_unwind_init ();
14133 ;
14134 return 0;
14135 }
14136 _ACEOF
14137 if ac_fn_c_try_link "$LINENO"; then :
14138 emacs_cv_func___builtin_unwind_init=yes
14139 else
14140 emacs_cv_func___builtin_unwind_init=no
14141 fi
14142 rm -f core conftest.err conftest.$ac_objext \
14143 conftest$ac_exeext conftest.$ac_ext
14144 fi
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14146 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14147 if test $emacs_cv_func___builtin_unwind_init = yes; then
14148
14149 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14150
14151 fi
14152
14153 for ac_header in sys/un.h
14154 do :
14155 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
14156 if test "x$ac_cv_header_sys_un_h" = xyes; then :
14157 cat >>confdefs.h <<_ACEOF
14158 #define HAVE_SYS_UN_H 1
14159 _ACEOF
14160
14161 fi
14162
14163 done
14164
14165
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14167 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14168 if ${ac_cv_sys_largefile_source+:} false; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 while :; do
14172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14173 /* end confdefs.h. */
14174 #include <sys/types.h> /* for off_t */
14175 #include <stdio.h>
14176 int
14177 main ()
14178 {
14179 int (*fp) (FILE *, off_t, int) = fseeko;
14180 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_link "$LINENO"; then :
14186 ac_cv_sys_largefile_source=no; break
14187 fi
14188 rm -f core conftest.err conftest.$ac_objext \
14189 conftest$ac_exeext conftest.$ac_ext
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 #define _LARGEFILE_SOURCE 1
14193 #include <sys/types.h> /* for off_t */
14194 #include <stdio.h>
14195 int
14196 main ()
14197 {
14198 int (*fp) (FILE *, off_t, int) = fseeko;
14199 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14200 ;
14201 return 0;
14202 }
14203 _ACEOF
14204 if ac_fn_c_try_link "$LINENO"; then :
14205 ac_cv_sys_largefile_source=1; break
14206 fi
14207 rm -f core conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14209 ac_cv_sys_largefile_source=unknown
14210 break
14211 done
14212 fi
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14214 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14215 case $ac_cv_sys_largefile_source in #(
14216 no | unknown) ;;
14217 *)
14218 cat >>confdefs.h <<_ACEOF
14219 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14220 _ACEOF
14221 ;;
14222 esac
14223 rm -rf conftest*
14224
14225 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14226 # in glibc 2.1.3, but that breaks too many other things.
14227 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14228 if test $ac_cv_sys_largefile_source != unknown; then
14229
14230 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14231
14232 fi
14233
14234
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
14236 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
14237 if ${ac_cv_func_getpgrp_void+:} false; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14240 # Use it with a single arg.
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14243 $ac_includes_default
14244 int
14245 main ()
14246 {
14247 getpgrp (0);
14248 ;
14249 return 0;
14250 }
14251 _ACEOF
14252 if ac_fn_c_try_compile "$LINENO"; then :
14253 ac_cv_func_getpgrp_void=no
14254 else
14255 ac_cv_func_getpgrp_void=yes
14256 fi
14257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258
14259 fi
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
14261 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
14262 if test $ac_cv_func_getpgrp_void = yes; then
14263
14264 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
14265
14266 fi
14267
14268
14269 # UNIX98 PTYs.
14270 for ac_func in grantpt
14271 do :
14272 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14273 if test "x$ac_cv_func_grantpt" = xyes; then :
14274 cat >>confdefs.h <<_ACEOF
14275 #define HAVE_GRANTPT 1
14276 _ACEOF
14277
14278 fi
14279 done
14280
14281
14282 # PTY-related GNU extensions.
14283 for ac_func in getpt
14284 do :
14285 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
14286 if test "x$ac_cv_func_getpt" = xyes; then :
14287 cat >>confdefs.h <<_ACEOF
14288 #define HAVE_GETPT 1
14289 _ACEOF
14290
14291 fi
14292 done
14293
14294
14295 # Check this now, so that we will NOT find the above functions in ncurses.
14296 # That is because we have not set up to link ncurses in lib-src.
14297 # It's better to believe a function is not available
14298 # than to expect to find it in ncurses.
14299 # Also we need tputs and friends to be able to build at all.
14300 have_tputs_et_al=true
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14302 $as_echo_n "checking for library containing tputs... " >&6; }
14303 if ${ac_cv_search_tputs+:} false; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 ac_func_search_save_LIBS=$LIBS
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309
14310 /* Override any GCC internal prototype to avoid an error.
14311 Use char because int might match the return type of a GCC
14312 builtin and then its argument prototype would still apply. */
14313 #ifdef __cplusplus
14314 extern "C"
14315 #endif
14316 char tputs ();
14317 int
14318 main ()
14319 {
14320 return tputs ();
14321 ;
14322 return 0;
14323 }
14324 _ACEOF
14325 for ac_lib in '' ncurses terminfo termcap; do
14326 if test -z "$ac_lib"; then
14327 ac_res="none required"
14328 else
14329 ac_res=-l$ac_lib
14330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14331 fi
14332 if ac_fn_c_try_link "$LINENO"; then :
14333 ac_cv_search_tputs=$ac_res
14334 fi
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext
14337 if ${ac_cv_search_tputs+:} false; then :
14338 break
14339 fi
14340 done
14341 if ${ac_cv_search_tputs+:} false; then :
14342
14343 else
14344 ac_cv_search_tputs=no
14345 fi
14346 rm conftest.$ac_ext
14347 LIBS=$ac_func_search_save_LIBS
14348 fi
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
14350 $as_echo "$ac_cv_search_tputs" >&6; }
14351 ac_res=$ac_cv_search_tputs
14352 if test "$ac_res" != no; then :
14353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14354
14355 else
14356 have_tputs_et_al=false
14357 fi
14358
14359 if test "$have_tputs_et_al" != true; then
14360 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
14361 Maybe some development libraries/packages are missing? Try installing
14362 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
14363 fi
14364 # Must define this when any termcap library is found.
14365
14366 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
14367
14368 ## FIXME This was the cpp logic, but I am not sure it is right.
14369 ## The above test has not necessarily found libncurses.
14370 HAVE_LIBNCURSES=yes
14371
14372 ## Use terminfo instead of termcap?
14373 ## Note only system files NOT using terminfo are:
14374 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
14375 ## darwin|gnu without ncurses.
14376 TERMINFO=no
14377 LIBS_TERMCAP=
14378 case "$opsys" in
14379 ## cygwin: Fewer environment variables to go wrong, more terminal types.
14380 ## hpux10-20: Use the system provided termcap(3) library.
14381 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
14382 ## is necessary. Otherwise Emacs dumps core when run -nw.
14383 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
14384
14385 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14386 ## The ncurses library has been moved out of the System framework in
14387 ## Mac OS X 10.2. So if configure detects it, set the command-line
14388 ## option to use it.
14389 darwin|gnu*)
14390 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
14391 if test "x$HAVE_LIBNCURSES" = "xyes"; then
14392 TERMINFO=yes
14393 LIBS_TERMCAP="-lncurses"
14394 fi
14395 ;;
14396
14397 freebsd)
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14399 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14400 if ${emacs_cv_freebsd_terminfo+:} false; then :
14401 $as_echo_n "(cached) " >&6
14402 else
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 #include <osreldate.h>
14406 int
14407 main ()
14408 {
14409 #if __FreeBSD_version < 400000
14410 fail;
14411 #endif
14412
14413 ;
14414 return 0;
14415 }
14416 _ACEOF
14417 if ac_fn_c_try_link "$LINENO"; then :
14418 emacs_cv_freebsd_terminfo=yes
14419 else
14420 emacs_cv_freebsd_terminfo=no
14421 fi
14422 rm -f core conftest.err conftest.$ac_objext \
14423 conftest$ac_exeext conftest.$ac_ext
14424 fi
14425
14426
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14428 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14429
14430 if test $emacs_cv_freebsd_terminfo = yes; then
14431 TERMINFO=yes
14432 LIBS_TERMCAP="-lncurses"
14433 else
14434 LIBS_TERMCAP="-ltermcap"
14435 fi
14436 ;;
14437
14438 netbsd)
14439 if test $ac_cv_search_tputs = -lterminfo; then
14440 TERMINFO=yes
14441 LIBS_TERMCAP="-lterminfo"
14442 else
14443 LIBS_TERMCAP="-ltermcap"
14444 fi
14445 ;;
14446
14447 esac
14448
14449 case "$opsys" in
14450 ## hpux: Make sure we get select from libc rather than from libcurses
14451 ## because libcurses on HPUX 10.10 has a broken version of select.
14452 ## We used to use -lc -lcurses, but this may be cleaner.
14453 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14454
14455 openbsd) LIBS_TERMCAP="-lncurses" ;;
14456
14457 ## Must use system termcap, if we use any termcap. It does special things.
14458 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
14459 esac
14460
14461 TERMCAP_OBJ=tparam.o
14462 if test $TERMINFO = yes; then
14463
14464 $as_echo "#define TERMINFO 1" >>confdefs.h
14465
14466
14467 ## Default used to be -ltermcap. Add a case above if need something else.
14468 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
14469
14470 TERMCAP_OBJ=terminfo.o
14471 fi
14472
14473
14474
14475
14476 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14477 resolv=no
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480 #include <netinet/in.h>
14481 #include <arpa/nameser.h>
14482 #include <resolv.h>
14483 int
14484 main ()
14485 {
14486 return res_init();
14487 ;
14488 return 0;
14489 }
14490 _ACEOF
14491 if ac_fn_c_try_link "$LINENO"; then :
14492 have_res_init=yes
14493 else
14494 have_res_init=no
14495 fi
14496 rm -f core conftest.err conftest.$ac_objext \
14497 conftest$ac_exeext conftest.$ac_ext
14498 if test "$have_res_init" = no; then
14499 OLIBS="$LIBS"
14500 LIBS="$LIBS -lresolv"
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14502 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504 /* end confdefs.h. */
14505 #include <netinet/in.h>
14506 #include <arpa/nameser.h>
14507 #include <resolv.h>
14508 int
14509 main ()
14510 {
14511 return res_init();
14512 ;
14513 return 0;
14514 }
14515 _ACEOF
14516 if ac_fn_c_try_link "$LINENO"; then :
14517 have_res_init=yes
14518 else
14519 have_res_init=no
14520 fi
14521 rm -f core conftest.err conftest.$ac_objext \
14522 conftest$ac_exeext conftest.$ac_ext
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14524 $as_echo "$have_res_init" >&6; }
14525 if test "$have_res_init" = yes ; then
14526 resolv=yes
14527 fi
14528 LIBS="$OLIBS"
14529 fi
14530
14531 if test "$have_res_init" = yes; then
14532
14533 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14534
14535 fi
14536
14537 # Do we need the Hesiod library to provide the support routines?
14538 LIBHESIOD=
14539 if test "$with_hesiod" != no ; then
14540 # Don't set $LIBS here -- see comments above. FIXME which comments?
14541 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14542 if test "x$ac_cv_func_res_send" = xyes; then :
14543
14544 else
14545 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14546 if test "x$ac_cv_func___res_send" = xyes; then :
14547
14548 else
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14550 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14551 if ${ac_cv_lib_resolv_res_send+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 ac_check_lib_save_LIBS=$LIBS
14555 LIBS="-lresolv $LIBS"
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14558
14559 /* Override any GCC internal prototype to avoid an error.
14560 Use char because int might match the return type of a GCC
14561 builtin and then its argument prototype would still apply. */
14562 #ifdef __cplusplus
14563 extern "C"
14564 #endif
14565 char res_send ();
14566 int
14567 main ()
14568 {
14569 return res_send ();
14570 ;
14571 return 0;
14572 }
14573 _ACEOF
14574 if ac_fn_c_try_link "$LINENO"; then :
14575 ac_cv_lib_resolv_res_send=yes
14576 else
14577 ac_cv_lib_resolv_res_send=no
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext conftest.$ac_ext
14581 LIBS=$ac_check_lib_save_LIBS
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14584 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14585 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
14586 resolv=yes
14587 else
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14589 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14590 if ${ac_cv_lib_resolv___res_send+:} false; then :
14591 $as_echo_n "(cached) " >&6
14592 else
14593 ac_check_lib_save_LIBS=$LIBS
14594 LIBS="-lresolv $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 __res_send ();
14605 int
14606 main ()
14607 {
14608 return __res_send ();
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 if ac_fn_c_try_link "$LINENO"; then :
14614 ac_cv_lib_resolv___res_send=yes
14615 else
14616 ac_cv_lib_resolv___res_send=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_resolv___res_send" >&5
14623 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14624 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
14625 resolv=yes
14626 fi
14627
14628 fi
14629
14630 fi
14631
14632 fi
14633
14634 if test "$resolv" = yes ; then
14635 RESOLVLIB=-lresolv
14636 else
14637 RESOLVLIB=
14638 fi
14639 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14640 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
14641
14642 else
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14644 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14645 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 ac_check_lib_save_LIBS=$LIBS
14649 LIBS="-lhesiod $RESOLVLIB $LIBS"
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14656 #ifdef __cplusplus
14657 extern "C"
14658 #endif
14659 char hes_getmailhost ();
14660 int
14661 main ()
14662 {
14663 return hes_getmailhost ();
14664 ;
14665 return 0;
14666 }
14667 _ACEOF
14668 if ac_fn_c_try_link "$LINENO"; then :
14669 ac_cv_lib_hesiod_hes_getmailhost=yes
14670 else
14671 ac_cv_lib_hesiod_hes_getmailhost=no
14672 fi
14673 rm -f core conftest.err conftest.$ac_objext \
14674 conftest$ac_exeext conftest.$ac_ext
14675 LIBS=$ac_check_lib_save_LIBS
14676 fi
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14678 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14679 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
14680 hesiod=yes
14681 else
14682 :
14683 fi
14684
14685 fi
14686
14687
14688 if test x"$hesiod" = xyes; then
14689
14690 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14691
14692 LIBHESIOD=-lhesiod
14693 fi
14694 fi
14695
14696
14697 # Do we need libresolv (due to res_init or Hesiod)?
14698 if test "$resolv" = yes ; then
14699
14700 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14701
14702 LIBRESOLV=-lresolv
14703 else
14704 LIBRESOLV=
14705 fi
14706
14707
14708 # These tell us which Kerberos-related libraries to use.
14709 COM_ERRLIB=
14710 CRYPTOLIB=
14711 KRB5LIB=
14712 DESLIB=
14713 KRB4LIB=
14714
14715 if test "${with_kerberos}" != no; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14717 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14718 if ${ac_cv_lib_com_err_com_err+:} false; then :
14719 $as_echo_n "(cached) " >&6
14720 else
14721 ac_check_lib_save_LIBS=$LIBS
14722 LIBS="-lcom_err $LIBS"
14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724 /* end confdefs.h. */
14725
14726 /* Override any GCC internal prototype to avoid an error.
14727 Use char because int might match the return type of a GCC
14728 builtin and then its argument prototype would still apply. */
14729 #ifdef __cplusplus
14730 extern "C"
14731 #endif
14732 char com_err ();
14733 int
14734 main ()
14735 {
14736 return com_err ();
14737 ;
14738 return 0;
14739 }
14740 _ACEOF
14741 if ac_fn_c_try_link "$LINENO"; then :
14742 ac_cv_lib_com_err_com_err=yes
14743 else
14744 ac_cv_lib_com_err_com_err=no
14745 fi
14746 rm -f core conftest.err conftest.$ac_objext \
14747 conftest$ac_exeext conftest.$ac_ext
14748 LIBS=$ac_check_lib_save_LIBS
14749 fi
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14751 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14752 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
14753 have_com_err=yes
14754 else
14755 have_com_err=no
14756 fi
14757
14758 if test $have_com_err = yes; then
14759 COM_ERRLIB=-lcom_err
14760 LIBS="$COM_ERRLIB $LIBS"
14761
14762 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14763
14764 fi
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14766 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14767 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
14768 $as_echo_n "(cached) " >&6
14769 else
14770 ac_check_lib_save_LIBS=$LIBS
14771 LIBS="-lcrypto $LIBS"
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773 /* end confdefs.h. */
14774
14775 /* Override any GCC internal prototype to avoid an error.
14776 Use char because int might match the return type of a GCC
14777 builtin and then its argument prototype would still apply. */
14778 #ifdef __cplusplus
14779 extern "C"
14780 #endif
14781 char mit_des_cbc_encrypt ();
14782 int
14783 main ()
14784 {
14785 return mit_des_cbc_encrypt ();
14786 ;
14787 return 0;
14788 }
14789 _ACEOF
14790 if ac_fn_c_try_link "$LINENO"; then :
14791 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14792 else
14793 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14794 fi
14795 rm -f core conftest.err conftest.$ac_objext \
14796 conftest$ac_exeext conftest.$ac_ext
14797 LIBS=$ac_check_lib_save_LIBS
14798 fi
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14800 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14801 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
14802 have_crypto=yes
14803 else
14804 have_crypto=no
14805 fi
14806
14807 if test $have_crypto = yes; then
14808 CRYPTOLIB=-lcrypto
14809 LIBS="$CRYPTOLIB $LIBS"
14810
14811 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14812
14813 fi
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14815 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14816 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
14817 $as_echo_n "(cached) " >&6
14818 else
14819 ac_check_lib_save_LIBS=$LIBS
14820 LIBS="-lk5crypto $LIBS"
14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14823
14824 /* Override any GCC internal prototype to avoid an error.
14825 Use char because int might match the return type of a GCC
14826 builtin and then its argument prototype would still apply. */
14827 #ifdef __cplusplus
14828 extern "C"
14829 #endif
14830 char mit_des_cbc_encrypt ();
14831 int
14832 main ()
14833 {
14834 return mit_des_cbc_encrypt ();
14835 ;
14836 return 0;
14837 }
14838 _ACEOF
14839 if ac_fn_c_try_link "$LINENO"; then :
14840 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14841 else
14842 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14843 fi
14844 rm -f core conftest.err conftest.$ac_objext \
14845 conftest$ac_exeext conftest.$ac_ext
14846 LIBS=$ac_check_lib_save_LIBS
14847 fi
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14849 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14850 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
14851 have_k5crypto=yes
14852 else
14853 have_k5crypto=no
14854 fi
14855
14856 if test $have_k5crypto = yes; then
14857 CRYPTOLIB=-lk5crypto
14858 LIBS="$CRYPTOLIB $LIBS"
14859
14860 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14861
14862 fi
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14864 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14865 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 ac_check_lib_save_LIBS=$LIBS
14869 LIBS="-lkrb5 $LIBS"
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14872
14873 /* Override any GCC internal prototype to avoid an error.
14874 Use char because int might match the return type of a GCC
14875 builtin and then its argument prototype would still apply. */
14876 #ifdef __cplusplus
14877 extern "C"
14878 #endif
14879 char krb5_init_context ();
14880 int
14881 main ()
14882 {
14883 return krb5_init_context ();
14884 ;
14885 return 0;
14886 }
14887 _ACEOF
14888 if ac_fn_c_try_link "$LINENO"; then :
14889 ac_cv_lib_krb5_krb5_init_context=yes
14890 else
14891 ac_cv_lib_krb5_krb5_init_context=no
14892 fi
14893 rm -f core conftest.err conftest.$ac_objext \
14894 conftest$ac_exeext conftest.$ac_ext
14895 LIBS=$ac_check_lib_save_LIBS
14896 fi
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14898 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14899 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
14900 have_krb5=yes
14901 else
14902 have_krb5=no
14903 fi
14904
14905 if test $have_krb5=yes; then
14906 KRB5LIB=-lkrb5
14907 LIBS="$KRB5LIB $LIBS"
14908
14909 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14910
14911 fi
14912 if test "${with_kerberos5}" = no; then
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14914 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14915 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
14916 $as_echo_n "(cached) " >&6
14917 else
14918 ac_check_lib_save_LIBS=$LIBS
14919 LIBS="-ldes425 $LIBS"
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922
14923 /* Override any GCC internal prototype to avoid an error.
14924 Use char because int might match the return type of a GCC
14925 builtin and then its argument prototype would still apply. */
14926 #ifdef __cplusplus
14927 extern "C"
14928 #endif
14929 char des_cbc_encrypt ();
14930 int
14931 main ()
14932 {
14933 return des_cbc_encrypt ();
14934 ;
14935 return 0;
14936 }
14937 _ACEOF
14938 if ac_fn_c_try_link "$LINENO"; then :
14939 ac_cv_lib_des425_des_cbc_encrypt=yes
14940 else
14941 ac_cv_lib_des425_des_cbc_encrypt=no
14942 fi
14943 rm -f core conftest.err conftest.$ac_objext \
14944 conftest$ac_exeext conftest.$ac_ext
14945 LIBS=$ac_check_lib_save_LIBS
14946 fi
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14948 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14949 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
14950 have_des425=yes
14951 else
14952 have_des425=no
14953 fi
14954
14955 if test $have_des425 = yes; then
14956 DESLIB=-ldes425
14957 LIBS="$DESLIB $LIBS"
14958
14959 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14960
14961 else
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14963 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14964 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967 ac_check_lib_save_LIBS=$LIBS
14968 LIBS="-ldes $LIBS"
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971
14972 /* Override any GCC internal prototype to avoid an error.
14973 Use char because int might match the return type of a GCC
14974 builtin and then its argument prototype would still apply. */
14975 #ifdef __cplusplus
14976 extern "C"
14977 #endif
14978 char des_cbc_encrypt ();
14979 int
14980 main ()
14981 {
14982 return des_cbc_encrypt ();
14983 ;
14984 return 0;
14985 }
14986 _ACEOF
14987 if ac_fn_c_try_link "$LINENO"; then :
14988 ac_cv_lib_des_des_cbc_encrypt=yes
14989 else
14990 ac_cv_lib_des_des_cbc_encrypt=no
14991 fi
14992 rm -f core conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14997 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14998 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
14999 have_des=yes
15000 else
15001 have_des=no
15002 fi
15003
15004 if test $have_des = yes; then
15005 DESLIB=-ldes
15006 LIBS="$DESLIB $LIBS"
15007
15008 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
15009
15010 fi
15011 fi
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15013 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15014 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
15015 $as_echo_n "(cached) " >&6
15016 else
15017 ac_check_lib_save_LIBS=$LIBS
15018 LIBS="-lkrb4 $LIBS"
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15021
15022 /* Override any GCC internal prototype to avoid an error.
15023 Use char because int might match the return type of a GCC
15024 builtin and then its argument prototype would still apply. */
15025 #ifdef __cplusplus
15026 extern "C"
15027 #endif
15028 char krb_get_cred ();
15029 int
15030 main ()
15031 {
15032 return krb_get_cred ();
15033 ;
15034 return 0;
15035 }
15036 _ACEOF
15037 if ac_fn_c_try_link "$LINENO"; then :
15038 ac_cv_lib_krb4_krb_get_cred=yes
15039 else
15040 ac_cv_lib_krb4_krb_get_cred=no
15041 fi
15042 rm -f core conftest.err conftest.$ac_objext \
15043 conftest$ac_exeext conftest.$ac_ext
15044 LIBS=$ac_check_lib_save_LIBS
15045 fi
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15047 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15048 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
15049 have_krb4=yes
15050 else
15051 have_krb4=no
15052 fi
15053
15054 if test $have_krb4 = yes; then
15055 KRB4LIB=-lkrb4
15056 LIBS="$KRB4LIB $LIBS"
15057
15058 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
15059
15060 else
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15062 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15063 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 ac_check_lib_save_LIBS=$LIBS
15067 LIBS="-lkrb $LIBS"
15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15070
15071 /* Override any GCC internal prototype to avoid an error.
15072 Use char because int might match the return type of a GCC
15073 builtin and then its argument prototype would still apply. */
15074 #ifdef __cplusplus
15075 extern "C"
15076 #endif
15077 char krb_get_cred ();
15078 int
15079 main ()
15080 {
15081 return krb_get_cred ();
15082 ;
15083 return 0;
15084 }
15085 _ACEOF
15086 if ac_fn_c_try_link "$LINENO"; then :
15087 ac_cv_lib_krb_krb_get_cred=yes
15088 else
15089 ac_cv_lib_krb_krb_get_cred=no
15090 fi
15091 rm -f core conftest.err conftest.$ac_objext \
15092 conftest$ac_exeext conftest.$ac_ext
15093 LIBS=$ac_check_lib_save_LIBS
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15096 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15097 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
15098 have_krb=yes
15099 else
15100 have_krb=no
15101 fi
15102
15103 if test $have_krb = yes; then
15104 KRB4LIB=-lkrb
15105 LIBS="$KRB4LIB $LIBS"
15106
15107 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
15108
15109 fi
15110 fi
15111 fi
15112
15113 if test "${with_kerberos5}" != no; then
15114 for ac_header in krb5.h
15115 do :
15116 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15117 if test "x$ac_cv_header_krb5_h" = xyes; then :
15118 cat >>confdefs.h <<_ACEOF
15119 #define HAVE_KRB5_H 1
15120 _ACEOF
15121 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15122 "
15123 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
15124
15125 cat >>confdefs.h <<_ACEOF
15126 #define HAVE_KRB5_ERROR_TEXT 1
15127 _ACEOF
15128
15129
15130 fi
15131 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15132 "
15133 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
15134
15135 cat >>confdefs.h <<_ACEOF
15136 #define HAVE_KRB5_ERROR_E_TEXT 1
15137 _ACEOF
15138
15139
15140 fi
15141
15142 fi
15143
15144 done
15145
15146 else
15147 for ac_header in des.h
15148 do :
15149 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
15150 if test "x$ac_cv_header_des_h" = xyes; then :
15151 cat >>confdefs.h <<_ACEOF
15152 #define HAVE_DES_H 1
15153 _ACEOF
15154
15155 else
15156 for ac_header in kerberosIV/des.h
15157 do :
15158 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
15159 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
15160 cat >>confdefs.h <<_ACEOF
15161 #define HAVE_KERBEROSIV_DES_H 1
15162 _ACEOF
15163
15164 else
15165 for ac_header in kerberos/des.h
15166 do :
15167 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
15168 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
15169 cat >>confdefs.h <<_ACEOF
15170 #define HAVE_KERBEROS_DES_H 1
15171 _ACEOF
15172
15173 fi
15174
15175 done
15176
15177 fi
15178
15179 done
15180
15181 fi
15182
15183 done
15184
15185 for ac_header in krb.h
15186 do :
15187 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15188 if test "x$ac_cv_header_krb_h" = xyes; then :
15189 cat >>confdefs.h <<_ACEOF
15190 #define HAVE_KRB_H 1
15191 _ACEOF
15192
15193 else
15194 for ac_header in kerberosIV/krb.h
15195 do :
15196 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15197 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
15198 cat >>confdefs.h <<_ACEOF
15199 #define HAVE_KERBEROSIV_KRB_H 1
15200 _ACEOF
15201
15202 else
15203 for ac_header in kerberos/krb.h
15204 do :
15205 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15206 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
15207 cat >>confdefs.h <<_ACEOF
15208 #define HAVE_KERBEROS_KRB_H 1
15209 _ACEOF
15210
15211 fi
15212
15213 done
15214
15215 fi
15216
15217 done
15218
15219 fi
15220
15221 done
15222
15223 fi
15224 for ac_header in com_err.h
15225 do :
15226 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15227 if test "x$ac_cv_header_com_err_h" = xyes; then :
15228 cat >>confdefs.h <<_ACEOF
15229 #define HAVE_COM_ERR_H 1
15230 _ACEOF
15231
15232 fi
15233
15234 done
15235
15236 fi
15237
15238
15239
15240
15241
15242
15243
15244 # Solaris requires -lintl if you want strerror (which calls dgettext)
15245 # to return localized messages.
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15247 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15248 if ${ac_cv_lib_intl_dgettext+:} false; then :
15249 $as_echo_n "(cached) " >&6
15250 else
15251 ac_check_lib_save_LIBS=$LIBS
15252 LIBS="-lintl $LIBS"
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15255
15256 /* Override any GCC internal prototype to avoid an error.
15257 Use char because int might match the return type of a GCC
15258 builtin and then its argument prototype would still apply. */
15259 #ifdef __cplusplus
15260 extern "C"
15261 #endif
15262 char dgettext ();
15263 int
15264 main ()
15265 {
15266 return dgettext ();
15267 ;
15268 return 0;
15269 }
15270 _ACEOF
15271 if ac_fn_c_try_link "$LINENO"; then :
15272 ac_cv_lib_intl_dgettext=yes
15273 else
15274 ac_cv_lib_intl_dgettext=no
15275 fi
15276 rm -f core conftest.err conftest.$ac_objext \
15277 conftest$ac_exeext conftest.$ac_ext
15278 LIBS=$ac_check_lib_save_LIBS
15279 fi
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15281 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15282 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
15283 cat >>confdefs.h <<_ACEOF
15284 #define HAVE_LIBINTL 1
15285 _ACEOF
15286
15287 LIBS="-lintl $LIBS"
15288
15289 fi
15290
15291
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15293 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15294 if ${emacs_cv_localtime_cache+:} false; then :
15295 $as_echo_n "(cached) " >&6
15296 else
15297 if test x$ac_cv_func_tzset = xyes; then
15298 if test "$cross_compiling" = yes; then :
15299 # If we have tzset, assume the worst when cross-compiling.
15300 emacs_cv_localtime_cache=yes
15301 else
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15304 #include <time.h>
15305 char TZ_GMT0[] = "TZ=GMT0";
15306 char TZ_PST8[] = "TZ=PST8";
15307 main()
15308 {
15309 time_t now = time ((time_t *) 0);
15310 int hour_GMT0, hour_unset;
15311 if (putenv (TZ_GMT0) != 0)
15312 exit (1);
15313 hour_GMT0 = localtime (&now)->tm_hour;
15314 unsetenv("TZ");
15315 hour_unset = localtime (&now)->tm_hour;
15316 if (putenv (TZ_PST8) != 0)
15317 exit (1);
15318 if (localtime (&now)->tm_hour == hour_GMT0)
15319 exit (1);
15320 unsetenv("TZ");
15321 if (localtime (&now)->tm_hour != hour_unset)
15322 exit (1);
15323 exit (0);
15324 }
15325 _ACEOF
15326 if ac_fn_c_try_run "$LINENO"; then :
15327 emacs_cv_localtime_cache=no
15328 else
15329 emacs_cv_localtime_cache=yes
15330 fi
15331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15332 conftest.$ac_objext conftest.beam conftest.$ac_ext
15333 fi
15334
15335 else
15336 # If we lack tzset, report that localtime does not cache TZ,
15337 # since we can't invalidate the cache if we don't have tzset.
15338 emacs_cv_localtime_cache=no
15339 fi
15340 fi
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15342 $as_echo "$emacs_cv_localtime_cache" >&6; }
15343 if test $emacs_cv_localtime_cache = yes; then
15344
15345 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15346
15347 fi
15348
15349 if test "x$HAVE_TIMEVAL" = xyes; then
15350 for ac_func in gettimeofday
15351 do :
15352 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15353 if test "x$ac_cv_func_gettimeofday" = xyes; then :
15354 cat >>confdefs.h <<_ACEOF
15355 #define HAVE_GETTIMEOFDAY 1
15356 _ACEOF
15357
15358 fi
15359 done
15360
15361 if test $ac_cv_func_gettimeofday = yes; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
15363 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
15364 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
15365 $as_echo_n "(cached) " >&6
15366 else
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369
15370 #ifdef TIME_WITH_SYS_TIME
15371 #include <sys/time.h>
15372 #include <time.h>
15373 #else
15374 #ifdef HAVE_SYS_TIME_H
15375 #include <sys/time.h>
15376 #else
15377 #include <time.h>
15378 #endif
15379 #endif
15380 int
15381 main ()
15382 {
15383 struct timeval time;
15384 gettimeofday (&time, 0);
15385 ;
15386 return 0;
15387 }
15388 _ACEOF
15389 if ac_fn_c_try_compile "$LINENO"; then :
15390 emacs_cv_gettimeofday_two_arguments=yes
15391 else
15392 emacs_cv_gettimeofday_two_arguments=no
15393 fi
15394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15395 fi
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
15397 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
15398 if test $emacs_cv_gettimeofday_two_arguments = no; then
15399
15400 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
15401
15402 fi
15403 fi
15404 fi
15405
15406 ok_so_far=yes
15407 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15408 if test "x$ac_cv_func_socket" = xyes; then :
15409
15410 else
15411 ok_so_far=no
15412 fi
15413
15414 if test $ok_so_far = yes; then
15415 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15416 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
15417
15418 else
15419 ok_so_far=no
15420 fi
15421
15422
15423 fi
15424 if test $ok_so_far = yes; then
15425 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15426 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
15427
15428 else
15429 ok_so_far=no
15430 fi
15431
15432
15433 fi
15434 if test $ok_so_far = yes; then
15435
15436 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15437
15438 fi
15439
15440 if test -f /usr/lpp/X11/bin/smt.exp; then
15441
15442 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15443
15444 fi
15445
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15447 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15448 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15450 $as_echo "yes" >&6; }
15451
15452 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15453
15454 else
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15456 $as_echo "no" >&6; }
15457 fi
15458
15459 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15460 if test "x$ac_cv_type_pid_t" = xyes; then :
15461
15462 else
15463
15464 cat >>confdefs.h <<_ACEOF
15465 #define pid_t int
15466 _ACEOF
15467
15468 fi
15469
15470 for ac_header in vfork.h
15471 do :
15472 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15473 if test "x$ac_cv_header_vfork_h" = xyes; then :
15474 cat >>confdefs.h <<_ACEOF
15475 #define HAVE_VFORK_H 1
15476 _ACEOF
15477
15478 fi
15479
15480 done
15481
15482 for ac_func in fork vfork
15483 do :
15484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15487 cat >>confdefs.h <<_ACEOF
15488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15489 _ACEOF
15490
15491 fi
15492 done
15493
15494 if test "x$ac_cv_func_fork" = xyes; then
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15496 $as_echo_n "checking for working fork... " >&6; }
15497 if ${ac_cv_func_fork_works+:} false; then :
15498 $as_echo_n "(cached) " >&6
15499 else
15500 if test "$cross_compiling" = yes; then :
15501 ac_cv_func_fork_works=cross
15502 else
15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15505 $ac_includes_default
15506 int
15507 main ()
15508 {
15509
15510 /* By Ruediger Kuhlmann. */
15511 return fork () < 0;
15512
15513 ;
15514 return 0;
15515 }
15516 _ACEOF
15517 if ac_fn_c_try_run "$LINENO"; then :
15518 ac_cv_func_fork_works=yes
15519 else
15520 ac_cv_func_fork_works=no
15521 fi
15522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15523 conftest.$ac_objext conftest.beam conftest.$ac_ext
15524 fi
15525
15526 fi
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15528 $as_echo "$ac_cv_func_fork_works" >&6; }
15529
15530 else
15531 ac_cv_func_fork_works=$ac_cv_func_fork
15532 fi
15533 if test "x$ac_cv_func_fork_works" = xcross; then
15534 case $host in
15535 *-*-amigaos* | *-*-msdosdjgpp*)
15536 # Override, as these systems have only a dummy fork() stub
15537 ac_cv_func_fork_works=no
15538 ;;
15539 *)
15540 ac_cv_func_fork_works=yes
15541 ;;
15542 esac
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15544 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15545 fi
15546 ac_cv_func_vfork_works=$ac_cv_func_vfork
15547 if test "x$ac_cv_func_vfork" = xyes; then
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15549 $as_echo_n "checking for working vfork... " >&6; }
15550 if ${ac_cv_func_vfork_works+:} false; then :
15551 $as_echo_n "(cached) " >&6
15552 else
15553 if test "$cross_compiling" = yes; then :
15554 ac_cv_func_vfork_works=cross
15555 else
15556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15558 /* Thanks to Paul Eggert for this test. */
15559 $ac_includes_default
15560 #include <sys/wait.h>
15561 #ifdef HAVE_VFORK_H
15562 # include <vfork.h>
15563 #endif
15564 /* On some sparc systems, changes by the child to local and incoming
15565 argument registers are propagated back to the parent. The compiler
15566 is told about this with #include <vfork.h>, but some compilers
15567 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15568 static variable whose address is put into a register that is
15569 clobbered by the vfork. */
15570 static void
15571 #ifdef __cplusplus
15572 sparc_address_test (int arg)
15573 # else
15574 sparc_address_test (arg) int arg;
15575 #endif
15576 {
15577 static pid_t child;
15578 if (!child) {
15579 child = vfork ();
15580 if (child < 0) {
15581 perror ("vfork");
15582 _exit(2);
15583 }
15584 if (!child) {
15585 arg = getpid();
15586 write(-1, "", 0);
15587 _exit (arg);
15588 }
15589 }
15590 }
15591
15592 int
15593 main ()
15594 {
15595 pid_t parent = getpid ();
15596 pid_t child;
15597
15598 sparc_address_test (0);
15599
15600 child = vfork ();
15601
15602 if (child == 0) {
15603 /* Here is another test for sparc vfork register problems. This
15604 test uses lots of local variables, at least as many local
15605 variables as main has allocated so far including compiler
15606 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15607 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15608 reuse the register of parent for one of the local variables,
15609 since it will think that parent can't possibly be used any more
15610 in this routine. Assigning to the local variable will thus
15611 munge parent in the parent process. */
15612 pid_t
15613 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15614 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15615 /* Convince the compiler that p..p7 are live; otherwise, it might
15616 use the same hardware register for all 8 local variables. */
15617 if (p != p1 || p != p2 || p != p3 || p != p4
15618 || p != p5 || p != p6 || p != p7)
15619 _exit(1);
15620
15621 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15622 from child file descriptors. If the child closes a descriptor
15623 before it execs or exits, this munges the parent's descriptor
15624 as well. Test for this by closing stdout in the child. */
15625 _exit(close(fileno(stdout)) != 0);
15626 } else {
15627 int status;
15628 struct stat st;
15629
15630 while (wait(&status) != child)
15631 ;
15632 return (
15633 /* Was there some problem with vforking? */
15634 child < 0
15635
15636 /* Did the child fail? (This shouldn't happen.) */
15637 || status
15638
15639 /* Did the vfork/compiler bug occur? */
15640 || parent != getpid()
15641
15642 /* Did the file descriptor bug occur? */
15643 || fstat(fileno(stdout), &st) != 0
15644 );
15645 }
15646 }
15647 _ACEOF
15648 if ac_fn_c_try_run "$LINENO"; then :
15649 ac_cv_func_vfork_works=yes
15650 else
15651 ac_cv_func_vfork_works=no
15652 fi
15653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15654 conftest.$ac_objext conftest.beam conftest.$ac_ext
15655 fi
15656
15657 fi
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15659 $as_echo "$ac_cv_func_vfork_works" >&6; }
15660
15661 fi;
15662 if test "x$ac_cv_func_fork_works" = xcross; then
15663 ac_cv_func_vfork_works=$ac_cv_func_vfork
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15665 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15666 fi
15667
15668 if test "x$ac_cv_func_vfork_works" = xyes; then
15669
15670 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15671
15672 else
15673
15674 $as_echo "#define vfork fork" >>confdefs.h
15675
15676 fi
15677 if test "x$ac_cv_func_fork_works" = xyes; then
15678
15679 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15680
15681 fi
15682
15683
15684 for ac_func in snprintf
15685 do :
15686 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15687 if test "x$ac_cv_func_snprintf" = xyes; then :
15688 cat >>confdefs.h <<_ACEOF
15689 #define HAVE_SNPRINTF 1
15690 _ACEOF
15691
15692 fi
15693 done
15694
15695
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15697 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15698 if ${emacs_cv_langinfo_codeset+:} false; then :
15699 $as_echo_n "(cached) " >&6
15700 else
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 #include <langinfo.h>
15704 int
15705 main ()
15706 {
15707 char* cs = nl_langinfo(CODESET);
15708 ;
15709 return 0;
15710 }
15711 _ACEOF
15712 if ac_fn_c_try_link "$LINENO"; then :
15713 emacs_cv_langinfo_codeset=yes
15714 else
15715 emacs_cv_langinfo_codeset=no
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext \
15718 conftest$ac_exeext conftest.$ac_ext
15719
15720 fi
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15722 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15723 if test $emacs_cv_langinfo_codeset = yes; then
15724
15725 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15726
15727 fi
15728
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15730 $as_echo_n "checking for mbstate_t... " >&6; }
15731 if ${ac_cv_type_mbstate_t+:} false; then :
15732 $as_echo_n "(cached) " >&6
15733 else
15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15736 $ac_includes_default
15737 # include <wchar.h>
15738 int
15739 main ()
15740 {
15741 mbstate_t x; return sizeof x;
15742 ;
15743 return 0;
15744 }
15745 _ACEOF
15746 if ac_fn_c_try_compile "$LINENO"; then :
15747 ac_cv_type_mbstate_t=yes
15748 else
15749 ac_cv_type_mbstate_t=no
15750 fi
15751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752 fi
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15754 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15755 if test $ac_cv_type_mbstate_t = yes; then
15756
15757 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15758
15759 else
15760
15761 $as_echo "#define mbstate_t int" >>confdefs.h
15762
15763 fi
15764
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15766 $as_echo_n "checking for C restricted array declarations... " >&6; }
15767 if ${emacs_cv_c_restrict_arr+:} false; then :
15768 $as_echo_n "(cached) " >&6
15769 else
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772 void fred (int x[__restrict]);
15773 int
15774 main ()
15775 {
15776
15777 ;
15778 return 0;
15779 }
15780 _ACEOF
15781 if ac_fn_c_try_compile "$LINENO"; then :
15782 emacs_cv_c_restrict_arr=yes
15783 else
15784 emacs_cv_c_restrict_arr=no
15785 fi
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 fi
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15789 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15790 if test "$emacs_cv_c_restrict_arr" = yes; then
15791
15792 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15793
15794 fi
15795
15796
15797 # Set up the CFLAGS for real compilation, so we can substitute it.
15798 CFLAGS="$REAL_CFLAGS"
15799 CPPFLAGS="$REAL_CPPFLAGS"
15800
15801 ## Hack to detect a buggy GCC version.
15802 if test "x$GCC" = xyes \
15803 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15804 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15805 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15806 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15807 fi
15808
15809 version=$PACKAGE_VERSION
15810
15811 ### Specify what sort of things we'll be editing into Makefile and config.h.
15812 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15813
15814
15815 ## Unused?
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15837 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15838 ## end of LIBX_BASE, but nothing ever set it.
15839
15840
15841
15842
15843 ## Used in lwlib/Makefile.in.
15844
15845 if test -n "${machfile}"; then
15846 M_FILE="\$(srcdir)/${machfile}"
15847 else
15848 M_FILE=
15849 fi
15850 S_FILE="\$(srcdir)/${opsysfile}"
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861 cat >>confdefs.h <<_ACEOF
15862 #define EMACS_CONFIGURATION "${canonical}"
15863 _ACEOF
15864
15865
15866 cat >>confdefs.h <<_ACEOF
15867 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15868 _ACEOF
15869
15870 if test -n "$machfile"; then
15871
15872 cat >>confdefs.h <<_ACEOF
15873 #define config_machfile "${machfile}"
15874 _ACEOF
15875
15876 fi
15877
15878 cat >>confdefs.h <<_ACEOF
15879 #define config_opsysfile "${opsysfile}"
15880 _ACEOF
15881
15882
15883 XMENU_OBJ=
15884 XOBJ=
15885 FONT_OBJ=
15886 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15887
15888 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15889
15890 XMENU_OBJ=xmenu.o
15891 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
15892 FONT_OBJ=xfont.o
15893 if test "$HAVE_XFT" = "yes"; then
15894 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15895 elif test "$HAVE_FREETYPE" = "yes"; then
15896 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15897 fi
15898
15899 fi
15900
15901
15902
15903
15904 WIDGET_OBJ=
15905 MOTIF_LIBW=
15906 if test "${USE_X_TOOLKIT}" != "none" ; then
15907 WIDGET_OBJ=widget.o
15908
15909 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15910
15911 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15912
15913 $as_echo "#define USE_LUCID 1" >>confdefs.h
15914
15915 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15916
15917 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15918
15919 MOTIF_LIBW=-lXm
15920 case "$opsys" in
15921 gnu-linux)
15922 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15923 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15924 ;;
15925
15926 unixware)
15927 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15928 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15929 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15930 ;;
15931
15932 aix4-2)
15933 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15934 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15935 ;;
15936 esac
15937 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15938 fi
15939 fi
15940
15941
15942 TOOLKIT_LIBW=
15943 case "$USE_X_TOOLKIT" in
15944 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15945 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15946 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15947 esac
15948
15949
15950 if test "$USE_X_TOOLKIT" = "none"; then
15951 LIBXT_OTHER="\$(LIBXSM)"
15952 OLDXMENU_TARGET="really-oldXMenu"
15953 else
15954 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15955 OLDXMENU_TARGET="really-lwlib"
15956 fi
15957
15958
15959 ## The X Menu stuff is present in the X10 distribution, but missing
15960 ## from X11. If we have X10, just use the installed library;
15961 ## otherwise, use our own copy.
15962 if test "${HAVE_X11}" = "yes" ; then
15963
15964 $as_echo "#define HAVE_X11 1" >>confdefs.h
15965
15966
15967 if test "$USE_X_TOOLKIT" = "none"; then
15968 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15969 else
15970 OLDXMENU="\${lwlibdir}/liblw.a"
15971 fi
15972 LIBXMENU="\$(OLDXMENU)"
15973 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15974 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15975 else
15976 ## For a syntactically valid Makefile; not actually used for anything.
15977 ## See comments in src/Makefile.in.
15978 OLDXMENU=nothing
15979 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15980 if test "${HAVE_X_WINDOWS}" = "yes"; then
15981 LIBXMENU="-lXMenu"
15982 else
15983 LIBXMENU=
15984 fi
15985 LIBX_OTHER=
15986 OLDXMENU_DEPS=
15987 fi
15988
15989 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15990 OLDXMENU_TARGET=
15991 OLDXMENU=nothing
15992 LIBXMENU=
15993 OLDXMENU_DEPS=
15994 fi
15995
15996
15997
15998
15999
16000
16001
16002 if test "${HAVE_MENUS}" = "yes" ; then
16003
16004 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16005
16006 fi
16007
16008 if test "${GNU_MALLOC}" = "yes" ; then
16009
16010 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16011
16012 fi
16013
16014 RALLOC_OBJ=
16015 if test "${REL_ALLOC}" = "yes" ; then
16016
16017 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16018
16019
16020 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16021 fi
16022
16023
16024 if test "$opsys" = "cygwin"; then
16025 CYGWIN_OBJ="sheap.o"
16026 ## Cygwin differs because of its unexec().
16027 PRE_ALLOC_OBJ=
16028 POST_ALLOC_OBJ=lastfile.o
16029 else
16030 CYGWIN_OBJ=
16031 PRE_ALLOC_OBJ=lastfile.o
16032 POST_ALLOC_OBJ=
16033 fi
16034
16035
16036
16037
16038 # Configure gnulib here, now that we know LIBS.
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050 LIBC_FATAL_STDERR_=1
16051 export LIBC_FATAL_STDERR_
16052
16053
16054 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16055 # for constant arguments. Useless!
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16057 $as_echo_n "checking for working alloca.h... " >&6; }
16058 if ${ac_cv_working_alloca_h+:} false; then :
16059 $as_echo_n "(cached) " >&6
16060 else
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063 #include <alloca.h>
16064 int
16065 main ()
16066 {
16067 char *p = (char *) alloca (2 * sizeof (int));
16068 if (p) return 0;
16069 ;
16070 return 0;
16071 }
16072 _ACEOF
16073 if ac_fn_c_try_link "$LINENO"; then :
16074 ac_cv_working_alloca_h=yes
16075 else
16076 ac_cv_working_alloca_h=no
16077 fi
16078 rm -f core conftest.err conftest.$ac_objext \
16079 conftest$ac_exeext conftest.$ac_ext
16080 fi
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16082 $as_echo "$ac_cv_working_alloca_h" >&6; }
16083 if test $ac_cv_working_alloca_h = yes; then
16084
16085 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16086
16087 fi
16088
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16090 $as_echo_n "checking for alloca... " >&6; }
16091 if ${ac_cv_func_alloca_works+:} false; then :
16092 $as_echo_n "(cached) " >&6
16093 else
16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16096 #ifdef __GNUC__
16097 # define alloca __builtin_alloca
16098 #else
16099 # ifdef _MSC_VER
16100 # include <malloc.h>
16101 # define alloca _alloca
16102 # else
16103 # ifdef HAVE_ALLOCA_H
16104 # include <alloca.h>
16105 # else
16106 # ifdef _AIX
16107 #pragma alloca
16108 # else
16109 # ifndef alloca /* predefined by HP cc +Olibcalls */
16110 void *alloca (size_t);
16111 # endif
16112 # endif
16113 # endif
16114 # endif
16115 #endif
16116
16117 int
16118 main ()
16119 {
16120 char *p = (char *) alloca (1);
16121 if (p) return 0;
16122 ;
16123 return 0;
16124 }
16125 _ACEOF
16126 if ac_fn_c_try_link "$LINENO"; then :
16127 ac_cv_func_alloca_works=yes
16128 else
16129 ac_cv_func_alloca_works=no
16130 fi
16131 rm -f core conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133 fi
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16135 $as_echo "$ac_cv_func_alloca_works" >&6; }
16136
16137 if test $ac_cv_func_alloca_works = yes; then
16138
16139 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16140
16141 else
16142 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16143 # that cause trouble. Some versions do not even contain alloca or
16144 # contain a buggy version. If you still want to use their alloca,
16145 # use ar to extract alloca.o from them instead of compiling alloca.c.
16146
16147
16148
16149
16150
16151 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16152
16153 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16154
16155
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16157 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16158 if ${ac_cv_os_cray+:} false; then :
16159 $as_echo_n "(cached) " >&6
16160 else
16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16163 #if defined CRAY && ! defined CRAY2
16164 webecray
16165 #else
16166 wenotbecray
16167 #endif
16168
16169 _ACEOF
16170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16171 $EGREP "webecray" >/dev/null 2>&1; then :
16172 ac_cv_os_cray=yes
16173 else
16174 ac_cv_os_cray=no
16175 fi
16176 rm -f conftest*
16177
16178 fi
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16180 $as_echo "$ac_cv_os_cray" >&6; }
16181 if test $ac_cv_os_cray = yes; then
16182 for ac_func in _getb67 GETB67 getb67; do
16183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16184 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16185 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16186
16187 cat >>confdefs.h <<_ACEOF
16188 #define CRAY_STACKSEG_END $ac_func
16189 _ACEOF
16190
16191 break
16192 fi
16193
16194 done
16195 fi
16196
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16198 $as_echo_n "checking stack direction for C alloca... " >&6; }
16199 if ${ac_cv_c_stack_direction+:} false; then :
16200 $as_echo_n "(cached) " >&6
16201 else
16202 if test "$cross_compiling" = yes; then :
16203 ac_cv_c_stack_direction=0
16204 else
16205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206 /* end confdefs.h. */
16207 $ac_includes_default
16208 int
16209 find_stack_direction (int *addr, int depth)
16210 {
16211 int dir, dummy = 0;
16212 if (! addr)
16213 addr = &dummy;
16214 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16215 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16216 return dir + dummy;
16217 }
16218
16219 int
16220 main (int argc, char **argv)
16221 {
16222 return find_stack_direction (0, argc + !argv + 20) < 0;
16223 }
16224 _ACEOF
16225 if ac_fn_c_try_run "$LINENO"; then :
16226 ac_cv_c_stack_direction=1
16227 else
16228 ac_cv_c_stack_direction=-1
16229 fi
16230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16231 conftest.$ac_objext conftest.beam conftest.$ac_ext
16232 fi
16233
16234 fi
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16236 $as_echo "$ac_cv_c_stack_direction" >&6; }
16237 cat >>confdefs.h <<_ACEOF
16238 #define STACK_DIRECTION $ac_cv_c_stack_direction
16239 _ACEOF
16240
16241
16242 fi
16243
16244
16245
16246
16247 for ac_func in $ac_func_list
16248 do :
16249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16251 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16252 cat >>confdefs.h <<_ACEOF
16253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16254 _ACEOF
16255
16256 fi
16257 done
16258
16259
16260
16261
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16263 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16264 if ${ac_cv_c_bigendian+:} false; then :
16265 $as_echo_n "(cached) " >&6
16266 else
16267 ac_cv_c_bigendian=unknown
16268 # See if we're dealing with a universal compiler.
16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h. */
16271 #ifndef __APPLE_CC__
16272 not a universal capable compiler
16273 #endif
16274 typedef int dummy;
16275
16276 _ACEOF
16277 if ac_fn_c_try_compile "$LINENO"; then :
16278
16279 # Check for potential -arch flags. It is not universal unless
16280 # there are at least two -arch flags with different values.
16281 ac_arch=
16282 ac_prev=
16283 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16284 if test -n "$ac_prev"; then
16285 case $ac_word in
16286 i?86 | x86_64 | ppc | ppc64)
16287 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16288 ac_arch=$ac_word
16289 else
16290 ac_cv_c_bigendian=universal
16291 break
16292 fi
16293 ;;
16294 esac
16295 ac_prev=
16296 elif test "x$ac_word" = "x-arch"; then
16297 ac_prev=arch
16298 fi
16299 done
16300 fi
16301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16302 if test $ac_cv_c_bigendian = unknown; then
16303 # See if sys/param.h defines the BYTE_ORDER macro.
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 #include <sys/types.h>
16307 #include <sys/param.h>
16308
16309 int
16310 main ()
16311 {
16312 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16313 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16314 && LITTLE_ENDIAN)
16315 bogus endian macros
16316 #endif
16317
16318 ;
16319 return 0;
16320 }
16321 _ACEOF
16322 if ac_fn_c_try_compile "$LINENO"; then :
16323 # It does; now see whether it defined to BIG_ENDIAN or not.
16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16326 #include <sys/types.h>
16327 #include <sys/param.h>
16328
16329 int
16330 main ()
16331 {
16332 #if BYTE_ORDER != BIG_ENDIAN
16333 not big endian
16334 #endif
16335
16336 ;
16337 return 0;
16338 }
16339 _ACEOF
16340 if ac_fn_c_try_compile "$LINENO"; then :
16341 ac_cv_c_bigendian=yes
16342 else
16343 ac_cv_c_bigendian=no
16344 fi
16345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346 fi
16347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16348 fi
16349 if test $ac_cv_c_bigendian = unknown; then
16350 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16353 #include <limits.h>
16354
16355 int
16356 main ()
16357 {
16358 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16359 bogus endian macros
16360 #endif
16361
16362 ;
16363 return 0;
16364 }
16365 _ACEOF
16366 if ac_fn_c_try_compile "$LINENO"; then :
16367 # It does; now see whether it defined to _BIG_ENDIAN or not.
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16370 #include <limits.h>
16371
16372 int
16373 main ()
16374 {
16375 #ifndef _BIG_ENDIAN
16376 not big endian
16377 #endif
16378
16379 ;
16380 return 0;
16381 }
16382 _ACEOF
16383 if ac_fn_c_try_compile "$LINENO"; then :
16384 ac_cv_c_bigendian=yes
16385 else
16386 ac_cv_c_bigendian=no
16387 fi
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 fi
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 fi
16392 if test $ac_cv_c_bigendian = unknown; then
16393 # Compile a test program.
16394 if test "$cross_compiling" = yes; then :
16395 # Try to guess by grepping values from an object file.
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398 short int ascii_mm[] =
16399 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16400 short int ascii_ii[] =
16401 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16402 int use_ascii (int i) {
16403 return ascii_mm[i] + ascii_ii[i];
16404 }
16405 short int ebcdic_ii[] =
16406 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16407 short int ebcdic_mm[] =
16408 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16409 int use_ebcdic (int i) {
16410 return ebcdic_mm[i] + ebcdic_ii[i];
16411 }
16412 extern int foo;
16413
16414 int
16415 main ()
16416 {
16417 return use_ascii (foo) == use_ebcdic (foo);
16418 ;
16419 return 0;
16420 }
16421 _ACEOF
16422 if ac_fn_c_try_compile "$LINENO"; then :
16423 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16424 ac_cv_c_bigendian=yes
16425 fi
16426 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16427 if test "$ac_cv_c_bigendian" = unknown; then
16428 ac_cv_c_bigendian=no
16429 else
16430 # finding both strings is unlikely to happen, but who knows?
16431 ac_cv_c_bigendian=unknown
16432 fi
16433 fi
16434 fi
16435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16436 else
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16439 $ac_includes_default
16440 int
16441 main ()
16442 {
16443
16444 /* Are we little or big endian? From Harbison&Steele. */
16445 union
16446 {
16447 long int l;
16448 char c[sizeof (long int)];
16449 } u;
16450 u.l = 1;
16451 return u.c[sizeof (long int) - 1] == 1;
16452
16453 ;
16454 return 0;
16455 }
16456 _ACEOF
16457 if ac_fn_c_try_run "$LINENO"; then :
16458 ac_cv_c_bigendian=no
16459 else
16460 ac_cv_c_bigendian=yes
16461 fi
16462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16463 conftest.$ac_objext conftest.beam conftest.$ac_ext
16464 fi
16465
16466 fi
16467 fi
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16469 $as_echo "$ac_cv_c_bigendian" >&6; }
16470 case $ac_cv_c_bigendian in #(
16471 yes)
16472 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16473 ;; #(
16474 no)
16475 ;; #(
16476 universal)
16477
16478 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16479
16480 ;; #(
16481 *)
16482 as_fn_error $? "unknown endianness
16483 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16484 esac
16485
16486
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16488 $as_echo_n "checking for inline... " >&6; }
16489 if ${ac_cv_c_inline+:} false; then :
16490 $as_echo_n "(cached) " >&6
16491 else
16492 ac_cv_c_inline=no
16493 for ac_kw in inline __inline__ __inline; do
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16496 #ifndef __cplusplus
16497 typedef int foo_t;
16498 static $ac_kw foo_t static_foo () {return 0; }
16499 $ac_kw foo_t foo () {return 0; }
16500 #endif
16501
16502 _ACEOF
16503 if ac_fn_c_try_compile "$LINENO"; then :
16504 ac_cv_c_inline=$ac_kw
16505 fi
16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507 test "$ac_cv_c_inline" != no && break
16508 done
16509
16510 fi
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16512 $as_echo "$ac_cv_c_inline" >&6; }
16513
16514 case $ac_cv_c_inline in
16515 inline | yes) ;;
16516 *)
16517 case $ac_cv_c_inline in
16518 no) ac_val=;;
16519 *) ac_val=$ac_cv_c_inline;;
16520 esac
16521 cat >>confdefs.h <<_ACEOF
16522 #ifndef __cplusplus
16523 #define inline $ac_val
16524 #endif
16525 _ACEOF
16526 ;;
16527 esac
16528
16529
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16531 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16532 if ${gl_cv_func_c99_strtold+:} false; then :
16533 $as_echo_n "(cached) " >&6
16534 else
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16537 /* On HP-UX before 11.23, strtold returns a struct instead of
16538 long double. Reject implementations like that, by requiring
16539 compatibility with the C99 prototype. */
16540 #include <stdlib.h>
16541 static long double (*p) (char const *, char **) = strtold;
16542 static long double
16543 test (char const *nptr, char **endptr)
16544 {
16545 long double r;
16546 r = strtold (nptr, endptr);
16547 return r;
16548 }
16549 int
16550 main ()
16551 {
16552 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16553 ;
16554 return 0;
16555 }
16556 _ACEOF
16557 if ac_fn_c_try_link "$LINENO"; then :
16558 gl_cv_func_c99_strtold=yes
16559 else
16560 gl_cv_func_c99_strtold=no
16561 fi
16562 rm -f core conftest.err conftest.$ac_objext \
16563 conftest$ac_exeext conftest.$ac_ext
16564 fi
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16566 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16567 if test $gl_cv_func_c99_strtold = yes; then
16568
16569 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16570
16571 fi
16572
16573
16574 GNULIB_CHOWN=0;
16575 GNULIB_CLOSE=0;
16576 GNULIB_DUP2=0;
16577 GNULIB_DUP3=0;
16578 GNULIB_ENVIRON=0;
16579 GNULIB_EUIDACCESS=0;
16580 GNULIB_FACCESSAT=0;
16581 GNULIB_FCHDIR=0;
16582 GNULIB_FCHOWNAT=0;
16583 GNULIB_FSYNC=0;
16584 GNULIB_FTRUNCATE=0;
16585 GNULIB_GETCWD=0;
16586 GNULIB_GETDOMAINNAME=0;
16587 GNULIB_GETDTABLESIZE=0;
16588 GNULIB_GETGROUPS=0;
16589 GNULIB_GETHOSTNAME=0;
16590 GNULIB_GETLOGIN=0;
16591 GNULIB_GETLOGIN_R=0;
16592 GNULIB_GETPAGESIZE=0;
16593 GNULIB_GETUSERSHELL=0;
16594 GNULIB_GROUP_MEMBER=0;
16595 GNULIB_LCHOWN=0;
16596 GNULIB_LINK=0;
16597 GNULIB_LINKAT=0;
16598 GNULIB_LSEEK=0;
16599 GNULIB_PIPE=0;
16600 GNULIB_PIPE2=0;
16601 GNULIB_PREAD=0;
16602 GNULIB_PWRITE=0;
16603 GNULIB_READ=0;
16604 GNULIB_READLINK=0;
16605 GNULIB_READLINKAT=0;
16606 GNULIB_RMDIR=0;
16607 GNULIB_SLEEP=0;
16608 GNULIB_SYMLINK=0;
16609 GNULIB_SYMLINKAT=0;
16610 GNULIB_TTYNAME_R=0;
16611 GNULIB_UNISTD_H_GETOPT=0;
16612 GNULIB_UNISTD_H_NONBLOCKING=0;
16613 GNULIB_UNISTD_H_SIGPIPE=0;
16614 GNULIB_UNLINK=0;
16615 GNULIB_UNLINKAT=0;
16616 GNULIB_USLEEP=0;
16617 GNULIB_WRITE=0;
16618 HAVE_CHOWN=1;
16619 HAVE_DUP2=1;
16620 HAVE_DUP3=1;
16621 HAVE_EUIDACCESS=1;
16622 HAVE_FACCESSAT=1;
16623 HAVE_FCHDIR=1;
16624 HAVE_FCHOWNAT=1;
16625 HAVE_FSYNC=1;
16626 HAVE_FTRUNCATE=1;
16627 HAVE_GETDTABLESIZE=1;
16628 HAVE_GETGROUPS=1;
16629 HAVE_GETHOSTNAME=1;
16630 HAVE_GETLOGIN=1;
16631 HAVE_GETPAGESIZE=1;
16632 HAVE_GROUP_MEMBER=1;
16633 HAVE_LCHOWN=1;
16634 HAVE_LINK=1;
16635 HAVE_LINKAT=1;
16636 HAVE_PIPE=1;
16637 HAVE_PIPE2=1;
16638 HAVE_PREAD=1;
16639 HAVE_PWRITE=1;
16640 HAVE_READLINK=1;
16641 HAVE_READLINKAT=1;
16642 HAVE_SLEEP=1;
16643 HAVE_SYMLINK=1;
16644 HAVE_SYMLINKAT=1;
16645 HAVE_UNLINKAT=1;
16646 HAVE_USLEEP=1;
16647 HAVE_DECL_ENVIRON=1;
16648 HAVE_DECL_FCHDIR=1;
16649 HAVE_DECL_GETDOMAINNAME=1;
16650 HAVE_DECL_GETLOGIN_R=1;
16651 HAVE_DECL_GETPAGESIZE=1;
16652 HAVE_DECL_GETUSERSHELL=1;
16653 HAVE_DECL_TTYNAME_R=1;
16654 HAVE_OS_H=0;
16655 HAVE_SYS_PARAM_H=0;
16656 REPLACE_CHOWN=0;
16657 REPLACE_CLOSE=0;
16658 REPLACE_DUP=0;
16659 REPLACE_DUP2=0;
16660 REPLACE_FCHOWNAT=0;
16661 REPLACE_GETCWD=0;
16662 REPLACE_GETDOMAINNAME=0;
16663 REPLACE_GETLOGIN_R=0;
16664 REPLACE_GETGROUPS=0;
16665 REPLACE_GETPAGESIZE=0;
16666 REPLACE_LCHOWN=0;
16667 REPLACE_LINK=0;
16668 REPLACE_LINKAT=0;
16669 REPLACE_LSEEK=0;
16670 REPLACE_PREAD=0;
16671 REPLACE_PWRITE=0;
16672 REPLACE_READ=0;
16673 REPLACE_READLINK=0;
16674 REPLACE_RMDIR=0;
16675 REPLACE_SLEEP=0;
16676 REPLACE_SYMLINK=0;
16677 REPLACE_TTYNAME_R=0;
16678 REPLACE_UNLINK=0;
16679 REPLACE_UNLINKAT=0;
16680 REPLACE_USLEEP=0;
16681 REPLACE_WRITE=0;
16682 UNISTD_H_HAVE_WINSOCK2_H=0;
16683 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16684
16685
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16687 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16688 if ${ac_cv_struct_st_dm_mode+:} false; then :
16689 $as_echo_n "(cached) " >&6
16690 else
16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h. */
16693
16694 #include <sys/types.h>
16695 #include <sys/stat.h>
16696 int
16697 main ()
16698 {
16699 struct stat s; s.st_dm_mode;
16700 ;
16701 return 0;
16702 }
16703 _ACEOF
16704 if ac_fn_c_try_compile "$LINENO"; then :
16705 ac_cv_struct_st_dm_mode=yes
16706 else
16707 ac_cv_struct_st_dm_mode=no
16708 fi
16709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 fi
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16712 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16713
16714 if test $ac_cv_struct_st_dm_mode = yes; then
16715
16716 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16717
16718 fi
16719
16720
16721 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16722 if test "x$ac_cv_have_decl_strmode" = xyes; then :
16723 ac_have_decl=1
16724 else
16725 ac_have_decl=0
16726 fi
16727
16728 cat >>confdefs.h <<_ACEOF
16729 #define HAVE_DECL_STRMODE $ac_have_decl
16730 _ACEOF
16731
16732
16733 GNULIB__EXIT=0;
16734 GNULIB_ATOLL=0;
16735 GNULIB_CALLOC_POSIX=0;
16736 GNULIB_CANONICALIZE_FILE_NAME=0;
16737 GNULIB_GETLOADAVG=0;
16738 GNULIB_GETSUBOPT=0;
16739 GNULIB_GRANTPT=0;
16740 GNULIB_MALLOC_POSIX=0;
16741 GNULIB_MBTOWC=0;
16742 GNULIB_MKDTEMP=0;
16743 GNULIB_MKOSTEMP=0;
16744 GNULIB_MKOSTEMPS=0;
16745 GNULIB_MKSTEMP=0;
16746 GNULIB_MKSTEMPS=0;
16747 GNULIB_PTSNAME=0;
16748 GNULIB_PUTENV=0;
16749 GNULIB_RANDOM_R=0;
16750 GNULIB_REALLOC_POSIX=0;
16751 GNULIB_REALPATH=0;
16752 GNULIB_RPMATCH=0;
16753 GNULIB_SETENV=0;
16754 GNULIB_STRTOD=0;
16755 GNULIB_STRTOLL=0;
16756 GNULIB_STRTOULL=0;
16757 GNULIB_SYSTEM_POSIX=0;
16758 GNULIB_UNLOCKPT=0;
16759 GNULIB_UNSETENV=0;
16760 GNULIB_WCTOMB=0;
16761 HAVE__EXIT=1;
16762 HAVE_ATOLL=1;
16763 HAVE_CANONICALIZE_FILE_NAME=1;
16764 HAVE_DECL_GETLOADAVG=1;
16765 HAVE_GETSUBOPT=1;
16766 HAVE_GRANTPT=1;
16767 HAVE_MKDTEMP=1;
16768 HAVE_MKOSTEMP=1;
16769 HAVE_MKOSTEMPS=1;
16770 HAVE_MKSTEMP=1;
16771 HAVE_MKSTEMPS=1;
16772 HAVE_PTSNAME=1;
16773 HAVE_RANDOM_H=1;
16774 HAVE_RANDOM_R=1;
16775 HAVE_REALPATH=1;
16776 HAVE_RPMATCH=1;
16777 HAVE_SETENV=1;
16778 HAVE_DECL_SETENV=1;
16779 HAVE_STRTOD=1;
16780 HAVE_STRTOLL=1;
16781 HAVE_STRTOULL=1;
16782 HAVE_STRUCT_RANDOM_DATA=1;
16783 HAVE_SYS_LOADAVG_H=0;
16784 HAVE_UNLOCKPT=1;
16785 HAVE_DECL_UNSETENV=1;
16786 REPLACE_CALLOC=0;
16787 REPLACE_CANONICALIZE_FILE_NAME=0;
16788 REPLACE_MALLOC=0;
16789 REPLACE_MBTOWC=0;
16790 REPLACE_MKSTEMP=0;
16791 REPLACE_PUTENV=0;
16792 REPLACE_REALLOC=0;
16793 REPLACE_REALPATH=0;
16794 REPLACE_SETENV=0;
16795 REPLACE_STRTOD=0;
16796 REPLACE_UNSETENV=0;
16797 REPLACE_WCTOMB=0;
16798
16799
16800
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16802 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16803 if ${gl_cv_have_include_next+:} false; then :
16804 $as_echo_n "(cached) " >&6
16805 else
16806 rm -rf conftestd1a conftestd1b conftestd2
16807 mkdir conftestd1a conftestd1b conftestd2
16808 cat <<EOF > conftestd1a/conftest.h
16809 #define DEFINED_IN_CONFTESTD1
16810 #include_next <conftest.h>
16811 #ifdef DEFINED_IN_CONFTESTD2
16812 int foo;
16813 #else
16814 #error "include_next doesn't work"
16815 #endif
16816 EOF
16817 cat <<EOF > conftestd1b/conftest.h
16818 #define DEFINED_IN_CONFTESTD1
16819 #include <stdio.h>
16820 #include_next <conftest.h>
16821 #ifdef DEFINED_IN_CONFTESTD2
16822 int foo;
16823 #else
16824 #error "include_next doesn't work"
16825 #endif
16826 EOF
16827 cat <<EOF > conftestd2/conftest.h
16828 #ifndef DEFINED_IN_CONFTESTD1
16829 #error "include_next test doesn't work"
16830 #endif
16831 #define DEFINED_IN_CONFTESTD2
16832 EOF
16833 gl_save_CPPFLAGS="$CPPFLAGS"
16834 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* end confdefs.h. */
16837 #include <conftest.h>
16838 _ACEOF
16839 if ac_fn_c_try_compile "$LINENO"; then :
16840 gl_cv_have_include_next=yes
16841 else
16842 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16845 #include <conftest.h>
16846 _ACEOF
16847 if ac_fn_c_try_compile "$LINENO"; then :
16848 gl_cv_have_include_next=buggy
16849 else
16850 gl_cv_have_include_next=no
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16853
16854 fi
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 CPPFLAGS="$gl_save_CPPFLAGS"
16857 rm -rf conftestd1a conftestd1b conftestd2
16858
16859 fi
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16861 $as_echo "$gl_cv_have_include_next" >&6; }
16862 PRAGMA_SYSTEM_HEADER=
16863 if test $gl_cv_have_include_next = yes; then
16864 INCLUDE_NEXT=include_next
16865 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16866 if test -n "$GCC"; then
16867 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16868 fi
16869 else
16870 if test $gl_cv_have_include_next = buggy; then
16871 INCLUDE_NEXT=include
16872 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16873 else
16874 INCLUDE_NEXT=include
16875 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16876 fi
16877 fi
16878
16879
16880
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16882 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16883 if ${gl_cv_pragma_columns+:} false; then :
16884 $as_echo_n "(cached) " >&6
16885 else
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16888
16889 #ifdef __TANDEM
16890 choke me
16891 #endif
16892
16893 _ACEOF
16894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16895 $EGREP "choke me" >/dev/null 2>&1; then :
16896 gl_cv_pragma_columns=yes
16897 else
16898 gl_cv_pragma_columns=no
16899 fi
16900 rm -f conftest*
16901
16902
16903 fi
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16905 $as_echo "$gl_cv_pragma_columns" >&6; }
16906 if test $gl_cv_pragma_columns = yes; then
16907 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16908 else
16909 PRAGMA_COLUMNS=
16910 fi
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928 if test $gl_cv_have_include_next = yes; then
16929 gl_cv_next_getopt_h='<'getopt.h'>'
16930 else
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16932 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16933 if ${gl_cv_next_getopt_h+:} false; then :
16934 $as_echo_n "(cached) " >&6
16935 else
16936
16937 if test $ac_cv_header_getopt_h = yes; then
16938
16939
16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16942 #include <getopt.h>
16943
16944 _ACEOF
16945 case "$host_os" in
16946 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16947 *) gl_absname_cpp="$ac_cpp" ;;
16948 esac
16949 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16950 sed -n '\#/getopt.h#{
16951 s#.*"\(.*/getopt.h\)".*#\1#
16952 s#^/[^/]#//&#
16953 p
16954 q
16955 }'`'"'
16956 else
16957 gl_cv_next_getopt_h='<'getopt.h'>'
16958 fi
16959
16960
16961 fi
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
16963 $as_echo "$gl_cv_next_getopt_h" >&6; }
16964 fi
16965 NEXT_GETOPT_H=$gl_cv_next_getopt_h
16966
16967 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16968 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16969 gl_next_as_first_directive='<'getopt.h'>'
16970 else
16971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16972 gl_next_as_first_directive=$gl_cv_next_getopt_h
16973 fi
16974 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
16975
16976
16977
16978
16979 if test $ac_cv_header_getopt_h = yes; then
16980 HAVE_GETOPT_H=1
16981 else
16982 HAVE_GETOPT_H=0
16983 fi
16984
16985
16986 gl_replace_getopt=
16987
16988 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
16989 for ac_header in getopt.h
16990 do :
16991 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
16992 if test "x$ac_cv_header_getopt_h" = xyes; then :
16993 cat >>confdefs.h <<_ACEOF
16994 #define HAVE_GETOPT_H 1
16995 _ACEOF
16996
16997 else
16998 gl_replace_getopt=yes
16999 fi
17000
17001 done
17002
17003 fi
17004
17005 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17006 for ac_func in getopt_long_only
17007 do :
17008 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17009 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
17010 cat >>confdefs.h <<_ACEOF
17011 #define HAVE_GETOPT_LONG_ONLY 1
17012 _ACEOF
17013
17014 else
17015 gl_replace_getopt=yes
17016 fi
17017 done
17018
17019 fi
17020
17021 if test -z "$gl_replace_getopt"; then
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17023 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17024 if ${gl_cv_func_getopt_posix+:} false; then :
17025 $as_echo_n "(cached) " >&6
17026 else
17027
17028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h. */
17030 #include <unistd.h>
17031 int
17032 main ()
17033 {
17034 int *p = &optreset; return optreset;
17035 ;
17036 return 0;
17037 }
17038 _ACEOF
17039 if ac_fn_c_try_link "$LINENO"; then :
17040 gl_optind_min=1
17041 else
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17044 #include <getopt.h>
17045 int
17046 main ()
17047 {
17048 return !getopt_clip;
17049 ;
17050 return 0;
17051 }
17052 _ACEOF
17053 if ac_fn_c_try_compile "$LINENO"; then :
17054 gl_optind_min=1
17055 else
17056 gl_optind_min=0
17057 fi
17058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 fi
17060 rm -f core conftest.err conftest.$ac_objext \
17061 conftest$ac_exeext conftest.$ac_ext
17062
17063 gl_save_CPPFLAGS=$CPPFLAGS
17064 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
17065 if test "$cross_compiling" = yes; then :
17066 case "$host_os" in
17067 mingw*) gl_cv_func_getopt_posix="guessing no";;
17068 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
17069 *) gl_cv_func_getopt_posix="guessing yes";;
17070 esac
17071
17072 else
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17075
17076 #include <unistd.h>
17077 #include <stdlib.h>
17078 #include <string.h>
17079
17080 int
17081 main ()
17082 {
17083 {
17084 static char program[] = "program";
17085 static char a[] = "-a";
17086 static char foo[] = "foo";
17087 static char bar[] = "bar";
17088 char *argv[] = { program, a, foo, bar, NULL };
17089 int c;
17090
17091 optind = OPTIND_MIN;
17092 opterr = 0;
17093
17094 c = getopt (4, argv, "ab");
17095 if (!(c == 'a'))
17096 return 1;
17097 c = getopt (4, argv, "ab");
17098 if (!(c == -1))
17099 return 2;
17100 if (!(optind == 2))
17101 return 3;
17102 }
17103 /* Some internal state exists at this point. */
17104 {
17105 static char program[] = "program";
17106 static char donald[] = "donald";
17107 static char p[] = "-p";
17108 static char billy[] = "billy";
17109 static char duck[] = "duck";
17110 static char a[] = "-a";
17111 static char bar[] = "bar";
17112 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17113 int c;
17114
17115 optind = OPTIND_MIN;
17116 opterr = 0;
17117
17118 c = getopt (7, argv, "+abp:q:");
17119 if (!(c == -1))
17120 return 4;
17121 if (!(strcmp (argv[0], "program") == 0))
17122 return 5;
17123 if (!(strcmp (argv[1], "donald") == 0))
17124 return 6;
17125 if (!(strcmp (argv[2], "-p") == 0))
17126 return 7;
17127 if (!(strcmp (argv[3], "billy") == 0))
17128 return 8;
17129 if (!(strcmp (argv[4], "duck") == 0))
17130 return 9;
17131 if (!(strcmp (argv[5], "-a") == 0))
17132 return 10;
17133 if (!(strcmp (argv[6], "bar") == 0))
17134 return 11;
17135 if (!(optind == 1))
17136 return 12;
17137 }
17138 /* Detect MacOS 10.5, AIX 7.1 bug. */
17139 {
17140 static char program[] = "program";
17141 static char ab[] = "-ab";
17142 char *argv[3] = { program, ab, NULL };
17143 optind = OPTIND_MIN;
17144 opterr = 0;
17145 if (getopt (2, argv, "ab:") != 'a')
17146 return 13;
17147 if (getopt (2, argv, "ab:") != '?')
17148 return 14;
17149 if (optopt != 'b')
17150 return 15;
17151 if (optind != 2)
17152 return 16;
17153 }
17154
17155 return 0;
17156 }
17157
17158 _ACEOF
17159 if ac_fn_c_try_run "$LINENO"; then :
17160 gl_cv_func_getopt_posix=yes
17161 else
17162 gl_cv_func_getopt_posix=no
17163 fi
17164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17165 conftest.$ac_objext conftest.beam conftest.$ac_ext
17166 fi
17167
17168 CPPFLAGS=$gl_save_CPPFLAGS
17169
17170 fi
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17172 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17173 case "$gl_cv_func_getopt_posix" in
17174 *no) gl_replace_getopt=yes ;;
17175 esac
17176 fi
17177
17178 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17180 $as_echo_n "checking for working GNU getopt function... " >&6; }
17181 if ${gl_cv_func_getopt_gnu+:} false; then :
17182 $as_echo_n "(cached) " >&6
17183 else
17184 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17185 # optstring is necessary for programs like m4 that have POSIX-mandated
17186 # semantics for supporting options interspersed with files.
17187 # Also, since getopt_long is a GNU extension, we require optind=0.
17188 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17189 # so take care to revert to the correct (non-)export state.
17190 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17191 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17192 xx) gl_had_POSIXLY_CORRECT=exported ;;
17193 x) gl_had_POSIXLY_CORRECT=yes ;;
17194 *) gl_had_POSIXLY_CORRECT= ;;
17195 esac
17196 POSIXLY_CORRECT=1
17197 export POSIXLY_CORRECT
17198 if test "$cross_compiling" = yes; then :
17199 case $host_os:$ac_cv_have_decl_optreset in
17200 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
17201 *:yes) gl_cv_func_getopt_gnu=no;;
17202 *) gl_cv_func_getopt_gnu=yes;;
17203 esac
17204
17205 else
17206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207 /* end confdefs.h. */
17208 #include <getopt.h>
17209 #include <stddef.h>
17210 #include <string.h>
17211
17212 #include <stdlib.h>
17213 #if defined __MACH__ && defined __APPLE__
17214 /* Avoid a crash on MacOS X. */
17215 #include <mach/mach.h>
17216 #include <mach/mach_error.h>
17217 #include <mach/thread_status.h>
17218 #include <mach/exception.h>
17219 #include <mach/task.h>
17220 #include <pthread.h>
17221 /* The exception port on which our thread listens. */
17222 static mach_port_t our_exception_port;
17223 /* The main function of the thread listening for exceptions of type
17224 EXC_BAD_ACCESS. */
17225 static void *
17226 mach_exception_thread (void *arg)
17227 {
17228 /* Buffer for a message to be received. */
17229 struct {
17230 mach_msg_header_t head;
17231 mach_msg_body_t msgh_body;
17232 char data[1024];
17233 } msg;
17234 mach_msg_return_t retval;
17235 /* Wait for a message on the exception port. */
17236 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17237 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17238 if (retval != MACH_MSG_SUCCESS)
17239 abort ();
17240 exit (1);
17241 }
17242 static void
17243 nocrash_init (void)
17244 {
17245 mach_port_t self = mach_task_self ();
17246 /* Allocate a port on which the thread shall listen for exceptions. */
17247 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17248 == KERN_SUCCESS) {
17249 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17250 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17251 MACH_MSG_TYPE_MAKE_SEND)
17252 == KERN_SUCCESS) {
17253 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17254 for us. */
17255 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17256 /* Create the thread listening on the exception port. */
17257 pthread_attr_t attr;
17258 pthread_t thread;
17259 if (pthread_attr_init (&attr) == 0
17260 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17261 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17262 pthread_attr_destroy (&attr);
17263 /* Replace the exception port info for these exceptions with our own.
17264 Note that we replace the exception port for the entire task, not only
17265 for a particular thread. This has the effect that when our exception
17266 port gets the message, the thread specific exception port has already
17267 been asked, and we don't need to bother about it.
17268 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17269 task_set_exception_ports (self, mask, our_exception_port,
17270 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17271 }
17272 }
17273 }
17274 }
17275 #else
17276 /* Avoid a crash on POSIX systems. */
17277 #include <signal.h>
17278 /* A POSIX signal handler. */
17279 static void
17280 exception_handler (int sig)
17281 {
17282 exit (1);
17283 }
17284 static void
17285 nocrash_init (void)
17286 {
17287 #ifdef SIGSEGV
17288 signal (SIGSEGV, exception_handler);
17289 #endif
17290 #ifdef SIGBUS
17291 signal (SIGBUS, exception_handler);
17292 #endif
17293 }
17294 #endif
17295
17296
17297 int
17298 main ()
17299 {
17300
17301 int result = 0;
17302
17303 nocrash_init();
17304
17305 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17306 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17307 OSF/1 5.1, Solaris 10. */
17308 {
17309 static char conftest[] = "conftest";
17310 static char plus[] = "-+";
17311 char *argv[3] = { conftest, plus, NULL };
17312 opterr = 0;
17313 if (getopt (2, argv, "+a") != '?')
17314 result |= 1;
17315 }
17316 /* This code succeeds on glibc 2.8, mingw,
17317 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17318 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17319 {
17320 static char program[] = "program";
17321 static char p[] = "-p";
17322 static char foo[] = "foo";
17323 static char bar[] = "bar";
17324 char *argv[] = { program, p, foo, bar, NULL };
17325
17326 optind = 1;
17327 if (getopt (4, argv, "p::") != 'p')
17328 result |= 2;
17329 else if (optarg != NULL)
17330 result |= 4;
17331 else if (getopt (4, argv, "p::") != -1)
17332 result |= 6;
17333 else if (optind != 2)
17334 result |= 8;
17335 }
17336 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17337 {
17338 static char program[] = "program";
17339 static char foo[] = "foo";
17340 static char p[] = "-p";
17341 char *argv[] = { program, foo, p, NULL };
17342 optind = 0;
17343 if (getopt (3, argv, "-p") != 1)
17344 result |= 16;
17345 else if (getopt (3, argv, "-p") != 'p')
17346 result |= 32;
17347 }
17348 /* This code fails on glibc 2.11. */
17349 {
17350 static char program[] = "program";
17351 static char b[] = "-b";
17352 static char a[] = "-a";
17353 char *argv[] = { program, b, a, NULL };
17354 optind = opterr = 0;
17355 if (getopt (3, argv, "+:a:b") != 'b')
17356 result |= 64;
17357 else if (getopt (3, argv, "+:a:b") != ':')
17358 result |= 64;
17359 }
17360 /* This code dumps core on glibc 2.14. */
17361 {
17362 static char program[] = "program";
17363 static char w[] = "-W";
17364 static char dummy[] = "dummy";
17365 char *argv[] = { program, w, dummy, NULL };
17366 optind = opterr = 1;
17367 if (getopt (3, argv, "W;") != 'W')
17368 result |= 128;
17369 }
17370 return result;
17371
17372 ;
17373 return 0;
17374 }
17375 _ACEOF
17376 if ac_fn_c_try_run "$LINENO"; then :
17377 gl_cv_func_getopt_gnu=yes
17378 else
17379 gl_cv_func_getopt_gnu=no
17380 fi
17381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17382 conftest.$ac_objext conftest.beam conftest.$ac_ext
17383 fi
17384
17385 case $gl_had_POSIXLY_CORRECT in
17386 exported) ;;
17387 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17388 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17389 esac
17390
17391 fi
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17393 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17394 if test "$gl_cv_func_getopt_gnu" = "no"; then
17395 gl_replace_getopt=yes
17396 fi
17397 fi
17398
17399
17400
17401
17402
17403 REPLACE_GETOPT=0
17404
17405
17406 if test -n "$gl_replace_getopt"; then :
17407
17408 REPLACE_GETOPT=1
17409
17410 fi
17411
17412
17413 if test $REPLACE_GETOPT = 1; then
17414
17415 GETOPT_H=getopt.h
17416
17417 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17418
17419
17420
17421 GNULIB_UNISTD_H_GETOPT=1
17422 fi
17423
17424 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17425 if test "x$ac_cv_have_decl_getenv" = xyes; then :
17426 ac_have_decl=1
17427 else
17428 ac_have_decl=0
17429 fi
17430
17431 cat >>confdefs.h <<_ACEOF
17432 #define HAVE_DECL_GETENV $ac_have_decl
17433 _ACEOF
17434
17435
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17437 $as_echo_n "checking for unsigned long long int... " >&6; }
17438 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17439 $as_echo_n "(cached) " >&6
17440 else
17441 ac_cv_type_unsigned_long_long_int=yes
17442 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17445
17446 /* For now, do not test the preprocessor; as of 2007 there are too many
17447 implementations with broken preprocessors. Perhaps this can
17448 be revisited in 2012. In the meantime, code should not expect
17449 #if to work with literals wider than 32 bits. */
17450 /* Test literals. */
17451 long long int ll = 9223372036854775807ll;
17452 long long int nll = -9223372036854775807LL;
17453 unsigned long long int ull = 18446744073709551615ULL;
17454 /* Test constant expressions. */
17455 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17456 ? 1 : -1)];
17457 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17458 ? 1 : -1)];
17459 int i = 63;
17460 int
17461 main ()
17462 {
17463 /* Test availability of runtime routines for shift and division. */
17464 long long int llmax = 9223372036854775807ll;
17465 unsigned long long int ullmax = 18446744073709551615ull;
17466 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17467 | (llmax / ll) | (llmax % ll)
17468 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17469 | (ullmax / ull) | (ullmax % ull));
17470 ;
17471 return 0;
17472 }
17473
17474 _ACEOF
17475 if ac_fn_c_try_link "$LINENO"; then :
17476
17477 else
17478 ac_cv_type_unsigned_long_long_int=no
17479 fi
17480 rm -f core conftest.err conftest.$ac_objext \
17481 conftest$ac_exeext conftest.$ac_ext
17482 fi
17483 fi
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17485 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17486 if test $ac_cv_type_unsigned_long_long_int = yes; then
17487
17488 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17489
17490 fi
17491
17492
17493
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17495 $as_echo_n "checking for long long int... " >&6; }
17496 if ${ac_cv_type_long_long_int+:} false; then :
17497 $as_echo_n "(cached) " >&6
17498 else
17499 ac_cv_type_long_long_int=yes
17500 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17501 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17502 if test $ac_cv_type_long_long_int = yes; then
17503 if test "$cross_compiling" = yes; then :
17504 :
17505 else
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17508 #include <limits.h>
17509 #ifndef LLONG_MAX
17510 # define HALF \
17511 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17512 # define LLONG_MAX (HALF - 1 + HALF)
17513 #endif
17514 int
17515 main ()
17516 {
17517 long long int n = 1;
17518 int i;
17519 for (i = 0; ; i++)
17520 {
17521 long long int m = n << i;
17522 if (m >> i != n)
17523 return 1;
17524 if (LLONG_MAX / 2 < m)
17525 break;
17526 }
17527 return 0;
17528 ;
17529 return 0;
17530 }
17531 _ACEOF
17532 if ac_fn_c_try_run "$LINENO"; then :
17533
17534 else
17535 ac_cv_type_long_long_int=no
17536 fi
17537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17538 conftest.$ac_objext conftest.beam conftest.$ac_ext
17539 fi
17540
17541 fi
17542 fi
17543 fi
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17545 $as_echo "$ac_cv_type_long_long_int" >&6; }
17546 if test $ac_cv_type_long_long_int = yes; then
17547
17548 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17549
17550 fi
17551
17552
17553
17554
17555
17556
17557 gl_cv_c_multiarch=no
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560 #ifndef __APPLE_CC__
17561 not a universal capable compiler
17562 #endif
17563 typedef int dummy;
17564
17565 _ACEOF
17566 if ac_fn_c_try_compile "$LINENO"; then :
17567
17568 arch=
17569 prev=
17570 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17571 if test -n "$prev"; then
17572 case $word in
17573 i?86 | x86_64 | ppc | ppc64)
17574 if test -z "$arch" || test "$arch" = "$word"; then
17575 arch="$word"
17576 else
17577 gl_cv_c_multiarch=yes
17578 fi
17579 ;;
17580 esac
17581 prev=
17582 else
17583 if test "x$word" = "x-arch"; then
17584 prev=arch
17585 fi
17586 fi
17587 done
17588
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591 if test $gl_cv_c_multiarch = yes; then
17592 APPLE_UNIVERSAL_BUILD=1
17593 else
17594 APPLE_UNIVERSAL_BUILD=0
17595 fi
17596
17597
17598
17599
17600
17601 if test $ac_cv_type_long_long_int = yes; then
17602 HAVE_LONG_LONG_INT=1
17603 else
17604 HAVE_LONG_LONG_INT=0
17605 fi
17606
17607
17608 if test $ac_cv_type_unsigned_long_long_int = yes; then
17609 HAVE_UNSIGNED_LONG_LONG_INT=1
17610 else
17611 HAVE_UNSIGNED_LONG_LONG_INT=0
17612 fi
17613
17614
17615
17616 if test $ac_cv_header_wchar_h = yes; then
17617 HAVE_WCHAR_H=1
17618 else
17619 HAVE_WCHAR_H=0
17620 fi
17621
17622
17623 if test $ac_cv_header_inttypes_h = yes; then
17624 HAVE_INTTYPES_H=1
17625 else
17626 HAVE_INTTYPES_H=0
17627 fi
17628
17629
17630 if test $ac_cv_header_sys_types_h = yes; then
17631 HAVE_SYS_TYPES_H=1
17632 else
17633 HAVE_SYS_TYPES_H=0
17634 fi
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646 if test $gl_cv_have_include_next = yes; then
17647 gl_cv_next_stdint_h='<'stdint.h'>'
17648 else
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17650 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17651 if ${gl_cv_next_stdint_h+:} false; then :
17652 $as_echo_n "(cached) " >&6
17653 else
17654
17655 if test $ac_cv_header_stdint_h = yes; then
17656
17657
17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h. */
17660 #include <stdint.h>
17661
17662 _ACEOF
17663 case "$host_os" in
17664 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17665 *) gl_absname_cpp="$ac_cpp" ;;
17666 esac
17667 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17668 sed -n '\#/stdint.h#{
17669 s#.*"\(.*/stdint.h\)".*#\1#
17670 s#^/[^/]#//&#
17671 p
17672 q
17673 }'`'"'
17674 else
17675 gl_cv_next_stdint_h='<'stdint.h'>'
17676 fi
17677
17678
17679 fi
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17681 $as_echo "$gl_cv_next_stdint_h" >&6; }
17682 fi
17683 NEXT_STDINT_H=$gl_cv_next_stdint_h
17684
17685 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17686 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17687 gl_next_as_first_directive='<'stdint.h'>'
17688 else
17689 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17690 gl_next_as_first_directive=$gl_cv_next_stdint_h
17691 fi
17692 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17693
17694
17695
17696
17697 if test $ac_cv_header_stdint_h = yes; then
17698 HAVE_STDINT_H=1
17699 else
17700 HAVE_STDINT_H=0
17701 fi
17702
17703
17704 if test $ac_cv_header_stdint_h = yes; then
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17706 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17707 if ${gl_cv_header_working_stdint_h+:} false; then :
17708 $as_echo_n "(cached) " >&6
17709 else
17710 gl_cv_header_working_stdint_h=no
17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17713
17714
17715 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17716 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17717 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17718 #include <stdint.h>
17719 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17720 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17721 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17722 #endif
17723
17724
17725 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17726 included before <wchar.h>. */
17727 #include <stddef.h>
17728 #include <signal.h>
17729 #if HAVE_WCHAR_H
17730 # include <stdio.h>
17731 # include <time.h>
17732 # include <wchar.h>
17733 #endif
17734
17735
17736 #ifdef INT8_MAX
17737 int8_t a1 = INT8_MAX;
17738 int8_t a1min = INT8_MIN;
17739 #endif
17740 #ifdef INT16_MAX
17741 int16_t a2 = INT16_MAX;
17742 int16_t a2min = INT16_MIN;
17743 #endif
17744 #ifdef INT32_MAX
17745 int32_t a3 = INT32_MAX;
17746 int32_t a3min = INT32_MIN;
17747 #endif
17748 #ifdef INT64_MAX
17749 int64_t a4 = INT64_MAX;
17750 int64_t a4min = INT64_MIN;
17751 #endif
17752 #ifdef UINT8_MAX
17753 uint8_t b1 = UINT8_MAX;
17754 #else
17755 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17756 #endif
17757 #ifdef UINT16_MAX
17758 uint16_t b2 = UINT16_MAX;
17759 #endif
17760 #ifdef UINT32_MAX
17761 uint32_t b3 = UINT32_MAX;
17762 #endif
17763 #ifdef UINT64_MAX
17764 uint64_t b4 = UINT64_MAX;
17765 #endif
17766 int_least8_t c1 = INT8_C (0x7f);
17767 int_least8_t c1max = INT_LEAST8_MAX;
17768 int_least8_t c1min = INT_LEAST8_MIN;
17769 int_least16_t c2 = INT16_C (0x7fff);
17770 int_least16_t c2max = INT_LEAST16_MAX;
17771 int_least16_t c2min = INT_LEAST16_MIN;
17772 int_least32_t c3 = INT32_C (0x7fffffff);
17773 int_least32_t c3max = INT_LEAST32_MAX;
17774 int_least32_t c3min = INT_LEAST32_MIN;
17775 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17776 int_least64_t c4max = INT_LEAST64_MAX;
17777 int_least64_t c4min = INT_LEAST64_MIN;
17778 uint_least8_t d1 = UINT8_C (0xff);
17779 uint_least8_t d1max = UINT_LEAST8_MAX;
17780 uint_least16_t d2 = UINT16_C (0xffff);
17781 uint_least16_t d2max = UINT_LEAST16_MAX;
17782 uint_least32_t d3 = UINT32_C (0xffffffff);
17783 uint_least32_t d3max = UINT_LEAST32_MAX;
17784 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17785 uint_least64_t d4max = UINT_LEAST64_MAX;
17786 int_fast8_t e1 = INT_FAST8_MAX;
17787 int_fast8_t e1min = INT_FAST8_MIN;
17788 int_fast16_t e2 = INT_FAST16_MAX;
17789 int_fast16_t e2min = INT_FAST16_MIN;
17790 int_fast32_t e3 = INT_FAST32_MAX;
17791 int_fast32_t e3min = INT_FAST32_MIN;
17792 int_fast64_t e4 = INT_FAST64_MAX;
17793 int_fast64_t e4min = INT_FAST64_MIN;
17794 uint_fast8_t f1 = UINT_FAST8_MAX;
17795 uint_fast16_t f2 = UINT_FAST16_MAX;
17796 uint_fast32_t f3 = UINT_FAST32_MAX;
17797 uint_fast64_t f4 = UINT_FAST64_MAX;
17798 #ifdef INTPTR_MAX
17799 intptr_t g = INTPTR_MAX;
17800 intptr_t gmin = INTPTR_MIN;
17801 #endif
17802 #ifdef UINTPTR_MAX
17803 uintptr_t h = UINTPTR_MAX;
17804 #endif
17805 intmax_t i = INTMAX_MAX;
17806 uintmax_t j = UINTMAX_MAX;
17807
17808 #include <limits.h> /* for CHAR_BIT */
17809 #define TYPE_MINIMUM(t) \
17810 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17811 #define TYPE_MAXIMUM(t) \
17812 ((t) ((t) 0 < (t) -1 \
17813 ? (t) -1 \
17814 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17815 struct s {
17816 int check_PTRDIFF:
17817 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17818 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17819 ? 1 : -1;
17820 /* Detect bug in FreeBSD 6.0 / ia64. */
17821 int check_SIG_ATOMIC:
17822 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17823 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17824 ? 1 : -1;
17825 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17826 int check_WCHAR:
17827 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17828 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17829 ? 1 : -1;
17830 /* Detect bug in mingw. */
17831 int check_WINT:
17832 WINT_MIN == TYPE_MINIMUM (wint_t)
17833 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17834 ? 1 : -1;
17835
17836 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17837 int check_UINT8_C:
17838 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17839 int check_UINT16_C:
17840 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17841
17842 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17843 #ifdef UINT8_MAX
17844 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17845 #endif
17846 #ifdef UINT16_MAX
17847 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17848 #endif
17849 #ifdef UINT32_MAX
17850 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17851 #endif
17852 #ifdef UINT64_MAX
17853 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17854 #endif
17855 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17856 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17857 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17858 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17859 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17860 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17861 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17862 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17863 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17864 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17865 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17866 };
17867
17868 int
17869 main ()
17870 {
17871
17872 ;
17873 return 0;
17874 }
17875 _ACEOF
17876 if ac_fn_c_try_compile "$LINENO"; then :
17877 if test "$cross_compiling" = yes; then :
17878 gl_cv_header_working_stdint_h=yes
17879
17880 else
17881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882 /* end confdefs.h. */
17883
17884
17885 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17886 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17887 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17888 #include <stdint.h>
17889
17890
17891 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17892 included before <wchar.h>. */
17893 #include <stddef.h>
17894 #include <signal.h>
17895 #if HAVE_WCHAR_H
17896 # include <stdio.h>
17897 # include <time.h>
17898 # include <wchar.h>
17899 #endif
17900
17901
17902 #include <stdio.h>
17903 #include <string.h>
17904 #define MVAL(macro) MVAL1(macro)
17905 #define MVAL1(expression) #expression
17906 static const char *macro_values[] =
17907 {
17908 #ifdef INT8_MAX
17909 MVAL (INT8_MAX),
17910 #endif
17911 #ifdef INT16_MAX
17912 MVAL (INT16_MAX),
17913 #endif
17914 #ifdef INT32_MAX
17915 MVAL (INT32_MAX),
17916 #endif
17917 #ifdef INT64_MAX
17918 MVAL (INT64_MAX),
17919 #endif
17920 #ifdef UINT8_MAX
17921 MVAL (UINT8_MAX),
17922 #endif
17923 #ifdef UINT16_MAX
17924 MVAL (UINT16_MAX),
17925 #endif
17926 #ifdef UINT32_MAX
17927 MVAL (UINT32_MAX),
17928 #endif
17929 #ifdef UINT64_MAX
17930 MVAL (UINT64_MAX),
17931 #endif
17932 NULL
17933 };
17934
17935 int
17936 main ()
17937 {
17938
17939 const char **mv;
17940 for (mv = macro_values; *mv != NULL; mv++)
17941 {
17942 const char *value = *mv;
17943 /* Test whether it looks like a cast expression. */
17944 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17945 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17946 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17947 || strncmp (value, "((int)"/*)*/, 6) == 0
17948 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17949 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17950 return mv - macro_values + 1;
17951 }
17952 return 0;
17953
17954 ;
17955 return 0;
17956 }
17957 _ACEOF
17958 if ac_fn_c_try_run "$LINENO"; then :
17959 gl_cv_header_working_stdint_h=yes
17960 fi
17961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17962 conftest.$ac_objext conftest.beam conftest.$ac_ext
17963 fi
17964
17965
17966 fi
17967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17968
17969 fi
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17971 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17972 fi
17973 if test "$gl_cv_header_working_stdint_h" = yes; then
17974 STDINT_H=
17975 else
17976 for ac_header in sys/inttypes.h sys/bitypes.h
17977 do :
17978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17981 cat >>confdefs.h <<_ACEOF
17982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17983 _ACEOF
17984
17985 fi
17986
17987 done
17988
17989 if test $ac_cv_header_sys_inttypes_h = yes; then
17990 HAVE_SYS_INTTYPES_H=1
17991 else
17992 HAVE_SYS_INTTYPES_H=0
17993 fi
17994
17995 if test $ac_cv_header_sys_bitypes_h = yes; then
17996 HAVE_SYS_BITYPES_H=1
17997 else
17998 HAVE_SYS_BITYPES_H=0
17999 fi
18000
18001
18002
18003
18004 if test $APPLE_UNIVERSAL_BUILD = 0; then
18005
18006
18007 for gltype in ptrdiff_t size_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 eval \${gl_cv_bitsizeof_${gltype}+:} false; 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 fi
18050
18051
18052 for gltype in sig_atomic_t wchar_t wint_t ; do
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18054 $as_echo_n "checking for bit size of $gltype... " >&6; }
18055 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18056 $as_echo_n "(cached) " >&6
18057 else
18058 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18059 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18060 included before <wchar.h>. */
18061 #include <stddef.h>
18062 #include <signal.h>
18063 #if HAVE_WCHAR_H
18064 # include <stdio.h>
18065 # include <time.h>
18066 # include <wchar.h>
18067 #endif
18068
18069 #include <limits.h>"; then :
18070
18071 else
18072 result=unknown
18073 fi
18074
18075 eval gl_cv_bitsizeof_${gltype}=\$result
18076
18077 fi
18078 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18080 $as_echo "$ac_res" >&6; }
18081 eval result=\$gl_cv_bitsizeof_${gltype}
18082 if test $result = unknown; then
18083 result=0
18084 fi
18085 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18086 cat >>confdefs.h <<_ACEOF
18087 #define BITSIZEOF_${GLTYPE} $result
18088 _ACEOF
18089
18090 eval BITSIZEOF_${GLTYPE}=\$result
18091 done
18092
18093
18094
18095
18096 for gltype in sig_atomic_t wchar_t wint_t ; do
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18098 $as_echo_n "checking whether $gltype is signed... " >&6; }
18099 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
18100 $as_echo_n "(cached) " >&6
18101 else
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18104
18105 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18106 included before <wchar.h>. */
18107 #include <stddef.h>
18108 #include <signal.h>
18109 #if HAVE_WCHAR_H
18110 # include <stdio.h>
18111 # include <time.h>
18112 # include <wchar.h>
18113 #endif
18114
18115 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18116 int
18117 main ()
18118 {
18119
18120 ;
18121 return 0;
18122 }
18123 _ACEOF
18124 if ac_fn_c_try_compile "$LINENO"; then :
18125 result=yes
18126 else
18127 result=no
18128 fi
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 eval gl_cv_type_${gltype}_signed=\$result
18131
18132 fi
18133 eval ac_res=\$gl_cv_type_${gltype}_signed
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18135 $as_echo "$ac_res" >&6; }
18136 eval result=\$gl_cv_type_${gltype}_signed
18137 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18138 if test "$result" = yes; then
18139 cat >>confdefs.h <<_ACEOF
18140 #define HAVE_SIGNED_${GLTYPE} 1
18141 _ACEOF
18142
18143 eval HAVE_SIGNED_${GLTYPE}=1
18144 else
18145 eval HAVE_SIGNED_${GLTYPE}=0
18146 fi
18147 done
18148
18149
18150 gl_cv_type_ptrdiff_t_signed=yes
18151 gl_cv_type_size_t_signed=no
18152 if test $APPLE_UNIVERSAL_BUILD = 0; then
18153
18154
18155 for gltype in ptrdiff_t size_t ; do
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18157 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18158 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18159 $as_echo_n "(cached) " >&6
18160 else
18161 eval gl_cv_type_${gltype}_suffix=no
18162 eval result=\$gl_cv_type_${gltype}_signed
18163 if test "$result" = yes; then
18164 glsufu=
18165 else
18166 glsufu=u
18167 fi
18168 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18169 case $glsuf in
18170 '') gltype1='int';;
18171 l) gltype1='long int';;
18172 ll) gltype1='long long int';;
18173 i64) gltype1='__int64';;
18174 u) gltype1='unsigned int';;
18175 ul) gltype1='unsigned long int';;
18176 ull) gltype1='unsigned long long int';;
18177 ui64)gltype1='unsigned __int64';;
18178 esac
18179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18181
18182 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18183 included before <wchar.h>. */
18184 #include <stddef.h>
18185 #include <signal.h>
18186 #if HAVE_WCHAR_H
18187 # include <stdio.h>
18188 # include <time.h>
18189 # include <wchar.h>
18190 #endif
18191
18192 extern $gltype foo;
18193 extern $gltype1 foo;
18194 int
18195 main ()
18196 {
18197
18198 ;
18199 return 0;
18200 }
18201 _ACEOF
18202 if ac_fn_c_try_compile "$LINENO"; then :
18203 eval gl_cv_type_${gltype}_suffix=\$glsuf
18204 fi
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 eval result=\$gl_cv_type_${gltype}_suffix
18207 test "$result" != no && break
18208 done
18209 fi
18210 eval ac_res=\$gl_cv_type_${gltype}_suffix
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18212 $as_echo "$ac_res" >&6; }
18213 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18214 eval result=\$gl_cv_type_${gltype}_suffix
18215 test "$result" = no && result=
18216 eval ${GLTYPE}_SUFFIX=\$result
18217 cat >>confdefs.h <<_ACEOF
18218 #define ${GLTYPE}_SUFFIX $result
18219 _ACEOF
18220
18221 done
18222
18223
18224 fi
18225
18226
18227 for gltype in sig_atomic_t wchar_t wint_t ; do
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18229 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18230 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18231 $as_echo_n "(cached) " >&6
18232 else
18233 eval gl_cv_type_${gltype}_suffix=no
18234 eval result=\$gl_cv_type_${gltype}_signed
18235 if test "$result" = yes; then
18236 glsufu=
18237 else
18238 glsufu=u
18239 fi
18240 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18241 case $glsuf in
18242 '') gltype1='int';;
18243 l) gltype1='long int';;
18244 ll) gltype1='long long int';;
18245 i64) gltype1='__int64';;
18246 u) gltype1='unsigned int';;
18247 ul) gltype1='unsigned long int';;
18248 ull) gltype1='unsigned long long int';;
18249 ui64)gltype1='unsigned __int64';;
18250 esac
18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18253
18254 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18255 included before <wchar.h>. */
18256 #include <stddef.h>
18257 #include <signal.h>
18258 #if HAVE_WCHAR_H
18259 # include <stdio.h>
18260 # include <time.h>
18261 # include <wchar.h>
18262 #endif
18263
18264 extern $gltype foo;
18265 extern $gltype1 foo;
18266 int
18267 main ()
18268 {
18269
18270 ;
18271 return 0;
18272 }
18273 _ACEOF
18274 if ac_fn_c_try_compile "$LINENO"; then :
18275 eval gl_cv_type_${gltype}_suffix=\$glsuf
18276 fi
18277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18278 eval result=\$gl_cv_type_${gltype}_suffix
18279 test "$result" != no && break
18280 done
18281 fi
18282 eval ac_res=\$gl_cv_type_${gltype}_suffix
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18284 $as_echo "$ac_res" >&6; }
18285 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18286 eval result=\$gl_cv_type_${gltype}_suffix
18287 test "$result" = no && result=
18288 eval ${GLTYPE}_SUFFIX=\$result
18289 cat >>confdefs.h <<_ACEOF
18290 #define ${GLTYPE}_SUFFIX $result
18291 _ACEOF
18292
18293 done
18294
18295
18296
18297 STDINT_H=stdint.h
18298 fi
18299
18300 if test -n "$STDINT_H"; then
18301 GL_GENERATE_STDINT_H_TRUE=
18302 GL_GENERATE_STDINT_H_FALSE='#'
18303 else
18304 GL_GENERATE_STDINT_H_TRUE='#'
18305 GL_GENERATE_STDINT_H_FALSE=
18306 fi
18307
18308
18309
18310
18311
18312 GNULIB_IMAXABS=0;
18313 GNULIB_IMAXDIV=0;
18314 GNULIB_STRTOIMAX=0;
18315 GNULIB_STRTOUMAX=0;
18316 HAVE_DECL_IMAXABS=1;
18317 HAVE_DECL_IMAXDIV=1;
18318 HAVE_DECL_STRTOIMAX=1;
18319 HAVE_DECL_STRTOUMAX=1;
18320 INT32_MAX_LT_INTMAX_MAX=1;
18321 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18322 PRI_MACROS_BROKEN=0;
18323 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18324 UINT32_MAX_LT_UINTMAX_MAX=1;
18325 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341 if test $gl_cv_have_include_next = yes; then
18342 gl_cv_next_inttypes_h='<'inttypes.h'>'
18343 else
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18345 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18346 if ${gl_cv_next_inttypes_h+:} false; then :
18347 $as_echo_n "(cached) " >&6
18348 else
18349
18350 if test $ac_cv_header_inttypes_h = yes; then
18351
18352
18353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18354 /* end confdefs.h. */
18355 #include <inttypes.h>
18356
18357 _ACEOF
18358 case "$host_os" in
18359 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18360 *) gl_absname_cpp="$ac_cpp" ;;
18361 esac
18362 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18363 sed -n '\#/inttypes.h#{
18364 s#.*"\(.*/inttypes.h\)".*#\1#
18365 s#^/[^/]#//&#
18366 p
18367 q
18368 }'`'"'
18369 else
18370 gl_cv_next_inttypes_h='<'inttypes.h'>'
18371 fi
18372
18373
18374 fi
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18376 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18377 fi
18378 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18379
18380 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18381 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18382 gl_next_as_first_directive='<'inttypes.h'>'
18383 else
18384 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18385 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18386 fi
18387 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18388
18389
18390
18391
18392
18393
18394
18395
18396 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
18397
18398
18399
18400
18401
18402
18403 GNULIB_FCHMODAT=0;
18404 GNULIB_FSTATAT=0;
18405 GNULIB_FUTIMENS=0;
18406 GNULIB_LCHMOD=0;
18407 GNULIB_LSTAT=0;
18408 GNULIB_MKDIRAT=0;
18409 GNULIB_MKFIFO=0;
18410 GNULIB_MKFIFOAT=0;
18411 GNULIB_MKNOD=0;
18412 GNULIB_MKNODAT=0;
18413 GNULIB_STAT=0;
18414 GNULIB_UTIMENSAT=0;
18415 HAVE_FCHMODAT=1;
18416 HAVE_FSTATAT=1;
18417 HAVE_FUTIMENS=1;
18418 HAVE_LCHMOD=1;
18419 HAVE_LSTAT=1;
18420 HAVE_MKDIRAT=1;
18421 HAVE_MKFIFO=1;
18422 HAVE_MKFIFOAT=1;
18423 HAVE_MKNOD=1;
18424 HAVE_MKNODAT=1;
18425 HAVE_UTIMENSAT=1;
18426 REPLACE_FSTAT=0;
18427 REPLACE_FSTATAT=0;
18428 REPLACE_FUTIMENS=0;
18429 REPLACE_LSTAT=0;
18430 REPLACE_MKDIR=0;
18431 REPLACE_MKFIFO=0;
18432 REPLACE_MKNOD=0;
18433 REPLACE_STAT=0;
18434 REPLACE_UTIMENSAT=0;
18435
18436
18437
18438
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18440 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18441 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
18442 $as_echo_n "(cached) " >&6
18443 else
18444 rm -f conftest.sym conftest.file
18445 echo >conftest.file
18446 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18447 if test "$cross_compiling" = yes; then :
18448 # When cross-compiling, be pessimistic so we will end up using the
18449 # replacement version of lstat that checks for trailing slashes and
18450 # calls lstat a second time when necessary.
18451 gl_cv_func_lstat_dereferences_slashed_symlink=no
18452
18453 else
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18456 $ac_includes_default
18457 int
18458 main ()
18459 {
18460 struct stat sbuf;
18461 /* Linux will dereference the symlink and fail, as required by
18462 POSIX. That is better in the sense that it means we will not
18463 have to compile and use the lstat wrapper. */
18464 return lstat ("conftest.sym/", &sbuf) == 0;
18465
18466 ;
18467 return 0;
18468 }
18469 _ACEOF
18470 if ac_fn_c_try_run "$LINENO"; then :
18471 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18472 else
18473 gl_cv_func_lstat_dereferences_slashed_symlink=no
18474 fi
18475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18476 conftest.$ac_objext conftest.beam conftest.$ac_ext
18477 fi
18478
18479 else
18480 # If the 'ln -s' command failed, then we probably don't even
18481 # have an lstat function.
18482 gl_cv_func_lstat_dereferences_slashed_symlink=no
18483 fi
18484 rm -f conftest.sym conftest.file
18485
18486 fi
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18488 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18489 test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
18490
18491 cat >>confdefs.h <<_ACEOF
18492 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18493 _ACEOF
18494
18495
18496
18497 GNULIB_MKTIME=0;
18498 GNULIB_NANOSLEEP=0;
18499 GNULIB_STRPTIME=0;
18500 GNULIB_TIMEGM=0;
18501 GNULIB_TIME_R=0;
18502 HAVE_DECL_LOCALTIME_R=1;
18503 HAVE_NANOSLEEP=1;
18504 HAVE_STRPTIME=1;
18505 HAVE_TIMEGM=1;
18506 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18507 REPLACE_MKTIME=GNULIB_PORTCHECK;
18508 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18509 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18510
18511
18512
18513
18514
18515
18516 GNULIB_PTHREAD_SIGMASK=0;
18517 GNULIB_SIGNAL_H_SIGPIPE=0;
18518 GNULIB_SIGPROCMASK=0;
18519 GNULIB_SIGACTION=0;
18520 HAVE_POSIX_SIGNALBLOCKING=1;
18521 HAVE_PTHREAD_SIGMASK=1;
18522 HAVE_SIGSET_T=1;
18523 HAVE_SIGINFO_T=1;
18524 HAVE_SIGACTION=1;
18525 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18526
18527 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18528
18529 HAVE_SIGHANDLER_T=1;
18530 REPLACE_PTHREAD_SIGMASK=0;
18531
18532
18533
18534
18535 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18536 #include <signal.h>
18537 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18538 #include <sys/types.h>
18539
18540 "
18541 if test "x$ac_cv_type_sigset_t" = xyes; then :
18542
18543 cat >>confdefs.h <<_ACEOF
18544 #define HAVE_SIGSET_T 1
18545 _ACEOF
18546
18547 gl_cv_type_sigset_t=yes
18548 else
18549 gl_cv_type_sigset_t=no
18550 fi
18551
18552 if test $gl_cv_type_sigset_t != yes; then
18553 HAVE_SIGSET_T=0
18554 fi
18555
18556
18557
18558
18559
18560 if test $ac_cv_header_sys_socket_h = no; then
18561 for ac_header in ws2tcpip.h
18562 do :
18563 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18564 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18565 cat >>confdefs.h <<_ACEOF
18566 #define HAVE_WS2TCPIP_H 1
18567 _ACEOF
18568
18569 fi
18570
18571 done
18572
18573 fi
18574
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18576 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18577 if ${ac_cv_header_stdbool_h+:} false; then :
18578 $as_echo_n "(cached) " >&6
18579 else
18580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581 /* end confdefs.h. */
18582
18583 #include <stdbool.h>
18584 #ifndef bool
18585 "error: bool is not defined"
18586 #endif
18587 #ifndef false
18588 "error: false is not defined"
18589 #endif
18590 #if false
18591 "error: false is not 0"
18592 #endif
18593 #ifndef true
18594 "error: true is not defined"
18595 #endif
18596 #if true != 1
18597 "error: true is not 1"
18598 #endif
18599 #ifndef __bool_true_false_are_defined
18600 "error: __bool_true_false_are_defined is not defined"
18601 #endif
18602
18603 struct s { _Bool s: 1; _Bool t; } s;
18604
18605 char a[true == 1 ? 1 : -1];
18606 char b[false == 0 ? 1 : -1];
18607 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18608 char d[(bool) 0.5 == true ? 1 : -1];
18609 /* See body of main program for 'e'. */
18610 char f[(_Bool) 0.0 == false ? 1 : -1];
18611 char g[true];
18612 char h[sizeof (_Bool)];
18613 char i[sizeof s.t];
18614 enum { j = false, k = true, l = false * true, m = true * 256 };
18615 /* The following fails for
18616 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18617 _Bool n[m];
18618 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18619 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18620 /* Catch a bug in an HP-UX C compiler. See
18621 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18622 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18623 */
18624 _Bool q = true;
18625 _Bool *pq = &q;
18626
18627 int
18628 main ()
18629 {
18630
18631 bool e = &s;
18632 *pq |= q;
18633 *pq |= ! q;
18634 /* Refer to every declared value, to avoid compiler optimizations. */
18635 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18636 + !m + !n + !o + !p + !q + !pq);
18637
18638 ;
18639 return 0;
18640 }
18641 _ACEOF
18642 if ac_fn_c_try_compile "$LINENO"; then :
18643 ac_cv_header_stdbool_h=yes
18644 else
18645 ac_cv_header_stdbool_h=no
18646 fi
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648 fi
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18650 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18651 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18652 if test "x$ac_cv_type__Bool" = xyes; then :
18653
18654 cat >>confdefs.h <<_ACEOF
18655 #define HAVE__BOOL 1
18656 _ACEOF
18657
18658
18659 fi
18660
18661
18662
18663 REPLACE_NULL=0;
18664 HAVE_WCHAR_T=1;
18665
18666
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18668 $as_echo_n "checking for wchar_t... " >&6; }
18669 if ${gt_cv_c_wchar_t+:} false; then :
18670 $as_echo_n "(cached) " >&6
18671 else
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18674 #include <stddef.h>
18675 wchar_t foo = (wchar_t)'\0';
18676 int
18677 main ()
18678 {
18679
18680 ;
18681 return 0;
18682 }
18683 _ACEOF
18684 if ac_fn_c_try_compile "$LINENO"; then :
18685 gt_cv_c_wchar_t=yes
18686 else
18687 gt_cv_c_wchar_t=no
18688 fi
18689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18690 fi
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18692 $as_echo "$gt_cv_c_wchar_t" >&6; }
18693 if test $gt_cv_c_wchar_t = yes; then
18694
18695 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18696
18697 fi
18698
18699
18700 GNULIB_DPRINTF=0;
18701 GNULIB_FCLOSE=0;
18702 GNULIB_FFLUSH=0;
18703 GNULIB_FGETC=0;
18704 GNULIB_FGETS=0;
18705 GNULIB_FOPEN=0;
18706 GNULIB_FPRINTF=0;
18707 GNULIB_FPRINTF_POSIX=0;
18708 GNULIB_FPURGE=0;
18709 GNULIB_FPUTC=0;
18710 GNULIB_FPUTS=0;
18711 GNULIB_FREAD=0;
18712 GNULIB_FREOPEN=0;
18713 GNULIB_FSCANF=0;
18714 GNULIB_FSEEK=0;
18715 GNULIB_FSEEKO=0;
18716 GNULIB_FTELL=0;
18717 GNULIB_FTELLO=0;
18718 GNULIB_FWRITE=0;
18719 GNULIB_GETC=0;
18720 GNULIB_GETCHAR=0;
18721 GNULIB_GETDELIM=0;
18722 GNULIB_GETLINE=0;
18723 GNULIB_GETS=0;
18724 GNULIB_OBSTACK_PRINTF=0;
18725 GNULIB_OBSTACK_PRINTF_POSIX=0;
18726 GNULIB_PERROR=0;
18727 GNULIB_POPEN=0;
18728 GNULIB_PRINTF=0;
18729 GNULIB_PRINTF_POSIX=0;
18730 GNULIB_PUTC=0;
18731 GNULIB_PUTCHAR=0;
18732 GNULIB_PUTS=0;
18733 GNULIB_REMOVE=0;
18734 GNULIB_RENAME=0;
18735 GNULIB_RENAMEAT=0;
18736 GNULIB_SCANF=0;
18737 GNULIB_SNPRINTF=0;
18738 GNULIB_SPRINTF_POSIX=0;
18739 GNULIB_STDIO_H_NONBLOCKING=0;
18740 GNULIB_STDIO_H_SIGPIPE=0;
18741 GNULIB_TMPFILE=0;
18742 GNULIB_VASPRINTF=0;
18743 GNULIB_VFSCANF=0;
18744 GNULIB_VSCANF=0;
18745 GNULIB_VDPRINTF=0;
18746 GNULIB_VFPRINTF=0;
18747 GNULIB_VFPRINTF_POSIX=0;
18748 GNULIB_VPRINTF=0;
18749 GNULIB_VPRINTF_POSIX=0;
18750 GNULIB_VSNPRINTF=0;
18751 GNULIB_VSPRINTF_POSIX=0;
18752 HAVE_DECL_FPURGE=1;
18753 HAVE_DECL_FSEEKO=1;
18754 HAVE_DECL_FTELLO=1;
18755 HAVE_DECL_GETDELIM=1;
18756 HAVE_DECL_GETLINE=1;
18757 HAVE_DECL_OBSTACK_PRINTF=1;
18758 HAVE_DECL_SNPRINTF=1;
18759 HAVE_DECL_VSNPRINTF=1;
18760 HAVE_DPRINTF=1;
18761 HAVE_FSEEKO=1;
18762 HAVE_FTELLO=1;
18763 HAVE_RENAMEAT=1;
18764 HAVE_VASPRINTF=1;
18765 HAVE_VDPRINTF=1;
18766 REPLACE_DPRINTF=0;
18767 REPLACE_FCLOSE=0;
18768 REPLACE_FFLUSH=0;
18769 REPLACE_FOPEN=0;
18770 REPLACE_FPRINTF=0;
18771 REPLACE_FPURGE=0;
18772 REPLACE_FREOPEN=0;
18773 REPLACE_FSEEK=0;
18774 REPLACE_FSEEKO=0;
18775 REPLACE_FTELL=0;
18776 REPLACE_FTELLO=0;
18777 REPLACE_GETDELIM=0;
18778 REPLACE_GETLINE=0;
18779 REPLACE_OBSTACK_PRINTF=0;
18780 REPLACE_PERROR=0;
18781 REPLACE_POPEN=0;
18782 REPLACE_PRINTF=0;
18783 REPLACE_REMOVE=0;
18784 REPLACE_RENAME=0;
18785 REPLACE_RENAMEAT=0;
18786 REPLACE_SNPRINTF=0;
18787 REPLACE_SPRINTF=0;
18788 REPLACE_STDIO_READ_FUNCS=0;
18789 REPLACE_STDIO_WRITE_FUNCS=0;
18790 REPLACE_TMPFILE=0;
18791 REPLACE_VASPRINTF=0;
18792 REPLACE_VDPRINTF=0;
18793 REPLACE_VFPRINTF=0;
18794 REPLACE_VPRINTF=0;
18795 REPLACE_VSNPRINTF=0;
18796 REPLACE_VSPRINTF=0;
18797
18798
18799 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
18800 "
18801 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
18802
18803 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
18804
18805 fi
18806
18807
18808
18809
18810
18811
18812 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
18813 if test "x$ac_cv_have_decl_strtoimax" = xyes; then :
18814 ac_have_decl=1
18815 else
18816 ac_have_decl=0
18817 fi
18818
18819 cat >>confdefs.h <<_ACEOF
18820 #define HAVE_DECL_STRTOIMAX $ac_have_decl
18821 _ACEOF
18822
18823
18824
18825 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
18826 if test "x$ac_cv_have_decl_strtoumax" = xyes; then :
18827 ac_have_decl=1
18828 else
18829 ac_have_decl=0
18830 fi
18831
18832 cat >>confdefs.h <<_ACEOF
18833 #define HAVE_DECL_STRTOUMAX $ac_have_decl
18834 _ACEOF
18835
18836
18837
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
18839 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
18840 if ${ac_cv_header_stat_broken+:} false; then :
18841 $as_echo_n "(cached) " >&6
18842 else
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18845 #include <sys/types.h>
18846 #include <sys/stat.h>
18847
18848 #if defined S_ISBLK && defined S_IFDIR
18849 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
18850 #endif
18851
18852 #if defined S_ISBLK && defined S_IFCHR
18853 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
18854 #endif
18855
18856 #if defined S_ISLNK && defined S_IFREG
18857 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
18858 #endif
18859
18860 #if defined S_ISSOCK && defined S_IFREG
18861 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
18862 #endif
18863
18864 _ACEOF
18865 if ac_fn_c_try_compile "$LINENO"; then :
18866 ac_cv_header_stat_broken=no
18867 else
18868 ac_cv_header_stat_broken=yes
18869 fi
18870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18871 fi
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
18873 $as_echo "$ac_cv_header_stat_broken" >&6; }
18874 if test $ac_cv_header_stat_broken = yes; then
18875
18876 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
18877
18878 fi
18879
18880
18881
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18883 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18884 if ${ac_cv_c_restrict+:} false; then :
18885 $as_echo_n "(cached) " >&6
18886 else
18887 ac_cv_c_restrict=no
18888 # The order here caters to the fact that C++ does not require restrict.
18889 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 typedef int * int_ptr;
18893 int foo (int_ptr $ac_kw ip) {
18894 return ip[0];
18895 }
18896 int
18897 main ()
18898 {
18899 int s[1];
18900 int * $ac_kw t = s;
18901 t[0] = 0;
18902 return foo(t)
18903 ;
18904 return 0;
18905 }
18906 _ACEOF
18907 if ac_fn_c_try_compile "$LINENO"; then :
18908 ac_cv_c_restrict=$ac_kw
18909 fi
18910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18911 test "$ac_cv_c_restrict" != no && break
18912 done
18913
18914 fi
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18916 $as_echo "$ac_cv_c_restrict" >&6; }
18917
18918 case $ac_cv_c_restrict in
18919 restrict) ;;
18920 no) $as_echo "#define restrict /**/" >>confdefs.h
18921 ;;
18922 *) cat >>confdefs.h <<_ACEOF
18923 #define restrict $ac_cv_c_restrict
18924 _ACEOF
18925 ;;
18926 esac
18927
18928
18929
18930
18931
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18933 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18934 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
18935 $as_echo_n "(cached) " >&6
18936 else
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18939 #include <time.h>
18940
18941 int
18942 main ()
18943 {
18944 static struct timespec x; x.tv_sec = x.tv_nsec;
18945 ;
18946 return 0;
18947 }
18948 _ACEOF
18949 if ac_fn_c_try_compile "$LINENO"; then :
18950 gl_cv_sys_struct_timespec_in_time_h=yes
18951 else
18952 gl_cv_sys_struct_timespec_in_time_h=no
18953 fi
18954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18955 fi
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18957 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18958
18959 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18960 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18961 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18962 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18963 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18964 else
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18966 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18967 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
18968 $as_echo_n "(cached) " >&6
18969 else
18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971 /* end confdefs.h. */
18972 #include <sys/time.h>
18973
18974 int
18975 main ()
18976 {
18977 static struct timespec x; x.tv_sec = x.tv_nsec;
18978 ;
18979 return 0;
18980 }
18981 _ACEOF
18982 if ac_fn_c_try_compile "$LINENO"; then :
18983 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18984 else
18985 gl_cv_sys_struct_timespec_in_sys_time_h=no
18986 fi
18987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18988 fi
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18990 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18991 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18992 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18993 else
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18995 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18996 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
18997 $as_echo_n "(cached) " >&6
18998 else
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19001 #include <pthread.h>
19002
19003 int
19004 main ()
19005 {
19006 static struct timespec x; x.tv_sec = x.tv_nsec;
19007 ;
19008 return 0;
19009 }
19010 _ACEOF
19011 if ac_fn_c_try_compile "$LINENO"; then :
19012 gl_cv_sys_struct_timespec_in_pthread_h=yes
19013 else
19014 gl_cv_sys_struct_timespec_in_pthread_h=no
19015 fi
19016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19017 fi
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19019 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19020 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19021 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19022 fi
19023 fi
19024 fi
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040 if test $gl_cv_have_include_next = yes; then
19041 gl_cv_next_time_h='<'time.h'>'
19042 else
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19044 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19045 if ${gl_cv_next_time_h+:} false; then :
19046 $as_echo_n "(cached) " >&6
19047 else
19048
19049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19050 /* end confdefs.h. */
19051 #include <time.h>
19052
19053 _ACEOF
19054 case "$host_os" in
19055 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19056 *) gl_absname_cpp="$ac_cpp" ;;
19057 esac
19058 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19059 sed -n '\#/time.h#{
19060 s#.*"\(.*/time.h\)".*#\1#
19061 s#^/[^/]#//&#
19062 p
19063 q
19064 }'`'"'
19065
19066
19067 fi
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19069 $as_echo "$gl_cv_next_time_h" >&6; }
19070 fi
19071 NEXT_TIME_H=$gl_cv_next_time_h
19072
19073 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19075 gl_next_as_first_directive='<'time.h'>'
19076 else
19077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19078 gl_next_as_first_directive=$gl_cv_next_time_h
19079 fi
19080 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19081
19082
19083
19084
19085
19086
19087 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
19088 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
19089 ac_have_decl=1
19090 else
19091 ac_have_decl=0
19092 fi
19093
19094 cat >>confdefs.h <<_ACEOF
19095 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
19096 _ACEOF
19097
19098
19099
19100
19101 if false; then
19102 GL_COND_LIBTOOL_TRUE=
19103 GL_COND_LIBTOOL_FALSE='#'
19104 else
19105 GL_COND_LIBTOOL_TRUE='#'
19106 GL_COND_LIBTOOL_FALSE=
19107 fi
19108
19109 gl_cond_libtool=false
19110 gl_libdeps=
19111 gl_ltlibdeps=
19112 gl_m4_base='m4'
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122 gl_source_base='lib'
19123
19124
19125 if test $ac_cv_func_alloca_works = no; then
19126 :
19127 fi
19128
19129 # Define an additional variable used in the Makefile substitution.
19130 if test $ac_cv_working_alloca_h = yes; then
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
19132 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
19133 if ${gl_cv_rpl_alloca+:} false; then :
19134 $as_echo_n "(cached) " >&6
19135 else
19136
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19139
19140 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
19141 Need own alloca
19142 #endif
19143
19144 _ACEOF
19145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19146 $EGREP "Need own alloca" >/dev/null 2>&1; then :
19147 gl_cv_rpl_alloca=yes
19148 else
19149 gl_cv_rpl_alloca=no
19150 fi
19151 rm -f conftest*
19152
19153
19154 fi
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
19156 $as_echo "$gl_cv_rpl_alloca" >&6; }
19157 if test $gl_cv_rpl_alloca = yes; then
19158
19159 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19160
19161 ALLOCA_H=alloca.h
19162 else
19163 ALLOCA_H=
19164 fi
19165 else
19166 ALLOCA_H=alloca.h
19167 fi
19168
19169 if test -n "$ALLOCA_H"; then
19170 GL_GENERATE_ALLOCA_H_TRUE=
19171 GL_GENERATE_ALLOCA_H_FALSE='#'
19172 else
19173 GL_GENERATE_ALLOCA_H_TRUE='#'
19174 GL_GENERATE_ALLOCA_H_FALSE=
19175 fi
19176
19177
19178
19179
19180
19181
19182 :
19183
19184
19185
19186
19187 :
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
19204
19205
19206 if test $HAVE_DUP2 = 1; then
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19208 $as_echo_n "checking whether dup2 works... " >&6; }
19209 if ${gl_cv_func_dup2_works+:} false; then :
19210 $as_echo_n "(cached) " >&6
19211 else
19212 if test "$cross_compiling" = yes; then :
19213 case "$host_os" in
19214 mingw*) # on this platform, dup2 always returns 0 for success
19215 gl_cv_func_dup2_works=no;;
19216 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19217 gl_cv_func_dup2_works=no;;
19218 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
19219 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
19220 gl_cv_func_dup2_works=no;;
19221 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
19222 gl_cv_func_dup2_works=no;;
19223 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19224 gl_cv_func_dup2_works=no;;
19225 *) gl_cv_func_dup2_works=yes;;
19226 esac
19227 else
19228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19229 /* end confdefs.h. */
19230
19231 #include <unistd.h>
19232 #include <fcntl.h>
19233 #include <errno.h>
19234 int
19235 main ()
19236 {
19237 int result = 0;
19238 #ifdef FD_CLOEXEC
19239 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19240 result |= 1;
19241 #endif
19242 if (dup2 (1, 1) == 0)
19243 result |= 2;
19244 #ifdef FD_CLOEXEC
19245 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19246 result |= 4;
19247 #endif
19248 close (0);
19249 if (dup2 (0, 0) != -1)
19250 result |= 8;
19251 /* Many gnulib modules require POSIX conformance of EBADF. */
19252 if (dup2 (2, 1000000) == -1 && errno != EBADF)
19253 result |= 16;
19254 return result;
19255
19256 ;
19257 return 0;
19258 }
19259
19260 _ACEOF
19261 if ac_fn_c_try_run "$LINENO"; then :
19262 gl_cv_func_dup2_works=yes
19263 else
19264 gl_cv_func_dup2_works=no
19265 fi
19266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19267 conftest.$ac_objext conftest.beam conftest.$ac_ext
19268 fi
19269
19270
19271 fi
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19273 $as_echo "$gl_cv_func_dup2_works" >&6; }
19274 if test "$gl_cv_func_dup2_works" = no; then
19275 REPLACE_DUP2=1
19276 fi
19277 fi
19278
19279
19280 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19281
19282
19283
19284
19285
19286
19287
19288
19289 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19290
19291 fi
19292
19293
19294
19295
19296
19297 GNULIB_DUP2=1
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309 # Persuade glibc <stdlib.h> to declare getloadavg().
19310
19311
19312 gl_save_LIBS=$LIBS
19313
19314 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
19315 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
19316 HAVE_GETLOADAVG=1
19317 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
19318 if test "x$ac_cv_func_getloadavg" = xyes; then :
19319
19320 else
19321 gl_func_getloadavg_done=no
19322
19323 # Some systems with -lutil have (and need) -lkvm as well, some do not.
19324 # On Solaris, -lkvm requires nlist from -lelf, so check that first
19325 # to get the right answer into the cache.
19326 # For kstat on solaris, we need to test for libelf and libkvm to force the
19327 # definition of SVR4 below.
19328 if test $gl_func_getloadavg_done = no; then
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
19330 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
19331 if ${ac_cv_lib_elf_elf_begin+:} false; then :
19332 $as_echo_n "(cached) " >&6
19333 else
19334 ac_check_lib_save_LIBS=$LIBS
19335 LIBS="-lelf $LIBS"
19336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19338
19339 /* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19342 #ifdef __cplusplus
19343 extern "C"
19344 #endif
19345 char elf_begin ();
19346 int
19347 main ()
19348 {
19349 return elf_begin ();
19350 ;
19351 return 0;
19352 }
19353 _ACEOF
19354 if ac_fn_c_try_link "$LINENO"; then :
19355 ac_cv_lib_elf_elf_begin=yes
19356 else
19357 ac_cv_lib_elf_elf_begin=no
19358 fi
19359 rm -f core conftest.err conftest.$ac_objext \
19360 conftest$ac_exeext conftest.$ac_ext
19361 LIBS=$ac_check_lib_save_LIBS
19362 fi
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
19364 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19365 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
19366 LIBS="-lelf $LIBS"
19367 fi
19368
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
19370 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19371 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
19372 $as_echo_n "(cached) " >&6
19373 else
19374 ac_check_lib_save_LIBS=$LIBS
19375 LIBS="-lkvm $LIBS"
19376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19378
19379 /* Override any GCC internal prototype to avoid an error.
19380 Use char because int might match the return type of a GCC
19381 builtin and then its argument prototype would still apply. */
19382 #ifdef __cplusplus
19383 extern "C"
19384 #endif
19385 char kvm_open ();
19386 int
19387 main ()
19388 {
19389 return kvm_open ();
19390 ;
19391 return 0;
19392 }
19393 _ACEOF
19394 if ac_fn_c_try_link "$LINENO"; then :
19395 ac_cv_lib_kvm_kvm_open=yes
19396 else
19397 ac_cv_lib_kvm_kvm_open=no
19398 fi
19399 rm -f core conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
19401 LIBS=$ac_check_lib_save_LIBS
19402 fi
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
19404 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19405 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
19406 LIBS="-lkvm $LIBS"
19407 fi
19408
19409 # Check for the 4.4BSD definition of getloadavg.
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
19411 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19412 if ${ac_cv_lib_util_getloadavg+:} false; then :
19413 $as_echo_n "(cached) " >&6
19414 else
19415 ac_check_lib_save_LIBS=$LIBS
19416 LIBS="-lutil $LIBS"
19417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h. */
19419
19420 /* Override any GCC internal prototype to avoid an error.
19421 Use char because int might match the return type of a GCC
19422 builtin and then its argument prototype would still apply. */
19423 #ifdef __cplusplus
19424 extern "C"
19425 #endif
19426 char getloadavg ();
19427 int
19428 main ()
19429 {
19430 return getloadavg ();
19431 ;
19432 return 0;
19433 }
19434 _ACEOF
19435 if ac_fn_c_try_link "$LINENO"; then :
19436 ac_cv_lib_util_getloadavg=yes
19437 else
19438 ac_cv_lib_util_getloadavg=no
19439 fi
19440 rm -f core conftest.err conftest.$ac_objext \
19441 conftest$ac_exeext conftest.$ac_ext
19442 LIBS=$ac_check_lib_save_LIBS
19443 fi
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
19445 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19446 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
19447 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
19448 fi
19449
19450 fi
19451
19452 if test $gl_func_getloadavg_done = no; then
19453 # There is a commonly available library for RS/6000 AIX.
19454 # Since it is not a standard part of AIX, it might be installed locally.
19455 gl_getloadavg_LIBS=$LIBS
19456 LIBS="-L/usr/local/lib $LIBS"
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
19458 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19459 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
19460 $as_echo_n "(cached) " >&6
19461 else
19462 ac_check_lib_save_LIBS=$LIBS
19463 LIBS="-lgetloadavg $LIBS"
19464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19465 /* end confdefs.h. */
19466
19467 /* Override any GCC internal prototype to avoid an error.
19468 Use char because int might match the return type of a GCC
19469 builtin and then its argument prototype would still apply. */
19470 #ifdef __cplusplus
19471 extern "C"
19472 #endif
19473 char getloadavg ();
19474 int
19475 main ()
19476 {
19477 return getloadavg ();
19478 ;
19479 return 0;
19480 }
19481 _ACEOF
19482 if ac_fn_c_try_link "$LINENO"; then :
19483 ac_cv_lib_getloadavg_getloadavg=yes
19484 else
19485 ac_cv_lib_getloadavg_getloadavg=no
19486 fi
19487 rm -f core conftest.err conftest.$ac_objext \
19488 conftest$ac_exeext conftest.$ac_ext
19489 LIBS=$ac_check_lib_save_LIBS
19490 fi
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19492 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19493 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
19494 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
19495 else
19496 LIBS=$gl_getloadavg_LIBS
19497 fi
19498
19499 fi
19500
19501 # Set up the replacement function if necessary.
19502 if test $gl_func_getloadavg_done = no; then
19503 HAVE_GETLOADAVG=0
19504
19505 # Solaris has libkstat which does not require root.
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19507 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19508 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
19509 $as_echo_n "(cached) " >&6
19510 else
19511 ac_check_lib_save_LIBS=$LIBS
19512 LIBS="-lkstat $LIBS"
19513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h. */
19515
19516 /* Override any GCC internal prototype to avoid an error.
19517 Use char because int might match the return type of a GCC
19518 builtin and then its argument prototype would still apply. */
19519 #ifdef __cplusplus
19520 extern "C"
19521 #endif
19522 char kstat_open ();
19523 int
19524 main ()
19525 {
19526 return kstat_open ();
19527 ;
19528 return 0;
19529 }
19530 _ACEOF
19531 if ac_fn_c_try_link "$LINENO"; then :
19532 ac_cv_lib_kstat_kstat_open=yes
19533 else
19534 ac_cv_lib_kstat_kstat_open=no
19535 fi
19536 rm -f core conftest.err conftest.$ac_objext \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19539 fi
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19541 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19542 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
19543 cat >>confdefs.h <<_ACEOF
19544 #define HAVE_LIBKSTAT 1
19545 _ACEOF
19546
19547 LIBS="-lkstat $LIBS"
19548
19549 fi
19550
19551 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
19552
19553 # AIX has libperfstat which does not require root
19554 if test $gl_func_getloadavg_done = no; then
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
19556 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
19557 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
19558 $as_echo_n "(cached) " >&6
19559 else
19560 ac_check_lib_save_LIBS=$LIBS
19561 LIBS="-lperfstat $LIBS"
19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h. */
19564
19565 /* Override any GCC internal prototype to avoid an error.
19566 Use char because int might match the return type of a GCC
19567 builtin and then its argument prototype would still apply. */
19568 #ifdef __cplusplus
19569 extern "C"
19570 #endif
19571 char perfstat_cpu_total ();
19572 int
19573 main ()
19574 {
19575 return perfstat_cpu_total ();
19576 ;
19577 return 0;
19578 }
19579 _ACEOF
19580 if ac_fn_c_try_link "$LINENO"; then :
19581 ac_cv_lib_perfstat_perfstat_cpu_total=yes
19582 else
19583 ac_cv_lib_perfstat_perfstat_cpu_total=no
19584 fi
19585 rm -f core conftest.err conftest.$ac_objext \
19586 conftest$ac_exeext conftest.$ac_ext
19587 LIBS=$ac_check_lib_save_LIBS
19588 fi
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
19590 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
19591 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
19592 cat >>confdefs.h <<_ACEOF
19593 #define HAVE_LIBPERFSTAT 1
19594 _ACEOF
19595
19596 LIBS="-lperfstat $LIBS"
19597
19598 fi
19599
19600 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
19601 fi
19602
19603 if test $gl_func_getloadavg_done = no; then
19604 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
19605 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
19606 gl_func_getloadavg_done=yes
19607
19608 $as_echo "#define DGUX 1" >>confdefs.h
19609
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19611 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19612 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615 ac_check_lib_save_LIBS=$LIBS
19616 LIBS="-ldgc $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 dg_sys_info ();
19627 int
19628 main ()
19629 {
19630 return dg_sys_info ();
19631 ;
19632 return 0;
19633 }
19634 _ACEOF
19635 if ac_fn_c_try_link "$LINENO"; then :
19636 ac_cv_lib_dgc_dg_sys_info=yes
19637 else
19638 ac_cv_lib_dgc_dg_sys_info=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_dgc_dg_sys_info" >&5
19645 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19646 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
19647 cat >>confdefs.h <<_ACEOF
19648 #define HAVE_LIBDGC 1
19649 _ACEOF
19650
19651 LIBS="-ldgc $LIBS"
19652
19653 fi
19654
19655 fi
19656
19657
19658 fi
19659 fi
19660 fi
19661
19662
19663 if test "x$gl_save_LIBS" = x; then
19664 GETLOADAVG_LIBS=$LIBS
19665 else
19666 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
19667 fi
19668 LIBS=$gl_save_LIBS
19669
19670
19671 # Test whether the system declares getloadavg. Solaris has the function
19672 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
19673 for ac_header in sys/loadavg.h
19674 do :
19675 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
19676 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
19677 cat >>confdefs.h <<_ACEOF
19678 #define HAVE_SYS_LOADAVG_H 1
19679 _ACEOF
19680
19681 fi
19682
19683 done
19684
19685 if test $ac_cv_header_sys_loadavg_h = yes; then
19686 HAVE_SYS_LOADAVG_H=1
19687 else
19688 HAVE_SYS_LOADAVG_H=0
19689 fi
19690 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
19691 # include <sys/loadavg.h>
19692 #endif
19693 #include <stdlib.h>
19694 "
19695 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
19696
19697 else
19698 HAVE_DECL_GETLOADAVG=0
19699 fi
19700
19701
19702 if test $HAVE_GETLOADAVG = 0; then
19703
19704
19705
19706
19707
19708
19709
19710
19711 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
19712
19713
19714 # Figure out what our getloadavg.c needs.
19715
19716 # On HPUX9, an unprivileged user can get load averages this way.
19717 if test $gl_func_getloadavg_done = no; then
19718 for ac_func in pstat_getdynamic
19719 do :
19720 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
19721 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
19722 cat >>confdefs.h <<_ACEOF
19723 #define HAVE_PSTAT_GETDYNAMIC 1
19724 _ACEOF
19725 gl_func_getloadavg_done=yes
19726 fi
19727 done
19728
19729 fi
19730
19731 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19732 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19733 # Irix 4.0.5F has the header but not the library.
19734 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
19735 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
19736 gl_func_getloadavg_done=yes
19737
19738 $as_echo "#define SVR4 1" >>confdefs.h
19739
19740 fi
19741
19742 if test $gl_func_getloadavg_done = no; then
19743 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19744 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
19745 gl_func_getloadavg_done=yes
19746
19747 $as_echo "#define UMAX 1" >>confdefs.h
19748
19749
19750 $as_echo "#define UMAX4_3 1" >>confdefs.h
19751
19752 fi
19753
19754
19755 fi
19756
19757 if test $gl_func_getloadavg_done = no; then
19758 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19759 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
19760 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
19761
19762 fi
19763
19764
19765 fi
19766
19767 if test $gl_func_getloadavg_done = no; then
19768 for ac_header in mach/mach.h
19769 do :
19770 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19771 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
19772 cat >>confdefs.h <<_ACEOF
19773 #define HAVE_MACH_MACH_H 1
19774 _ACEOF
19775
19776 fi
19777
19778 done
19779
19780 fi
19781
19782 for ac_header in nlist.h
19783 do :
19784 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19785 if test "x$ac_cv_header_nlist_h" = xyes; then :
19786 cat >>confdefs.h <<_ACEOF
19787 #define HAVE_NLIST_H 1
19788 _ACEOF
19789 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19790 "
19791 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
19792
19793 cat >>confdefs.h <<_ACEOF
19794 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19795 _ACEOF
19796
19797
19798 fi
19799
19800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19801 /* end confdefs.h. */
19802 #include <nlist.h>
19803 int
19804 main ()
19805 {
19806 struct nlist x;
19807 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
19808 x.n_un.n_name = "";
19809 #else
19810 x.n_name = "";
19811 #endif
19812 ;
19813 return 0;
19814 }
19815 _ACEOF
19816 if ac_fn_c_try_link "$LINENO"; then :
19817
19818 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
19819
19820 fi
19821 rm -f core conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext conftest.$ac_ext
19823
19824 fi
19825
19826 done
19827
19828 fi
19829
19830
19831
19832
19833
19834 GNULIB_GETLOADAVG=1
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845 if test $REPLACE_GETOPT = 1; then
19846
19847
19848
19849
19850
19851
19852
19853
19854 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19865
19866
19867
19868
19869 fi
19870
19871
19872
19873
19874
19875 REPLACE_GETOPT=0
19876
19877
19878 if test -n "$gl_replace_getopt"; then :
19879
19880 REPLACE_GETOPT=1
19881
19882 fi
19883
19884
19885 if test $REPLACE_GETOPT = 1; then
19886
19887 GETOPT_H=getopt.h
19888
19889 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19890
19891
19892
19893 GNULIB_UNISTD_H_GETOPT=1
19894 fi
19895
19896 if test $REPLACE_GETOPT = 1; then
19897
19898
19899
19900
19901
19902
19903
19904
19905 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
19916
19917
19918
19919
19920 fi
19921
19922
19923
19924
19925
19926 if test $ac_cv_func_lstat = yes; then
19927
19928 if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
19929 REPLACE_LSTAT=1
19930 fi
19931 else
19932 HAVE_LSTAT=0
19933 fi
19934
19935 if test $REPLACE_LSTAT = 1; then
19936
19937
19938
19939
19940
19941
19942
19943
19944 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19945
19946
19947
19948 :
19949
19950 fi
19951
19952
19953
19954
19955
19956 GNULIB_LSTAT=1
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968 if test $APPLE_UNIVERSAL_BUILD = 1; then
19969 # A universal build on Apple MacOS X platforms.
19970 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
19971 # But we need a configuration result that is valid in both modes.
19972 gl_cv_func_working_mktime=no
19973 fi
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
19975 $as_echo_n "checking for working mktime... " >&6; }
19976 if ${gl_cv_func_working_mktime+:} false; then :
19977 $as_echo_n "(cached) " >&6
19978 else
19979 if test "$cross_compiling" = yes; then :
19980 gl_cv_func_working_mktime=no
19981 else
19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19984 /* Test program from Paul Eggert and Tony Leneis. */
19985 #include <limits.h>
19986 #include <stdlib.h>
19987 #include <time.h>
19988
19989 #ifdef HAVE_UNISTD_H
19990 # include <unistd.h>
19991 #endif
19992
19993 #ifndef HAVE_ALARM
19994 # define alarm(X) /* empty */
19995 #endif
19996
19997 /* Work around redefinition to rpl_putenv by other config tests. */
19998 #undef putenv
19999
20000 static time_t time_t_max;
20001 static time_t time_t_min;
20002
20003 /* Values we'll use to set the TZ environment variable. */
20004 static char *tz_strings[] = {
20005 (char *) 0, "TZ=GMT0", "TZ=JST-9",
20006 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
20007 };
20008 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
20009
20010 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
20011 Based on a problem report from Andreas Jaeger. */
20012 static int
20013 spring_forward_gap ()
20014 {
20015 /* glibc (up to about 1998-10-07) failed this test. */
20016 struct tm tm;
20017
20018 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20019 instead of "TZ=America/Vancouver" in order to detect the bug even
20020 on systems that don't support the Olson extension, or don't have the
20021 full zoneinfo tables installed. */
20022 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20023
20024 tm.tm_year = 98;
20025 tm.tm_mon = 3;
20026 tm.tm_mday = 5;
20027 tm.tm_hour = 2;
20028 tm.tm_min = 0;
20029 tm.tm_sec = 0;
20030 tm.tm_isdst = -1;
20031 return mktime (&tm) != (time_t) -1;
20032 }
20033
20034 static int
20035 mktime_test1 (time_t now)
20036 {
20037 struct tm *lt;
20038 return ! (lt = localtime (&now)) || mktime (lt) == now;
20039 }
20040
20041 static int
20042 mktime_test (time_t now)
20043 {
20044 return (mktime_test1 (now)
20045 && mktime_test1 ((time_t) (time_t_max - now))
20046 && mktime_test1 ((time_t) (time_t_min + now)));
20047 }
20048
20049 static int
20050 irix_6_4_bug ()
20051 {
20052 /* Based on code from Ariel Faigon. */
20053 struct tm tm;
20054 tm.tm_year = 96;
20055 tm.tm_mon = 3;
20056 tm.tm_mday = 0;
20057 tm.tm_hour = 0;
20058 tm.tm_min = 0;
20059 tm.tm_sec = 0;
20060 tm.tm_isdst = -1;
20061 mktime (&tm);
20062 return tm.tm_mon == 2 && tm.tm_mday == 31;
20063 }
20064
20065 static int
20066 bigtime_test (int j)
20067 {
20068 struct tm tm;
20069 time_t now;
20070 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
20071 now = mktime (&tm);
20072 if (now != (time_t) -1)
20073 {
20074 struct tm *lt = localtime (&now);
20075 if (! (lt
20076 && lt->tm_year == tm.tm_year
20077 && lt->tm_mon == tm.tm_mon
20078 && lt->tm_mday == tm.tm_mday
20079 && lt->tm_hour == tm.tm_hour
20080 && lt->tm_min == tm.tm_min
20081 && lt->tm_sec == tm.tm_sec
20082 && lt->tm_yday == tm.tm_yday
20083 && lt->tm_wday == tm.tm_wday
20084 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
20085 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
20086 return 0;
20087 }
20088 return 1;
20089 }
20090
20091 static int
20092 year_2050_test ()
20093 {
20094 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
20095 ignoring leap seconds. */
20096 unsigned long int answer = 2527315200UL;
20097
20098 struct tm tm;
20099 time_t t;
20100 tm.tm_year = 2050 - 1900;
20101 tm.tm_mon = 2 - 1;
20102 tm.tm_mday = 1;
20103 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
20104 tm.tm_isdst = -1;
20105
20106 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
20107 instead of "TZ=America/Vancouver" in order to detect the bug even
20108 on systems that don't support the Olson extension, or don't have the
20109 full zoneinfo tables installed. */
20110 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
20111
20112 t = mktime (&tm);
20113
20114 /* Check that the result is either a failure, or close enough
20115 to the correct answer that we can assume the discrepancy is
20116 due to leap seconds. */
20117 return (t == (time_t) -1
20118 || (0 < t && answer - 120 <= t && t <= answer + 120));
20119 }
20120
20121 int
20122 main ()
20123 {
20124 int result = 0;
20125 time_t t, delta;
20126 int i, j;
20127 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
20128 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
20129
20130 /* This test makes some buggy mktime implementations loop.
20131 Give up after 60 seconds; a mktime slower than that
20132 isn't worth using anyway. */
20133 alarm (60);
20134
20135 time_t_max = (! time_t_signed
20136 ? (time_t) -1
20137 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
20138 * 2 + 1));
20139 time_t_min = (! time_t_signed
20140 ? (time_t) 0
20141 : time_t_signed_magnitude
20142 ? ~ (time_t) 0
20143 : ~ time_t_max);
20144
20145 delta = time_t_max / 997; /* a suitable prime number */
20146 for (i = 0; i < N_STRINGS; i++)
20147 {
20148 if (tz_strings[i])
20149 putenv (tz_strings[i]);
20150
20151 for (t = 0; t <= time_t_max - delta; t += delta)
20152 if (! mktime_test (t))
20153 result |= 1;
20154 if (! (mktime_test ((time_t) 1)
20155 && mktime_test ((time_t) (60 * 60))
20156 && mktime_test ((time_t) (60 * 60 * 24))))
20157 result |= 2;
20158
20159 for (j = 1; ; j <<= 1)
20160 if (! bigtime_test (j))
20161 result |= 4;
20162 else if (INT_MAX / 2 < j)
20163 break;
20164 if (! bigtime_test (INT_MAX))
20165 result |= 8;
20166 }
20167 if (! irix_6_4_bug ())
20168 result |= 16;
20169 if (! spring_forward_gap ())
20170 result |= 32;
20171 if (! year_2050_test ())
20172 result |= 64;
20173 return result;
20174 }
20175 _ACEOF
20176 if ac_fn_c_try_run "$LINENO"; then :
20177 gl_cv_func_working_mktime=yes
20178 else
20179 gl_cv_func_working_mktime=no
20180 fi
20181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20182 conftest.$ac_objext conftest.beam conftest.$ac_ext
20183 fi
20184
20185
20186 fi
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
20188 $as_echo "$gl_cv_func_working_mktime" >&6; }
20189
20190 if test $gl_cv_func_working_mktime = no; then
20191 REPLACE_MKTIME=1
20192 else
20193 REPLACE_MKTIME=0
20194 fi
20195
20196 if test $REPLACE_MKTIME = 1; then
20197
20198
20199
20200
20201
20202
20203
20204
20205 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
20206
20207
20208
20209
20210 fi
20211
20212
20213
20214
20215
20216 GNULIB_MKTIME=1
20217
20218
20219
20220
20221
20222
20223
20224
20225 LIB_PTHREAD_SIGMASK=
20226
20227
20228 if test $ac_cv_func_pthread_sigmask = yes; then
20229 :
20230 else
20231 HAVE_PTHREAD_SIGMASK=0
20232 REPLACE_PTHREAD_SIGMASK=1
20233 fi
20234
20235
20236
20237
20238 if test $HAVE_PTHREAD_SIGMASK = 1; then
20239
20240
20241 if test -z "$LIB_PTHREAD_SIGMASK"; then
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
20243 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
20244 if ${gl_cv_func_pthread_sigmask_in_libc_works+:} false; then :
20245 $as_echo_n "(cached) " >&6
20246 else
20247
20248 if test "$cross_compiling" = yes; then :
20249
20250 case "$host_os" in
20251 freebsd* | hpux* | solaris | solaris2.[2-9]*)
20252 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
20253 *)
20254 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
20255 esac
20256
20257 else
20258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20259 /* end confdefs.h. */
20260
20261 #include <pthread.h>
20262 #include <signal.h>
20263 #include <stddef.h>
20264 int main ()
20265 {
20266 sigset_t set;
20267 sigemptyset (&set);
20268 return pthread_sigmask (1729, &set, NULL) != 0;
20269 }
20270 _ACEOF
20271 if ac_fn_c_try_run "$LINENO"; then :
20272 gl_cv_func_pthread_sigmask_in_libc_works=no
20273 else
20274 gl_cv_func_pthread_sigmask_in_libc_works=yes
20275 fi
20276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20277 conftest.$ac_objext conftest.beam conftest.$ac_ext
20278 fi
20279
20280
20281 fi
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
20283 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
20284 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
20285 *no)
20286 REPLACE_PTHREAD_SIGMASK=1
20287
20288 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
20289
20290 ;;
20291 esac
20292 fi
20293
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
20295 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
20296 if ${gl_cv_func_pthread_sigmask_return_works+:} false; then :
20297 $as_echo_n "(cached) " >&6
20298 else
20299
20300 gl_save_LIBS="$LIBS"
20301 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
20302 if test "$cross_compiling" = yes; then :
20303 case "$host_os" in
20304 cygwin*)
20305 gl_cv_func_pthread_sigmask_return_works="guessing no";;
20306 *)
20307 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
20308 esac
20309
20310 else
20311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h. */
20313
20314 #include <pthread.h>
20315 #include <signal.h>
20316 #include <stddef.h>
20317 int main ()
20318 {
20319 sigset_t set;
20320 sigemptyset (&set);
20321 if (pthread_sigmask (1729, &set, NULL) == -1)
20322 return 1;
20323 return 0;
20324 }
20325 _ACEOF
20326 if ac_fn_c_try_run "$LINENO"; then :
20327 gl_cv_func_pthread_sigmask_return_works=yes
20328 else
20329 gl_cv_func_pthread_sigmask_return_works=no
20330 fi
20331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20332 conftest.$ac_objext conftest.beam conftest.$ac_ext
20333 fi
20334
20335 LIBS="$gl_save_LIBS"
20336
20337 fi
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
20339 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
20340 case "$gl_cv_func_pthread_sigmask_return_works" in
20341 *no)
20342 REPLACE_PTHREAD_SIGMASK=1
20343
20344 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
20345
20346 ;;
20347 esac
20348
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
20350 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
20351 if ${gl_cv_func_pthread_sigmask_unblock_works+:} false; then :
20352 $as_echo_n "(cached) " >&6
20353 else
20354
20355 case "$host_os" in
20356 irix*)
20357 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
20358 *)
20359 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
20360 esac
20361 gl_save_LIBS="$LIBS"
20362 LIBS="$LIBS $LIBMULTITHREAD"
20363 if test "$cross_compiling" = yes; then :
20364 :
20365 else
20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20368
20369 #include <pthread.h>
20370 #include <signal.h>
20371 #include <stdio.h>
20372 #include <stdlib.h>
20373 #include <unistd.h>
20374 static volatile int sigint_occurred;
20375 static void
20376 sigint_handler (int sig)
20377 {
20378 sigint_occurred++;
20379 }
20380 int main ()
20381 {
20382 sigset_t set;
20383 int pid = getpid ();
20384 char command[80];
20385 signal (SIGINT, sigint_handler);
20386 sigemptyset (&set);
20387 sigaddset (&set, SIGINT);
20388 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
20389 return 1;
20390 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
20391 if (!(system (command) == 0))
20392 return 2;
20393 sleep (2);
20394 if (!(sigint_occurred == 0))
20395 return 3;
20396 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
20397 return 4;
20398 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
20399 return 5;
20400 return 0;
20401 }
20402 _ACEOF
20403 if ac_fn_c_try_run "$LINENO"; then :
20404 :
20405 else
20406 gl_cv_func_pthread_sigmask_unblock_works=no
20407 fi
20408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20409 conftest.$ac_objext conftest.beam conftest.$ac_ext
20410 fi
20411
20412 LIBS="$gl_save_LIBS"
20413
20414 fi
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
20416 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
20417 case "$gl_cv_func_pthread_sigmask_unblock_works" in
20418 *no)
20419 REPLACE_PTHREAD_SIGMASK=1
20420
20421 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
20422
20423 ;;
20424 esac
20425 fi
20426
20427 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
20428
20429
20430
20431
20432
20433
20434
20435
20436 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
20437
20438
20439 if test $HAVE_PTHREAD_SIGMASK = 1; then
20440
20441 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
20442
20443 fi
20444
20445 fi
20446
20447
20448
20449
20450
20451 GNULIB_PTHREAD_SIGMASK=1
20452
20453
20454
20455
20456
20457
20458
20459
20460 if test $ac_cv_func_readlink = no; then
20461 HAVE_READLINK=0
20462 else
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20464 $as_echo_n "checking whether readlink signature is correct... " >&6; }
20465 if ${gl_cv_decl_readlink_works+:} false; then :
20466 $as_echo_n "(cached) " >&6
20467 else
20468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20469 /* end confdefs.h. */
20470 #include <unistd.h>
20471 /* Cause compilation failure if original declaration has wrong type. */
20472 ssize_t readlink (const char *, char *, size_t);
20473 int
20474 main ()
20475 {
20476
20477 ;
20478 return 0;
20479 }
20480 _ACEOF
20481 if ac_fn_c_try_compile "$LINENO"; then :
20482 gl_cv_decl_readlink_works=yes
20483 else
20484 gl_cv_decl_readlink_works=no
20485 fi
20486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487 fi
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20489 $as_echo "$gl_cv_decl_readlink_works" >&6; }
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20491 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
20492 if ${gl_cv_func_readlink_works+:} false; then :
20493 $as_echo_n "(cached) " >&6
20494 else
20495 # We have readlink, so assume ln -s works.
20496 ln -s conftest.no-such conftest.link
20497 ln -s conftest.link conftest.lnk2
20498 if test "$cross_compiling" = yes; then :
20499 gl_cv_func_readlink_works="guessing no"
20500 else
20501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20502 /* end confdefs.h. */
20503 #include <unistd.h>
20504
20505 int
20506 main ()
20507 {
20508 char buf[20];
20509 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20510 ;
20511 return 0;
20512 }
20513 _ACEOF
20514 if ac_fn_c_try_run "$LINENO"; then :
20515 gl_cv_func_readlink_works=yes
20516 else
20517 gl_cv_func_readlink_works=no
20518 fi
20519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20520 conftest.$ac_objext conftest.beam conftest.$ac_ext
20521 fi
20522
20523 rm -f conftest.link conftest.lnk2
20524 fi
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
20526 $as_echo "$gl_cv_func_readlink_works" >&6; }
20527 if test "$gl_cv_func_readlink_works" != yes; then
20528
20529 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20530
20531 REPLACE_READLINK=1
20532 elif test "$gl_cv_decl_readlink_works" != yes; then
20533 REPLACE_READLINK=1
20534 fi
20535 fi
20536
20537 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20538
20539
20540
20541
20542
20543
20544
20545
20546 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
20547
20548
20549 :
20550
20551 fi
20552
20553
20554
20555
20556
20557 GNULIB_READLINK=1
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574 if test $gl_cv_have_include_next = yes; then
20575 gl_cv_next_signal_h='<'signal.h'>'
20576 else
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
20578 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
20579 if ${gl_cv_next_signal_h+:} false; then :
20580 $as_echo_n "(cached) " >&6
20581 else
20582
20583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20584 /* end confdefs.h. */
20585 #include <signal.h>
20586
20587 _ACEOF
20588 case "$host_os" in
20589 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20590 *) gl_absname_cpp="$ac_cpp" ;;
20591 esac
20592 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20593 sed -n '\#/signal.h#{
20594 s#.*"\(.*/signal.h\)".*#\1#
20595 s#^/[^/]#//&#
20596 p
20597 q
20598 }'`'"'
20599
20600
20601 fi
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
20603 $as_echo "$gl_cv_next_signal_h" >&6; }
20604 fi
20605 NEXT_SIGNAL_H=$gl_cv_next_signal_h
20606
20607 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20609 gl_next_as_first_directive='<'signal.h'>'
20610 else
20611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20612 gl_next_as_first_directive=$gl_cv_next_signal_h
20613 fi
20614 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
20615
20616
20617
20618
20619
20620 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
20621 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
20622 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
20623 #include <signal.h>
20624
20625 "
20626 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
20627
20628 else
20629 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
20630 fi
20631
20632
20633
20634
20635
20636 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
20637 #include <signal.h>
20638
20639 "
20640 if test "x$ac_cv_type_sighandler_t" = xyes; then :
20641
20642 else
20643 HAVE_SIGHANDLER_T=0
20644 fi
20645
20646
20647
20648
20649 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20650 /* <sys/types.h> is not needed according to POSIX, but the
20651 <sys/socket.h> in i386-unknown-freebsd4.10 and
20652 powerpc-apple-darwin5.5 required it. */
20653 #include <sys/types.h>
20654 #if HAVE_SYS_SOCKET_H
20655 # include <sys/socket.h>
20656 #elif HAVE_WS2TCPIP_H
20657 # include <ws2tcpip.h>
20658 #endif
20659
20660 "
20661 if test "x$ac_cv_type_socklen_t" = xyes; then :
20662
20663 else
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
20665 $as_echo_n "checking for socklen_t equivalent... " >&6; }
20666 if ${gl_cv_socklen_t_equiv+:} false; then :
20667 $as_echo_n "(cached) " >&6
20668 else
20669 # Systems have either "struct sockaddr *" or
20670 # "void *" as the second argument to getpeername
20671 gl_cv_socklen_t_equiv=
20672 for arg2 in "struct sockaddr" void; do
20673 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
20674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20675 /* end confdefs.h. */
20676 #include <sys/types.h>
20677 #include <sys/socket.h>
20678
20679 int getpeername (int, $arg2 *, $t *);
20680 int
20681 main ()
20682 {
20683 $t len;
20684 getpeername (0, 0, &len);
20685 ;
20686 return 0;
20687 }
20688 _ACEOF
20689 if ac_fn_c_try_compile "$LINENO"; then :
20690 gl_cv_socklen_t_equiv="$t"
20691 fi
20692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20693 test "$gl_cv_socklen_t_equiv" != "" && break
20694 done
20695 test "$gl_cv_socklen_t_equiv" != "" && break
20696 done
20697
20698 fi
20699
20700 if test "$gl_cv_socklen_t_equiv" = ""; then
20701 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
20702 fi
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
20704 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
20705
20706 cat >>confdefs.h <<_ACEOF
20707 #define socklen_t $gl_cv_socklen_t_equiv
20708 _ACEOF
20709
20710 fi
20711
20712
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20714 $as_echo_n "checking for ssize_t... " >&6; }
20715 if ${gt_cv_ssize_t+:} false; then :
20716 $as_echo_n "(cached) " >&6
20717 else
20718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20720 #include <sys/types.h>
20721 int
20722 main ()
20723 {
20724 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20725 return !x;
20726 ;
20727 return 0;
20728 }
20729 _ACEOF
20730 if ac_fn_c_try_compile "$LINENO"; then :
20731 gt_cv_ssize_t=yes
20732 else
20733 gt_cv_ssize_t=no
20734 fi
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20736 fi
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20738 $as_echo "$gt_cv_ssize_t" >&6; }
20739 if test $gt_cv_ssize_t = no; then
20740
20741 $as_echo "#define ssize_t int" >>confdefs.h
20742
20743 fi
20744
20745
20746 STDARG_H=''
20747 NEXT_STDARG_H='<stdarg.h>'
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
20749 $as_echo_n "checking for va_copy... " >&6; }
20750 if ${gl_cv_func_va_copy+:} false; then :
20751 $as_echo_n "(cached) " >&6
20752 else
20753
20754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20755 /* end confdefs.h. */
20756 #include <stdarg.h>
20757 int
20758 main ()
20759 {
20760
20761 #ifndef va_copy
20762 void (*func) (va_list, va_list) = va_copy;
20763 #endif
20764
20765 ;
20766 return 0;
20767 }
20768 _ACEOF
20769 if ac_fn_c_try_compile "$LINENO"; then :
20770 gl_cv_func_va_copy=yes
20771 else
20772 gl_cv_func_va_copy=no
20773 fi
20774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 fi
20776
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
20778 $as_echo "$gl_cv_func_va_copy" >&6; }
20779 if test $gl_cv_func_va_copy = no; then
20780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20781 /* end confdefs.h. */
20782 #if defined _AIX && !defined __GNUC__
20783 AIX vaccine
20784 #endif
20785
20786 _ACEOF
20787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20788 $EGREP "vaccine" >/dev/null 2>&1; then :
20789 gl_aixcc=yes
20790 else
20791 gl_aixcc=no
20792 fi
20793 rm -f conftest*
20794
20795 if test $gl_aixcc = yes; then
20796 STDARG_H=stdarg.h
20797
20798
20799
20800
20801
20802
20803
20804
20805 if test $gl_cv_have_include_next = yes; then
20806 gl_cv_next_stdarg_h='<'stdarg.h'>'
20807 else
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
20809 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
20810 if ${gl_cv_next_stdarg_h+:} false; then :
20811 $as_echo_n "(cached) " >&6
20812 else
20813
20814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20815 /* end confdefs.h. */
20816 #include <stdarg.h>
20817
20818 _ACEOF
20819 case "$host_os" in
20820 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20821 *) gl_absname_cpp="$ac_cpp" ;;
20822 esac
20823 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20824 sed -n '\#/stdarg.h#{
20825 s#.*"\(.*/stdarg.h\)".*#\1#
20826 s#^/[^/]#//&#
20827 p
20828 q
20829 }'`'"'
20830
20831
20832 fi
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
20834 $as_echo "$gl_cv_next_stdarg_h" >&6; }
20835 fi
20836 NEXT_STDARG_H=$gl_cv_next_stdarg_h
20837
20838 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20839 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20840 gl_next_as_first_directive='<'stdarg.h'>'
20841 else
20842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20843 gl_next_as_first_directive=$gl_cv_next_stdarg_h
20844 fi
20845 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
20846
20847
20848
20849
20850 if test "$gl_cv_next_stdarg_h" = '""'; then
20851 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
20852 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
20853 fi
20854 else
20855
20856 saved_as_echo_n="$as_echo_n"
20857 as_echo_n=':'
20858 if ${gl_cv_func___va_copy+:} false; then :
20859 $as_echo_n "(cached) " >&6
20860 else
20861
20862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20863 /* end confdefs.h. */
20864 #include <stdarg.h>
20865 int
20866 main ()
20867 {
20868
20869 #ifndef __va_copy
20870 error, bail out
20871 #endif
20872
20873 ;
20874 return 0;
20875 }
20876 _ACEOF
20877 if ac_fn_c_try_compile "$LINENO"; then :
20878 gl_cv_func___va_copy=yes
20879 else
20880 gl_cv_func___va_copy=no
20881 fi
20882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 fi
20884
20885 as_echo_n="$saved_as_echo_n"
20886
20887 if test $gl_cv_func___va_copy = yes; then
20888
20889 $as_echo "#define va_copy __va_copy" >>confdefs.h
20890
20891 else
20892
20893
20894 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
20895
20896 fi
20897 fi
20898 fi
20899
20900 if test -n "$STDARG_H"; then
20901 GL_GENERATE_STDARG_H_TRUE=
20902 GL_GENERATE_STDARG_H_FALSE='#'
20903 else
20904 GL_GENERATE_STDARG_H_TRUE='#'
20905 GL_GENERATE_STDARG_H_FALSE=
20906 fi
20907
20908
20909
20910
20911
20912
20913 # Define two additional variables used in the Makefile substitution.
20914
20915 if test "$ac_cv_header_stdbool_h" = yes; then
20916 STDBOOL_H=''
20917 else
20918 STDBOOL_H='stdbool.h'
20919 fi
20920
20921 if test -n "$STDBOOL_H"; then
20922 GL_GENERATE_STDBOOL_H_TRUE=
20923 GL_GENERATE_STDBOOL_H_FALSE='#'
20924 else
20925 GL_GENERATE_STDBOOL_H_TRUE='#'
20926 GL_GENERATE_STDBOOL_H_FALSE=
20927 fi
20928
20929
20930 if test "$ac_cv_type__Bool" = yes; then
20931 HAVE__BOOL=1
20932 else
20933 HAVE__BOOL=0
20934 fi
20935
20936
20937
20938
20939
20940 STDDEF_H=
20941 if test $gt_cv_c_wchar_t = no; then
20942 HAVE_WCHAR_T=0
20943 STDDEF_H=stddef.h
20944 fi
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
20946 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
20947 if ${gl_cv_decl_null_works+:} false; then :
20948 $as_echo_n "(cached) " >&6
20949 else
20950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20951 /* end confdefs.h. */
20952 #include <stddef.h>
20953 int test[2 * (sizeof NULL == sizeof (void *)) -1];
20954
20955 int
20956 main ()
20957 {
20958
20959 ;
20960 return 0;
20961 }
20962 _ACEOF
20963 if ac_fn_c_try_compile "$LINENO"; then :
20964 gl_cv_decl_null_works=yes
20965 else
20966 gl_cv_decl_null_works=no
20967 fi
20968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20969 fi
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
20971 $as_echo "$gl_cv_decl_null_works" >&6; }
20972 if test $gl_cv_decl_null_works = no; then
20973 REPLACE_NULL=1
20974 STDDEF_H=stddef.h
20975 fi
20976
20977 if test -n "$STDDEF_H"; then
20978 GL_GENERATE_STDDEF_H_TRUE=
20979 GL_GENERATE_STDDEF_H_FALSE='#'
20980 else
20981 GL_GENERATE_STDDEF_H_TRUE='#'
20982 GL_GENERATE_STDDEF_H_FALSE=
20983 fi
20984
20985 if test -n "$STDDEF_H"; then
20986
20987
20988
20989
20990
20991
20992
20993
20994 if test $gl_cv_have_include_next = yes; then
20995 gl_cv_next_stddef_h='<'stddef.h'>'
20996 else
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
20998 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
20999 if ${gl_cv_next_stddef_h+:} false; then :
21000 $as_echo_n "(cached) " >&6
21001 else
21002
21003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21004 /* end confdefs.h. */
21005 #include <stddef.h>
21006
21007 _ACEOF
21008 case "$host_os" in
21009 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21010 *) gl_absname_cpp="$ac_cpp" ;;
21011 esac
21012 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21013 sed -n '\#/stddef.h#{
21014 s#.*"\(.*/stddef.h\)".*#\1#
21015 s#^/[^/]#//&#
21016 p
21017 q
21018 }'`'"'
21019
21020
21021 fi
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
21023 $as_echo "$gl_cv_next_stddef_h" >&6; }
21024 fi
21025 NEXT_STDDEF_H=$gl_cv_next_stddef_h
21026
21027 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21028 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21029 gl_next_as_first_directive='<'stddef.h'>'
21030 else
21031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21032 gl_next_as_first_directive=$gl_cv_next_stddef_h
21033 fi
21034 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
21035
21036
21037
21038
21039 fi
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053 if test $gl_cv_have_include_next = yes; then
21054 gl_cv_next_stdio_h='<'stdio.h'>'
21055 else
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
21057 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
21058 if ${gl_cv_next_stdio_h+:} false; then :
21059 $as_echo_n "(cached) " >&6
21060 else
21061
21062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21063 /* end confdefs.h. */
21064 #include <stdio.h>
21065
21066 _ACEOF
21067 case "$host_os" in
21068 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21069 *) gl_absname_cpp="$ac_cpp" ;;
21070 esac
21071 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21072 sed -n '\#/stdio.h#{
21073 s#.*"\(.*/stdio.h\)".*#\1#
21074 s#^/[^/]#//&#
21075 p
21076 q
21077 }'`'"'
21078
21079
21080 fi
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
21082 $as_echo "$gl_cv_next_stdio_h" >&6; }
21083 fi
21084 NEXT_STDIO_H=$gl_cv_next_stdio_h
21085
21086 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21087 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21088 gl_next_as_first_directive='<'stdio.h'>'
21089 else
21090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21091 gl_next_as_first_directive=$gl_cv_next_stdio_h
21092 fi
21093 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
21094
21095
21096
21097
21098
21099 GNULIB_FSCANF=1
21100 GNULIB_SCANF=1
21101 GNULIB_FGETC=1
21102 GNULIB_GETC=1
21103 GNULIB_GETCHAR=1
21104 GNULIB_FGETS=1
21105 GNULIB_GETS=1
21106 GNULIB_FREAD=1
21107
21108
21109 GNULIB_FPRINTF=1
21110 GNULIB_PRINTF=1
21111 GNULIB_VFPRINTF=1
21112 GNULIB_VPRINTF=1
21113 GNULIB_FPUTC=1
21114 GNULIB_PUTC=1
21115 GNULIB_PUTCHAR=1
21116 GNULIB_FPUTS=1
21117 GNULIB_PUTS=1
21118 GNULIB_FWRITE=1
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134 if test $gl_cv_have_include_next = yes; then
21135 gl_cv_next_stdlib_h='<'stdlib.h'>'
21136 else
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
21138 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
21139 if ${gl_cv_next_stdlib_h+:} false; then :
21140 $as_echo_n "(cached) " >&6
21141 else
21142
21143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21144 /* end confdefs.h. */
21145 #include <stdlib.h>
21146
21147 _ACEOF
21148 case "$host_os" in
21149 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21150 *) gl_absname_cpp="$ac_cpp" ;;
21151 esac
21152 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21153 sed -n '\#/stdlib.h#{
21154 s#.*"\(.*/stdlib.h\)".*#\1#
21155 s#^/[^/]#//&#
21156 p
21157 q
21158 }'`'"'
21159
21160
21161 fi
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
21163 $as_echo "$gl_cv_next_stdlib_h" >&6; }
21164 fi
21165 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
21166
21167 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21168 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21169 gl_next_as_first_directive='<'stdlib.h'>'
21170 else
21171 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21172 gl_next_as_first_directive=$gl_cv_next_stdlib_h
21173 fi
21174 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21185
21186
21187
21188
21189
21190
21191
21192 $as_echo "#define my_strftime nstrftime" >>confdefs.h
21193
21194
21195
21196
21197
21198
21199
21200
21201 if test "$ac_cv_have_decl_strtoimax" != yes; then
21202 HAVE_DECL_STRTOIMAX=0
21203 fi
21204
21205 if test $ac_cv_func_strtoimax = no; then
21206
21207
21208
21209
21210
21211
21212
21213
21214 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
21215
21216
21217 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
21218 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
21219 ac_have_decl=1
21220 else
21221 ac_have_decl=0
21222 fi
21223
21224 cat >>confdefs.h <<_ACEOF
21225 #define HAVE_DECL_STRTOLL $ac_have_decl
21226 _ACEOF
21227
21228
21229
21230 fi
21231
21232
21233
21234
21235
21236 GNULIB_STRTOIMAX=1
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246 if test "$ac_cv_have_decl_strtoumax" != yes; then
21247 HAVE_DECL_STRTOUMAX=0
21248 fi
21249
21250 if test $ac_cv_func_strtoumax = no; then
21251
21252
21253
21254
21255
21256
21257
21258
21259 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
21260
21261
21262 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
21263 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
21264 ac_have_decl=1
21265 else
21266 ac_have_decl=0
21267 fi
21268
21269 cat >>confdefs.h <<_ACEOF
21270 #define HAVE_DECL_STRTOULL $ac_have_decl
21271 _ACEOF
21272
21273
21274
21275 fi
21276
21277
21278
21279
21280
21281 GNULIB_STRTOUMAX=1
21282
21283
21284
21285
21286
21287
21288
21289 if test $ac_cv_func_symlink = no; then
21290 HAVE_SYMLINK=0
21291 else
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
21293 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
21294 if ${gl_cv_func_symlink_works+:} false; then :
21295 $as_echo_n "(cached) " >&6
21296 else
21297 if test "$cross_compiling" = yes; then :
21298 gl_cv_func_symlink_works="guessing no"
21299 else
21300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21301 /* end confdefs.h. */
21302 #include <unistd.h>
21303
21304 int
21305 main ()
21306 {
21307 int result = 0;
21308 if (!symlink ("a", "conftest.link/"))
21309 result |= 1;
21310 if (symlink ("conftest.f", "conftest.lnk2"))
21311 result |= 2;
21312 else if (!symlink ("a", "conftest.lnk2/"))
21313 result |= 4;
21314 return result;
21315
21316 ;
21317 return 0;
21318 }
21319 _ACEOF
21320 if ac_fn_c_try_run "$LINENO"; then :
21321 gl_cv_func_symlink_works=yes
21322 else
21323 gl_cv_func_symlink_works=no
21324 fi
21325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21326 conftest.$ac_objext conftest.beam conftest.$ac_ext
21327 fi
21328
21329 rm -f conftest.f conftest.link conftest.lnk2
21330 fi
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
21332 $as_echo "$gl_cv_func_symlink_works" >&6; }
21333 if test "$gl_cv_func_symlink_works" != yes; then
21334 REPLACE_SYMLINK=1
21335 fi
21336 fi
21337
21338 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
21339
21340
21341
21342
21343
21344
21345
21346
21347 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
21348
21349 fi
21350
21351
21352
21353
21354
21355 GNULIB_SYMLINK=1
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377 if test $gl_cv_have_include_next = yes; then
21378 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21379 else
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
21381 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
21382 if ${gl_cv_next_sys_stat_h+:} false; then :
21383 $as_echo_n "(cached) " >&6
21384 else
21385
21386 if test $ac_cv_header_sys_stat_h = yes; then
21387
21388
21389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21390 /* end confdefs.h. */
21391 #include <sys/stat.h>
21392
21393 _ACEOF
21394 case "$host_os" in
21395 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21396 *) gl_absname_cpp="$ac_cpp" ;;
21397 esac
21398 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21399 sed -n '\#/sys/stat.h#{
21400 s#.*"\(.*/sys/stat.h\)".*#\1#
21401 s#^/[^/]#//&#
21402 p
21403 q
21404 }'`'"'
21405 else
21406 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
21407 fi
21408
21409
21410 fi
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
21412 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
21413 fi
21414 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
21415
21416 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21418 gl_next_as_first_directive='<'sys/stat.h'>'
21419 else
21420 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21421 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
21422 fi
21423 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
21424
21425
21426
21427
21428
21429 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
21430 #include <sys/stat.h>
21431 "
21432 if test "x$ac_cv_type_nlink_t" = xyes; then :
21433
21434 else
21435
21436 $as_echo "#define nlink_t int" >>confdefs.h
21437
21438 fi
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454 if test $ac_cv_have_decl_localtime_r = no; then
21455 HAVE_DECL_LOCALTIME_R=0
21456 fi
21457
21458
21459 if test $ac_cv_func_localtime_r = yes; then
21460 HAVE_LOCALTIME_R=1
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
21462 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
21463 if ${gl_cv_time_r_posix+:} false; then :
21464 $as_echo_n "(cached) " >&6
21465 else
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h. */
21468 #include <time.h>
21469 int
21470 main ()
21471 {
21472 /* We don't need to append 'restrict's to the argument types,
21473 even though the POSIX signature has the 'restrict's,
21474 since C99 says they can't affect type compatibility. */
21475 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
21476 if (ptr) return 0;
21477 /* Check the return type is a pointer.
21478 On HP-UX 10 it is 'int'. */
21479 *localtime_r (0, 0);
21480 ;
21481 return 0;
21482 }
21483
21484 _ACEOF
21485 if ac_fn_c_try_compile "$LINENO"; then :
21486 gl_cv_time_r_posix=yes
21487 else
21488 gl_cv_time_r_posix=no
21489 fi
21490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21491
21492 fi
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
21494 $as_echo "$gl_cv_time_r_posix" >&6; }
21495 if test $gl_cv_time_r_posix = yes; then
21496 REPLACE_LOCALTIME_R=0
21497 else
21498 REPLACE_LOCALTIME_R=1
21499 fi
21500 else
21501 HAVE_LOCALTIME_R=0
21502 fi
21503
21504 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
21505
21506
21507
21508
21509
21510
21511
21512
21513 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
21514
21515
21516 :
21517
21518 fi
21519
21520
21521
21522
21523
21524 GNULIB_TIME_R=1
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544 if test $gl_cv_have_include_next = yes; then
21545 gl_cv_next_unistd_h='<'unistd.h'>'
21546 else
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
21548 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
21549 if ${gl_cv_next_unistd_h+:} false; then :
21550 $as_echo_n "(cached) " >&6
21551 else
21552
21553 if test $ac_cv_header_unistd_h = yes; then
21554
21555
21556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557 /* end confdefs.h. */
21558 #include <unistd.h>
21559
21560 _ACEOF
21561 case "$host_os" in
21562 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21563 *) gl_absname_cpp="$ac_cpp" ;;
21564 esac
21565 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21566 sed -n '\#/unistd.h#{
21567 s#.*"\(.*/unistd.h\)".*#\1#
21568 s#^/[^/]#//&#
21569 p
21570 q
21571 }'`'"'
21572 else
21573 gl_cv_next_unistd_h='<'unistd.h'>'
21574 fi
21575
21576
21577 fi
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
21579 $as_echo "$gl_cv_next_unistd_h" >&6; }
21580 fi
21581 NEXT_UNISTD_H=$gl_cv_next_unistd_h
21582
21583 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21584 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21585 gl_next_as_first_directive='<'unistd.h'>'
21586 else
21587 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21588 gl_next_as_first_directive=$gl_cv_next_unistd_h
21589 fi
21590 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
21591
21592
21593
21594
21595 if test $ac_cv_header_unistd_h = yes; then
21596 HAVE_UNISTD_H=1
21597 else
21598 HAVE_UNISTD_H=0
21599 fi
21600
21601
21602
21603
21604 gl_gnulib_enabled_dosname=false
21605 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
21606 gl_gnulib_enabled_sigprocmask=false
21607 gl_gnulib_enabled_stat=false
21608 gl_gnulib_enabled_strtoll=false
21609 gl_gnulib_enabled_strtoull=false
21610 gl_gnulib_enabled_verify=false
21611 func_gl_gnulib_m4code_dosname ()
21612 {
21613 if ! $gl_gnulib_enabled_dosname; then
21614 gl_gnulib_enabled_dosname=true
21615 fi
21616 }
21617 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
21618 {
21619 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21620
21621
21622 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
21623 fi
21624 }
21625 func_gl_gnulib_m4code_sigprocmask ()
21626 {
21627 if ! $gl_gnulib_enabled_sigprocmask; then
21628
21629
21630
21631 if test $gl_cv_type_sigset_t = yes; then
21632 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21633 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21634 gl_cv_func_sigprocmask=1
21635 fi
21636
21637 fi
21638 if test -z "$gl_cv_func_sigprocmask"; then
21639 HAVE_POSIX_SIGNALBLOCKING=0
21640 fi
21641
21642 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21643
21644
21645
21646
21647
21648
21649
21650
21651 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
21652
21653 :
21654 fi
21655
21656
21657
21658
21659
21660 GNULIB_SIGPROCMASK=1
21661
21662
21663
21664
21665
21666 gl_gnulib_enabled_sigprocmask=true
21667 fi
21668 }
21669 func_gl_gnulib_m4code_stat ()
21670 {
21671 if ! $gl_gnulib_enabled_stat; then
21672
21673
21674
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
21676 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
21677 if ${gl_cv_func_stat_dir_slash+:} false; then :
21678 $as_echo_n "(cached) " >&6
21679 else
21680 if test "$cross_compiling" = yes; then :
21681 case $host_os in
21682 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
21683 *) gl_cv_func_stat_dir_slash="guessing yes";;
21684 esac
21685 else
21686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h. */
21688 #include <sys/stat.h>
21689
21690 int
21691 main ()
21692 {
21693 struct stat st; return stat (".", &st) != stat ("./", &st);
21694 ;
21695 return 0;
21696 }
21697 _ACEOF
21698 if ac_fn_c_try_run "$LINENO"; then :
21699 gl_cv_func_stat_dir_slash=yes
21700 else
21701 gl_cv_func_stat_dir_slash=no
21702 fi
21703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21704 conftest.$ac_objext conftest.beam conftest.$ac_ext
21705 fi
21706
21707 fi
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
21709 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21711 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
21712 if ${gl_cv_func_stat_file_slash+:} false; then :
21713 $as_echo_n "(cached) " >&6
21714 else
21715 touch conftest.tmp
21716 # Assume that if we have lstat, we can also check symlinks.
21717 if test $ac_cv_func_lstat = yes; then
21718 ln -s conftest.tmp conftest.lnk
21719 fi
21720 if test "$cross_compiling" = yes; then :
21721 gl_cv_func_stat_file_slash="guessing no"
21722 else
21723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21724 /* end confdefs.h. */
21725 #include <sys/stat.h>
21726
21727 int
21728 main ()
21729 {
21730 int result = 0;
21731 struct stat st;
21732 if (!stat ("conftest.tmp/", &st))
21733 result |= 1;
21734 #if HAVE_LSTAT
21735 if (!stat ("conftest.lnk/", &st))
21736 result |= 2;
21737 #endif
21738 return result;
21739
21740 ;
21741 return 0;
21742 }
21743 _ACEOF
21744 if ac_fn_c_try_run "$LINENO"; then :
21745 gl_cv_func_stat_file_slash=yes
21746 else
21747 gl_cv_func_stat_file_slash=no
21748 fi
21749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21750 conftest.$ac_objext conftest.beam conftest.$ac_ext
21751 fi
21752
21753 rm -f conftest.tmp conftest.lnk
21754 fi
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21756 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
21757 case $gl_cv_func_stat_dir_slash in
21758 *no) REPLACE_STAT=1
21759
21760 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
21761 ;;
21762 esac
21763 case $gl_cv_func_stat_file_slash in
21764 *no) REPLACE_STAT=1
21765
21766 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21767 ;;
21768 esac
21769
21770 if test $REPLACE_STAT = 1; then
21771
21772
21773
21774
21775
21776
21777
21778
21779 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
21780
21781
21782
21783 :
21784
21785 fi
21786
21787
21788
21789
21790
21791 GNULIB_STAT=1
21792
21793
21794
21795
21796
21797 gl_gnulib_enabled_stat=true
21798 if $condition; then
21799 func_gl_gnulib_m4code_dosname
21800 fi
21801 if $condition; then
21802 func_gl_gnulib_m4code_verify
21803 fi
21804 fi
21805 }
21806 func_gl_gnulib_m4code_strtoll ()
21807 {
21808 if ! $gl_gnulib_enabled_strtoll; then
21809
21810
21811
21812 if test "$ac_cv_type_long_long_int" = yes; then
21813 for ac_func in strtoll
21814 do :
21815 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
21816 if test "x$ac_cv_func_strtoll" = xyes; then :
21817 cat >>confdefs.h <<_ACEOF
21818 #define HAVE_STRTOLL 1
21819 _ACEOF
21820
21821 fi
21822 done
21823
21824 if test $ac_cv_func_strtoll = no; then
21825 HAVE_STRTOLL=0
21826 fi
21827 fi
21828
21829 if test $HAVE_STRTOLL = 0; then
21830
21831
21832
21833
21834
21835
21836
21837
21838 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
21839
21840
21841 :
21842
21843 fi
21844
21845
21846
21847
21848
21849 GNULIB_STRTOLL=1
21850
21851
21852
21853
21854
21855 gl_gnulib_enabled_strtoll=true
21856 fi
21857 }
21858 func_gl_gnulib_m4code_strtoull ()
21859 {
21860 if ! $gl_gnulib_enabled_strtoull; then
21861
21862
21863
21864 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
21865 for ac_func in strtoull
21866 do :
21867 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
21868 if test "x$ac_cv_func_strtoull" = xyes; then :
21869 cat >>confdefs.h <<_ACEOF
21870 #define HAVE_STRTOULL 1
21871 _ACEOF
21872
21873 fi
21874 done
21875
21876 if test $ac_cv_func_strtoull = no; then
21877 HAVE_STRTOULL=0
21878 fi
21879 fi
21880
21881 if test $HAVE_STRTOULL = 0; then
21882
21883
21884
21885
21886
21887
21888
21889
21890 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
21891
21892
21893 :
21894
21895 fi
21896
21897
21898
21899
21900
21901 GNULIB_STRTOULL=1
21902
21903
21904
21905
21906
21907 gl_gnulib_enabled_strtoull=true
21908 fi
21909 }
21910 func_gl_gnulib_m4code_verify ()
21911 {
21912 if ! $gl_gnulib_enabled_verify; then
21913 gl_gnulib_enabled_verify=true
21914 fi
21915 }
21916 if test $REPLACE_GETOPT = 1; then
21917 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
21918 fi
21919 if test $REPLACE_LSTAT = 1; then
21920 func_gl_gnulib_m4code_dosname
21921 fi
21922 if test $REPLACE_LSTAT = 1; then
21923 func_gl_gnulib_m4code_stat
21924 fi
21925 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21926 func_gl_gnulib_m4code_sigprocmask
21927 fi
21928 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
21929 func_gl_gnulib_m4code_stat
21930 fi
21931 if test $ac_cv_func_strtoimax = no; then
21932 func_gl_gnulib_m4code_verify
21933 fi
21934 if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
21935 func_gl_gnulib_m4code_strtoll
21936 fi
21937 if test $ac_cv_func_strtoumax = no; then
21938 func_gl_gnulib_m4code_verify
21939 fi
21940 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
21941 func_gl_gnulib_m4code_strtoull
21942 fi
21943
21944 if $gl_gnulib_enabled_dosname; then
21945 gl_GNULIB_ENABLED_dosname_TRUE=
21946 gl_GNULIB_ENABLED_dosname_FALSE='#'
21947 else
21948 gl_GNULIB_ENABLED_dosname_TRUE='#'
21949 gl_GNULIB_ENABLED_dosname_FALSE=
21950 fi
21951
21952 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
21953 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
21954 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
21955 else
21956 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
21957 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
21958 fi
21959
21960 if $gl_gnulib_enabled_sigprocmask; then
21961 gl_GNULIB_ENABLED_sigprocmask_TRUE=
21962 gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
21963 else
21964 gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
21965 gl_GNULIB_ENABLED_sigprocmask_FALSE=
21966 fi
21967
21968 if $gl_gnulib_enabled_stat; then
21969 gl_GNULIB_ENABLED_stat_TRUE=
21970 gl_GNULIB_ENABLED_stat_FALSE='#'
21971 else
21972 gl_GNULIB_ENABLED_stat_TRUE='#'
21973 gl_GNULIB_ENABLED_stat_FALSE=
21974 fi
21975
21976 if $gl_gnulib_enabled_strtoll; then
21977 gl_GNULIB_ENABLED_strtoll_TRUE=
21978 gl_GNULIB_ENABLED_strtoll_FALSE='#'
21979 else
21980 gl_GNULIB_ENABLED_strtoll_TRUE='#'
21981 gl_GNULIB_ENABLED_strtoll_FALSE=
21982 fi
21983
21984 if $gl_gnulib_enabled_strtoull; then
21985 gl_GNULIB_ENABLED_strtoull_TRUE=
21986 gl_GNULIB_ENABLED_strtoull_FALSE='#'
21987 else
21988 gl_GNULIB_ENABLED_strtoull_TRUE='#'
21989 gl_GNULIB_ENABLED_strtoull_FALSE=
21990 fi
21991
21992 if $gl_gnulib_enabled_verify; then
21993 gl_GNULIB_ENABLED_verify_TRUE=
21994 gl_GNULIB_ENABLED_verify_FALSE='#'
21995 else
21996 gl_GNULIB_ENABLED_verify_TRUE='#'
21997 gl_GNULIB_ENABLED_verify_FALSE=
21998 fi
21999
22000 # End of code from modules
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010 gltests_libdeps=
22011 gltests_ltlibdeps=
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021 gl_source_base='tests'
22022 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
22023
22024 gl_module_indicator_condition=$gltests_WITNESS
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035 LIBGNU_LIBDEPS="$gl_libdeps"
22036
22037 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
22038
22039
22040
22041 case "$opsys" in
22042 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22043
22044 darwin)
22045 ## The -headerpad option tells ld (see man page) to leave room at the
22046 ## end of the header for adding load commands. Needed for dumping.
22047 ## 0x690 is the total size of 30 segment load commands (at 56
22048 ## each); under Cocoa 31 commands are required.
22049 if test "$HAVE_NS" = "yes"; then
22050 libs_nsgui="-framework AppKit"
22051 headerpad_extra=6C8
22052 else
22053 libs_nsgui=
22054 headerpad_extra=690
22055 fi
22056 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22057
22058 ## This is here because src/Makefile.in did some extra fiddling around
22059 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22060 ## #ifndef LD_SWITCH_SYSTEM
22061 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22062 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22063 ## not using gcc, darwin system not on an alpha (ie darwin, since
22064 ## darwin + alpha does not occur).
22065 ## Because this was done in src/Makefile.in, the resulting part of
22066 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22067 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22068 ## rather than LD_SWITCH_SYSTEM.
22069 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22070 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22071 ;;
22072
22073 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
22074 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
22075 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
22076 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22077 ## had different values in configure (in ac_link) and src/Makefile.in.
22078 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22079 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
22080
22081 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22082 esac
22083
22084 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22085 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22086 fi
22087
22088
22089
22090
22091 LD_FIRSTFLAG=
22092 ORDINARY_LINK=
22093 case "$opsys" in
22094 ## gnu: GNU needs its own crt0.
22095 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22096
22097 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22098 ## library search parth, i.e. it won't search /usr/lib for libc and
22099 ## friends. Using -nostartfiles instead avoids this problem, and
22100 ## will also work on earlier NetBSD releases.
22101 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22102
22103 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22104 ## MkLinux/LinuxPPC needs this.
22105 ## ibms390x only supports opsys = gnu-linux so it can be added here.
22106 gnu-*)
22107 case "$machine" in
22108 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
22109 esac
22110 ;;
22111 esac
22112
22113
22114 if test "x$ORDINARY_LINK" = "xyes"; then
22115
22116 LD_FIRSTFLAG=""
22117
22118 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22119
22120
22121 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22122 ## freebsd, gnu-* not on macppc|ibms390x.
22123 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22124
22125 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22126 ## places that are difficult to figure out at make time. Fortunately,
22127 ## these same versions allow you to pass arbitrary flags on to the
22128 ## linker, so there is no reason not to use it as a linker.
22129 ##
22130 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22131 ## searching for libraries in its internal directories, so we have to
22132 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22133 LD_FIRSTFLAG="-nostdlib"
22134 fi
22135
22136 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22137 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22138
22139
22140
22141
22142 ## FIXME? The logic here is not precisely the same as that above.
22143 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22144 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22145 LIB_GCC=
22146 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22147
22148 case "$opsys" in
22149 freebsd|netbsd|openbsd) LIB_GCC= ;;
22150
22151 gnu-*)
22152 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22153 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22154 case $host_cpu in
22155 arm*)
22156 LIB_GCC="-lgcc_s"
22157 ;;
22158 *)
22159 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22160 ## immediately undefine it again and redefine it to empty.
22161 ## Was the C_SWITCH_X_SITE part really necessary?
22162 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22163 LIB_GCC=
22164 ;;
22165 esac
22166 ;;
22167
22168 ## Ask GCC where to find libgcc.a.
22169 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22170 esac
22171 fi
22172
22173
22174 ## If we're using X11/GNUstep, define some consequences.
22175 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22176
22177 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22178
22179
22180 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22181
22182 fi
22183
22184
22185
22186
22187 #### Report on what we decided to do.
22188 #### Report GTK as a toolkit, even if it doesn't use Xt.
22189 #### It makes printing result more understandable as using GTK sets
22190 #### toolkit_scroll_bars to yes by default.
22191 if test "${HAVE_GTK}" = "yes"; then
22192 USE_X_TOOLKIT=GTK
22193 fi
22194
22195 and_machfile=
22196 if test -n "$machfile"; then
22197 and_machfile=" and \`${machfile}'"
22198 fi
22199
22200 echo "
22201 Configured for \`${canonical}'.
22202
22203 Where should the build process find the source code? ${srcdir}
22204 What operating system and machine description files should Emacs use?
22205 \`${opsysfile}'${and_machfile}
22206 What compiler should emacs be built with? ${CC} ${CFLAGS}
22207 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22208 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22209 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22210 What window system should Emacs use? ${window_system}
22211 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22212
22213 if test -n "${x_includes}"; then
22214 echo " Where do we find X Windows header files? ${x_includes}"
22215 else
22216 echo " Where do we find X Windows header files? Standard dirs"
22217 fi
22218 if test -n "${x_libraries}"; then
22219 echo " Where do we find X Windows libraries? ${x_libraries}"
22220 else
22221 echo " Where do we find X Windows libraries? Standard dirs"
22222 fi
22223
22224 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22225 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22226 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22227 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22228 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22229 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22230 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22231 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22232
22233 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22234 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22235 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22236 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22237 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22238 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
22239 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22240
22241 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22242 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22243 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22244 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22245
22246 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22247 echo
22248
22249 if test $USE_XASSERTS = yes; then
22250 echo " Compiling with asserts turned on."
22251 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22252 fi
22253
22254 echo
22255
22256 if test "$HAVE_NS" = "yes"; then
22257 echo
22258 echo "You must run \"make install\" in order to test the built application.
22259 The installed application will go to nextstep/Emacs.app and can be
22260 run or moved from there."
22261 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
22262 echo "The application will be fully self-contained."
22263 else
22264 echo "The lisp resources for the application will be installed under ${prefix}.
22265 You may need to run \"make install\" with sudo. The application will fail
22266 to run if these resources are not installed."
22267 fi
22268 echo
22269 fi
22270
22271
22272 # Remove any trailing slashes in these variables.
22273 test "${prefix}" != NONE &&
22274 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22275 test "${exec_prefix}" != NONE &&
22276 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22277
22278 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"
22279
22280 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"
22281
22282
22283 opt_makefile=test/automated/Makefile
22284
22285 if test -f $srcdir/${opt_makefile}.in; then
22286 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
22287 ac_config_files="$ac_config_files test/automated/Makefile"
22288
22289 fi
22290
22291 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
22292
22293
22294
22295 ac_config_commands="$ac_config_commands mkdirs"
22296
22297
22298 ac_config_commands="$ac_config_commands epaths"
22299
22300
22301 ac_config_commands="$ac_config_commands gdbinit"
22302
22303
22304 cat >confcache <<\_ACEOF
22305 # This file is a shell script that caches the results of configure
22306 # tests run on this system so they can be shared between configure
22307 # scripts and configure runs, see configure's option --config-cache.
22308 # It is not useful on other systems. If it contains results you don't
22309 # want to keep, you may remove or edit it.
22310 #
22311 # config.status only pays attention to the cache file if you give it
22312 # the --recheck option to rerun configure.
22313 #
22314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22316 # following values.
22317
22318 _ACEOF
22319
22320 # The following way of writing the cache mishandles newlines in values,
22321 # but we know of no workaround that is simple, portable, and efficient.
22322 # So, we kill variables containing newlines.
22323 # Ultrix sh set writes to stderr and can't be redirected directly,
22324 # and sets the high bit in the cache file unless we assign to the vars.
22325 (
22326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22327 eval ac_val=\$$ac_var
22328 case $ac_val in #(
22329 *${as_nl}*)
22330 case $ac_var in #(
22331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22333 esac
22334 case $ac_var in #(
22335 _ | IFS | as_nl) ;; #(
22336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22337 *) { eval $ac_var=; unset $ac_var;} ;;
22338 esac ;;
22339 esac
22340 done
22341
22342 (set) 2>&1 |
22343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22344 *${as_nl}ac_space=\ *)
22345 # `set' does not quote correctly, so add quotes: double-quote
22346 # substitution turns \\\\ into \\, and sed turns \\ into \.
22347 sed -n \
22348 "s/'/'\\\\''/g;
22349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22350 ;; #(
22351 *)
22352 # `set' quotes correctly as required by POSIX, so do not add quotes.
22353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22354 ;;
22355 esac |
22356 sort
22357 ) |
22358 sed '
22359 /^ac_cv_env_/b end
22360 t clear
22361 :clear
22362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22363 t end
22364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22365 :end' >>confcache
22366 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22367 if test -w "$cache_file"; then
22368 if test "x$cache_file" != "x/dev/null"; then
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22370 $as_echo "$as_me: updating cache $cache_file" >&6;}
22371 if test ! -f "$cache_file" || test -h "$cache_file"; then
22372 cat confcache >"$cache_file"
22373 else
22374 case $cache_file in #(
22375 */* | ?:*)
22376 mv -f confcache "$cache_file"$$ &&
22377 mv -f "$cache_file"$$ "$cache_file" ;; #(
22378 *)
22379 mv -f confcache "$cache_file" ;;
22380 esac
22381 fi
22382 fi
22383 else
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22385 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22386 fi
22387 fi
22388 rm -f confcache
22389
22390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22391 # Let make expand exec_prefix.
22392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22393
22394 DEFS=-DHAVE_CONFIG_H
22395
22396 ac_libobjs=
22397 ac_ltlibobjs=
22398 U=
22399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22400 # 1. Remove the extension, and $U if already installed.
22401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22402 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22404 # will be set to the directory where LIBOBJS objects are built.
22405 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22406 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22407 done
22408 LIBOBJS=$ac_libobjs
22409
22410 LTLIBOBJS=$ac_ltlibobjs
22411
22412
22413 if test -n "$EXEEXT"; then
22414 am__EXEEXT_TRUE=
22415 am__EXEEXT_FALSE='#'
22416 else
22417 am__EXEEXT_TRUE='#'
22418 am__EXEEXT_FALSE=
22419 fi
22420
22421 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22422 as_fn_error $? "conditional \"AMDEP\" was never defined.
22423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22424 fi
22425 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22426 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22428 fi
22429
22430 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22431 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
22432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22433 fi
22434 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
22435 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
22436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22437 fi
22438
22439 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
22440 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
22441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22442 fi
22443 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
22444 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
22445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22446 fi
22447 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
22448 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
22449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22450 fi
22451 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
22452 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
22453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22454 fi
22455 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
22456 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
22457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22458 fi
22459 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
22460 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
22461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22462 fi
22463 if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
22464 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
22465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22466 fi
22467 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
22468 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
22469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22470 fi
22471 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
22472 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
22473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22474 fi
22475 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
22476 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
22477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22478 fi
22479 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
22480 as_fn_error $? "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
22481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22482 fi
22483
22484 gl_libobjs=
22485 gl_ltlibobjs=
22486 if test -n "$gl_LIBOBJS"; then
22487 # Remove the extension.
22488 sed_drop_objext='s/\.o$//;s/\.obj$//'
22489 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22490 gl_libobjs="$gl_libobjs $i.$ac_objext"
22491 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22492 done
22493 fi
22494 gl_LIBOBJS=$gl_libobjs
22495
22496 gl_LTLIBOBJS=$gl_ltlibobjs
22497
22498
22499
22500 gltests_libobjs=
22501 gltests_ltlibobjs=
22502 if test -n "$gltests_LIBOBJS"; then
22503 # Remove the extension.
22504 sed_drop_objext='s/\.o$//;s/\.obj$//'
22505 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22506 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
22507 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
22508 done
22509 fi
22510 gltests_LIBOBJS=$gltests_libobjs
22511
22512 gltests_LTLIBOBJS=$gltests_ltlibobjs
22513
22514
22515
22516 : "${CONFIG_STATUS=./config.status}"
22517 ac_write_fail=0
22518 ac_clean_files_save=$ac_clean_files
22519 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22521 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22522 as_write_fail=0
22523 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22524 #! $SHELL
22525 # Generated by $as_me.
22526 # Run this file to recreate the current configuration.
22527 # Compiler output produced by configure, useful for debugging
22528 # configure, is in config.log if it exists.
22529
22530 debug=false
22531 ac_cs_recheck=false
22532 ac_cs_silent=false
22533
22534 SHELL=\${CONFIG_SHELL-$SHELL}
22535 export SHELL
22536 _ASEOF
22537 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22538 ## -------------------- ##
22539 ## M4sh Initialization. ##
22540 ## -------------------- ##
22541
22542 # Be more Bourne compatible
22543 DUALCASE=1; export DUALCASE # for MKS sh
22544 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22545 emulate sh
22546 NULLCMD=:
22547 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22548 # is contrary to our usage. Disable this feature.
22549 alias -g '${1+"$@"}'='"$@"'
22550 setopt NO_GLOB_SUBST
22551 else
22552 case `(set -o) 2>/dev/null` in #(
22553 *posix*) :
22554 set -o posix ;; #(
22555 *) :
22556 ;;
22557 esac
22558 fi
22559
22560
22561 as_nl='
22562 '
22563 export as_nl
22564 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22565 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22567 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22568 # Prefer a ksh shell builtin over an external printf program on Solaris,
22569 # but without wasting forks for bash or zsh.
22570 if test -z "$BASH_VERSION$ZSH_VERSION" \
22571 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22572 as_echo='print -r --'
22573 as_echo_n='print -rn --'
22574 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22575 as_echo='printf %s\n'
22576 as_echo_n='printf %s'
22577 else
22578 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22579 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22580 as_echo_n='/usr/ucb/echo -n'
22581 else
22582 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22583 as_echo_n_body='eval
22584 arg=$1;
22585 case $arg in #(
22586 *"$as_nl"*)
22587 expr "X$arg" : "X\\(.*\\)$as_nl";
22588 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22589 esac;
22590 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22591 '
22592 export as_echo_n_body
22593 as_echo_n='sh -c $as_echo_n_body as_echo'
22594 fi
22595 export as_echo_body
22596 as_echo='sh -c $as_echo_body as_echo'
22597 fi
22598
22599 # The user is always right.
22600 if test "${PATH_SEPARATOR+set}" != set; then
22601 PATH_SEPARATOR=:
22602 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22603 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22604 PATH_SEPARATOR=';'
22605 }
22606 fi
22607
22608
22609 # IFS
22610 # We need space, tab and new line, in precisely that order. Quoting is
22611 # there to prevent editors from complaining about space-tab.
22612 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22613 # splitting by setting IFS to empty value.)
22614 IFS=" "" $as_nl"
22615
22616 # Find who we are. Look in the path if we contain no directory separator.
22617 as_myself=
22618 case $0 in #((
22619 *[\\/]* ) as_myself=$0 ;;
22620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22621 for as_dir in $PATH
22622 do
22623 IFS=$as_save_IFS
22624 test -z "$as_dir" && as_dir=.
22625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22626 done
22627 IFS=$as_save_IFS
22628
22629 ;;
22630 esac
22631 # We did not find ourselves, most probably we were run as `sh COMMAND'
22632 # in which case we are not to be found in the path.
22633 if test "x$as_myself" = x; then
22634 as_myself=$0
22635 fi
22636 if test ! -f "$as_myself"; then
22637 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22638 exit 1
22639 fi
22640
22641 # Unset variables that we do not need and which cause bugs (e.g. in
22642 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22643 # suppresses any "Segmentation fault" message there. '((' could
22644 # trigger a bug in pdksh 5.2.14.
22645 for as_var in BASH_ENV ENV MAIL MAILPATH
22646 do eval test x\${$as_var+set} = xset \
22647 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22648 done
22649 PS1='$ '
22650 PS2='> '
22651 PS4='+ '
22652
22653 # NLS nuisances.
22654 LC_ALL=C
22655 export LC_ALL
22656 LANGUAGE=C
22657 export LANGUAGE
22658
22659 # CDPATH.
22660 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22661
22662
22663 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22664 # ----------------------------------------
22665 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22666 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22667 # script with STATUS, using 1 if that was 0.
22668 as_fn_error ()
22669 {
22670 as_status=$1; test $as_status -eq 0 && as_status=1
22671 if test "$4"; then
22672 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22673 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22674 fi
22675 $as_echo "$as_me: error: $2" >&2
22676 as_fn_exit $as_status
22677 } # as_fn_error
22678
22679
22680 # as_fn_set_status STATUS
22681 # -----------------------
22682 # Set $? to STATUS, without forking.
22683 as_fn_set_status ()
22684 {
22685 return $1
22686 } # as_fn_set_status
22687
22688 # as_fn_exit STATUS
22689 # -----------------
22690 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22691 as_fn_exit ()
22692 {
22693 set +e
22694 as_fn_set_status $1
22695 exit $1
22696 } # as_fn_exit
22697
22698 # as_fn_unset VAR
22699 # ---------------
22700 # Portably unset VAR.
22701 as_fn_unset ()
22702 {
22703 { eval $1=; unset $1;}
22704 }
22705 as_unset=as_fn_unset
22706 # as_fn_append VAR VALUE
22707 # ----------------------
22708 # Append the text in VALUE to the end of the definition contained in VAR. Take
22709 # advantage of any shell optimizations that allow amortized linear growth over
22710 # repeated appends, instead of the typical quadratic growth present in naive
22711 # implementations.
22712 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22713 eval 'as_fn_append ()
22714 {
22715 eval $1+=\$2
22716 }'
22717 else
22718 as_fn_append ()
22719 {
22720 eval $1=\$$1\$2
22721 }
22722 fi # as_fn_append
22723
22724 # as_fn_arith ARG...
22725 # ------------------
22726 # Perform arithmetic evaluation on the ARGs, and store the result in the
22727 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22728 # must be portable across $(()) and expr.
22729 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22730 eval 'as_fn_arith ()
22731 {
22732 as_val=$(( $* ))
22733 }'
22734 else
22735 as_fn_arith ()
22736 {
22737 as_val=`expr "$@" || test $? -eq 1`
22738 }
22739 fi # as_fn_arith
22740
22741
22742 if expr a : '\(a\)' >/dev/null 2>&1 &&
22743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22744 as_expr=expr
22745 else
22746 as_expr=false
22747 fi
22748
22749 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22750 as_basename=basename
22751 else
22752 as_basename=false
22753 fi
22754
22755 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22756 as_dirname=dirname
22757 else
22758 as_dirname=false
22759 fi
22760
22761 as_me=`$as_basename -- "$0" ||
22762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22763 X"$0" : 'X\(//\)$' \| \
22764 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22765 $as_echo X/"$0" |
22766 sed '/^.*\/\([^/][^/]*\)\/*$/{
22767 s//\1/
22768 q
22769 }
22770 /^X\/\(\/\/\)$/{
22771 s//\1/
22772 q
22773 }
22774 /^X\/\(\/\).*/{
22775 s//\1/
22776 q
22777 }
22778 s/.*/./; q'`
22779
22780 # Avoid depending upon Character Ranges.
22781 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22782 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22783 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22784 as_cr_digits='0123456789'
22785 as_cr_alnum=$as_cr_Letters$as_cr_digits
22786
22787 ECHO_C= ECHO_N= ECHO_T=
22788 case `echo -n x` in #(((((
22789 -n*)
22790 case `echo 'xy\c'` in
22791 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22792 xy) ECHO_C='\c';;
22793 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22794 ECHO_T=' ';;
22795 esac;;
22796 *)
22797 ECHO_N='-n';;
22798 esac
22799
22800 rm -f conf$$ conf$$.exe conf$$.file
22801 if test -d conf$$.dir; then
22802 rm -f conf$$.dir/conf$$.file
22803 else
22804 rm -f conf$$.dir
22805 mkdir conf$$.dir 2>/dev/null
22806 fi
22807 if (echo >conf$$.file) 2>/dev/null; then
22808 if ln -s conf$$.file conf$$ 2>/dev/null; then
22809 as_ln_s='ln -s'
22810 # ... but there are two gotchas:
22811 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22812 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22813 # In both cases, we have to default to `cp -p'.
22814 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22815 as_ln_s='cp -p'
22816 elif ln conf$$.file conf$$ 2>/dev/null; then
22817 as_ln_s=ln
22818 else
22819 as_ln_s='cp -p'
22820 fi
22821 else
22822 as_ln_s='cp -p'
22823 fi
22824 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22825 rmdir conf$$.dir 2>/dev/null
22826
22827
22828 # as_fn_mkdir_p
22829 # -------------
22830 # Create "$as_dir" as a directory, including parents if necessary.
22831 as_fn_mkdir_p ()
22832 {
22833
22834 case $as_dir in #(
22835 -*) as_dir=./$as_dir;;
22836 esac
22837 test -d "$as_dir" || eval $as_mkdir_p || {
22838 as_dirs=
22839 while :; do
22840 case $as_dir in #(
22841 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22842 *) as_qdir=$as_dir;;
22843 esac
22844 as_dirs="'$as_qdir' $as_dirs"
22845 as_dir=`$as_dirname -- "$as_dir" ||
22846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22847 X"$as_dir" : 'X\(//\)[^/]' \| \
22848 X"$as_dir" : 'X\(//\)$' \| \
22849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22850 $as_echo X"$as_dir" |
22851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22852 s//\1/
22853 q
22854 }
22855 /^X\(\/\/\)[^/].*/{
22856 s//\1/
22857 q
22858 }
22859 /^X\(\/\/\)$/{
22860 s//\1/
22861 q
22862 }
22863 /^X\(\/\).*/{
22864 s//\1/
22865 q
22866 }
22867 s/.*/./; q'`
22868 test -d "$as_dir" && break
22869 done
22870 test -z "$as_dirs" || eval "mkdir $as_dirs"
22871 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22872
22873
22874 } # as_fn_mkdir_p
22875 if mkdir -p . 2>/dev/null; then
22876 as_mkdir_p='mkdir -p "$as_dir"'
22877 else
22878 test -d ./-p && rmdir ./-p
22879 as_mkdir_p=false
22880 fi
22881
22882 if test -x / >/dev/null 2>&1; then
22883 as_test_x='test -x'
22884 else
22885 if ls -dL / >/dev/null 2>&1; then
22886 as_ls_L_option=L
22887 else
22888 as_ls_L_option=
22889 fi
22890 as_test_x='
22891 eval sh -c '\''
22892 if test -d "$1"; then
22893 test -d "$1/.";
22894 else
22895 case $1 in #(
22896 -*)set "./$1";;
22897 esac;
22898 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22899 ???[sx]*):;;*)false;;esac;fi
22900 '\'' sh
22901 '
22902 fi
22903 as_executable_p=$as_test_x
22904
22905 # Sed expression to map a string onto a valid CPP name.
22906 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22907
22908 # Sed expression to map a string onto a valid variable name.
22909 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22910
22911
22912 exec 6>&1
22913 ## ----------------------------------- ##
22914 ## Main body of $CONFIG_STATUS script. ##
22915 ## ----------------------------------- ##
22916 _ASEOF
22917 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22918
22919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22920 # Save the log message, to keep $0 and so on meaningful, and to
22921 # report actual input values of CONFIG_FILES etc. instead of their
22922 # values after options handling.
22923 ac_log="
22924 This file was extended by emacs $as_me 24.0.50, which was
22925 generated by GNU Autoconf 2.68. Invocation command line was
22926
22927 CONFIG_FILES = $CONFIG_FILES
22928 CONFIG_HEADERS = $CONFIG_HEADERS
22929 CONFIG_LINKS = $CONFIG_LINKS
22930 CONFIG_COMMANDS = $CONFIG_COMMANDS
22931 $ $0 $@
22932
22933 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22934 "
22935
22936 _ACEOF
22937
22938 case $ac_config_files in *"
22939 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22940 esac
22941
22942 case $ac_config_headers in *"
22943 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22944 esac
22945
22946
22947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22948 # Files that config.status was made for.
22949 config_files="$ac_config_files"
22950 config_headers="$ac_config_headers"
22951 config_commands="$ac_config_commands"
22952
22953 _ACEOF
22954
22955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22956 ac_cs_usage="\
22957 \`$as_me' instantiates files and other configuration actions
22958 from templates according to the current configuration. Unless the files
22959 and actions are specified as TAGs, all are instantiated by default.
22960
22961 Usage: $0 [OPTION]... [TAG]...
22962
22963 -h, --help print this help, then exit
22964 -V, --version print version number and configuration settings, then exit
22965 --config print configuration, then exit
22966 -q, --quiet, --silent
22967 do not print progress messages
22968 -d, --debug don't remove temporary files
22969 --recheck update $as_me by reconfiguring in the same conditions
22970 --file=FILE[:TEMPLATE]
22971 instantiate the configuration file FILE
22972 --header=FILE[:TEMPLATE]
22973 instantiate the configuration header FILE
22974
22975 Configuration files:
22976 $config_files
22977
22978 Configuration headers:
22979 $config_headers
22980
22981 Configuration commands:
22982 $config_commands
22983
22984 Report bugs to the package provider."
22985
22986 _ACEOF
22987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22988 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22989 ac_cs_version="\\
22990 emacs config.status 24.0.50
22991 configured by $0, generated by GNU Autoconf 2.68,
22992 with options \\"\$ac_cs_config\\"
22993
22994 Copyright (C) 2010 Free Software Foundation, Inc.
22995 This config.status script is free software; the Free Software Foundation
22996 gives unlimited permission to copy, distribute and modify it."
22997
22998 ac_pwd='$ac_pwd'
22999 srcdir='$srcdir'
23000 INSTALL='$INSTALL'
23001 MKDIR_P='$MKDIR_P'
23002 AWK='$AWK'
23003 test -n "\$AWK" || AWK=awk
23004 _ACEOF
23005
23006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23007 # The default lists apply if the user does not specify any file.
23008 ac_need_defaults=:
23009 while test $# != 0
23010 do
23011 case $1 in
23012 --*=?*)
23013 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23015 ac_shift=:
23016 ;;
23017 --*=)
23018 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23019 ac_optarg=
23020 ac_shift=:
23021 ;;
23022 *)
23023 ac_option=$1
23024 ac_optarg=$2
23025 ac_shift=shift
23026 ;;
23027 esac
23028
23029 case $ac_option in
23030 # Handling of the options.
23031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23032 ac_cs_recheck=: ;;
23033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23034 $as_echo "$ac_cs_version"; exit ;;
23035 --config | --confi | --conf | --con | --co | --c )
23036 $as_echo "$ac_cs_config"; exit ;;
23037 --debug | --debu | --deb | --de | --d | -d )
23038 debug=: ;;
23039 --file | --fil | --fi | --f )
23040 $ac_shift
23041 case $ac_optarg in
23042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23043 '') as_fn_error $? "missing file argument" ;;
23044 esac
23045 as_fn_append CONFIG_FILES " '$ac_optarg'"
23046 ac_need_defaults=false;;
23047 --header | --heade | --head | --hea )
23048 $ac_shift
23049 case $ac_optarg in
23050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23051 esac
23052 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23053 ac_need_defaults=false;;
23054 --he | --h)
23055 # Conflict between --help and --header
23056 as_fn_error $? "ambiguous option: \`$1'
23057 Try \`$0 --help' for more information.";;
23058 --help | --hel | -h )
23059 $as_echo "$ac_cs_usage"; exit ;;
23060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23061 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23062 ac_cs_silent=: ;;
23063
23064 # This is an error.
23065 -*) as_fn_error $? "unrecognized option: \`$1'
23066 Try \`$0 --help' for more information." ;;
23067
23068 *) as_fn_append ac_config_targets " $1"
23069 ac_need_defaults=false ;;
23070
23071 esac
23072 shift
23073 done
23074
23075 ac_configure_extra_args=
23076
23077 if $ac_cs_silent; then
23078 exec 6>/dev/null
23079 ac_configure_extra_args="$ac_configure_extra_args --silent"
23080 fi
23081
23082 _ACEOF
23083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23084 if \$ac_cs_recheck; then
23085 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23086 shift
23087 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23088 CONFIG_SHELL='$SHELL'
23089 export CONFIG_SHELL
23090 exec "\$@"
23091 fi
23092
23093 _ACEOF
23094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23095 exec 5>>config.log
23096 {
23097 echo
23098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23099 ## Running $as_me. ##
23100 _ASBOX
23101 $as_echo "$ac_log"
23102 } >&5
23103
23104 _ACEOF
23105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23106 #
23107 # INIT-COMMANDS
23108 #
23109 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23110 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
23111
23112 _ACEOF
23113
23114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23115
23116 # Handling of arguments.
23117 for ac_config_target in $ac_config_targets
23118 do
23119 case $ac_config_target in
23120 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23121 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23122 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23123 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23124 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23125 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23126 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23127 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23128 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23129 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23130 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23131 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23132 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23133 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23134 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23135 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23136 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23137 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23138
23139 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23140 esac
23141 done
23142
23143
23144 # If the user did not use the arguments to specify the items to instantiate,
23145 # then the envvar interface is used. Set only those that are not.
23146 # We use the long form for the default assignment because of an extremely
23147 # bizarre bug on SunOS 4.1.3.
23148 if $ac_need_defaults; then
23149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23151 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23152 fi
23153
23154 # Have a temporary directory for convenience. Make it in the build tree
23155 # simply because there is no reason against having it here, and in addition,
23156 # creating and moving files from /tmp can sometimes cause problems.
23157 # Hook for its removal unless debugging.
23158 # Note that there is a small window in which the directory will not be cleaned:
23159 # after its creation but before its name has been assigned to `$tmp'.
23160 $debug ||
23161 {
23162 tmp= ac_tmp=
23163 trap 'exit_status=$?
23164 : "${ac_tmp:=$tmp}"
23165 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23166 ' 0
23167 trap 'as_fn_exit 1' 1 2 13 15
23168 }
23169 # Create a (secure) tmp directory for tmp files.
23170
23171 {
23172 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23173 test -d "$tmp"
23174 } ||
23175 {
23176 tmp=./conf$$-$RANDOM
23177 (umask 077 && mkdir "$tmp")
23178 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23179 ac_tmp=$tmp
23180
23181 # Set up the scripts for CONFIG_FILES section.
23182 # No need to generate them if there are no CONFIG_FILES.
23183 # This happens for instance with `./config.status config.h'.
23184 if test -n "$CONFIG_FILES"; then
23185
23186 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23187 ac_cs_awk_getline=:
23188 ac_cs_awk_pipe_init=
23189 ac_cs_awk_read_file='
23190 while ((getline aline < (F[key])) > 0)
23191 print(aline)
23192 close(F[key])'
23193 ac_cs_awk_pipe_fini=
23194 else
23195 ac_cs_awk_getline=false
23196 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23197 ac_cs_awk_read_file='
23198 print "|#_!!_#|"
23199 print "cat " F[key] " &&"
23200 '$ac_cs_awk_pipe_init
23201 # The final `:' finishes the AND list.
23202 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23203 fi
23204 ac_cr=`echo X | tr X '\015'`
23205 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23206 # But we know of no other shell where ac_cr would be empty at this
23207 # point, so we can use a bashism as a fallback.
23208 if test "x$ac_cr" = x; then
23209 eval ac_cr=\$\'\\r\'
23210 fi
23211 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23212 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23213 ac_cs_awk_cr='\\r'
23214 else
23215 ac_cs_awk_cr=$ac_cr
23216 fi
23217
23218 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23219 _ACEOF
23220
23221 # Create commands to substitute file output variables.
23222 {
23223 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23224 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
23225 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23226 echo "_ACAWK" &&
23227 echo "_ACEOF"
23228 } >conf$$files.sh &&
23229 . ./conf$$files.sh ||
23230 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23231 rm -f conf$$files.sh
23232
23233 {
23234 echo "cat >conf$$subs.awk <<_ACEOF" &&
23235 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23236 echo "_ACEOF"
23237 } >conf$$subs.sh ||
23238 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23239 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23240 ac_delim='%!_!# '
23241 for ac_last_try in false false false false false :; do
23242 . ./conf$$subs.sh ||
23243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23244
23245 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23246 if test $ac_delim_n = $ac_delim_num; then
23247 break
23248 elif $ac_last_try; then
23249 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23250 else
23251 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23252 fi
23253 done
23254 rm -f conf$$subs.sh
23255
23256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23257 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23258 _ACEOF
23259 sed -n '
23260 h
23261 s/^/S["/; s/!.*/"]=/
23262 p
23263 g
23264 s/^[^!]*!//
23265 :repl
23266 t repl
23267 s/'"$ac_delim"'$//
23268 t delim
23269 :nl
23270 h
23271 s/\(.\{148\}\)..*/\1/
23272 t more1
23273 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23274 p
23275 n
23276 b repl
23277 :more1
23278 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23279 p
23280 g
23281 s/.\{148\}//
23282 t nl
23283 :delim
23284 h
23285 s/\(.\{148\}\)..*/\1/
23286 t more2
23287 s/["\\]/\\&/g; s/^/"/; s/$/"/
23288 p
23289 b
23290 :more2
23291 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23292 p
23293 g
23294 s/.\{148\}//
23295 t delim
23296 ' <conf$$subs.awk | sed '
23297 /^[^""]/{
23298 N
23299 s/\n//
23300 }
23301 ' >>$CONFIG_STATUS || ac_write_fail=1
23302 rm -f conf$$subs.awk
23303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23304 _ACAWK
23305 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23306 for (key in S) S_is_set[key] = 1
23307 FS = "\a"
23308 \$ac_cs_awk_pipe_init
23309 }
23310 {
23311 line = $ 0
23312 nfields = split(line, field, "@")
23313 substed = 0
23314 len = length(field[1])
23315 for (i = 2; i < nfields; i++) {
23316 key = field[i]
23317 keylen = length(key)
23318 if (S_is_set[key]) {
23319 value = S[key]
23320 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23321 len += length(value) + length(field[++i])
23322 substed = 1
23323 } else
23324 len += 1 + keylen
23325 }
23326 if (nfields == 3 && !substed) {
23327 key = field[2]
23328 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
23329 \$ac_cs_awk_read_file
23330 next
23331 }
23332 }
23333 print line
23334 }
23335 \$ac_cs_awk_pipe_fini
23336 _ACAWK
23337 _ACEOF
23338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23339 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23340 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23341 else
23342 cat
23343 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23344 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23345 _ACEOF
23346
23347 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23348 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23349 # trailing colons and then remove the whole line if VPATH becomes empty
23350 # (actually we leave an empty line to preserve line numbers).
23351 if test "x$srcdir" = x.; then
23352 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23353 h
23354 s///
23355 s/^/:/
23356 s/[ ]*$/:/
23357 s/:\$(srcdir):/:/g
23358 s/:\${srcdir}:/:/g
23359 s/:@srcdir@:/:/g
23360 s/^:*//
23361 s/:*$//
23362 x
23363 s/\(=[ ]*\).*/\1/
23364 G
23365 s/\n//
23366 s/^[^=]*=[ ]*$//
23367 }'
23368 fi
23369
23370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23371 fi # test -n "$CONFIG_FILES"
23372
23373 # Set up the scripts for CONFIG_HEADERS section.
23374 # No need to generate them if there are no CONFIG_HEADERS.
23375 # This happens for instance with `./config.status Makefile'.
23376 if test -n "$CONFIG_HEADERS"; then
23377 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23378 BEGIN {
23379 _ACEOF
23380
23381 # Transform confdefs.h into an awk script `defines.awk', embedded as
23382 # here-document in config.status, that substitutes the proper values into
23383 # config.h.in to produce config.h.
23384
23385 # Create a delimiter string that does not exist in confdefs.h, to ease
23386 # handling of long lines.
23387 ac_delim='%!_!# '
23388 for ac_last_try in false false :; do
23389 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23390 if test -z "$ac_tt"; then
23391 break
23392 elif $ac_last_try; then
23393 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23394 else
23395 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23396 fi
23397 done
23398
23399 # For the awk script, D is an array of macro values keyed by name,
23400 # likewise P contains macro parameters if any. Preserve backslash
23401 # newline sequences.
23402
23403 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23404 sed -n '
23405 s/.\{148\}/&'"$ac_delim"'/g
23406 t rset
23407 :rset
23408 s/^[ ]*#[ ]*define[ ][ ]*/ /
23409 t def
23410 d
23411 :def
23412 s/\\$//
23413 t bsnl
23414 s/["\\]/\\&/g
23415 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23416 D["\1"]=" \3"/p
23417 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23418 d
23419 :bsnl
23420 s/["\\]/\\&/g
23421 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23422 D["\1"]=" \3\\\\\\n"\\/p
23423 t cont
23424 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23425 t cont
23426 d
23427 :cont
23428 n
23429 s/.\{148\}/&'"$ac_delim"'/g
23430 t clear
23431 :clear
23432 s/\\$//
23433 t bsnlc
23434 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23435 d
23436 :bsnlc
23437 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23438 b cont
23439 ' <confdefs.h | sed '
23440 s/'"$ac_delim"'/"\\\
23441 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23442
23443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23444 for (key in D) D_is_set[key] = 1
23445 FS = "\a"
23446 }
23447 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23448 line = \$ 0
23449 split(line, arg, " ")
23450 if (arg[1] == "#") {
23451 defundef = arg[2]
23452 mac1 = arg[3]
23453 } else {
23454 defundef = substr(arg[1], 2)
23455 mac1 = arg[2]
23456 }
23457 split(mac1, mac2, "(") #)
23458 macro = mac2[1]
23459 prefix = substr(line, 1, index(line, defundef) - 1)
23460 if (D_is_set[macro]) {
23461 # Preserve the white space surrounding the "#".
23462 print prefix "define", macro P[macro] D[macro]
23463 next
23464 } else {
23465 # Replace #undef with comments. This is necessary, for example,
23466 # in the case of _POSIX_SOURCE, which is predefined and required
23467 # on some systems where configure will not decide to define it.
23468 if (defundef == "undef") {
23469 print "/*", prefix defundef, macro, "*/"
23470 next
23471 }
23472 }
23473 }
23474 { print }
23475 _ACAWK
23476 _ACEOF
23477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23478 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23479 fi # test -n "$CONFIG_HEADERS"
23480
23481
23482 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23483 shift
23484 for ac_tag
23485 do
23486 case $ac_tag in
23487 :[FHLC]) ac_mode=$ac_tag; continue;;
23488 esac
23489 case $ac_mode$ac_tag in
23490 :[FHL]*:*);;
23491 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23492 :[FH]-) ac_tag=-:-;;
23493 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23494 esac
23495 ac_save_IFS=$IFS
23496 IFS=:
23497 set x $ac_tag
23498 IFS=$ac_save_IFS
23499 shift
23500 ac_file=$1
23501 shift
23502
23503 case $ac_mode in
23504 :L) ac_source=$1;;
23505 :[FH])
23506 ac_file_inputs=
23507 for ac_f
23508 do
23509 case $ac_f in
23510 -) ac_f="$ac_tmp/stdin";;
23511 *) # Look for the file first in the build tree, then in the source tree
23512 # (if the path is not absolute). The absolute path cannot be DOS-style,
23513 # because $ac_f cannot contain `:'.
23514 test -f "$ac_f" ||
23515 case $ac_f in
23516 [\\/$]*) false;;
23517 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23518 esac ||
23519 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23520 esac
23521 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23522 as_fn_append ac_file_inputs " '$ac_f'"
23523 done
23524
23525 # Let's still pretend it is `configure' which instantiates (i.e., don't
23526 # use $as_me), people would be surprised to read:
23527 # /* config.h. Generated by config.status. */
23528 configure_input='Generated from '`
23529 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23530 `' by configure.'
23531 if test x"$ac_file" != x-; then
23532 configure_input="$ac_file. $configure_input"
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23534 $as_echo "$as_me: creating $ac_file" >&6;}
23535 fi
23536 # Neutralize special characters interpreted by sed in replacement strings.
23537 case $configure_input in #(
23538 *\&* | *\|* | *\\* )
23539 ac_sed_conf_input=`$as_echo "$configure_input" |
23540 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23541 *) ac_sed_conf_input=$configure_input;;
23542 esac
23543
23544 case $ac_tag in
23545 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23547 esac
23548 ;;
23549 esac
23550
23551 ac_dir=`$as_dirname -- "$ac_file" ||
23552 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23553 X"$ac_file" : 'X\(//\)[^/]' \| \
23554 X"$ac_file" : 'X\(//\)$' \| \
23555 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23556 $as_echo X"$ac_file" |
23557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23558 s//\1/
23559 q
23560 }
23561 /^X\(\/\/\)[^/].*/{
23562 s//\1/
23563 q
23564 }
23565 /^X\(\/\/\)$/{
23566 s//\1/
23567 q
23568 }
23569 /^X\(\/\).*/{
23570 s//\1/
23571 q
23572 }
23573 s/.*/./; q'`
23574 as_dir="$ac_dir"; as_fn_mkdir_p
23575 ac_builddir=.
23576
23577 case "$ac_dir" in
23578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23579 *)
23580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23581 # A ".." for each directory in $ac_dir_suffix.
23582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23583 case $ac_top_builddir_sub in
23584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23586 esac ;;
23587 esac
23588 ac_abs_top_builddir=$ac_pwd
23589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23590 # for backward compatibility:
23591 ac_top_builddir=$ac_top_build_prefix
23592
23593 case $srcdir in
23594 .) # We are building in place.
23595 ac_srcdir=.
23596 ac_top_srcdir=$ac_top_builddir_sub
23597 ac_abs_top_srcdir=$ac_pwd ;;
23598 [\\/]* | ?:[\\/]* ) # Absolute name.
23599 ac_srcdir=$srcdir$ac_dir_suffix;
23600 ac_top_srcdir=$srcdir
23601 ac_abs_top_srcdir=$srcdir ;;
23602 *) # Relative name.
23603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23604 ac_top_srcdir=$ac_top_build_prefix$srcdir
23605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23606 esac
23607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23608
23609
23610 case $ac_mode in
23611 :F)
23612 #
23613 # CONFIG_FILE
23614 #
23615
23616 case $INSTALL in
23617 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23618 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23619 esac
23620 ac_MKDIR_P=$MKDIR_P
23621 case $MKDIR_P in
23622 [\\/$]* | ?:[\\/]* ) ;;
23623 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23624 esac
23625 _ACEOF
23626
23627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23628 # If the template does not know about datarootdir, expand it.
23629 # FIXME: This hack should be removed a few years after 2.60.
23630 ac_datarootdir_hack=; ac_datarootdir_seen=
23631 ac_sed_dataroot='
23632 /datarootdir/ {
23633 p
23634 q
23635 }
23636 /@datadir@/p
23637 /@docdir@/p
23638 /@infodir@/p
23639 /@localedir@/p
23640 /@mandir@/p'
23641 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23642 *datarootdir*) ac_datarootdir_seen=yes;;
23643 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23645 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23646 _ACEOF
23647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23648 ac_datarootdir_hack='
23649 s&@datadir@&$datadir&g
23650 s&@docdir@&$docdir&g
23651 s&@infodir@&$infodir&g
23652 s&@localedir@&$localedir&g
23653 s&@mandir@&$mandir&g
23654 s&\\\${datarootdir}&$datarootdir&g' ;;
23655 esac
23656 _ACEOF
23657
23658 # Neutralize VPATH when `$srcdir' = `.'.
23659 # Shell code in configure.ac might set extrasub.
23660 # FIXME: do we really want to maintain this feature?
23661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23662 ac_sed_extra="$ac_vpsub
23663 $extrasub
23664 _ACEOF
23665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23666 :t
23667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23668 s|@configure_input@|$ac_sed_conf_input|;t t
23669 s&@top_builddir@&$ac_top_builddir_sub&;t t
23670 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23671 s&@srcdir@&$ac_srcdir&;t t
23672 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23673 s&@top_srcdir@&$ac_top_srcdir&;t t
23674 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23675 s&@builddir@&$ac_builddir&;t t
23676 s&@abs_builddir@&$ac_abs_builddir&;t t
23677 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23678 s&@INSTALL@&$ac_INSTALL&;t t
23679 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23680 $ac_datarootdir_hack
23681 "
23682 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
23683 if $ac_cs_awk_getline; then
23684 $AWK -f "$ac_tmp/subs.awk"
23685 else
23686 $AWK -f "$ac_tmp/subs.awk" | $SHELL
23687 fi \
23688 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23689
23690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23691 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23693 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23695 which seems to be undefined. Please make sure it is defined" >&5
23696 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23697 which seems to be undefined. Please make sure it is defined" >&2;}
23698
23699 rm -f "$ac_tmp/stdin"
23700 case $ac_file in
23701 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23702 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23703 esac \
23704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23705 ;;
23706 :H)
23707 #
23708 # CONFIG_HEADER
23709 #
23710 if test x"$ac_file" != x-; then
23711 {
23712 $as_echo "/* $configure_input */" \
23713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23714 } >"$ac_tmp/config.h" \
23715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23716 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23718 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23719 else
23720 rm -f "$ac_file"
23721 mv "$ac_tmp/config.h" "$ac_file" \
23722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23723 fi
23724 else
23725 $as_echo "/* $configure_input */" \
23726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23727 || as_fn_error $? "could not create -" "$LINENO" 5
23728 fi
23729 # Compute "$ac_file"'s index in $config_headers.
23730 _am_arg="$ac_file"
23731 _am_stamp_count=1
23732 for _am_header in $config_headers :; do
23733 case $_am_header in
23734 $_am_arg | $_am_arg:* )
23735 break ;;
23736 * )
23737 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23738 esac
23739 done
23740 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23741 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23742 X"$_am_arg" : 'X\(//\)[^/]' \| \
23743 X"$_am_arg" : 'X\(//\)$' \| \
23744 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23745 $as_echo X"$_am_arg" |
23746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23747 s//\1/
23748 q
23749 }
23750 /^X\(\/\/\)[^/].*/{
23751 s//\1/
23752 q
23753 }
23754 /^X\(\/\/\)$/{
23755 s//\1/
23756 q
23757 }
23758 /^X\(\/\).*/{
23759 s//\1/
23760 q
23761 }
23762 s/.*/./; q'`/stamp-h$_am_stamp_count
23763 ;;
23764
23765 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23766 $as_echo "$as_me: executing $ac_file commands" >&6;}
23767 ;;
23768 esac
23769
23770
23771 case $ac_file$ac_mode in
23772 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23773 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23774 # are listed without --file. Let's play safe and only enable the eval
23775 # if we detect the quoting.
23776 case $CONFIG_FILES in
23777 *\'*) eval set x "$CONFIG_FILES" ;;
23778 *) set x $CONFIG_FILES ;;
23779 esac
23780 shift
23781 for mf
23782 do
23783 # Strip MF so we end up with the name of the file.
23784 mf=`echo "$mf" | sed -e 's/:.*$//'`
23785 # Check whether this is an Automake generated Makefile or not.
23786 # We used to match only the files named `Makefile.in', but
23787 # some people rename them; so instead we look at the file content.
23788 # Grep'ing the first line is not enough: some people post-process
23789 # each Makefile.in and add a new line on top of each file to say so.
23790 # Grep'ing the whole file is not good either: AIX grep has a line
23791 # limit of 2048, but all sed's we know have understand at least 4000.
23792 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23793 dirpart=`$as_dirname -- "$mf" ||
23794 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23795 X"$mf" : 'X\(//\)[^/]' \| \
23796 X"$mf" : 'X\(//\)$' \| \
23797 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23798 $as_echo X"$mf" |
23799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23800 s//\1/
23801 q
23802 }
23803 /^X\(\/\/\)[^/].*/{
23804 s//\1/
23805 q
23806 }
23807 /^X\(\/\/\)$/{
23808 s//\1/
23809 q
23810 }
23811 /^X\(\/\).*/{
23812 s//\1/
23813 q
23814 }
23815 s/.*/./; q'`
23816 else
23817 continue
23818 fi
23819 # Extract the definition of DEPDIR, am__include, and am__quote
23820 # from the Makefile without running `make'.
23821 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23822 test -z "$DEPDIR" && continue
23823 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23824 test -z "am__include" && continue
23825 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23826 # When using ansi2knr, U may be empty or an underscore; expand it
23827 U=`sed -n 's/^U = //p' < "$mf"`
23828 # Find all dependency output files, they are included files with
23829 # $(DEPDIR) in their names. We invoke sed twice because it is the
23830 # simplest approach to changing $(DEPDIR) to its actual value in the
23831 # expansion.
23832 for file in `sed -n "
23833 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23834 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23835 # Make sure the directory exists.
23836 test -f "$dirpart/$file" && continue
23837 fdir=`$as_dirname -- "$file" ||
23838 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23839 X"$file" : 'X\(//\)[^/]' \| \
23840 X"$file" : 'X\(//\)$' \| \
23841 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23842 $as_echo X"$file" |
23843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23844 s//\1/
23845 q
23846 }
23847 /^X\(\/\/\)[^/].*/{
23848 s//\1/
23849 q
23850 }
23851 /^X\(\/\/\)$/{
23852 s//\1/
23853 q
23854 }
23855 /^X\(\/\).*/{
23856 s//\1/
23857 q
23858 }
23859 s/.*/./; q'`
23860 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23861 # echo "creating $dirpart/$file"
23862 echo '# dummy' > "$dirpart/$file"
23863 done
23864 done
23865 }
23866 ;;
23867 "mkdirs":C)
23868 for dir in etc lisp ; do
23869 test -d ${dir} || mkdir ${dir}
23870 done
23871 ;;
23872 "epaths":C)
23873 echo creating src/epaths.h
23874 ${MAKE-make} epaths-force
23875 ;;
23876 "gdbinit":C)
23877 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
23878 echo creating src/.gdbinit
23879 echo source $srcdir/src/.gdbinit > src/.gdbinit
23880 fi
23881 ;;
23882
23883 esac
23884 done # for ac_tag
23885
23886
23887 as_fn_exit 0
23888 _ACEOF
23889 ac_clean_files=$ac_clean_files_save
23890
23891 test $ac_write_fail = 0 ||
23892 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23893
23894
23895 # configure is writing to config.log, and then calls config.status.
23896 # config.status does its own redirection, appending to config.log.
23897 # Unfortunately, on DOS this fails, as config.log is still kept open
23898 # by configure, so config.status won't be able to write to it; its
23899 # output is simply discarded. So we exec the FD to /dev/null,
23900 # effectively closing config.log, so it can be properly (re)opened and
23901 # appended to by config.status. When coming back to configure, we
23902 # need to make the FD available again.
23903 if test "$no_create" != yes; then
23904 ac_cs_success=:
23905 ac_config_status_args=
23906 test "$silent" = yes &&
23907 ac_config_status_args="$ac_config_status_args --quiet"
23908 exec 5>/dev/null
23909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23910 exec 5>>config.log
23911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23912 # would make configure fail if this is the last instruction.
23913 $ac_cs_success || as_fn_exit 1
23914 fi
23915 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23917 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23918 fi
23919
23920