Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU FreeDink 109.6.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: [email protected] about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='GNU FreeDink'
582 PACKAGE_TARNAME='freedink'
583 PACKAGE_VERSION='109.6'
584 PACKAGE_STRING='GNU FreeDink 109.6'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL='http://www.gnu.org/software/freedink/'
587
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 gt_needs=
625 gl_getopt_required=POSIX
626 ac_header_list=
627 gl_getopt_required=POSIX
628 ac_func_list=
629 ac_subst_vars='gltests_LTLIBOBJS
630 gltests_LIBOBJS
631 gl_LTLIBOBJS
632 gl_LIBOBJS
633 am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 LIBGNU_LTLIBDEPS
638 LIBGNU_LIBDEPS
639 gltests_WITNESS
640 HAVE_WINT_T
641 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
642 NEXT_WCHAR_H
643 REPLACE_WCSWIDTH
644 REPLACE_WCWIDTH
645 REPLACE_WCSNRTOMBS
646 REPLACE_WCSRTOMBS
647 REPLACE_WCRTOMB
648 REPLACE_MBSNRTOWCS
649 REPLACE_MBSRTOWCS
650 REPLACE_MBRLEN
651 REPLACE_MBRTOWC
652 REPLACE_MBSINIT
653 REPLACE_WCTOB
654 REPLACE_BTOWC
655 REPLACE_MBSTATE_T
656 HAVE_DECL_WCWIDTH
657 HAVE_DECL_WCTOB
658 HAVE_WCSWIDTH
659 HAVE_WCSTOK
660 HAVE_WCSSTR
661 HAVE_WCSPBRK
662 HAVE_WCSSPN
663 HAVE_WCSCSPN
664 HAVE_WCSRCHR
665 HAVE_WCSCHR
666 HAVE_WCSDUP
667 HAVE_WCSXFRM
668 HAVE_WCSCOLL
669 HAVE_WCSNCASECMP
670 HAVE_WCSCASECMP
671 HAVE_WCSNCMP
672 HAVE_WCSCMP
673 HAVE_WCSNCAT
674 HAVE_WCSCAT
675 HAVE_WCPNCPY
676 HAVE_WCSNCPY
677 HAVE_WCPCPY
678 HAVE_WCSCPY
679 HAVE_WCSNLEN
680 HAVE_WCSLEN
681 HAVE_WMEMSET
682 HAVE_WMEMMOVE
683 HAVE_WMEMCPY
684 HAVE_WMEMCMP
685 HAVE_WMEMCHR
686 HAVE_WCSNRTOMBS
687 HAVE_WCSRTOMBS
688 HAVE_WCRTOMB
689 HAVE_MBSNRTOWCS
690 HAVE_MBSRTOWCS
691 HAVE_MBRLEN
692 HAVE_MBRTOWC
693 HAVE_MBSINIT
694 HAVE_BTOWC
695 GNULIB_WCSWIDTH
696 GNULIB_WCSTOK
697 GNULIB_WCSSTR
698 GNULIB_WCSPBRK
699 GNULIB_WCSSPN
700 GNULIB_WCSCSPN
701 GNULIB_WCSRCHR
702 GNULIB_WCSCHR
703 GNULIB_WCSDUP
704 GNULIB_WCSXFRM
705 GNULIB_WCSCOLL
706 GNULIB_WCSNCASECMP
707 GNULIB_WCSCASECMP
708 GNULIB_WCSNCMP
709 GNULIB_WCSCMP
710 GNULIB_WCSNCAT
711 GNULIB_WCSCAT
712 GNULIB_WCPNCPY
713 GNULIB_WCSNCPY
714 GNULIB_WCPCPY
715 GNULIB_WCSCPY
716 GNULIB_WCSNLEN
717 GNULIB_WCSLEN
718 GNULIB_WMEMSET
719 GNULIB_WMEMMOVE
720 GNULIB_WMEMCPY
721 GNULIB_WMEMCMP
722 GNULIB_WMEMCHR
723 GNULIB_WCWIDTH
724 GNULIB_WCSNRTOMBS
725 GNULIB_WCSRTOMBS
726 GNULIB_WCRTOMB
727 GNULIB_MBSNRTOWCS
728 GNULIB_MBSRTOWCS
729 GNULIB_MBRLEN
730 GNULIB_MBRTOWC
731 GNULIB_MBSINIT
732 GNULIB_WCTOB
733 GNULIB_BTOWC
734 HAVE_FEATURES_H
735 HAVE_UNISTD_H
736 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
737 NEXT_UNISTD_H
738 WINDOWS_64_BIT_OFF_T
739 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
740 NEXT_SYS_TYPES_H
741 HAVE_STRINGS_H
742 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
743 NEXT_STRINGS_H
744 NEXT_AS_FIRST_DIRECTIVE_STRING_H
745 NEXT_STRING_H
746 HAVE_WINSOCK2_H
747 HAVE_DECL_STRNCASECMP
748 HAVE_STRCASECMP
749 HAVE_FFS
750 GNULIB_FFS
751 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
752 NEXT_STDLIB_H
753 REPLACE_WCTOMB
754 REPLACE_UNSETENV
755 REPLACE_STRTOD
756 REPLACE_SETENV
757 REPLACE_REALPATH
758 REPLACE_REALLOC
759 REPLACE_RANDOM_R
760 REPLACE_PUTENV
761 REPLACE_PTSNAME_R
762 REPLACE_PTSNAME
763 REPLACE_MKSTEMP
764 REPLACE_MBTOWC
765 REPLACE_MALLOC
766 REPLACE_CANONICALIZE_FILE_NAME
767 REPLACE_CALLOC
768 HAVE_DECL_UNSETENV
769 HAVE_UNLOCKPT
770 HAVE_SYS_LOADAVG_H
771 HAVE_STRUCT_RANDOM_DATA
772 HAVE_STRTOULL
773 HAVE_STRTOLL
774 HAVE_STRTOD
775 HAVE_DECL_SETENV
776 HAVE_SETENV
777 HAVE_SECURE_GETENV
778 HAVE_RPMATCH
779 HAVE_REALPATH
780 HAVE_RANDOM_R
781 HAVE_RANDOM_H
782 HAVE_RANDOM
783 HAVE_PTSNAME_R
784 HAVE_PTSNAME
785 HAVE_POSIX_OPENPT
786 HAVE_MKSTEMPS
787 HAVE_MKSTEMP
788 HAVE_MKOSTEMPS
789 HAVE_MKOSTEMP
790 HAVE_MKDTEMP
791 HAVE_GRANTPT
792 HAVE_GETSUBOPT
793 HAVE_DECL_GETLOADAVG
794 HAVE_CANONICALIZE_FILE_NAME
795 HAVE_ATOLL
796 HAVE__EXIT
797 GNULIB_WCTOMB
798 GNULIB_UNSETENV
799 GNULIB_UNLOCKPT
800 GNULIB_SYSTEM_POSIX
801 GNULIB_STRTOULL
802 GNULIB_STRTOLL
803 GNULIB_STRTOD
804 GNULIB_SETENV
805 GNULIB_SECURE_GETENV
806 GNULIB_RPMATCH
807 GNULIB_REALPATH
808 GNULIB_REALLOC_POSIX
809 GNULIB_RANDOM_R
810 GNULIB_RANDOM
811 GNULIB_PUTENV
812 GNULIB_PTSNAME_R
813 GNULIB_PTSNAME
814 GNULIB_POSIX_OPENPT
815 GNULIB_MKSTEMPS
816 GNULIB_MKSTEMP
817 GNULIB_MKOSTEMPS
818 GNULIB_MKOSTEMP
819 GNULIB_MKDTEMP
820 GNULIB_MBTOWC
821 GNULIB_MALLOC_POSIX
822 GNULIB_GRANTPT
823 GNULIB_GETSUBOPT
824 GNULIB_GETLOADAVG
825 GNULIB_CANONICALIZE_FILE_NAME
826 GNULIB_CALLOC_POSIX
827 GNULIB_ATOLL
828 GNULIB__EXIT
829 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
830 NEXT_STDIO_H
831 REPLACE_VSPRINTF
832 REPLACE_VSNPRINTF
833 REPLACE_VPRINTF
834 REPLACE_VFPRINTF
835 REPLACE_VDPRINTF
836 REPLACE_VASPRINTF
837 REPLACE_TMPFILE
838 REPLACE_STDIO_WRITE_FUNCS
839 REPLACE_STDIO_READ_FUNCS
840 REPLACE_SPRINTF
841 REPLACE_SNPRINTF
842 REPLACE_RENAMEAT
843 REPLACE_RENAME
844 REPLACE_REMOVE
845 REPLACE_PRINTF
846 REPLACE_POPEN
847 REPLACE_PERROR
848 REPLACE_OBSTACK_PRINTF
849 REPLACE_GETLINE
850 REPLACE_GETDELIM
851 REPLACE_FTELLO
852 REPLACE_FTELL
853 REPLACE_FSEEKO
854 REPLACE_FSEEK
855 REPLACE_FREOPEN
856 REPLACE_FPURGE
857 REPLACE_FPRINTF
858 REPLACE_FOPEN
859 REPLACE_FFLUSH
860 REPLACE_FDOPEN
861 REPLACE_FCLOSE
862 REPLACE_DPRINTF
863 HAVE_VDPRINTF
864 HAVE_VASPRINTF
865 HAVE_RENAMEAT
866 HAVE_POPEN
867 HAVE_PCLOSE
868 HAVE_FTELLO
869 HAVE_FSEEKO
870 HAVE_DPRINTF
871 HAVE_DECL_VSNPRINTF
872 HAVE_DECL_SNPRINTF
873 HAVE_DECL_OBSTACK_PRINTF
874 HAVE_DECL_GETLINE
875 HAVE_DECL_GETDELIM
876 HAVE_DECL_FTELLO
877 HAVE_DECL_FSEEKO
878 HAVE_DECL_FPURGE
879 GNULIB_VSPRINTF_POSIX
880 GNULIB_VSNPRINTF
881 GNULIB_VPRINTF_POSIX
882 GNULIB_VPRINTF
883 GNULIB_VFPRINTF_POSIX
884 GNULIB_VFPRINTF
885 GNULIB_VDPRINTF
886 GNULIB_VSCANF
887 GNULIB_VFSCANF
888 GNULIB_VASPRINTF
889 GNULIB_TMPFILE
890 GNULIB_STDIO_H_SIGPIPE
891 GNULIB_STDIO_H_NONBLOCKING
892 GNULIB_SPRINTF_POSIX
893 GNULIB_SNPRINTF
894 GNULIB_SCANF
895 GNULIB_RENAMEAT
896 GNULIB_RENAME
897 GNULIB_REMOVE
898 GNULIB_PUTS
899 GNULIB_PUTCHAR
900 GNULIB_PUTC
901 GNULIB_PRINTF_POSIX
902 GNULIB_PRINTF
903 GNULIB_POPEN
904 GNULIB_PERROR
905 GNULIB_PCLOSE
906 GNULIB_OBSTACK_PRINTF_POSIX
907 GNULIB_OBSTACK_PRINTF
908 GNULIB_GETLINE
909 GNULIB_GETDELIM
910 GNULIB_GETCHAR
911 GNULIB_GETC
912 GNULIB_FWRITE
913 GNULIB_FTELLO
914 GNULIB_FTELL
915 GNULIB_FSEEKO
916 GNULIB_FSEEK
917 GNULIB_FSCANF
918 GNULIB_FREOPEN
919 GNULIB_FREAD
920 GNULIB_FPUTS
921 GNULIB_FPUTC
922 GNULIB_FPURGE
923 GNULIB_FPRINTF_POSIX
924 GNULIB_FPRINTF
925 GNULIB_FOPEN
926 GNULIB_FGETS
927 GNULIB_FGETC
928 GNULIB_FFLUSH
929 GNULIB_FDOPEN
930 GNULIB_FCLOSE
931 GNULIB_DPRINTF
932 GL_GENERATE_STDINT_H_FALSE
933 GL_GENERATE_STDINT_H_TRUE
934 STDINT_H
935 WINT_T_SUFFIX
936 WCHAR_T_SUFFIX
937 SIG_ATOMIC_T_SUFFIX
938 SIZE_T_SUFFIX
939 PTRDIFF_T_SUFFIX
940 HAVE_SIGNED_WINT_T
941 HAVE_SIGNED_WCHAR_T
942 HAVE_SIGNED_SIG_ATOMIC_T
943 BITSIZEOF_WINT_T
944 BITSIZEOF_WCHAR_T
945 BITSIZEOF_SIG_ATOMIC_T
946 BITSIZEOF_SIZE_T
947 BITSIZEOF_PTRDIFF_T
948 HAVE_SYS_BITYPES_H
949 HAVE_SYS_INTTYPES_H
950 HAVE_STDINT_H
951 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
952 NEXT_STDINT_H
953 HAVE_SYS_TYPES_H
954 HAVE_INTTYPES_H
955 HAVE_WCHAR_H
956 HAVE_UNSIGNED_LONG_LONG_INT
957 HAVE_LONG_LONG_INT
958 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
959 NEXT_STDDEF_H
960 GL_GENERATE_STDDEF_H_FALSE
961 GL_GENERATE_STDDEF_H_TRUE
962 STDDEF_H
963 HAVE_WCHAR_T
964 REPLACE_NULL
965 HAVE__BOOL
966 GL_GENERATE_STDBOOL_H_FALSE
967 GL_GENERATE_STDBOOL_H_TRUE
968 STDBOOL_H
969 APPLE_UNIVERSAL_BUILD
970 HAVE_MSVC_INVALID_PARAMETER_HANDLER
971 UNDEFINE_STRTOK_R
972 REPLACE_STRTOK_R
973 REPLACE_STRSIGNAL
974 REPLACE_STRNLEN
975 REPLACE_STRNDUP
976 REPLACE_STRNCAT
977 REPLACE_STRERROR_R
978 REPLACE_STRERROR
979 REPLACE_STRCHRNUL
980 REPLACE_STRCASESTR
981 REPLACE_STRSTR
982 REPLACE_STRDUP
983 REPLACE_STPNCPY
984 REPLACE_MEMMEM
985 REPLACE_MEMCHR
986 HAVE_STRVERSCMP
987 HAVE_DECL_STRSIGNAL
988 HAVE_DECL_STRERROR_R
989 HAVE_DECL_STRTOK_R
990 HAVE_STRCASESTR
991 HAVE_STRSEP
992 HAVE_STRPBRK
993 HAVE_DECL_STRNLEN
994 HAVE_DECL_STRNDUP
995 HAVE_DECL_STRDUP
996 HAVE_STRCHRNUL
997 HAVE_STPNCPY
998 HAVE_STPCPY
999 HAVE_RAWMEMCHR
1000 HAVE_DECL_MEMRCHR
1001 HAVE_MEMPCPY
1002 HAVE_DECL_MEMMEM
1003 HAVE_MEMCHR
1004 HAVE_FFSLL
1005 HAVE_FFSL
1006 HAVE_MBSLEN
1007 GNULIB_STRVERSCMP
1008 GNULIB_STRSIGNAL
1009 GNULIB_STRERROR_R
1010 GNULIB_STRERROR
1011 GNULIB_MBSTOK_R
1012 GNULIB_MBSSEP
1013 GNULIB_MBSSPN
1014 GNULIB_MBSPBRK
1015 GNULIB_MBSCSPN
1016 GNULIB_MBSCASESTR
1017 GNULIB_MBSPCASECMP
1018 GNULIB_MBSNCASECMP
1019 GNULIB_MBSCASECMP
1020 GNULIB_MBSSTR
1021 GNULIB_MBSRCHR
1022 GNULIB_MBSCHR
1023 GNULIB_MBSNLEN
1024 GNULIB_MBSLEN
1025 GNULIB_STRTOK_R
1026 GNULIB_STRCASESTR
1027 GNULIB_STRSTR
1028 GNULIB_STRSEP
1029 GNULIB_STRPBRK
1030 GNULIB_STRNLEN
1031 GNULIB_STRNDUP
1032 GNULIB_STRNCAT
1033 GNULIB_STRDUP
1034 GNULIB_STRCHRNUL
1035 GNULIB_STPNCPY
1036 GNULIB_STPCPY
1037 GNULIB_RAWMEMCHR
1038 GNULIB_MEMRCHR
1039 GNULIB_MEMPCPY
1040 GNULIB_MEMMEM
1041 GNULIB_MEMCHR
1042 GNULIB_FFSLL
1043 GNULIB_FFSL
1044 GNULIB_GL_UNISTD_H_GETOPT
1045 GETOPT_H
1046 HAVE_GETOPT_H
1047 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1048 NEXT_GETOPT_H
1049 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1050 UNISTD_H_HAVE_WINSOCK2_H
1051 REPLACE_WRITE
1052 REPLACE_USLEEP
1053 REPLACE_UNLINKAT
1054 REPLACE_UNLINK
1055 REPLACE_TTYNAME_R
1056 REPLACE_SYMLINK
1057 REPLACE_SLEEP
1058 REPLACE_RMDIR
1059 REPLACE_READLINK
1060 REPLACE_READ
1061 REPLACE_PWRITE
1062 REPLACE_PREAD
1063 REPLACE_LSEEK
1064 REPLACE_LINKAT
1065 REPLACE_LINK
1066 REPLACE_LCHOWN
1067 REPLACE_ISATTY
1068 REPLACE_GETPAGESIZE
1069 REPLACE_GETGROUPS
1070 REPLACE_GETLOGIN_R
1071 REPLACE_GETDTABLESIZE
1072 REPLACE_GETDOMAINNAME
1073 REPLACE_GETCWD
1074 REPLACE_FTRUNCATE
1075 REPLACE_FCHOWNAT
1076 REPLACE_DUP2
1077 REPLACE_DUP
1078 REPLACE_CLOSE
1079 REPLACE_CHOWN
1080 HAVE_SYS_PARAM_H
1081 HAVE_OS_H
1082 HAVE_DECL_TTYNAME_R
1083 HAVE_DECL_SETHOSTNAME
1084 HAVE_DECL_GETUSERSHELL
1085 HAVE_DECL_GETPAGESIZE
1086 HAVE_DECL_GETLOGIN_R
1087 HAVE_DECL_GETDOMAINNAME
1088 HAVE_DECL_FDATASYNC
1089 HAVE_DECL_FCHDIR
1090 HAVE_DECL_ENVIRON
1091 HAVE_USLEEP
1092 HAVE_UNLINKAT
1093 HAVE_SYMLINKAT
1094 HAVE_SYMLINK
1095 HAVE_SLEEP
1096 HAVE_SETHOSTNAME
1097 HAVE_READLINKAT
1098 HAVE_READLINK
1099 HAVE_PWRITE
1100 HAVE_PREAD
1101 HAVE_PIPE2
1102 HAVE_PIPE
1103 HAVE_LINKAT
1104 HAVE_LINK
1105 HAVE_LCHOWN
1106 HAVE_GROUP_MEMBER
1107 HAVE_GETPAGESIZE
1108 HAVE_GETLOGIN
1109 HAVE_GETHOSTNAME
1110 HAVE_GETGROUPS
1111 HAVE_GETDTABLESIZE
1112 HAVE_FTRUNCATE
1113 HAVE_FSYNC
1114 HAVE_FDATASYNC
1115 HAVE_FCHOWNAT
1116 HAVE_FCHDIR
1117 HAVE_FACCESSAT
1118 HAVE_EUIDACCESS
1119 HAVE_DUP3
1120 HAVE_DUP2
1121 HAVE_CHOWN
1122 GNULIB_WRITE
1123 GNULIB_USLEEP
1124 GNULIB_UNLINKAT
1125 GNULIB_UNLINK
1126 GNULIB_UNISTD_H_SIGPIPE
1127 GNULIB_UNISTD_H_NONBLOCKING
1128 GNULIB_TTYNAME_R
1129 GNULIB_SYMLINKAT
1130 GNULIB_SYMLINK
1131 GNULIB_SLEEP
1132 GNULIB_SETHOSTNAME
1133 GNULIB_RMDIR
1134 GNULIB_READLINKAT
1135 GNULIB_READLINK
1136 GNULIB_READ
1137 GNULIB_PWRITE
1138 GNULIB_PREAD
1139 GNULIB_PIPE2
1140 GNULIB_PIPE
1141 GNULIB_LSEEK
1142 GNULIB_LINKAT
1143 GNULIB_LINK
1144 GNULIB_LCHOWN
1145 GNULIB_ISATTY
1146 GNULIB_GROUP_MEMBER
1147 GNULIB_GETUSERSHELL
1148 GNULIB_GETPAGESIZE
1149 GNULIB_GETLOGIN_R
1150 GNULIB_GETLOGIN
1151 GNULIB_GETHOSTNAME
1152 GNULIB_GETGROUPS
1153 GNULIB_GETDTABLESIZE
1154 GNULIB_GETDOMAINNAME
1155 GNULIB_GETCWD
1156 GNULIB_FTRUNCATE
1157 GNULIB_FSYNC
1158 GNULIB_FDATASYNC
1159 GNULIB_FCHOWNAT
1160 GNULIB_FCHDIR
1161 GNULIB_FACCESSAT
1162 GNULIB_EUIDACCESS
1163 GNULIB_ENVIRON
1164 GNULIB_DUP3
1165 GNULIB_DUP2
1166 GNULIB_DUP
1167 GNULIB_CLOSE
1168 GNULIB_CHOWN
1169 GNULIB_CHDIR
1170 REPLACE_ITOLD
1171 GL_GENERATE_FLOAT_H_FALSE
1172 GL_GENERATE_FLOAT_H_TRUE
1173 FLOAT_H
1174 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1175 NEXT_FLOAT_H
1176 EOVERFLOW_VALUE
1177 EOVERFLOW_HIDDEN
1178 ENOLINK_VALUE
1179 ENOLINK_HIDDEN
1180 EMULTIHOP_VALUE
1181 EMULTIHOP_HIDDEN
1182 GL_GENERATE_ERRNO_H_FALSE
1183 GL_GENERATE_ERRNO_H_TRUE
1184 ERRNO_H
1185 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1186 NEXT_ERRNO_H
1187 PRAGMA_COLUMNS
1188 PRAGMA_SYSTEM_HEADER
1189 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1190 INCLUDE_NEXT
1191 GL_GENERATE_ALLOCA_H_FALSE
1192 GL_GENERATE_ALLOCA_H_TRUE
1193 ALLOCA_H
1194 ALLOCA
1195 GL_COND_LIBTOOL_FALSE
1196 GL_COND_LIBTOOL_TRUE
1197 FONTCONFIG_LIBS
1198 FONTCONFIG_CFLAGS
1199 SDL2_LIBS
1200 SDL2_CFLAGS
1201 HAVE_UPX_FALSE
1202 HAVE_UPX_TRUE
1203 UPX
1204 HAVE_TESTS_FALSE
1205 HAVE_TESTS_TRUE
1206 CXXTESTGEN
1207 tests
1208 PKG_CONFIG_LIBDIR
1209 PKG_CONFIG_PATH
1210 PKG_CONFIG
1211 HELP2MAN
1212 HAVE_WINDRES_FALSE
1213 HAVE_WINDRES_TRUE
1214 WINDRES
1215 POSUB
1216 LTLIBINTL
1217 LIBINTL
1218 INTLLIBS
1219 LTLIBICONV
1220 LIBICONV
1221 INTL_MACOSX_LIBS
1222 XGETTEXT_EXTRA_OPTIONS
1223 MSGMERGE
1224 XGETTEXT_015
1225 XGETTEXT
1226 GMSGFMT_015
1227 MSGFMT_015
1228 GMSGFMT
1229 MSGFMT
1230 GETTEXT_MACRO_VERSION
1231 USE_NLS
1232 WOE_FALSE
1233 WOE_TRUE
1234 ANDROID_FALSE
1235 ANDROID_TRUE
1236 RANLIB
1237 ARFLAGS
1238 AR
1239 EGREP
1240 GREP
1241 CPP
1242 LN_S
1243 am__fastdepCXX_FALSE
1244 am__fastdepCXX_TRUE
1245 CXXDEPMODE
1246 ac_ct_CXX
1247 CXXFLAGS
1248 CXX
1249 am__fastdepCC_FALSE
1250 am__fastdepCC_TRUE
1251 CCDEPMODE
1252 am__nodep
1253 AMDEPBACKSLASH
1254 AMDEP_FALSE
1255 AMDEP_TRUE
1256 am__include
1257 DEPDIR
1258 OBJEXT
1259 EXEEXT
1260 ac_ct_CC
1261 CPPFLAGS
1262 LDFLAGS
1263 CFLAGS
1264 CC
1265 host_os
1266 host_vendor
1267 host_cpu
1268 host
1269 build_os
1270 build_vendor
1271 build_cpu
1272 build
1273 AM_BACKSLASH
1274 AM_DEFAULT_VERBOSITY
1275 AM_DEFAULT_V
1276 AM_V
1277 am__untar
1278 am__tar
1279 AMTAR
1280 am__leading_dot
1281 SET_MAKE
1282 AWK
1283 mkdir_p
1284 MKDIR_P
1285 INSTALL_STRIP_PROGRAM
1286 STRIP
1287 install_sh
1288 MAKEINFO
1289 AUTOHEADER
1290 AUTOMAKE
1291 AUTOCONF
1292 ACLOCAL
1293 VERSION
1294 PACKAGE
1295 CYGPATH_W
1296 am__isrc
1297 INSTALL_DATA
1298 INSTALL_SCRIPT
1299 INSTALL_PROGRAM
1300 target_alias
1301 host_alias
1302 build_alias
1303 LIBS
1304 ECHO_T
1305 ECHO_N
1306 ECHO_C
1307 DEFS
1308 mandir
1309 localedir
1310 libdir
1311 psdir
1312 pdfdir
1313 dvidir
1314 htmldir
1315 infodir
1316 docdir
1317 oldincludedir
1318 includedir
1319 runstatedir
1320 localstatedir
1321 sharedstatedir
1322 sysconfdir
1323 datadir
1324 datarootdir
1325 libexecdir
1326 sbindir
1327 bindir
1328 program_transform_name
1329 prefix
1330 exec_prefix
1331 PACKAGE_URL
1332 PACKAGE_BUGREPORT
1333 PACKAGE_STRING
1334 PACKAGE_VERSION
1335 PACKAGE_TARNAME
1336 PACKAGE_NAME
1337 PATH_SEPARATOR
1338 SHELL
1339 am__quote'
1340 ac_subst_files=''
1341 ac_user_opts='
1342 enable_option_checking
1343 enable_silent_rules
1344 enable_dependency_tracking
1345 enable_nls
1346 with_gnu_ld
1347 enable_rpath
1348 with_libiconv_prefix
1349 with_libintl_prefix
1350 enable_tests
1351 enable_upx
1352 enable_static
1353 '
1354 ac_precious_vars='build_alias
1355 host_alias
1356 target_alias
1357 CC
1358 CFLAGS
1359 LDFLAGS
1360 LIBS
1361 CPPFLAGS
1362 CXX
1363 CXXFLAGS
1364 CCC
1365 CPP
1366 WINDRES
1367 HELP2MAN
1368 PKG_CONFIG
1369 PKG_CONFIG_PATH
1370 PKG_CONFIG_LIBDIR
1371 tests
1372 UPX
1373 SDL2_CFLAGS
1374 SDL2_LIBS
1375 FONTCONFIG_CFLAGS
1376 FONTCONFIG_LIBS'
1377
1378
1379 # Initialize some variables set by options.
1380 ac_init_help=
1381 ac_init_version=false
1382 ac_unrecognized_opts=
1383 ac_unrecognized_sep=
1384 # The variables have the same names as the options, with
1385 # dashes changed to underlines.
1386 cache_file=/dev/null
1387 exec_prefix=NONE
1388 no_create=
1389 no_recursion=
1390 prefix=NONE
1391 program_prefix=NONE
1392 program_suffix=NONE
1393 program_transform_name=s,x,x,
1394 silent=
1395 site=
1396 srcdir=
1397 verbose=
1398 x_includes=NONE
1399 x_libraries=NONE
1400
1401 # Installation directory options.
1402 # These are left unexpanded so users can "make install exec_prefix=/foo"
1403 # and all the variables that are supposed to be based on exec_prefix
1404 # by default will actually change.
1405 # Use braces instead of parens because sh, perl, etc. also accept them.
1406 # (The list follows the same order as the GNU Coding Standards.)
1407 bindir='${exec_prefix}/bin'
1408 sbindir='${exec_prefix}/sbin'
1409 libexecdir='${exec_prefix}/libexec'
1410 datarootdir='${prefix}/share'
1411 datadir='${datarootdir}'
1412 sysconfdir='${prefix}/etc'
1413 sharedstatedir='${prefix}/com'
1414 localstatedir='${prefix}/var'
1415 runstatedir='${localstatedir}/run'
1416 includedir='${prefix}/include'
1417 oldincludedir='/usr/include'
1418 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1419 infodir='${datarootdir}/info'
1420 htmldir='${docdir}'
1421 dvidir='${docdir}'
1422 pdfdir='${docdir}'
1423 psdir='${docdir}'
1424 libdir='${exec_prefix}/lib'
1425 localedir='${datarootdir}/locale'
1426 mandir='${datarootdir}/man'
1427
1428 ac_prev=
1429 ac_dashdash=
1430 for ac_option
1431 do
1432 # If the previous option needs an argument, assign it.
1433 if test -n "$ac_prev"; then
1434 eval $ac_prev=\$ac_option
1435 ac_prev=
1436 continue
1437 fi
1438
1439 case $ac_option in
1440 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1441 *=) ac_optarg= ;;
1442 *) ac_optarg=yes ;;
1443 esac
1444
1445 # Accept the important Cygnus configure options, so we can diagnose typos.
1446
1447 case $ac_dashdash$ac_option in
1448 --)
1449 ac_dashdash=yes ;;
1450
1451 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1452 ac_prev=bindir ;;
1453 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1454 bindir=$ac_optarg ;;
1455
1456 -build | --build | --buil | --bui | --bu)
1457 ac_prev=build_alias ;;
1458 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1459 build_alias=$ac_optarg ;;
1460
1461 -cache-file | --cache-file | --cache-fil | --cache-fi \
1462 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1463 ac_prev=cache_file ;;
1464 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1465 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1466 cache_file=$ac_optarg ;;
1467
1468 --config-cache | -C)
1469 cache_file=config.cache ;;
1470
1471 -datadir | --datadir | --datadi | --datad)
1472 ac_prev=datadir ;;
1473 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1474 datadir=$ac_optarg ;;
1475
1476 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1477 | --dataroo | --dataro | --datar)
1478 ac_prev=datarootdir ;;
1479 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1480 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1481 datarootdir=$ac_optarg ;;
1482
1483 -disable-* | --disable-*)
1484 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1485 # Reject names that are not valid shell variable names.
1486 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1487 as_fn_error $? "invalid feature name: $ac_useropt"
1488 ac_useropt_orig=$ac_useropt
1489 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1490 case $ac_user_opts in
1491 *"
1492 "enable_$ac_useropt"
1493 "*) ;;
1494 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1495 ac_unrecognized_sep=', ';;
1496 esac
1497 eval enable_$ac_useropt=no ;;
1498
1499 -docdir | --docdir | --docdi | --doc | --do)
1500 ac_prev=docdir ;;
1501 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1502 docdir=$ac_optarg ;;
1503
1504 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1505 ac_prev=dvidir ;;
1506 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1507 dvidir=$ac_optarg ;;
1508
1509 -enable-* | --enable-*)
1510 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1511 # Reject names that are not valid shell variable names.
1512 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1513 as_fn_error $? "invalid feature name: $ac_useropt"
1514 ac_useropt_orig=$ac_useropt
1515 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1516 case $ac_user_opts in
1517 *"
1518 "enable_$ac_useropt"
1519 "*) ;;
1520 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1521 ac_unrecognized_sep=', ';;
1522 esac
1523 eval enable_$ac_useropt=\$ac_optarg ;;
1524
1525 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1526 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1527 | --exec | --exe | --ex)
1528 ac_prev=exec_prefix ;;
1529 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1530 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1531 | --exec=* | --exe=* | --ex=*)
1532 exec_prefix=$ac_optarg ;;
1533
1534 -gas | --gas | --ga | --g)
1535 # Obsolete; use --with-gas.
1536 with_gas=yes ;;
1537
1538 -help | --help | --hel | --he | -h)
1539 ac_init_help=long ;;
1540 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1541 ac_init_help=recursive ;;
1542 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1543 ac_init_help=short ;;
1544
1545 -host | --host | --hos | --ho)
1546 ac_prev=host_alias ;;
1547 -host=* | --host=* | --hos=* | --ho=*)
1548 host_alias=$ac_optarg ;;
1549
1550 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1551 ac_prev=htmldir ;;
1552 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1553 | --ht=*)
1554 htmldir=$ac_optarg ;;
1555
1556 -includedir | --includedir | --includedi | --included | --include \
1557 | --includ | --inclu | --incl | --inc)
1558 ac_prev=includedir ;;
1559 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1560 | --includ=* | --inclu=* | --incl=* | --inc=*)
1561 includedir=$ac_optarg ;;
1562
1563 -infodir | --infodir | --infodi | --infod | --info | --inf)
1564 ac_prev=infodir ;;
1565 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1566 infodir=$ac_optarg ;;
1567
1568 -libdir | --libdir | --libdi | --libd)
1569 ac_prev=libdir ;;
1570 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1571 libdir=$ac_optarg ;;
1572
1573 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1574 | --libexe | --libex | --libe)
1575 ac_prev=libexecdir ;;
1576 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1577 | --libexe=* | --libex=* | --libe=*)
1578 libexecdir=$ac_optarg ;;
1579
1580 -localedir | --localedir | --localedi | --localed | --locale)
1581 ac_prev=localedir ;;
1582 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1583 localedir=$ac_optarg ;;
1584
1585 -localstatedir | --localstatedir | --localstatedi | --localstated \
1586 | --localstate | --localstat | --localsta | --localst | --locals)
1587 ac_prev=localstatedir ;;
1588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1589 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1590 localstatedir=$ac_optarg ;;
1591
1592 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1593 ac_prev=mandir ;;
1594 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1595 mandir=$ac_optarg ;;
1596
1597 -nfp | --nfp | --nf)
1598 # Obsolete; use --without-fp.
1599 with_fp=no ;;
1600
1601 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1602 | --no-cr | --no-c | -n)
1603 no_create=yes ;;
1604
1605 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1606 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1607 no_recursion=yes ;;
1608
1609 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1610 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1611 | --oldin | --oldi | --old | --ol | --o)
1612 ac_prev=oldincludedir ;;
1613 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1614 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1615 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1616 oldincludedir=$ac_optarg ;;
1617
1618 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1619 ac_prev=prefix ;;
1620 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1621 prefix=$ac_optarg ;;
1622
1623 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1624 | --program-pre | --program-pr | --program-p)
1625 ac_prev=program_prefix ;;
1626 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1627 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1628 program_prefix=$ac_optarg ;;
1629
1630 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1631 | --program-suf | --program-su | --program-s)
1632 ac_prev=program_suffix ;;
1633 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1634 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1635 program_suffix=$ac_optarg ;;
1636
1637 -program-transform-name | --program-transform-name \
1638 | --program-transform-nam | --program-transform-na \
1639 | --program-transform-n | --program-transform- \
1640 | --program-transform | --program-transfor \
1641 | --program-transfo | --program-transf \
1642 | --program-trans | --program-tran \
1643 | --progr-tra | --program-tr | --program-t)
1644 ac_prev=program_transform_name ;;
1645 -program-transform-name=* | --program-transform-name=* \
1646 | --program-transform-nam=* | --program-transform-na=* \
1647 | --program-transform-n=* | --program-transform-=* \
1648 | --program-transform=* | --program-transfor=* \
1649 | --program-transfo=* | --program-transf=* \
1650 | --program-trans=* | --program-tran=* \
1651 | --progr-tra=* | --program-tr=* | --program-t=*)
1652 program_transform_name=$ac_optarg ;;
1653
1654 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1655 ac_prev=pdfdir ;;
1656 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1657 pdfdir=$ac_optarg ;;
1658
1659 -psdir | --psdir | --psdi | --psd | --ps)
1660 ac_prev=psdir ;;
1661 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1662 psdir=$ac_optarg ;;
1663
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1666 silent=yes ;;
1667
1668 -runstatedir | --runstatedir | --runstatedi | --runstated \
1669 | --runstate | --runstat | --runsta | --runst | --runs \
1670 | --run | --ru | --r)
1671 ac_prev=runstatedir ;;
1672 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1673 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1674 | --run=* | --ru=* | --r=*)
1675 runstatedir=$ac_optarg ;;
1676
1677 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1678 ac_prev=sbindir ;;
1679 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1680 | --sbi=* | --sb=*)
1681 sbindir=$ac_optarg ;;
1682
1683 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1684 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1685 | --sharedst | --shareds | --shared | --share | --shar \
1686 | --sha | --sh)
1687 ac_prev=sharedstatedir ;;
1688 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1689 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1690 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1691 | --sha=* | --sh=*)
1692 sharedstatedir=$ac_optarg ;;
1693
1694 -site | --site | --sit)
1695 ac_prev=site ;;
1696 -site=* | --site=* | --sit=*)
1697 site=$ac_optarg ;;
1698
1699 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1700 ac_prev=srcdir ;;
1701 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1702 srcdir=$ac_optarg ;;
1703
1704 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1705 | --syscon | --sysco | --sysc | --sys | --sy)
1706 ac_prev=sysconfdir ;;
1707 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1708 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1709 sysconfdir=$ac_optarg ;;
1710
1711 -target | --target | --targe | --targ | --tar | --ta | --t)
1712 ac_prev=target_alias ;;
1713 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1714 target_alias=$ac_optarg ;;
1715
1716 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1717 verbose=yes ;;
1718
1719 -version | --version | --versio | --versi | --vers | -V)
1720 ac_init_version=: ;;
1721
1722 -with-* | --with-*)
1723 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1724 # Reject names that are not valid shell variable names.
1725 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1726 as_fn_error $? "invalid package name: $ac_useropt"
1727 ac_useropt_orig=$ac_useropt
1728 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1729 case $ac_user_opts in
1730 *"
1731 "with_$ac_useropt"
1732 "*) ;;
1733 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1734 ac_unrecognized_sep=', ';;
1735 esac
1736 eval with_$ac_useropt=\$ac_optarg ;;
1737
1738 -without-* | --without-*)
1739 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1740 # Reject names that are not valid shell variable names.
1741 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1742 as_fn_error $? "invalid package name: $ac_useropt"
1743 ac_useropt_orig=$ac_useropt
1744 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1745 case $ac_user_opts in
1746 *"
1747 "with_$ac_useropt"
1748 "*) ;;
1749 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1750 ac_unrecognized_sep=', ';;
1751 esac
1752 eval with_$ac_useropt=no ;;
1753
1754 --x)
1755 # Obsolete; use --with-x.
1756 with_x=yes ;;
1757
1758 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1759 | --x-incl | --x-inc | --x-in | --x-i)
1760 ac_prev=x_includes ;;
1761 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1762 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1763 x_includes=$ac_optarg ;;
1764
1765 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1766 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1767 ac_prev=x_libraries ;;
1768 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1769 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1770 x_libraries=$ac_optarg ;;
1771
1772 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1773 Try \`$0 --help' for more information"
1774 ;;
1775
1776 *=*)
1777 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1778 # Reject names that are not valid shell variable names.
1779 case $ac_envvar in #(
1780 '' | [0-9]* | *[!_$as_cr_alnum]* )
1781 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1782 esac
1783 eval $ac_envvar=\$ac_optarg
1784 export $ac_envvar ;;
1785
1786 *)
1787 # FIXME: should be removed in autoconf 3.0.
1788 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1789 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1790 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1791 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1792 ;;
1793
1794 esac
1795 done
1796
1797 if test -n "$ac_prev"; then
1798 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1799 as_fn_error $? "missing argument to $ac_option"
1800 fi
1801
1802 if test -n "$ac_unrecognized_opts"; then
1803 case $enable_option_checking in
1804 no) ;;
1805 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1806 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1807 esac
1808 fi
1809
1810 # Check all directory arguments for consistency.
1811 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1812 datadir sysconfdir sharedstatedir localstatedir includedir \
1813 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1814 libdir localedir mandir runstatedir
1815 do
1816 eval ac_val=\$$ac_var
1817 # Remove trailing slashes.
1818 case $ac_val in
1819 */ )
1820 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1821 eval $ac_var=\$ac_val;;
1822 esac
1823 # Be sure to have absolute directory names.
1824 case $ac_val in
1825 [\\/$]* | ?:[\\/]* ) continue;;
1826 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1827 esac
1828 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1829 done
1830
1831 # There might be people who depend on the old broken behavior: `$host'
1832 # used to hold the argument of --host etc.
1833 # FIXME: To remove some day.
1834 build=$build_alias
1835 host=$host_alias
1836 target=$target_alias
1837
1838 # FIXME: To remove some day.
1839 if test "x$host_alias" != x; then
1840 if test "x$build_alias" = x; then
1841 cross_compiling=maybe
1842 elif test "x$build_alias" != "x$host_alias"; then
1843 cross_compiling=yes
1844 fi
1845 fi
1846
1847 ac_tool_prefix=
1848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1849
1850 test "$silent" = yes && exec 6>/dev/null
1851
1852
1853 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1854 ac_ls_di=`ls -di .` &&
1855 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1856 as_fn_error $? "working directory cannot be determined"
1857 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1858 as_fn_error $? "pwd does not report name of working directory"
1859
1860
1861 # Find the source files, if location was not specified.
1862 if test -z "$srcdir"; then
1863 ac_srcdir_defaulted=yes
1864 # Try the directory containing this script, then the parent directory.
1865 ac_confdir=`$as_dirname -- "$as_myself" ||
1866 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1867 X"$as_myself" : 'X\(//\)[^/]' \| \
1868 X"$as_myself" : 'X\(//\)$' \| \
1869 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1870 $as_echo X"$as_myself" |
1871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1872 s//\1/
1873 q
1874 }
1875 /^X\(\/\/\)[^/].*/{
1876 s//\1/
1877 q
1878 }
1879 /^X\(\/\/\)$/{
1880 s//\1/
1881 q
1882 }
1883 /^X\(\/\).*/{
1884 s//\1/
1885 q
1886 }
1887 s/.*/./; q'`
1888 srcdir=$ac_confdir
1889 if test ! -r "$srcdir/$ac_unique_file"; then
1890 srcdir=..
1891 fi
1892 else
1893 ac_srcdir_defaulted=no
1894 fi
1895 if test ! -r "$srcdir/$ac_unique_file"; then
1896 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1897 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1898 fi
1899 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1900 ac_abs_confdir=`(
1901 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1902 pwd)`
1903 # When building in place, set srcdir=.
1904 if test "$ac_abs_confdir" = "$ac_pwd"; then
1905 srcdir=.
1906 fi
1907 # Remove unnecessary trailing slashes from srcdir.
1908 # Double slashes in file names in object file debugging info
1909 # mess up M-x gdb in Emacs.
1910 case $srcdir in
1911 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1912 esac
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1915 eval ac_env_${ac_var}_value=\$${ac_var}
1916 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1917 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1918 done
1919
1920 #
1921 # Report the --help message.
1922 #
1923 if test "$ac_init_help" = "long"; then
1924 # Omit some internal or obsolete options to make the list less imposing.
1925 # This message is too long to be a string in the A/UX 3.1 sh.
1926 cat <<_ACEOF
1927 \`configure' configures GNU FreeDink 109.6 to adapt to many kinds of systems.
1928
1929 Usage: $0 [OPTION]... [VAR=VALUE]...
1930
1931 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1932 VAR=VALUE. See below for descriptions of some of the useful variables.
1933
1934 Defaults for the options are specified in brackets.
1935
1936 Configuration:
1937 -h, --help display this help and exit
1938 --help=short display options specific to this package
1939 --help=recursive display the short help of all the included packages
1940 -V, --version display version information and exit
1941 -q, --quiet, --silent do not print \`checking ...' messages
1942 --cache-file=FILE cache test results in FILE [disabled]
1943 -C, --config-cache alias for \`--cache-file=config.cache'
1944 -n, --no-create do not create output files
1945 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1946
1947 Installation directories:
1948 --prefix=PREFIX install architecture-independent files in PREFIX
1949 [$ac_default_prefix]
1950 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1951 [PREFIX]
1952
1953 By default, \`make install' will install all the files in
1954 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1955 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1956 for instance \`--prefix=\$HOME'.
1957
1958 For better control, use the options below.
1959
1960 Fine tuning of the installation directories:
1961 --bindir=DIR user executables [EPREFIX/bin]
1962 --sbindir=DIR system admin executables [EPREFIX/sbin]
1963 --libexecdir=DIR program executables [EPREFIX/libexec]
1964 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1965 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1966 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1967 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1968 --libdir=DIR object code libraries [EPREFIX/lib]
1969 --includedir=DIR C header files [PREFIX/include]
1970 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1971 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1972 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1973 --infodir=DIR info documentation [DATAROOTDIR/info]
1974 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1975 --mandir=DIR man documentation [DATAROOTDIR/man]
1976 --docdir=DIR documentation root [DATAROOTDIR/doc/freedink]
1977 --htmldir=DIR html documentation [DOCDIR]
1978 --dvidir=DIR dvi documentation [DOCDIR]
1979 --pdfdir=DIR pdf documentation [DOCDIR]
1980 --psdir=DIR ps documentation [DOCDIR]
1981 _ACEOF
1982
1983 cat <<\_ACEOF
1984
1985 Program names:
1986 --program-prefix=PREFIX prepend PREFIX to installed program names
1987 --program-suffix=SUFFIX append SUFFIX to installed program names
1988 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1989
1990 System types:
1991 --build=BUILD configure for building on BUILD [guessed]
1992 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1993 _ACEOF
1994 fi
1995
1996 if test -n "$ac_init_help"; then
1997 case $ac_init_help in
1998 short | recursive ) echo "Configuration of GNU FreeDink 109.6:";;
1999 esac
2000 cat <<\_ACEOF
2001
2002 Optional Features:
2003 --disable-option-checking ignore unrecognized --enable/--with options
2004 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2005 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2006 --enable-silent-rules less verbose build output (undo: "make V=1")
2007 --disable-silent-rules verbose build output (undo: "make V=0")
2008 --enable-dependency-tracking
2009 do not reject slow dependency extractors
2010 --disable-dependency-tracking
2011 speeds up one-time build
2012 --disable-nls do not use Native Language Support
2013 --disable-rpath do not hardcode runtime library paths
2014 --disable-tests run test suite (default is enabled)
2015 --enable-upx compress executables (default is disabled)
2016 --enable-static embed SDL and dependencies in the executable
2017 (default is disabled)
2018
2019 Optional Packages:
2020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2022 --with-gnu-ld assume the C compiler uses GNU ld default=no
2023 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2024 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2025 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2026 --without-libintl-prefix don't search for libintl in includedir and libdir
2027
2028 Some influential environment variables:
2029 CC C compiler command
2030 CFLAGS C compiler flags
2031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2032 nonstandard directory <lib dir>
2033 LIBS libraries to pass to the linker, e.g. -l<library>
2034 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2035 you have headers in a nonstandard directory <include dir>
2036 CXX C++ compiler command
2037 CXXFLAGS C++ compiler flags
2038 CPP C preprocessor
2039 WINDRES Resource compiler for woe executables
2040 HELP2MAN Manpage generator from '--help' output
2041 PKG_CONFIG path to pkg-config utility
2042 PKG_CONFIG_PATH
2043 directories to add to pkg-config's search path
2044 PKG_CONFIG_LIBDIR
2045 path overriding pkg-config's built-in search path
2046 tests run tests
2047 UPX Produce self-decompressing executables (if --enable-upx)
2048 SDL2_CFLAGS C compiler flags for SDL2, overriding pkg-config
2049 SDL2_LIBS linker flags for SDL2, overriding pkg-config
2050 FONTCONFIG_CFLAGS
2051 C compiler flags for FONTCONFIG, overriding pkg-config
2052 FONTCONFIG_LIBS
2053 linker flags for FONTCONFIG, overriding pkg-config
2054
2055 Use these variables to override the choices made by `configure' or to help
2056 it to find libraries and programs with nonstandard names/locations.
2057
2058 Report bugs to <[email protected]>.
2059 GNU FreeDink home page: <http://www.gnu.org/software/freedink/>.
2060 General help using GNU software: <http://www.gnu.org/gethelp/>.
2061 _ACEOF
2062 ac_status=$?
2063 fi
2064
2065 if test "$ac_init_help" = "recursive"; then
2066 # If there are subdirs, report their specific --help.
2067 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2068 test -d "$ac_dir" ||
2069 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2070 continue
2071 ac_builddir=.
2072
2073 case "$ac_dir" in
2074 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2075 *)
2076 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2077 # A ".." for each directory in $ac_dir_suffix.
2078 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2079 case $ac_top_builddir_sub in
2080 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2081 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2082 esac ;;
2083 esac
2084 ac_abs_top_builddir=$ac_pwd
2085 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2086 # for backward compatibility:
2087 ac_top_builddir=$ac_top_build_prefix
2088
2089 case $srcdir in
2090 .) # We are building in place.
2091 ac_srcdir=.
2092 ac_top_srcdir=$ac_top_builddir_sub
2093 ac_abs_top_srcdir=$ac_pwd ;;
2094 [\\/]* | ?:[\\/]* ) # Absolute name.
2095 ac_srcdir=$srcdir$ac_dir_suffix;
2096 ac_top_srcdir=$srcdir
2097 ac_abs_top_srcdir=$srcdir ;;
2098 *) # Relative name.
2099 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2100 ac_top_srcdir=$ac_top_build_prefix$srcdir
2101 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2102 esac
2103 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2104
2105 cd "$ac_dir" || { ac_status=$?; continue; }
2106 # Check for guested configure.
2107 if test -f "$ac_srcdir/configure.gnu"; then
2108 echo &&
2109 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2110 elif test -f "$ac_srcdir/configure"; then
2111 echo &&
2112 $SHELL "$ac_srcdir/configure" --help=recursive
2113 else
2114 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2115 fi || ac_status=$?
2116 cd "$ac_pwd" || { ac_status=$?; break; }
2117 done
2118 fi
2119
2120 test -n "$ac_init_help" && exit $ac_status
2121 if $ac_init_version; then
2122 cat <<\_ACEOF
2123 GNU FreeDink configure 109.6
2124 generated by GNU Autoconf 2.69
2125
2126 Copyright (C) 2012 Free Software Foundation, Inc.
2127 This configure script is free software; the Free Software Foundation
2128 gives unlimited permission to copy, distribute and modify it.
2129 _ACEOF
2130 exit
2131 fi
2132
2133 ## ------------------------ ##
2134 ## Autoconf initialization. ##
2135 ## ------------------------ ##
2136
2137 # ac_fn_c_try_compile LINENO
2138 # --------------------------
2139 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2140 ac_fn_c_try_compile ()
2141 {
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 rm -f conftest.$ac_objext
2144 if { { ac_try="$ac_compile"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150 $as_echo "$ac_try_echo"; } >&5
2151 (eval "$ac_compile") 2>conftest.err
2152 ac_status=$?
2153 if test -s conftest.err; then
2154 grep -v '^ *+' conftest.err >conftest.er1
2155 cat conftest.er1 >&5
2156 mv -f conftest.er1 conftest.err
2157 fi
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; } && {
2160 test -z "$ac_c_werror_flag" ||
2161 test ! -s conftest.err
2162 } && test -s conftest.$ac_objext; then :
2163 ac_retval=0
2164 else
2165 $as_echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_retval=1
2169 fi
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 as_fn_set_status $ac_retval
2172
2173 } # ac_fn_c_try_compile
2174
2175 # ac_fn_cxx_try_compile LINENO
2176 # ----------------------------
2177 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2178 ac_fn_cxx_try_compile ()
2179 {
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 rm -f conftest.$ac_objext
2182 if { { ac_try="$ac_compile"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_compile") 2>conftest.err
2190 ac_status=$?
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2195 fi
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } && {
2198 test -z "$ac_cxx_werror_flag" ||
2199 test ! -s conftest.err
2200 } && test -s conftest.$ac_objext; then :
2201 ac_retval=0
2202 else
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=1
2207 fi
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2209 as_fn_set_status $ac_retval
2210
2211 } # ac_fn_cxx_try_compile
2212
2213 # ac_fn_c_try_cpp LINENO
2214 # ----------------------
2215 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2216 ac_fn_c_try_cpp ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 if { { ac_try="$ac_cpp conftest.$ac_ext"
2220 case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2223 esac
2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225 $as_echo "$ac_try_echo"; } >&5
2226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2227 ac_status=$?
2228 if test -s conftest.err; then
2229 grep -v '^ *+' conftest.err >conftest.er1
2230 cat conftest.er1 >&5
2231 mv -f conftest.er1 conftest.err
2232 fi
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } > conftest.i && {
2235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2236 test ! -s conftest.err
2237 }; then :
2238 ac_retval=0
2239 else
2240 $as_echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 ac_retval=1
2244 fi
2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246 as_fn_set_status $ac_retval
2247
2248 } # ac_fn_c_try_cpp
2249
2250 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2251 # -------------------------------------------------------
2252 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2253 # the include files in INCLUDES and setting the cache variable VAR
2254 # accordingly.
2255 ac_fn_c_check_header_mongrel ()
2256 {
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 if eval \${$3+:} false; then :
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260 $as_echo_n "checking for $2... " >&6; }
2261 if eval \${$3+:} false; then :
2262 $as_echo_n "(cached) " >&6
2263 fi
2264 eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 else
2268 # Is the header compilable?
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2270 $as_echo_n "checking $2 usability... " >&6; }
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2273 $4
2274 #include <$2>
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277 ac_header_compiler=yes
2278 else
2279 ac_header_compiler=no
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2283 $as_echo "$ac_header_compiler" >&6; }
2284
2285 # Is the header present?
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2287 $as_echo_n "checking $2 presence... " >&6; }
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2290 #include <$2>
2291 _ACEOF
2292 if ac_fn_c_try_cpp "$LINENO"; then :
2293 ac_header_preproc=yes
2294 else
2295 ac_header_preproc=no
2296 fi
2297 rm -f conftest.err conftest.i conftest.$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2299 $as_echo "$ac_header_preproc" >&6; }
2300
2301 # So? What about this header?
2302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2303 yes:no: )
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2305 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2307 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2308 ;;
2309 no:yes:* )
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2311 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2313 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2315 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2317 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2319 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2320 ( $as_echo "## ----------------------------------- ##
2321 ## Report this to [email protected] ##
2322 ## ----------------------------------- ##"
2323 ) | sed "s/^/$as_me: WARNING: /" >&2
2324 ;;
2325 esac
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2327 $as_echo_n "checking for $2... " >&6; }
2328 if eval \${$3+:} false; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 eval "$3=\$ac_header_compiler"
2332 fi
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 fi
2337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338
2339 } # ac_fn_c_check_header_mongrel
2340
2341 # ac_fn_c_try_run LINENO
2342 # ----------------------
2343 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2344 # that executables *can* be run.
2345 ac_fn_c_try_run ()
2346 {
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 if { { ac_try="$ac_link"
2349 case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352 esac
2353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354 $as_echo "$ac_try_echo"; } >&5
2355 (eval "$ac_link") 2>&5
2356 ac_status=$?
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2359 { { case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_try") 2>&5
2366 ac_status=$?
2367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2368 test $ac_status = 0; }; }; then :
2369 ac_retval=0
2370 else
2371 $as_echo "$as_me: program exited with status $ac_status" >&5
2372 $as_echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 ac_retval=$ac_status
2376 fi
2377 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2379 as_fn_set_status $ac_retval
2380
2381 } # ac_fn_c_try_run
2382
2383 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2384 # -------------------------------------------------------
2385 # Tests whether HEADER exists and can be compiled using the include files in
2386 # INCLUDES, setting the cache variable VAR accordingly.
2387 ac_fn_c_check_header_compile ()
2388 {
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2391 $as_echo_n "checking for $2... " >&6; }
2392 if eval \${$3+:} false; then :
2393 $as_echo_n "(cached) " >&6
2394 else
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $4
2398 #include <$2>
2399 _ACEOF
2400 if ac_fn_c_try_compile "$LINENO"; then :
2401 eval "$3=yes"
2402 else
2403 eval "$3=no"
2404 fi
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 fi
2407 eval ac_res=\$$3
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411
2412 } # ac_fn_c_check_header_compile
2413
2414 # ac_fn_c_try_link LINENO
2415 # -----------------------
2416 # Try to link conftest.$ac_ext, and return whether this succeeded.
2417 ac_fn_c_try_link ()
2418 {
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2422 case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425 esac
2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427 $as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2429 ac_status=$?
2430 if test -s conftest.err; then
2431 grep -v '^ *+' conftest.err >conftest.er1
2432 cat conftest.er1 >&5
2433 mv -f conftest.er1 conftest.err
2434 fi
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_c_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 test -x conftest$ac_exeext
2442 }; then :
2443 ac_retval=0
2444 else
2445 $as_echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 ac_retval=1
2449 fi
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456 as_fn_set_status $ac_retval
2457
2458 } # ac_fn_c_try_link
2459
2460 # ac_fn_c_check_func LINENO FUNC VAR
2461 # ----------------------------------
2462 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2463 ac_fn_c_check_func ()
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 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2475 #define $2 innocuous_$2
2476
2477 /* System header to define __stub macros and hopefully few prototypes,
2478 which can conflict with char $2 (); below.
2479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2480 <limits.h> exists even on freestanding compilers. */
2481
2482 #ifdef __STDC__
2483 # include <limits.h>
2484 #else
2485 # include <assert.h>
2486 #endif
2487
2488 #undef $2
2489
2490 /* Override any GCC internal prototype to avoid an error.
2491 Use char because int might match the return type of a GCC
2492 builtin and then its argument prototype would still apply. */
2493 #ifdef __cplusplus
2494 extern "C"
2495 #endif
2496 char $2 ();
2497 /* The GNU C library defines this for functions which it implements
2498 to always fail with ENOSYS. Some functions are actually named
2499 something starting with __ and the normal name is an alias. */
2500 #if defined __stub_$2 || defined __stub___$2
2501 choke me
2502 #endif
2503
2504 int
2505 main ()
2506 {
2507 return $2 ();
2508 ;
2509 return 0;
2510 }
2511 _ACEOF
2512 if ac_fn_c_try_link "$LINENO"; then :
2513 eval "$3=yes"
2514 else
2515 eval "$3=no"
2516 fi
2517 rm -f core conftest.err conftest.$ac_objext \
2518 conftest$ac_exeext conftest.$ac_ext
2519 fi
2520 eval ac_res=\$$3
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2524
2525 } # ac_fn_c_check_func
2526
2527 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2528 # -------------------------------------------
2529 # Tests whether TYPE exists after having included INCLUDES, setting cache
2530 # variable VAR accordingly.
2531 ac_fn_c_check_type ()
2532 {
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2535 $as_echo_n "checking for $2... " >&6; }
2536 if eval \${$3+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 eval "$3=no"
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2542 $4
2543 int
2544 main ()
2545 {
2546 if (sizeof ($2))
2547 return 0;
2548 ;
2549 return 0;
2550 }
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 $4
2556 int
2557 main ()
2558 {
2559 if (sizeof (($2)))
2560 return 0;
2561 ;
2562 return 0;
2563 }
2564 _ACEOF
2565 if ac_fn_c_try_compile "$LINENO"; then :
2566
2567 else
2568 eval "$3=yes"
2569 fi
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571 fi
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 fi
2574 eval ac_res=\$$3
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2578
2579 } # ac_fn_c_check_type
2580
2581 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2582 # --------------------------------------------
2583 # Tries to find the compile-time value of EXPR in a program that includes
2584 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2585 # computed
2586 ac_fn_c_compute_int ()
2587 {
2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589 if test "$cross_compiling" = yes; then
2590 # Depending upon the size, compute the lo and hi bounds.
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 $4
2594 int
2595 main ()
2596 {
2597 static int test_array [1 - 2 * !(($2) >= 0)];
2598 test_array [0] = 0;
2599 return test_array [0];
2600
2601 ;
2602 return 0;
2603 }
2604 _ACEOF
2605 if ac_fn_c_try_compile "$LINENO"; then :
2606 ac_lo=0 ac_mid=0
2607 while :; do
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2610 $4
2611 int
2612 main ()
2613 {
2614 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2615 test_array [0] = 0;
2616 return test_array [0];
2617
2618 ;
2619 return 0;
2620 }
2621 _ACEOF
2622 if ac_fn_c_try_compile "$LINENO"; then :
2623 ac_hi=$ac_mid; break
2624 else
2625 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2626 if test $ac_lo -le $ac_mid; then
2627 ac_lo= ac_hi=
2628 break
2629 fi
2630 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2631 fi
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 done
2634 else
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2637 $4
2638 int
2639 main ()
2640 {
2641 static int test_array [1 - 2 * !(($2) < 0)];
2642 test_array [0] = 0;
2643 return test_array [0];
2644
2645 ;
2646 return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650 ac_hi=-1 ac_mid=-1
2651 while :; do
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2654 $4
2655 int
2656 main ()
2657 {
2658 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2659 test_array [0] = 0;
2660 return test_array [0];
2661
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 if ac_fn_c_try_compile "$LINENO"; then :
2667 ac_lo=$ac_mid; break
2668 else
2669 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2670 if test $ac_mid -le $ac_hi; then
2671 ac_lo= ac_hi=
2672 break
2673 fi
2674 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2675 fi
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 done
2678 else
2679 ac_lo= ac_hi=
2680 fi
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 fi
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 # Binary search between lo and hi bounds.
2685 while test "x$ac_lo" != "x$ac_hi"; do
2686 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2689 $4
2690 int
2691 main ()
2692 {
2693 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2694 test_array [0] = 0;
2695 return test_array [0];
2696
2697 ;
2698 return 0;
2699 }
2700 _ACEOF
2701 if ac_fn_c_try_compile "$LINENO"; then :
2702 ac_hi=$ac_mid
2703 else
2704 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2705 fi
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 done
2708 case $ac_lo in #((
2709 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2710 '') ac_retval=1 ;;
2711 esac
2712 else
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 $4
2716 static long int longval () { return $2; }
2717 static unsigned long int ulongval () { return $2; }
2718 #include <stdio.h>
2719 #include <stdlib.h>
2720 int
2721 main ()
2722 {
2723
2724 FILE *f = fopen ("conftest.val", "w");
2725 if (! f)
2726 return 1;
2727 if (($2) < 0)
2728 {
2729 long int i = longval ();
2730 if (i != ($2))
2731 return 1;
2732 fprintf (f, "%ld", i);
2733 }
2734 else
2735 {
2736 unsigned long int i = ulongval ();
2737 if (i != ($2))
2738 return 1;
2739 fprintf (f, "%lu", i);
2740 }
2741 /* Do not output a trailing newline, as this causes \r\n confusion
2742 on some platforms. */
2743 return ferror (f) || fclose (f) != 0;
2744
2745 ;
2746 return 0;
2747 }
2748 _ACEOF
2749 if ac_fn_c_try_run "$LINENO"; then :
2750 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2751 else
2752 ac_retval=1
2753 fi
2754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2755 conftest.$ac_objext conftest.beam conftest.$ac_ext
2756 rm -f conftest.val
2757
2758 fi
2759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760 as_fn_set_status $ac_retval
2761
2762 } # ac_fn_c_compute_int
2763
2764 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2765 # ---------------------------------------------
2766 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2767 # accordingly.
2768 ac_fn_c_check_decl ()
2769 {
2770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771 as_decl_name=`echo $2|sed 's/ *(.*//'`
2772 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2774 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2775 if eval \${$3+:} false; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 $4
2781 int
2782 main ()
2783 {
2784 #ifndef $as_decl_name
2785 #ifdef __cplusplus
2786 (void) $as_decl_use;
2787 #else
2788 (void) $as_decl_name;
2789 #endif
2790 #endif
2791
2792 ;
2793 return 0;
2794 }
2795 _ACEOF
2796 if ac_fn_c_try_compile "$LINENO"; then :
2797 eval "$3=yes"
2798 else
2799 eval "$3=no"
2800 fi
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 fi
2803 eval ac_res=\$$3
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805 $as_echo "$ac_res" >&6; }
2806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807
2808 } # ac_fn_c_check_decl
2809 cat >config.log <<_ACEOF
2810 This file contains any messages produced by compilers while
2811 running configure, to aid debugging if configure makes a mistake.
2812
2813 It was created by GNU FreeDink $as_me 109.6, which was
2814 generated by GNU Autoconf 2.69. Invocation command line was
2815
2816 $ $0 $@
2817
2818 _ACEOF
2819 exec 5>>config.log
2820 {
2821 cat <<_ASUNAME
2822 ## --------- ##
2823 ## Platform. ##
2824 ## --------- ##
2825
2826 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2827 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2828 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2829 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2830 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2831
2832 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2833 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2834
2835 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2836 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2837 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2838 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2839 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2840 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2841 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2842
2843 _ASUNAME
2844
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 $as_echo "PATH: $as_dir"
2851 done
2852 IFS=$as_save_IFS
2853
2854 } >&5
2855
2856 cat >&5 <<_ACEOF
2857
2858
2859 ## ----------- ##
2860 ## Core tests. ##
2861 ## ----------- ##
2862
2863 _ACEOF
2864
2865
2866 # Keep a trace of the command line.
2867 # Strip out --no-create and --no-recursion so they do not pile up.
2868 # Strip out --silent because we don't want to record it for future runs.
2869 # Also quote any args containing shell meta-characters.
2870 # Make two passes to allow for proper duplicate-argument suppression.
2871 ac_configure_args=
2872 ac_configure_args0=
2873 ac_configure_args1=
2874 ac_must_keep_next=false
2875 for ac_pass in 1 2
2876 do
2877 for ac_arg
2878 do
2879 case $ac_arg in
2880 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2882 | -silent | --silent | --silen | --sile | --sil)
2883 continue ;;
2884 *\'*)
2885 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2886 esac
2887 case $ac_pass in
2888 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2889 2)
2890 as_fn_append ac_configure_args1 " '$ac_arg'"
2891 if test $ac_must_keep_next = true; then
2892 ac_must_keep_next=false # Got value, back to normal.
2893 else
2894 case $ac_arg in
2895 *=* | --config-cache | -C | -disable-* | --disable-* \
2896 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2897 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2898 | -with-* | --with-* | -without-* | --without-* | --x)
2899 case "$ac_configure_args0 " in
2900 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2901 esac
2902 ;;
2903 -* ) ac_must_keep_next=true ;;
2904 esac
2905 fi
2906 as_fn_append ac_configure_args " '$ac_arg'"
2907 ;;
2908 esac
2909 done
2910 done
2911 { ac_configure_args0=; unset ac_configure_args0;}
2912 { ac_configure_args1=; unset ac_configure_args1;}
2913
2914 # When interrupted or exit'd, cleanup temporary files, and complete
2915 # config.log. We remove comments because anyway the quotes in there
2916 # would cause problems or look ugly.
2917 # WARNING: Use '\'' to represent an apostrophe within the trap.
2918 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2919 trap 'exit_status=$?
2920 # Save into config.log some information that might help in debugging.
2921 {
2922 echo
2923
2924 $as_echo "## ---------------- ##
2925 ## Cache variables. ##
2926 ## ---------------- ##"
2927 echo
2928 # The following way of writing the cache mishandles newlines in values,
2929 (
2930 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2931 eval ac_val=\$$ac_var
2932 case $ac_val in #(
2933 *${as_nl}*)
2934 case $ac_var in #(
2935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2937 esac
2938 case $ac_var in #(
2939 _ | IFS | as_nl) ;; #(
2940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2941 *) { eval $ac_var=; unset $ac_var;} ;;
2942 esac ;;
2943 esac
2944 done
2945 (set) 2>&1 |
2946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2947 *${as_nl}ac_space=\ *)
2948 sed -n \
2949 "s/'\''/'\''\\\\'\'''\''/g;
2950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2951 ;; #(
2952 *)
2953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2954 ;;
2955 esac |
2956 sort
2957 )
2958 echo
2959
2960 $as_echo "## ----------------- ##
2961 ## Output variables. ##
2962 ## ----------------- ##"
2963 echo
2964 for ac_var in $ac_subst_vars
2965 do
2966 eval ac_val=\$$ac_var
2967 case $ac_val in
2968 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2969 esac
2970 $as_echo "$ac_var='\''$ac_val'\''"
2971 done | sort
2972 echo
2973
2974 if test -n "$ac_subst_files"; then
2975 $as_echo "## ------------------- ##
2976 ## File substitutions. ##
2977 ## ------------------- ##"
2978 echo
2979 for ac_var in $ac_subst_files
2980 do
2981 eval ac_val=\$$ac_var
2982 case $ac_val in
2983 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2984 esac
2985 $as_echo "$ac_var='\''$ac_val'\''"
2986 done | sort
2987 echo
2988 fi
2989
2990 if test -s confdefs.h; then
2991 $as_echo "## ----------- ##
2992 ## confdefs.h. ##
2993 ## ----------- ##"
2994 echo
2995 cat confdefs.h
2996 echo
2997 fi
2998 test "$ac_signal" != 0 &&
2999 $as_echo "$as_me: caught signal $ac_signal"
3000 $as_echo "$as_me: exit $exit_status"
3001 } >&5
3002 rm -f core *.core core.conftest.* &&
3003 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3004 exit $exit_status
3005 ' 0
3006 for ac_signal in 1 2 13 15; do
3007 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3008 done
3009 ac_signal=0
3010
3011 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3012 rm -f -r conftest* confdefs.h
3013
3014 $as_echo "/* confdefs.h */" > confdefs.h
3015
3016 # Predefined preprocessor variables.
3017
3018 cat >>confdefs.h <<_ACEOF
3019 #define PACKAGE_NAME "$PACKAGE_NAME"
3020 _ACEOF
3021
3022 cat >>confdefs.h <<_ACEOF
3023 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3024 _ACEOF
3025
3026 cat >>confdefs.h <<_ACEOF
3027 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3028 _ACEOF
3029
3030 cat >>confdefs.h <<_ACEOF
3031 #define PACKAGE_STRING "$PACKAGE_STRING"
3032 _ACEOF
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3036 _ACEOF
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE_URL "$PACKAGE_URL"
3040 _ACEOF
3041
3042
3043 # Let the site file select an alternate cache file if it wants to.
3044 # Prefer an explicitly selected file to automatically selected ones.
3045 ac_site_file1=NONE
3046 ac_site_file2=NONE
3047 if test -n "$CONFIG_SITE"; then
3048 # We do not want a PATH search for config.site.
3049 case $CONFIG_SITE in #((
3050 -*) ac_site_file1=./$CONFIG_SITE;;
3051 */*) ac_site_file1=$CONFIG_SITE;;
3052 *) ac_site_file1=./$CONFIG_SITE;;
3053 esac
3054 elif test "x$prefix" != xNONE; then
3055 ac_site_file1=$prefix/share/config.site
3056 ac_site_file2=$prefix/etc/config.site
3057 else
3058 ac_site_file1=$ac_default_prefix/share/config.site
3059 ac_site_file2=$ac_default_prefix/etc/config.site
3060 fi
3061 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3062 do
3063 test "x$ac_site_file" = xNONE && continue
3064 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3066 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3067 sed 's/^/| /' "$ac_site_file" >&5
3068 . "$ac_site_file" \
3069 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "failed to load site script $ac_site_file
3072 See \`config.log' for more details" "$LINENO" 5; }
3073 fi
3074 done
3075
3076 if test -r "$cache_file"; then
3077 # Some versions of bash will fail to source /dev/null (special files
3078 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3079 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3081 $as_echo "$as_me: loading cache $cache_file" >&6;}
3082 case $cache_file in
3083 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3084 *) . "./$cache_file";;
3085 esac
3086 fi
3087 else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3089 $as_echo "$as_me: creating cache $cache_file" >&6;}
3090 >$cache_file
3091 fi
3092
3093 gt_needs="$gt_needs "
3094 gl_getopt_required=GNU
3095 as_fn_append ac_header_list " getopt.h"
3096 as_fn_append ac_header_list " sys/mman.h"
3097 as_fn_append ac_func_list " mprotect"
3098 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3099 as_fn_append ac_header_list " wchar.h"
3100 as_fn_append ac_header_list " stdint.h"
3101 as_fn_append ac_header_list " sys/socket.h"
3102 as_fn_append ac_header_list " strings.h"
3103 as_fn_append ac_header_list " unistd.h"
3104 as_fn_append ac_func_list " vasnprintf"
3105 as_fn_append ac_header_list " features.h"
3106 as_fn_append ac_func_list " snprintf"
3107 # Check that the precious variables saved in the cache have kept the same
3108 # value.
3109 ac_cache_corrupted=false
3110 for ac_var in $ac_precious_vars; do
3111 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3112 eval ac_new_set=\$ac_env_${ac_var}_set
3113 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3114 eval ac_new_val=\$ac_env_${ac_var}_value
3115 case $ac_old_set,$ac_new_set in
3116 set,)
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3119 ac_cache_corrupted=: ;;
3120 ,set)
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3123 ac_cache_corrupted=: ;;
3124 ,);;
3125 *)
3126 if test "x$ac_old_val" != "x$ac_new_val"; then
3127 # differences in whitespace do not lead to failure.
3128 ac_old_val_w=`echo x $ac_old_val`
3129 ac_new_val_w=`echo x $ac_new_val`
3130 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3133 ac_cache_corrupted=:
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3137 eval $ac_var=\$ac_old_val
3138 fi
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3140 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3142 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3143 fi;;
3144 esac
3145 # Pass precious variables to config.status.
3146 if test "$ac_new_set" = set; then
3147 case $ac_new_val in
3148 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3149 *) ac_arg=$ac_var=$ac_new_val ;;
3150 esac
3151 case " $ac_configure_args " in
3152 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3153 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3154 esac
3155 fi
3156 done
3157 if $ac_cache_corrupted; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3162 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3163 fi
3164 ## -------------------- ##
3165 ## Main body of script. ##
3166 ## -------------------- ##
3167
3168 ac_ext=c
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173
3174
3175 ac_aux_dir=
3176 for ac_dir in autotools "$srcdir"/autotools; do
3177 if test -f "$ac_dir/install-sh"; then
3178 ac_aux_dir=$ac_dir
3179 ac_install_sh="$ac_aux_dir/install-sh -c"
3180 break
3181 elif test -f "$ac_dir/install.sh"; then
3182 ac_aux_dir=$ac_dir
3183 ac_install_sh="$ac_aux_dir/install.sh -c"
3184 break
3185 elif test -f "$ac_dir/shtool"; then
3186 ac_aux_dir=$ac_dir
3187 ac_install_sh="$ac_aux_dir/shtool install -c"
3188 break
3189 fi
3190 done
3191 if test -z "$ac_aux_dir"; then
3192 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
3193 fi
3194
3195 # These three variables are undocumented and unsupported,
3196 # and are intended to be withdrawn in a future Autoconf release.
3197 # They can cause serious problems if a builder's source tree is in a directory
3198 # whose full name contains unusual characters.
3199 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3200 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3201 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3202
3203
3204
3205 am__api_version='1.16'
3206
3207 # Find a good install program. We prefer a C program (faster),
3208 # so one script is as good as another. But avoid the broken or
3209 # incompatible versions:
3210 # SysV /etc/install, /usr/sbin/install
3211 # SunOS /usr/etc/install
3212 # IRIX /sbin/install
3213 # AIX /bin/install
3214 # AmigaOS /C/install, which installs bootblocks on floppy discs
3215 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3216 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3217 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3218 # OS/2's system install, which has a completely different semantic
3219 # ./install, which can be erroneously created by make from ./install.sh.
3220 # Reject install programs that cannot install multiple files.
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3222 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3223 if test -z "$INSTALL"; then
3224 if ${ac_cv_path_install+:} false; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 # Account for people who put trailing slashes in PATH elements.
3233 case $as_dir/ in #((
3234 ./ | .// | /[cC]/* | \
3235 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3236 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3237 /usr/ucb/* ) ;;
3238 *)
3239 # OSF1 and SCO ODT 3.0 have their own names for install.
3240 # Don't use installbsd from OSF since it installs stuff as root
3241 # by default.
3242 for ac_prog in ginstall scoinst install; do
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3245 if test $ac_prog = install &&
3246 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3247 # AIX install. It has an incompatible calling convention.
3248 :
3249 elif test $ac_prog = install &&
3250 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3251 # program-specific install script used by HP pwplus--don't use.
3252 :
3253 else
3254 rm -rf conftest.one conftest.two conftest.dir
3255 echo one > conftest.one
3256 echo two > conftest.two
3257 mkdir conftest.dir
3258 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3259 test -s conftest.one && test -s conftest.two &&
3260 test -s conftest.dir/conftest.one &&
3261 test -s conftest.dir/conftest.two
3262 then
3263 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3264 break 3
3265 fi
3266 fi
3267 fi
3268 done
3269 done
3270 ;;
3271 esac
3272
3273 done
3274 IFS=$as_save_IFS
3275
3276 rm -rf conftest.one conftest.two conftest.dir
3277
3278 fi
3279 if test "${ac_cv_path_install+set}" = set; then
3280 INSTALL=$ac_cv_path_install
3281 else
3282 # As a last resort, use the slow shell script. Don't cache a
3283 # value for INSTALL within a source directory, because that will
3284 # break other packages using the cache if that directory is
3285 # removed, or if the value is a relative name.
3286 INSTALL=$ac_install_sh
3287 fi
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3290 $as_echo "$INSTALL" >&6; }
3291
3292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3293 # It thinks the first close brace ends the variable substitution.
3294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3295
3296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3297
3298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3299
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3301 $as_echo_n "checking whether build environment is sane... " >&6; }
3302 # Reject unsafe characters in $srcdir or the absolute working directory
3303 # name. Accept space and tab only in the latter.
3304 am_lf='
3305 '
3306 case `pwd` in
3307 *[\\\"\#\$\&\'\`$am_lf]*)
3308 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3309 esac
3310 case $srcdir in
3311 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3312 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3313 esac
3314
3315 # Do 'set' in a subshell so we don't clobber the current shell's
3316 # arguments. Must try -L first in case configure is actually a
3317 # symlink; some systems play weird games with the mod time of symlinks
3318 # (eg FreeBSD returns the mod time of the symlink's containing
3319 # directory).
3320 if (
3321 am_has_slept=no
3322 for am_try in 1 2; do
3323 echo "timestamp, slept: $am_has_slept" > conftest.file
3324 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3325 if test "$*" = "X"; then
3326 # -L didn't work.
3327 set X `ls -t "$srcdir/configure" conftest.file`
3328 fi
3329 if test "$*" != "X $srcdir/configure conftest.file" \
3330 && test "$*" != "X conftest.file $srcdir/configure"; then
3331
3332 # If neither matched, then we have a broken ls. This can happen
3333 # if, for instance, CONFIG_SHELL is bash and it inherits a
3334 # broken ls alias from the environment. This has actually
3335 # happened. Such a system could not be considered "sane".
3336 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3337 alias in your environment" "$LINENO" 5
3338 fi
3339 if test "$2" = conftest.file || test $am_try -eq 2; then
3340 break
3341 fi
3342 # Just in case.
3343 sleep 1
3344 am_has_slept=yes
3345 done
3346 test "$2" = conftest.file
3347 )
3348 then
3349 # Ok.
3350 :
3351 else
3352 as_fn_error $? "newly created file is older than distributed files!
3353 Check your system clock" "$LINENO" 5
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3356 $as_echo "yes" >&6; }
3357 # If we didn't sleep, we still need to ensure time stamps of config.status and
3358 # generated files are strictly newer.
3359 am_sleep_pid=
3360 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3361 ( sleep 1 ) &
3362 am_sleep_pid=$!
3363 fi
3364
3365 rm -f conftest.file
3366
3367 test "$program_prefix" != NONE &&
3368 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3369 # Use a double $ so make ignores it.
3370 test "$program_suffix" != NONE &&
3371 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3372 # Double any \ or $.
3373 # By default was `s,x,x', remove it if useless.
3374 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3375 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3376
3377 # Expand $ac_aux_dir to an absolute path.
3378 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3379
3380 if test x"${MISSING+set}" != xset; then
3381 case $am_aux_dir in
3382 *\ * | *\ *)
3383 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3384 *)
3385 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3386 esac
3387 fi
3388 # Use eval to expand $SHELL
3389 if eval "$MISSING --is-lightweight"; then
3390 am_missing_run="$MISSING "
3391 else
3392 am_missing_run=
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3394 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3395 fi
3396
3397 if test x"${install_sh+set}" != xset; then
3398 case $am_aux_dir in
3399 *\ * | *\ *)
3400 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3401 *)
3402 install_sh="\${SHELL} $am_aux_dir/install-sh"
3403 esac
3404 fi
3405
3406 # Installed binaries are usually stripped using 'strip' when the user
3407 # run "make install-strip". However 'strip' might not be the right
3408 # tool to use in cross-compilation environments, therefore Automake
3409 # will honor the 'STRIP' environment variable to overrule this program.
3410 if test "$cross_compiling" != no; then
3411 if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3413 set dummy ${ac_tool_prefix}strip; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if ${ac_cv_prog_STRIP+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 if test -n "$STRIP"; then
3420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433 done
3434 done
3435 IFS=$as_save_IFS
3436
3437 fi
3438 fi
3439 STRIP=$ac_cv_prog_STRIP
3440 if test -n "$STRIP"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3442 $as_echo "$STRIP" >&6; }
3443 else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 fi
3447
3448
3449 fi
3450 if test -z "$ac_cv_prog_STRIP"; then
3451 ac_ct_STRIP=$STRIP
3452 # Extract the first word of "strip", so it can be a program name with args.
3453 set dummy strip; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$ac_ct_STRIP"; then
3460 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469 ac_cv_prog_ac_ct_STRIP="strip"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3480 if test -n "$ac_ct_STRIP"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3482 $as_echo "$ac_ct_STRIP" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488 if test "x$ac_ct_STRIP" = x; then
3489 STRIP=":"
3490 else
3491 case $cross_compiling:$ac_tool_warned in
3492 yes:)
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3495 ac_tool_warned=yes ;;
3496 esac
3497 STRIP=$ac_ct_STRIP
3498 fi
3499 else
3500 STRIP="$ac_cv_prog_STRIP"
3501 fi
3502
3503 fi
3504 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3505
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3507 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3508 if test -z "$MKDIR_P"; then
3509 if ${ac_cv_path_mkdir+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3514 do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_prog in mkdir gmkdir; do
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3520 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3521 'mkdir (GNU coreutils) '* | \
3522 'mkdir (coreutils) '* | \
3523 'mkdir (fileutils) '4.1*)
3524 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3525 break 3;;
3526 esac
3527 done
3528 done
3529 done
3530 IFS=$as_save_IFS
3531
3532 fi
3533
3534 test -d ./--version && rmdir ./--version
3535 if test "${ac_cv_path_mkdir+set}" = set; then
3536 MKDIR_P="$ac_cv_path_mkdir -p"
3537 else
3538 # As a last resort, use the slow shell script. Don't cache a
3539 # value for MKDIR_P within a source directory, because that will
3540 # break other packages using the cache if that directory is
3541 # removed, or if the value is a relative name.
3542 MKDIR_P="$ac_install_sh -d"
3543 fi
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3546 $as_echo "$MKDIR_P" >&6; }
3547
3548 for ac_prog in gawk mawk nawk awk
3549 do
3550 # Extract the first word of "$ac_prog", so it can be a program name with args.
3551 set dummy $ac_prog; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_AWK+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$AWK"; then
3558 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_AWK="$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571 done
3572 done
3573 IFS=$as_save_IFS
3574
3575 fi
3576 fi
3577 AWK=$ac_cv_prog_AWK
3578 if test -n "$AWK"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3580 $as_echo "$AWK" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 fi
3585
3586
3587 test -n "$AWK" && break
3588 done
3589
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3591 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3592 set x ${MAKE-make}
3593 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3594 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 cat >conftest.make <<\_ACEOF
3598 SHELL = /bin/sh
3599 all:
3600 @echo '@@@%%%=$(MAKE)=@@@%%%'
3601 _ACEOF
3602 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3603 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3604 *@@@%%%=?*=@@@%%%*)
3605 eval ac_cv_prog_make_${ac_make}_set=yes;;
3606 *)
3607 eval ac_cv_prog_make_${ac_make}_set=no;;
3608 esac
3609 rm -f conftest.make
3610 fi
3611 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613 $as_echo "yes" >&6; }
3614 SET_MAKE=
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 SET_MAKE="MAKE=${MAKE-make}"
3619 fi
3620
3621 rm -rf .tst 2>/dev/null
3622 mkdir .tst 2>/dev/null
3623 if test -d .tst; then
3624 am__leading_dot=.
3625 else
3626 am__leading_dot=_
3627 fi
3628 rmdir .tst 2>/dev/null
3629
3630 # Check whether --enable-silent-rules was given.
3631 if test "${enable_silent_rules+set}" = set; then :
3632 enableval=$enable_silent_rules;
3633 fi
3634
3635 case $enable_silent_rules in # (((
3636 yes) AM_DEFAULT_VERBOSITY=0;;
3637 no) AM_DEFAULT_VERBOSITY=1;;
3638 *) AM_DEFAULT_VERBOSITY=1;;
3639 esac
3640 am_make=${MAKE-make}
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3642 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3643 if ${am_cv_make_support_nested_variables+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 if $as_echo 'TRUE=$(BAR$(V))
3647 BAR0=false
3648 BAR1=true
3649 V=1
3650 am__doit:
3651 @$(TRUE)
3652 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3653 am_cv_make_support_nested_variables=yes
3654 else
3655 am_cv_make_support_nested_variables=no
3656 fi
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3659 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3660 if test $am_cv_make_support_nested_variables = yes; then
3661 AM_V='$(V)'
3662 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3663 else
3664 AM_V=$AM_DEFAULT_VERBOSITY
3665 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3666 fi
3667 AM_BACKSLASH='\'
3668
3669 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3670 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3671 # is not polluted with repeated "-I."
3672 am__isrc=' -I$(srcdir)'
3673 # test to see if srcdir already configured
3674 if test -f $srcdir/config.status; then
3675 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3676 fi
3677 fi
3678
3679 # test whether we have cygpath
3680 if test -z "$CYGPATH_W"; then
3681 if (cygpath --version) >/dev/null 2>/dev/null; then
3682 CYGPATH_W='cygpath -w'
3683 else
3684 CYGPATH_W=echo
3685 fi
3686 fi
3687
3688
3689 # Define the identity of the package.
3690 PACKAGE='freedink'
3691 VERSION='109.6'
3692
3693
3694 cat >>confdefs.h <<_ACEOF
3695 #define PACKAGE "$PACKAGE"
3696 _ACEOF
3697
3698
3699 cat >>confdefs.h <<_ACEOF
3700 #define VERSION "$VERSION"
3701 _ACEOF
3702
3703 # Some tools Automake needs.
3704
3705 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3706
3707
3708 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3709
3710
3711 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3712
3713
3714 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3715
3716
3717 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3718
3719 # For better backward compatibility. To be removed once Automake 1.9.x
3720 # dies out for good. For more background, see:
3721 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3722 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3723 mkdir_p='$(MKDIR_P)'
3724
3725 # We need awk for the "check" target (and possibly the TAP driver). The
3726 # system "awk" is bad on some platforms.
3727 # Always define AMTAR for backward compatibility. Yes, it's still used
3728 # in the wild :-( We should find a proper way to deprecate it ...
3729 AMTAR='$${TAR-tar}'
3730
3731
3732 # We'll loop over all known methods to create a tar archive until one works.
3733 _am_tools='gnutar pax cpio none'
3734
3735 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3736
3737
3738
3739
3740
3741
3742 # POSIX will say in a future version that running "rm -f" with no argument
3743 # is OK; and we want to be able to make that assumption in our Makefile
3744 # recipes. So use an aggressive probe to check that the usage we want is
3745 # actually supported "in the wild" to an acceptable degree.
3746 # See automake bug#10828.
3747 # To make any issue more visible, cause the running configure to be aborted
3748 # by default if the 'rm' program in use doesn't match our expectations; the
3749 # user can still override this though.
3750 if rm -f && rm -fr && rm -rf; then : OK; else
3751 cat >&2 <<'END'
3752 Oops!
3753
3754 Your 'rm' program seems unable to run without file operands specified
3755 on the command line, even when the '-f' option is present. This is contrary
3756 to the behaviour of most rm programs out there, and not conforming with
3757 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3758
3759 Please tell [email protected] about your system, including the value
3760 of your $PATH and any error possibly output before this message. This
3761 can help us improve future automake versions.
3762
3763 END
3764 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3765 echo 'Configuration will proceed anyway, since you have set the' >&2
3766 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3767 echo >&2
3768 else
3769 cat >&2 <<'END'
3770 Aborting the configuration process, to ensure you take notice of the issue.
3771
3772 You can download and install GNU coreutils to get an 'rm' implementation
3773 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3774
3775 If you want to complete the configuration process using your problematic
3776 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3777 to "yes", and re-run configure.
3778
3779 END
3780 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3781 fi
3782 fi
3783
3784 # Terse output - use V=1 for verbose output
3785 # Check whether --enable-silent-rules was given.
3786 if test "${enable_silent_rules+set}" = set; then :
3787 enableval=$enable_silent_rules;
3788 fi
3789
3790 case $enable_silent_rules in # (((
3791 yes) AM_DEFAULT_VERBOSITY=0;;
3792 no) AM_DEFAULT_VERBOSITY=1;;
3793 *) AM_DEFAULT_VERBOSITY=0;;
3794 esac
3795 am_make=${MAKE-make}
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3797 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3798 if ${am_cv_make_support_nested_variables+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if $as_echo 'TRUE=$(BAR$(V))
3802 BAR0=false
3803 BAR1=true
3804 V=1
3805 am__doit:
3806 @$(TRUE)
3807 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3808 am_cv_make_support_nested_variables=yes
3809 else
3810 am_cv_make_support_nested_variables=no
3811 fi
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3814 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3815 if test $am_cv_make_support_nested_variables = yes; then
3816 AM_V='$(V)'
3817 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3818 else
3819 AM_V=$AM_DEFAULT_VERBOSITY
3820 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3821 fi
3822 AM_BACKSLASH='\'
3823
3824
3825 ac_config_headers="$ac_config_headers config.h"
3826
3827 # Define $host $host_os + distributes config.guess and config.sub
3828 # Make sure we can run config.sub.
3829 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3830 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3831
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3833 $as_echo_n "checking build system type... " >&6; }
3834 if ${ac_cv_build+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 ac_build_alias=$build_alias
3838 test "x$ac_build_alias" = x &&
3839 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3840 test "x$ac_build_alias" = x &&
3841 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3842 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3843 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3844
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3847 $as_echo "$ac_cv_build" >&6; }
3848 case $ac_cv_build in
3849 *-*-*) ;;
3850 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3851 esac
3852 build=$ac_cv_build
3853 ac_save_IFS=$IFS; IFS='-'
3854 set x $ac_cv_build
3855 shift
3856 build_cpu=$1
3857 build_vendor=$2
3858 shift; shift
3859 # Remember, the first character of IFS is used to create $*,
3860 # except with old shells:
3861 build_os=$*
3862 IFS=$ac_save_IFS
3863 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3864
3865
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3867 $as_echo_n "checking host system type... " >&6; }
3868 if ${ac_cv_host+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 if test "x$host_alias" = x; then
3872 ac_cv_host=$ac_cv_build
3873 else
3874 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3875 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3876 fi
3877
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3880 $as_echo "$ac_cv_host" >&6; }
3881 case $ac_cv_host in
3882 *-*-*) ;;
3883 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3884 esac
3885 host=$ac_cv_host
3886 ac_save_IFS=$IFS; IFS='-'
3887 set x $ac_cv_host
3888 shift
3889 host_cpu=$1
3890 host_vendor=$2
3891 shift; shift
3892 # Remember, the first character of IFS is used to create $*,
3893 # except with old shells:
3894 host_os=$*
3895 IFS=$ac_save_IFS
3896 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3897
3898
3899 # Checks for programs.
3900 ac_ext=c
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if ${ac_cv_prog_CC+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 break 2
3926 fi
3927 done
3928 done
3929 IFS=$as_save_IFS
3930
3931 fi
3932 fi
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 $as_echo "$CC" >&6; }
3937 else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 fi
3941
3942
3943 fi
3944 if test -z "$ac_cv_prog_CC"; then
3945 ac_ct_CC=$CC
3946 # Extract the first word of "gcc", so it can be a program name with args.
3947 set dummy gcc; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$ac_ct_CC"; then
3954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_ac_ct_CC="gcc"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967 done
3968 done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3974 if test -n "$ac_ct_CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3976 $as_echo "$ac_ct_CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982 if test "x$ac_ct_CC" = x; then
3983 CC=""
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986 yes:)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989 ac_tool_warned=yes ;;
3990 esac
3991 CC=$ac_ct_CC
3992 fi
3993 else
3994 CC="$ac_cv_prog_CC"
3995 fi
3996
3997 if test -z "$CC"; then
3998 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4000 set dummy ${ac_tool_prefix}cc; ac_word=$2
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if ${ac_cv_prog_CC+:} false; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 if test -n "$CC"; then
4007 ac_cv_prog_CC="$CC" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_CC="${ac_tool_prefix}cc"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020 done
4021 done
4022 IFS=$as_save_IFS
4023
4024 fi
4025 fi
4026 CC=$ac_cv_prog_CC
4027 if test -n "$CC"; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029 $as_echo "$CC" >&6; }
4030 else
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 $as_echo "no" >&6; }
4033 fi
4034
4035
4036 fi
4037 fi
4038 if test -z "$CC"; then
4039 # Extract the first word of "cc", so it can be a program name with args.
4040 set dummy cc; ac_word=$2
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 $as_echo_n "checking for $ac_word... " >&6; }
4043 if ${ac_cv_prog_CC+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4048 else
4049 ac_prog_rejected=no
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4058 ac_prog_rejected=yes
4059 continue
4060 fi
4061 ac_cv_prog_CC="cc"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4064 fi
4065 done
4066 done
4067 IFS=$as_save_IFS
4068
4069 if test $ac_prog_rejected = yes; then
4070 # We found a bogon in the path, so make sure we never use it.
4071 set dummy $ac_cv_prog_CC
4072 shift
4073 if test $# != 0; then
4074 # We chose a different compiler from the bogus one.
4075 # However, it has the same basename, so the bogon will be chosen
4076 # first if we set CC to just the basename; use the full file name.
4077 shift
4078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4079 fi
4080 fi
4081 fi
4082 fi
4083 CC=$ac_cv_prog_CC
4084 if test -n "$CC"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086 $as_echo "$CC" >&6; }
4087 else
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4090 fi
4091
4092
4093 fi
4094 if test -z "$CC"; then
4095 if test -n "$ac_tool_prefix"; then
4096 for ac_prog in cl.exe
4097 do
4098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101 $as_echo_n "checking for $ac_word... " >&6; }
4102 if ${ac_cv_prog_CC+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4118 fi
4119 done
4120 done
4121 IFS=$as_save_IFS
4122
4123 fi
4124 fi
4125 CC=$ac_cv_prog_CC
4126 if test -n "$CC"; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4128 $as_echo "$CC" >&6; }
4129 else
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4132 fi
4133
4134
4135 test -n "$CC" && break
4136 done
4137 fi
4138 if test -z "$CC"; then
4139 ac_ct_CC=$CC
4140 for ac_prog in cl.exe
4141 do
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143 set dummy $ac_prog; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if test -n "$ac_ct_CC"; then
4150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_ac_ct_CC="$ac_prog"
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4162 fi
4163 done
4164 done
4165 IFS=$as_save_IFS
4166
4167 fi
4168 fi
4169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4170 if test -n "$ac_ct_CC"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4172 $as_echo "$ac_ct_CC" >&6; }
4173 else
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4176 fi
4177
4178
4179 test -n "$ac_ct_CC" && break
4180 done
4181
4182 if test "x$ac_ct_CC" = x; then
4183 CC=""
4184 else
4185 case $cross_compiling:$ac_tool_warned in
4186 yes:)
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4189 ac_tool_warned=yes ;;
4190 esac
4191 CC=$ac_ct_CC
4192 fi
4193 fi
4194
4195 fi
4196
4197
4198 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "no acceptable C compiler found in \$PATH
4201 See \`config.log' for more details" "$LINENO" 5; }
4202
4203 # Provide some information about the compiler.
4204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4205 set X $ac_compile
4206 ac_compiler=$2
4207 for ac_option in --version -v -V -qversion; do
4208 { { ac_try="$ac_compiler $ac_option >&5"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4216 ac_status=$?
4217 if test -s conftest.err; then
4218 sed '10a\
4219 ... rest of stderr output deleted ...
4220 10q' conftest.err >conftest.er1
4221 cat conftest.er1 >&5
4222 fi
4223 rm -f conftest.er1 conftest.err
4224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225 test $ac_status = 0; }
4226 done
4227
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230
4231 int
4232 main ()
4233 {
4234
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 ac_clean_files_save=$ac_clean_files
4240 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4241 # Try to create an executable without -o first, disregard a.out.
4242 # It will help us diagnose broken compilers, and finding out an intuition
4243 # of exeext.
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4245 $as_echo_n "checking whether the C compiler works... " >&6; }
4246 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4247
4248 # The possible output files:
4249 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4250
4251 ac_rmfiles=
4252 for ac_file in $ac_files
4253 do
4254 case $ac_file in
4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4256 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4257 esac
4258 done
4259 rm -f $ac_rmfiles
4260
4261 if { { ac_try="$ac_link_default"
4262 case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 $as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_link_default") 2>&5
4269 ac_status=$?
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }; then :
4272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4273 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4274 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4275 # so that the user can short-circuit this test for compilers unknown to
4276 # Autoconf.
4277 for ac_file in $ac_files ''
4278 do
4279 test -f "$ac_file" || continue
4280 case $ac_file in
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4282 ;;
4283 [ab].out )
4284 # We found the default executable, but exeext='' is most
4285 # certainly right.
4286 break;;
4287 *.* )
4288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4289 then :; else
4290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4291 fi
4292 # We set ac_cv_exeext here because the later test for it is not
4293 # safe: cross compilers may not add the suffix if given an `-o'
4294 # argument, so we may need to know it at that point already.
4295 # Even if this section looks crufty: it has the advantage of
4296 # actually working.
4297 break;;
4298 * )
4299 break;;
4300 esac
4301 done
4302 test "$ac_cv_exeext" = no && ac_cv_exeext=
4303
4304 else
4305 ac_file=''
4306 fi
4307 if test -z "$ac_file"; then :
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4310 $as_echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4312
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error 77 "C compiler cannot create executables
4316 See \`config.log' for more details" "$LINENO" 5; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319 $as_echo "yes" >&6; }
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4322 $as_echo_n "checking for C compiler default output file name... " >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4324 $as_echo "$ac_file" >&6; }
4325 ac_exeext=$ac_cv_exeext
4326
4327 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4328 ac_clean_files=$ac_clean_files_save
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4330 $as_echo_n "checking for suffix of executables... " >&6; }
4331 if { { ac_try="$ac_link"
4332 case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335 esac
4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_link") 2>&5
4339 ac_status=$?
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; }; then :
4342 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4343 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4344 # work properly (i.e., refer to `conftest.exe'), while it won't with
4345 # `rm'.
4346 for ac_file in conftest.exe conftest conftest.*; do
4347 test -f "$ac_file" || continue
4348 case $ac_file in
4349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4350 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4351 break;;
4352 * ) break;;
4353 esac
4354 done
4355 else
4356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4358 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4359 See \`config.log' for more details" "$LINENO" 5; }
4360 fi
4361 rm -f conftest conftest$ac_cv_exeext
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4363 $as_echo "$ac_cv_exeext" >&6; }
4364
4365 rm -f conftest.$ac_ext
4366 EXEEXT=$ac_cv_exeext
4367 ac_exeext=$EXEEXT
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370 #include <stdio.h>
4371 int
4372 main ()
4373 {
4374 FILE *f = fopen ("conftest.out", "w");
4375 return ferror (f) || fclose (f) != 0;
4376
4377 ;
4378 return 0;
4379 }
4380 _ACEOF
4381 ac_clean_files="$ac_clean_files conftest.out"
4382 # Check that the compiler produces executables we can run. If not, either
4383 # the compiler is broken, or we cross compile.
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4385 $as_echo_n "checking whether we are cross compiling... " >&6; }
4386 if test "$cross_compiling" != yes; then
4387 { { ac_try="$ac_link"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4393 $as_echo "$ac_try_echo"; } >&5
4394 (eval "$ac_link") 2>&5
4395 ac_status=$?
4396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397 test $ac_status = 0; }
4398 if { ac_try='./conftest$ac_cv_exeext'
4399 { { case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4402 esac
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405 (eval "$ac_try") 2>&5
4406 ac_status=$?
4407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; }; }; then
4409 cross_compiling=no
4410 else
4411 if test "$cross_compiling" = maybe; then
4412 cross_compiling=yes
4413 else
4414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 as_fn_error $? "cannot run C compiled programs.
4417 If you meant to cross compile, use \`--host'.
4418 See \`config.log' for more details" "$LINENO" 5; }
4419 fi
4420 fi
4421 fi
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4423 $as_echo "$cross_compiling" >&6; }
4424
4425 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4426 ac_clean_files=$ac_clean_files_save
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4428 $as_echo_n "checking for suffix of object files... " >&6; }
4429 if ${ac_cv_objext+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434
4435 int
4436 main ()
4437 {
4438
4439 ;
4440 return 0;
4441 }
4442 _ACEOF
4443 rm -f conftest.o conftest.obj
4444 if { { ac_try="$ac_compile"
4445 case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451 (eval "$ac_compile") 2>&5
4452 ac_status=$?
4453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454 test $ac_status = 0; }; then :
4455 for ac_file in conftest.o conftest.obj conftest.*; do
4456 test -f "$ac_file" || continue;
4457 case $ac_file in
4458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4460 break;;
4461 esac
4462 done
4463 else
4464 $as_echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error $? "cannot compute suffix of object files: cannot compile
4470 See \`config.log' for more details" "$LINENO" 5; }
4471 fi
4472 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4473 fi
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4475 $as_echo "$ac_cv_objext" >&6; }
4476 OBJEXT=$ac_cv_objext
4477 ac_objext=$OBJEXT
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4479 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4480 if ${ac_cv_c_compiler_gnu+:} false; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485
4486 int
4487 main ()
4488 {
4489 #ifndef __GNUC__
4490 choke me
4491 #endif
4492
4493 ;
4494 return 0;
4495 }
4496 _ACEOF
4497 if ac_fn_c_try_compile "$LINENO"; then :
4498 ac_compiler_gnu=yes
4499 else
4500 ac_compiler_gnu=no
4501 fi
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4504
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4507 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4508 if test $ac_compiler_gnu = yes; then
4509 GCC=yes
4510 else
4511 GCC=
4512 fi
4513 ac_test_CFLAGS=${CFLAGS+set}
4514 ac_save_CFLAGS=$CFLAGS
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4516 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4517 if ${ac_cv_prog_cc_g+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 ac_save_c_werror_flag=$ac_c_werror_flag
4521 ac_c_werror_flag=yes
4522 ac_cv_prog_cc_g=no
4523 CFLAGS="-g"
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 int
4528 main ()
4529 {
4530
4531 ;
4532 return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_c_try_compile "$LINENO"; then :
4536 ac_cv_prog_cc_g=yes
4537 else
4538 CFLAGS=""
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541
4542 int
4543 main ()
4544 {
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 if ac_fn_c_try_compile "$LINENO"; then :
4551
4552 else
4553 ac_c_werror_flag=$ac_save_c_werror_flag
4554 CFLAGS="-g"
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557
4558 int
4559 main ()
4560 {
4561
4562 ;
4563 return 0;
4564 }
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 ac_cv_prog_cc_g=yes
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_c_werror_flag=$ac_save_c_werror_flag
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4577 $as_echo "$ac_cv_prog_cc_g" >&6; }
4578 if test "$ac_test_CFLAGS" = set; then
4579 CFLAGS=$ac_save_CFLAGS
4580 elif test $ac_cv_prog_cc_g = yes; then
4581 if test "$GCC" = yes; then
4582 CFLAGS="-g -O2"
4583 else
4584 CFLAGS="-g"
4585 fi
4586 else
4587 if test "$GCC" = yes; then
4588 CFLAGS="-O2"
4589 else
4590 CFLAGS=
4591 fi
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4595 if ${ac_cv_prog_cc_c89+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 ac_cv_prog_cc_c89=no
4599 ac_save_CC=$CC
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include <stdarg.h>
4603 #include <stdio.h>
4604 struct stat;
4605 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4606 struct buf { int x; };
4607 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4608 static char *e (p, i)
4609 char **p;
4610 int i;
4611 {
4612 return p[i];
4613 }
4614 static char *f (char * (*g) (char **, int), char **p, ...)
4615 {
4616 char *s;
4617 va_list v;
4618 va_start (v,p);
4619 s = g (p, va_arg (v,int));
4620 va_end (v);
4621 return s;
4622 }
4623
4624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4625 function prototypes and stuff, but not '\xHH' hex character constants.
4626 These don't provoke an error unfortunately, instead are silently treated
4627 as 'x'. The following induces an error, until -std is added to get
4628 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4629 array size at least. It's necessary to write '\x00'==0 to get something
4630 that's true only with -std. */
4631 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4632
4633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4634 inside strings and character constants. */
4635 #define FOO(x) 'x'
4636 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4637
4638 int test (int i, double x);
4639 struct s1 {int (*f) (int a);};
4640 struct s2 {int (*f) (double a);};
4641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4642 int argc;
4643 char **argv;
4644 int
4645 main ()
4646 {
4647 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4648 ;
4649 return 0;
4650 }
4651 _ACEOF
4652 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4653 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4654 do
4655 CC="$ac_save_CC $ac_arg"
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_cv_prog_cc_c89=$ac_arg
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext
4660 test "x$ac_cv_prog_cc_c89" != "xno" && break
4661 done
4662 rm -f conftest.$ac_ext
4663 CC=$ac_save_CC
4664
4665 fi
4666 # AC_CACHE_VAL
4667 case "x$ac_cv_prog_cc_c89" in
4668 x)
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4670 $as_echo "none needed" >&6; } ;;
4671 xno)
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4673 $as_echo "unsupported" >&6; } ;;
4674 *)
4675 CC="$CC $ac_cv_prog_cc_c89"
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4677 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4678 esac
4679 if test "x$ac_cv_prog_cc_c89" != xno; then :
4680
4681 fi
4682
4683 ac_ext=c
4684 ac_cpp='$CPP $CPPFLAGS'
4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689 ac_ext=c
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4695 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4696 if ${am_cv_prog_cc_c_o+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701
4702 int
4703 main ()
4704 {
4705
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 # Make sure it works both with $CC and with simple cc.
4711 # Following AC_PROG_CC_C_O, we do the test twice because some
4712 # compilers refuse to overwrite an existing .o file with -o,
4713 # though they will create one.
4714 am_cv_prog_cc_c_o=yes
4715 for am_i in 1 2; do
4716 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4717 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } \
4721 && test -f conftest2.$ac_objext; then
4722 : OK
4723 else
4724 am_cv_prog_cc_c_o=no
4725 break
4726 fi
4727 done
4728 rm -f core conftest*
4729 unset am_i
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4732 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4733 if test "$am_cv_prog_cc_c_o" != yes; then
4734 # Losing compiler, so override with the script.
4735 # FIXME: It is wrong to rewrite CC.
4736 # But if we don't then we get into trouble of one sort or another.
4737 # A longer-term fix would be to have automake use am__CC in this case,
4738 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4739 CC="$am_aux_dir/compile $CC"
4740 fi
4741 ac_ext=c
4742 ac_cpp='$CPP $CPPFLAGS'
4743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4746
4747 DEPDIR="${am__leading_dot}deps"
4748
4749 ac_config_commands="$ac_config_commands depfiles"
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4752 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4753 cat > confinc.mk << 'END'
4754 am__doit:
4755 @echo this is the am__doit target >confinc.out
4756 .PHONY: am__doit
4757 END
4758 am__include="#"
4759 am__quote=
4760 # BSD make does it like this.
4761 echo '.include "confinc.mk" # ignored' > confmf.BSD
4762 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4763 echo 'include confinc.mk # ignored' > confmf.GNU
4764 _am_result=no
4765 for s in GNU BSD; do
4766 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4767 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }
4771 case $?:`cat confinc.out 2>/dev/null` in #(
4772 '0:this is the am__doit target') :
4773 case $s in #(
4774 BSD) :
4775 am__include='.include' am__quote='"' ;; #(
4776 *) :
4777 am__include='include' am__quote='' ;;
4778 esac ;; #(
4779 *) :
4780 ;;
4781 esac
4782 if test "$am__include" != "#"; then
4783 _am_result="yes ($s style)"
4784 break
4785 fi
4786 done
4787 rm -f confinc.* confmf.*
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4789 $as_echo "${_am_result}" >&6; }
4790
4791 # Check whether --enable-dependency-tracking was given.
4792 if test "${enable_dependency_tracking+set}" = set; then :
4793 enableval=$enable_dependency_tracking;
4794 fi
4795
4796 if test "x$enable_dependency_tracking" != xno; then
4797 am_depcomp="$ac_aux_dir/depcomp"
4798 AMDEPBACKSLASH='\'
4799 am__nodep='_no'
4800 fi
4801 if test "x$enable_dependency_tracking" != xno; then
4802 AMDEP_TRUE=
4803 AMDEP_FALSE='#'
4804 else
4805 AMDEP_TRUE='#'
4806 AMDEP_FALSE=
4807 fi
4808
4809
4810
4811 depcc="$CC" am_compiler_list=
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4814 $as_echo_n "checking dependency style of $depcc... " >&6; }
4815 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4819 # We make a subdir and do the tests there. Otherwise we can end up
4820 # making bogus files that we don't know about and never remove. For
4821 # instance it was reported that on HP-UX the gcc test will end up
4822 # making a dummy file named 'D' -- because '-MD' means "put the output
4823 # in D".
4824 rm -rf conftest.dir
4825 mkdir conftest.dir
4826 # Copy depcomp to subdir because otherwise we won't find it if we're
4827 # using a relative directory.
4828 cp "$am_depcomp" conftest.dir
4829 cd conftest.dir
4830 # We will build objects and dependencies in a subdirectory because
4831 # it helps to detect inapplicable dependency modes. For instance
4832 # both Tru64's cc and ICC support -MD to output dependencies as a
4833 # side effect of compilation, but ICC will put the dependencies in
4834 # the current directory while Tru64 will put them in the object
4835 # directory.
4836 mkdir sub
4837
4838 am_cv_CC_dependencies_compiler_type=none
4839 if test "$am_compiler_list" = ""; then
4840 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4841 fi
4842 am__universal=false
4843 case " $depcc " in #(
4844 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4845 esac
4846
4847 for depmode in $am_compiler_list; do
4848 # Setup a source with many dependencies, because some compilers
4849 # like to wrap large dependency lists on column 80 (with \), and
4850 # we should not choose a depcomp mode which is confused by this.
4851 #
4852 # We need to recreate these files for each test, as the compiler may
4853 # overwrite some of them when testing with obscure command lines.
4854 # This happens at least with the AIX C compiler.
4855 : > sub/conftest.c
4856 for i in 1 2 3 4 5 6; do
4857 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4858 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4859 # Solaris 10 /bin/sh.
4860 echo '/* dummy */' > sub/conftst$i.h
4861 done
4862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4863
4864 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4865 # mode. It turns out that the SunPro C++ compiler does not properly
4866 # handle '-M -o', and we need to detect this. Also, some Intel
4867 # versions had trouble with output in subdirs.
4868 am__obj=sub/conftest.${OBJEXT-o}
4869 am__minus_obj="-o $am__obj"
4870 case $depmode in
4871 gcc)
4872 # This depmode causes a compiler race in universal mode.
4873 test "$am__universal" = false || continue
4874 ;;
4875 nosideeffect)
4876 # After this tag, mechanisms are not by side-effect, so they'll
4877 # only be used when explicitly requested.
4878 if test "x$enable_dependency_tracking" = xyes; then
4879 continue
4880 else
4881 break
4882 fi
4883 ;;
4884 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4885 # This compiler won't grok '-c -o', but also, the minuso test has
4886 # not run yet. These depmodes are late enough in the game, and
4887 # so weak that their functioning should not be impacted.
4888 am__obj=conftest.${OBJEXT-o}
4889 am__minus_obj=
4890 ;;
4891 none) break ;;
4892 esac
4893 if depmode=$depmode \
4894 source=sub/conftest.c object=$am__obj \
4895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4896 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4897 >/dev/null 2>conftest.err &&
4898 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4899 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4900 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4901 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4902 # icc doesn't choke on unknown options, it will just issue warnings
4903 # or remarks (even with -Werror). So we grep stderr for any message
4904 # that says an option was ignored or not supported.
4905 # When given -MP, icc 7.0 and 7.1 complain thusly:
4906 # icc: Command line warning: ignoring option '-M'; no argument required
4907 # The diagnosis changed in icc 8.0:
4908 # icc: Command line remark: option '-MP' not supported
4909 if (grep 'ignoring option' conftest.err ||
4910 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4911 am_cv_CC_dependencies_compiler_type=$depmode
4912 break
4913 fi
4914 fi
4915 done
4916
4917 cd ..
4918 rm -rf conftest.dir
4919 else
4920 am_cv_CC_dependencies_compiler_type=none
4921 fi
4922
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4925 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4926 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4927
4928 if
4929 test "x$enable_dependency_tracking" != xno \
4930 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4931 am__fastdepCC_TRUE=
4932 am__fastdepCC_FALSE='#'
4933 else
4934 am__fastdepCC_TRUE='#'
4935 am__fastdepCC_FALSE=
4936 fi
4937
4938
4939 ac_ext=cpp
4940 ac_cpp='$CXXCPP $CPPFLAGS'
4941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4944 if test -z "$CXX"; then
4945 if test -n "$CCC"; then
4946 CXX=$CCC
4947 else
4948 if test -n "$ac_tool_prefix"; then
4949 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4950 do
4951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_CXX+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$CXX"; then
4959 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972 done
4973 done
4974 IFS=$as_save_IFS
4975
4976 fi
4977 fi
4978 CXX=$ac_cv_prog_CXX
4979 if test -n "$CXX"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4981 $as_echo "$CXX" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988 test -n "$CXX" && break
4989 done
4990 fi
4991 if test -z "$CXX"; then
4992 ac_ct_CXX=$CXX
4993 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4994 do
4995 # Extract the first word of "$ac_prog", so it can be a program name with args.
4996 set dummy $ac_prog; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$ac_ct_CXX"; then
5003 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_prog_ac_ct_CXX="$ac_prog"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5015 fi
5016 done
5017 done
5018 IFS=$as_save_IFS
5019
5020 fi
5021 fi
5022 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5023 if test -n "$ac_ct_CXX"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5025 $as_echo "$ac_ct_CXX" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 fi
5030
5031
5032 test -n "$ac_ct_CXX" && break
5033 done
5034
5035 if test "x$ac_ct_CXX" = x; then
5036 CXX="g++"
5037 else
5038 case $cross_compiling:$ac_tool_warned in
5039 yes:)
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5042 ac_tool_warned=yes ;;
5043 esac
5044 CXX=$ac_ct_CXX
5045 fi
5046 fi
5047
5048 fi
5049 fi
5050 # Provide some information about the compiler.
5051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5052 set X $ac_compile
5053 ac_compiler=$2
5054 for ac_option in --version -v -V -qversion; do
5055 { { ac_try="$ac_compiler $ac_option >&5"
5056 case "(($ac_try" in
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5059 esac
5060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5061 $as_echo "$ac_try_echo"; } >&5
5062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5063 ac_status=$?
5064 if test -s conftest.err; then
5065 sed '10a\
5066 ... rest of stderr output deleted ...
5067 10q' conftest.err >conftest.er1
5068 cat conftest.er1 >&5
5069 fi
5070 rm -f conftest.er1 conftest.err
5071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5072 test $ac_status = 0; }
5073 done
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5076 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5077 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5082
5083 int
5084 main ()
5085 {
5086 #ifndef __GNUC__
5087 choke me
5088 #endif
5089
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 if ac_fn_cxx_try_compile "$LINENO"; then :
5095 ac_compiler_gnu=yes
5096 else
5097 ac_compiler_gnu=no
5098 fi
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5101
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5104 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5105 if test $ac_compiler_gnu = yes; then
5106 GXX=yes
5107 else
5108 GXX=
5109 fi
5110 ac_test_CXXFLAGS=${CXXFLAGS+set}
5111 ac_save_CXXFLAGS=$CXXFLAGS
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5113 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5114 if ${ac_cv_prog_cxx_g+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5118 ac_cxx_werror_flag=yes
5119 ac_cv_prog_cxx_g=no
5120 CXXFLAGS="-g"
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123
5124 int
5125 main ()
5126 {
5127
5128 ;
5129 return 0;
5130 }
5131 _ACEOF
5132 if ac_fn_cxx_try_compile "$LINENO"; then :
5133 ac_cv_prog_cxx_g=yes
5134 else
5135 CXXFLAGS=""
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138
5139 int
5140 main ()
5141 {
5142
5143 ;
5144 return 0;
5145 }
5146 _ACEOF
5147 if ac_fn_cxx_try_compile "$LINENO"; then :
5148
5149 else
5150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5151 CXXFLAGS="-g"
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154
5155 int
5156 main ()
5157 {
5158
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 if ac_fn_cxx_try_compile "$LINENO"; then :
5164 ac_cv_prog_cxx_g=yes
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 fi
5168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5174 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5175 if test "$ac_test_CXXFLAGS" = set; then
5176 CXXFLAGS=$ac_save_CXXFLAGS
5177 elif test $ac_cv_prog_cxx_g = yes; then
5178 if test "$GXX" = yes; then
5179 CXXFLAGS="-g -O2"
5180 else
5181 CXXFLAGS="-g"
5182 fi
5183 else
5184 if test "$GXX" = yes; then
5185 CXXFLAGS="-O2"
5186 else
5187 CXXFLAGS=
5188 fi
5189 fi
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195
5196 depcc="$CXX" am_compiler_list=
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5199 $as_echo_n "checking dependency style of $depcc... " >&6; }
5200 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5204 # We make a subdir and do the tests there. Otherwise we can end up
5205 # making bogus files that we don't know about and never remove. For
5206 # instance it was reported that on HP-UX the gcc test will end up
5207 # making a dummy file named 'D' -- because '-MD' means "put the output
5208 # in D".
5209 rm -rf conftest.dir
5210 mkdir conftest.dir
5211 # Copy depcomp to subdir because otherwise we won't find it if we're
5212 # using a relative directory.
5213 cp "$am_depcomp" conftest.dir
5214 cd conftest.dir
5215 # We will build objects and dependencies in a subdirectory because
5216 # it helps to detect inapplicable dependency modes. For instance
5217 # both Tru64's cc and ICC support -MD to output dependencies as a
5218 # side effect of compilation, but ICC will put the dependencies in
5219 # the current directory while Tru64 will put them in the object
5220 # directory.
5221 mkdir sub
5222
5223 am_cv_CXX_dependencies_compiler_type=none
5224 if test "$am_compiler_list" = ""; then
5225 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5226 fi
5227 am__universal=false
5228 case " $depcc " in #(
5229 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5230 esac
5231
5232 for depmode in $am_compiler_list; do
5233 # Setup a source with many dependencies, because some compilers
5234 # like to wrap large dependency lists on column 80 (with \), and
5235 # we should not choose a depcomp mode which is confused by this.
5236 #
5237 # We need to recreate these files for each test, as the compiler may
5238 # overwrite some of them when testing with obscure command lines.
5239 # This happens at least with the AIX C compiler.
5240 : > sub/conftest.c
5241 for i in 1 2 3 4 5 6; do
5242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5243 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5244 # Solaris 10 /bin/sh.
5245 echo '/* dummy */' > sub/conftst$i.h
5246 done
5247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5248
5249 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5250 # mode. It turns out that the SunPro C++ compiler does not properly
5251 # handle '-M -o', and we need to detect this. Also, some Intel
5252 # versions had trouble with output in subdirs.
5253 am__obj=sub/conftest.${OBJEXT-o}
5254 am__minus_obj="-o $am__obj"
5255 case $depmode in
5256 gcc)
5257 # This depmode causes a compiler race in universal mode.
5258 test "$am__universal" = false || continue
5259 ;;
5260 nosideeffect)
5261 # After this tag, mechanisms are not by side-effect, so they'll
5262 # only be used when explicitly requested.
5263 if test "x$enable_dependency_tracking" = xyes; then
5264 continue
5265 else
5266 break
5267 fi
5268 ;;
5269 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5270 # This compiler won't grok '-c -o', but also, the minuso test has
5271 # not run yet. These depmodes are late enough in the game, and
5272 # so weak that their functioning should not be impacted.
5273 am__obj=conftest.${OBJEXT-o}
5274 am__minus_obj=
5275 ;;
5276 none) break ;;
5277 esac
5278 if depmode=$depmode \
5279 source=sub/conftest.c object=$am__obj \
5280 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5281 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5282 >/dev/null 2>conftest.err &&
5283 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5284 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5285 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5286 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5287 # icc doesn't choke on unknown options, it will just issue warnings
5288 # or remarks (even with -Werror). So we grep stderr for any message
5289 # that says an option was ignored or not supported.
5290 # When given -MP, icc 7.0 and 7.1 complain thusly:
5291 # icc: Command line warning: ignoring option '-M'; no argument required
5292 # The diagnosis changed in icc 8.0:
5293 # icc: Command line remark: option '-MP' not supported
5294 if (grep 'ignoring option' conftest.err ||
5295 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5296 am_cv_CXX_dependencies_compiler_type=$depmode
5297 break
5298 fi
5299 fi
5300 done
5301
5302 cd ..
5303 rm -rf conftest.dir
5304 else
5305 am_cv_CXX_dependencies_compiler_type=none
5306 fi
5307
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5310 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5311 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5312
5313 if
5314 test "x$enable_dependency_tracking" != xno \
5315 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5316 am__fastdepCXX_TRUE=
5317 am__fastdepCXX_FALSE='#'
5318 else
5319 am__fastdepCXX_TRUE='#'
5320 am__fastdepCXX_FALSE=
5321 fi
5322
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5325 $as_echo_n "checking whether ln -s works... " >&6; }
5326 LN_S=$as_ln_s
5327 if test "$LN_S" = "ln -s"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5329 $as_echo "yes" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5332 $as_echo "no, using $LN_S" >&6; }
5333 fi
5334
5335
5336
5337
5338 # Gnulib - configuration in gnulib/m4/gnulib-cache.m4
5339 # Gnulib prefix detected from Makefile.am:ACLOCAL_AMFLAGS
5340
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5347 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5348 # On Suns, sometimes $CPP names a directory.
5349 if test -n "$CPP" && test -d "$CPP"; then
5350 CPP=
5351 fi
5352 if test -z "$CPP"; then
5353 if ${ac_cv_prog_CPP+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 # Double quotes because CPP needs to be expanded
5357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5358 do
5359 ac_preproc_ok=false
5360 for ac_c_preproc_warn_flag in '' yes
5361 do
5362 # Use a header file that comes with gcc, so configuring glibc
5363 # with a fresh cross-compiler works.
5364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365 # <limits.h> exists even on freestanding compilers.
5366 # On the NeXT, cc -E runs the code through the compiler's parser,
5367 # not just through cpp. "Syntax error" is here to catch this case.
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 #ifdef __STDC__
5371 # include <limits.h>
5372 #else
5373 # include <assert.h>
5374 #endif
5375 Syntax error
5376 _ACEOF
5377 if ac_fn_c_try_cpp "$LINENO"; then :
5378
5379 else
5380 # Broken: fails on valid input.
5381 continue
5382 fi
5383 rm -f conftest.err conftest.i conftest.$ac_ext
5384
5385 # OK, works on sane cases. Now check whether nonexistent headers
5386 # can be detected and how.
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #include <ac_nonexistent.h>
5390 _ACEOF
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5392 # Broken: success on invalid input.
5393 continue
5394 else
5395 # Passes both tests.
5396 ac_preproc_ok=:
5397 break
5398 fi
5399 rm -f conftest.err conftest.i conftest.$ac_ext
5400
5401 done
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.i conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then :
5405 break
5406 fi
5407
5408 done
5409 ac_cv_prog_CPP=$CPP
5410
5411 fi
5412 CPP=$ac_cv_prog_CPP
5413 else
5414 ac_cv_prog_CPP=$CPP
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5417 $as_echo "$CPP" >&6; }
5418 ac_preproc_ok=false
5419 for ac_c_preproc_warn_flag in '' yes
5420 do
5421 # Use a header file that comes with gcc, so configuring glibc
5422 # with a fresh cross-compiler works.
5423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424 # <limits.h> exists even on freestanding compilers.
5425 # On the NeXT, cc -E runs the code through the compiler's parser,
5426 # not just through cpp. "Syntax error" is here to catch this case.
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #ifdef __STDC__
5430 # include <limits.h>
5431 #else
5432 # include <assert.h>
5433 #endif
5434 Syntax error
5435 _ACEOF
5436 if ac_fn_c_try_cpp "$LINENO"; then :
5437
5438 else
5439 # Broken: fails on valid input.
5440 continue
5441 fi
5442 rm -f conftest.err conftest.i conftest.$ac_ext
5443
5444 # OK, works on sane cases. Now check whether nonexistent headers
5445 # can be detected and how.
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #include <ac_nonexistent.h>
5449 _ACEOF
5450 if ac_fn_c_try_cpp "$LINENO"; then :
5451 # Broken: success on invalid input.
5452 continue
5453 else
5454 # Passes both tests.
5455 ac_preproc_ok=:
5456 break
5457 fi
5458 rm -f conftest.err conftest.i conftest.$ac_ext
5459
5460 done
5461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462 rm -f conftest.i conftest.err conftest.$ac_ext
5463 if $ac_preproc_ok; then :
5464
5465 else
5466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5468 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5469 See \`config.log' for more details" "$LINENO" 5; }
5470 fi
5471
5472 ac_ext=c
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5480 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5481 if ${ac_cv_path_GREP+:} false; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 if test -z "$GREP"; then
5485 ac_path_GREP_found=false
5486 # Loop through the user's path and test for each of PROGNAME-LIST
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5489 do
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_prog in grep ggrep; do
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5495 as_fn_executable_p "$ac_path_GREP" || continue
5496 # Check for GNU ac_path_GREP and select it if it is found.
5497 # Check for GNU $ac_path_GREP
5498 case `"$ac_path_GREP" --version 2>&1` in
5499 *GNU*)
5500 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5501 *)
5502 ac_count=0
5503 $as_echo_n 0123456789 >"conftest.in"
5504 while :
5505 do
5506 cat "conftest.in" "conftest.in" >"conftest.tmp"
5507 mv "conftest.tmp" "conftest.in"
5508 cp "conftest.in" "conftest.nl"
5509 $as_echo 'GREP' >> "conftest.nl"
5510 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5512 as_fn_arith $ac_count + 1 && ac_count=$as_val
5513 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5514 # Best one so far, save it but keep looking for a better one
5515 ac_cv_path_GREP="$ac_path_GREP"
5516 ac_path_GREP_max=$ac_count
5517 fi
5518 # 10*(2^10) chars as input seems more than enough
5519 test $ac_count -gt 10 && break
5520 done
5521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5522 esac
5523
5524 $ac_path_GREP_found && break 3
5525 done
5526 done
5527 done
5528 IFS=$as_save_IFS
5529 if test -z "$ac_cv_path_GREP"; then
5530 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5531 fi
5532 else
5533 ac_cv_path_GREP=$GREP
5534 fi
5535
5536 fi
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5538 $as_echo "$ac_cv_path_GREP" >&6; }
5539 GREP="$ac_cv_path_GREP"
5540
5541
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5543 $as_echo_n "checking for egrep... " >&6; }
5544 if ${ac_cv_path_EGREP+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5548 then ac_cv_path_EGREP="$GREP -E"
5549 else
5550 if test -z "$EGREP"; then
5551 ac_path_EGREP_found=false
5552 # Loop through the user's path and test for each of PROGNAME-LIST
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5555 do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_prog in egrep; do
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5561 as_fn_executable_p "$ac_path_EGREP" || continue
5562 # Check for GNU ac_path_EGREP and select it if it is found.
5563 # Check for GNU $ac_path_EGREP
5564 case `"$ac_path_EGREP" --version 2>&1` in
5565 *GNU*)
5566 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5567 *)
5568 ac_count=0
5569 $as_echo_n 0123456789 >"conftest.in"
5570 while :
5571 do
5572 cat "conftest.in" "conftest.in" >"conftest.tmp"
5573 mv "conftest.tmp" "conftest.in"
5574 cp "conftest.in" "conftest.nl"
5575 $as_echo 'EGREP' >> "conftest.nl"
5576 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5578 as_fn_arith $ac_count + 1 && ac_count=$as_val
5579 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5580 # Best one so far, save it but keep looking for a better one
5581 ac_cv_path_EGREP="$ac_path_EGREP"
5582 ac_path_EGREP_max=$ac_count
5583 fi
5584 # 10*(2^10) chars as input seems more than enough
5585 test $ac_count -gt 10 && break
5586 done
5587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5588 esac
5589
5590 $ac_path_EGREP_found && break 3
5591 done
5592 done
5593 done
5594 IFS=$as_save_IFS
5595 if test -z "$ac_cv_path_EGREP"; then
5596 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5597 fi
5598 else
5599 ac_cv_path_EGREP=$EGREP
5600 fi
5601
5602 fi
5603 fi
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5605 $as_echo "$ac_cv_path_EGREP" >&6; }
5606 EGREP="$ac_cv_path_EGREP"
5607
5608
5609
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5612 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5613 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619
5620 #ifdef __ACK__
5621 Amsterdam
5622 #endif
5623
5624 _ACEOF
5625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5626 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5627 gl_cv_c_amsterdam_compiler=yes
5628 else
5629 gl_cv_c_amsterdam_compiler=no
5630 fi
5631 rm -f conftest*
5632
5633
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5636 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5637 if test -z "$AR"; then
5638 if test $gl_cv_c_amsterdam_compiler = yes; then
5639 AR='cc -c.a'
5640 if test -z "$ARFLAGS"; then
5641 ARFLAGS='-o'
5642 fi
5643 else
5644 if test -n "$ac_tool_prefix"; then
5645 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5646 set dummy ${ac_tool_prefix}ar; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_AR+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 if test -n "$AR"; then
5653 ac_cv_prog_AR="$AR" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_AR="${ac_tool_prefix}ar"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666 done
5667 done
5668 IFS=$as_save_IFS
5669
5670 fi
5671 fi
5672 AR=$ac_cv_prog_AR
5673 if test -n "$AR"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5675 $as_echo "$AR" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5679 fi
5680
5681
5682 fi
5683 if test -z "$ac_cv_prog_AR"; then
5684 ac_ct_AR=$AR
5685 # Extract the first word of "ar", so it can be a program name with args.
5686 set dummy ar; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if test -n "$ac_ct_AR"; then
5693 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_AR="ar"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706 done
5707 done
5708 IFS=$as_save_IFS
5709
5710 fi
5711 fi
5712 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5713 if test -n "$ac_ct_AR"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5715 $as_echo "$ac_ct_AR" >&6; }
5716 else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5719 fi
5720
5721 if test "x$ac_ct_AR" = x; then
5722 AR="ar"
5723 else
5724 case $cross_compiling:$ac_tool_warned in
5725 yes:)
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728 ac_tool_warned=yes ;;
5729 esac
5730 AR=$ac_ct_AR
5731 fi
5732 else
5733 AR="$ac_cv_prog_AR"
5734 fi
5735
5736 if test -z "$ARFLAGS"; then
5737 ARFLAGS='cru'
5738 fi
5739 fi
5740 else
5741 if test -z "$ARFLAGS"; then
5742 ARFLAGS='cru'
5743 fi
5744 fi
5745
5746
5747 if test -z "$RANLIB"; then
5748 if test $gl_cv_c_amsterdam_compiler = yes; then
5749 RANLIB=':'
5750 else
5751 if test -n "$ac_tool_prefix"; then
5752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if ${ac_cv_prog_RANLIB+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$RANLIB"; then
5760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 RANLIB=$ac_cv_prog_RANLIB
5780 if test -n "$RANLIB"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5782 $as_echo "$RANLIB" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 fi
5787
5788
5789 fi
5790 if test -z "$ac_cv_prog_RANLIB"; then
5791 ac_ct_RANLIB=$RANLIB
5792 # Extract the first word of "ranlib", so it can be a program name with args.
5793 set dummy ranlib; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$ac_ct_RANLIB"; then
5800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_RANLIB="ranlib"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5820 if test -n "$ac_ct_RANLIB"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5822 $as_echo "$ac_ct_RANLIB" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828 if test "x$ac_ct_RANLIB" = x; then
5829 RANLIB=":"
5830 else
5831 case $cross_compiling:$ac_tool_warned in
5832 yes:)
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5835 ac_tool_warned=yes ;;
5836 esac
5837 RANLIB=$ac_ct_RANLIB
5838 fi
5839 else
5840 RANLIB="$ac_cv_prog_RANLIB"
5841 fi
5842
5843 fi
5844 fi
5845
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5848 $as_echo_n "checking for ANSI C header files... " >&6; }
5849 if ${ac_cv_header_stdc+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 #include <stdlib.h>
5855 #include <stdarg.h>
5856 #include <string.h>
5857 #include <float.h>
5858
5859 int
5860 main ()
5861 {
5862
5863 ;
5864 return 0;
5865 }
5866 _ACEOF
5867 if ac_fn_c_try_compile "$LINENO"; then :
5868 ac_cv_header_stdc=yes
5869 else
5870 ac_cv_header_stdc=no
5871 fi
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873
5874 if test $ac_cv_header_stdc = yes; then
5875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5878 #include <string.h>
5879
5880 _ACEOF
5881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5882 $EGREP "memchr" >/dev/null 2>&1; then :
5883
5884 else
5885 ac_cv_header_stdc=no
5886 fi
5887 rm -f conftest*
5888
5889 fi
5890
5891 if test $ac_cv_header_stdc = yes; then
5892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5895 #include <stdlib.h>
5896
5897 _ACEOF
5898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5899 $EGREP "free" >/dev/null 2>&1; then :
5900
5901 else
5902 ac_cv_header_stdc=no
5903 fi
5904 rm -f conftest*
5905
5906 fi
5907
5908 if test $ac_cv_header_stdc = yes; then
5909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5910 if test "$cross_compiling" = yes; then :
5911 :
5912 else
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5915 #include <ctype.h>
5916 #include <stdlib.h>
5917 #if ((' ' & 0x0FF) == 0x020)
5918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5920 #else
5921 # define ISLOWER(c) \
5922 (('a' <= (c) && (c) <= 'i') \
5923 || ('j' <= (c) && (c) <= 'r') \
5924 || ('s' <= (c) && (c) <= 'z'))
5925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5926 #endif
5927
5928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5929 int
5930 main ()
5931 {
5932 int i;
5933 for (i = 0; i < 256; i++)
5934 if (XOR (islower (i), ISLOWER (i))
5935 || toupper (i) != TOUPPER (i))
5936 return 2;
5937 return 0;
5938 }
5939 _ACEOF
5940 if ac_fn_c_try_run "$LINENO"; then :
5941
5942 else
5943 ac_cv_header_stdc=no
5944 fi
5945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5946 conftest.$ac_objext conftest.beam conftest.$ac_ext
5947 fi
5948
5949 fi
5950 fi
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5952 $as_echo "$ac_cv_header_stdc" >&6; }
5953 if test $ac_cv_header_stdc = yes; then
5954
5955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5956
5957 fi
5958
5959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5960 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5961 inttypes.h stdint.h unistd.h
5962 do :
5963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5964 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5965 "
5966 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5967 cat >>confdefs.h <<_ACEOF
5968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5969 _ACEOF
5970
5971 fi
5972
5973 done
5974
5975
5976
5977 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5978 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5979 MINIX=yes
5980 else
5981 MINIX=
5982 fi
5983
5984
5985 if test "$MINIX" = yes; then
5986
5987 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5988
5989
5990 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5991
5992
5993 $as_echo "#define _MINIX 1" >>confdefs.h
5994
5995
5996 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5997
5998 fi
5999
6000
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6002 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6003 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008
6009 # define __EXTENSIONS__ 1
6010 $ac_includes_default
6011 int
6012 main ()
6013 {
6014
6015 ;
6016 return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_c_try_compile "$LINENO"; then :
6020 ac_cv_safe_to_define___extensions__=yes
6021 else
6022 ac_cv_safe_to_define___extensions__=no
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 fi
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6027 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6028 test $ac_cv_safe_to_define___extensions__ = yes &&
6029 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6030
6031 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6032
6033 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6034
6035 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6036
6037 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6038
6039 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6040
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6042 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6043 if ${ac_cv_should_define__xopen_source+:} false; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 ac_cv_should_define__xopen_source=no
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049
6050 #include <wchar.h>
6051 mbstate_t x;
6052 int
6053 main ()
6054 {
6055
6056 ;
6057 return 0;
6058 }
6059 _ACEOF
6060 if ac_fn_c_try_compile "$LINENO"; then :
6061
6062 else
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065
6066 #define _XOPEN_SOURCE 500
6067 #include <wchar.h>
6068 mbstate_t x;
6069 int
6070 main ()
6071 {
6072
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"; then :
6078 ac_cv_should_define__xopen_source=yes
6079 fi
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 fi
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6085 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6086 test $ac_cv_should_define__xopen_source = yes &&
6087 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098 # Code from module absolute-header:
6099 # Code from module alloca:
6100 # Code from module alloca-opt:
6101 # Code from module bitrotate:
6102 # Code from module errno:
6103 # Code from module error:
6104 # Code from module exitfail:
6105 # Code from module extensions:
6106
6107 # Code from module extern-inline:
6108 # Code from module float:
6109 # Code from module getopt-gnu:
6110 # Code from module getopt-posix:
6111 # Code from module gettext-h:
6112 # Code from module hash:
6113 # Code from module include_next:
6114 # Code from module intprops:
6115 # Code from module memchr:
6116 # Code from module msvc-inval:
6117 # Code from module msvc-nothrow:
6118 # Code from module multiarch:
6119 # Code from module nocrash:
6120 # Code from module size_max:
6121 # Code from module snippet/_Noreturn:
6122 # Code from module snippet/arg-nonnull:
6123 # Code from module snippet/c++defs:
6124 # Code from module snippet/warn-on-use:
6125 # Code from module ssize_t:
6126 # Code from module stdbool:
6127 # Code from module stddef:
6128 # Code from module stdint:
6129 # Code from module stdio:
6130 # Code from module stdlib:
6131 # Code from module strcase:
6132 # Code from module strerror:
6133 # Code from module strerror-override:
6134 # Code from module string:
6135 # Code from module strings:
6136 # Code from module sys_types:
6137 # Code from module unistd:
6138 # Code from module vasnprintf:
6139 # Code from module vasprintf:
6140 # Code from module verify:
6141 # Code from module wchar:
6142 # Code from module xalloc:
6143 # Code from module xalloc-die:
6144 # Code from module xalloc-oversized:
6145 # Code from module xsize:
6146
6147
6148 if test "$host" = "arm-unknown-linux-androideabi"; then
6149 ANDROID_TRUE=
6150 ANDROID_FALSE='#'
6151 else
6152 ANDROID_TRUE='#'
6153 ANDROID_FALSE=
6154 fi
6155
6156 case "${host}" in *-*-mingw32* | *-*-cygwin* | *-*-windows*) woe=1;; esac
6157 if test x"$woe" = x"1"; then
6158 WOE_TRUE=
6159 WOE_FALSE='#'
6160 else
6161 WOE_TRUE='#'
6162 WOE_FALSE=
6163 fi
6164
6165
6166 # Check if we can fork&exec (for fallback xmessage errors)
6167 for ac_func in execlp
6168 do :
6169 ac_fn_c_check_func "$LINENO" "execlp" "ac_cv_func_execlp"
6170 if test "x$ac_cv_func_execlp" = xyes; then :
6171 cat >>confdefs.h <<_ACEOF
6172 #define HAVE_EXECLP 1
6173 _ACEOF
6174
6175 fi
6176 done
6177
6178 # Check if we've got malloc stats
6179 ac_fn_c_check_type "$LINENO" "struct mallinfo" "ac_cv_type_struct_mallinfo" "#include <malloc.h>
6180 "
6181 if test "x$ac_cv_type_struct_mallinfo" = xyes; then :
6182
6183 cat >>confdefs.h <<_ACEOF
6184 #define HAVE_STRUCT_MALLINFO 1
6185 _ACEOF
6186
6187
6188 fi
6189
6190
6191 # gettext
6192
6193 mkdir_p="$MKDIR_P"
6194 case $mkdir_p in
6195 [\\/$]* | ?:[\\/]*) ;;
6196 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
6197 esac
6198
6199
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6201 $as_echo_n "checking whether NLS is requested... " >&6; }
6202 # Check whether --enable-nls was given.
6203 if test "${enable_nls+set}" = set; then :
6204 enableval=$enable_nls; USE_NLS=$enableval
6205 else
6206 USE_NLS=yes
6207 fi
6208
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6210 $as_echo "$USE_NLS" >&6; }
6211
6212
6213
6214
6215 GETTEXT_MACRO_VERSION=0.18
6216
6217
6218
6219
6220 # Prepare PATH_SEPARATOR.
6221 # The user is always right.
6222 if test "${PATH_SEPARATOR+set}" != set; then
6223 echo "#! /bin/sh" >conf$$.sh
6224 echo "exit 0" >>conf$$.sh
6225 chmod +x conf$$.sh
6226 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6227 PATH_SEPARATOR=';'
6228 else
6229 PATH_SEPARATOR=:
6230 fi
6231 rm -f conf$$.sh
6232 fi
6233
6234 # Find out how to test for executable files. Don't use a zero-byte file,
6235 # as systems may use methods other than mode bits to determine executability.
6236 cat >conf$$.file <<_ASEOF
6237 #! /bin/sh
6238 exit 0
6239 _ASEOF
6240 chmod +x conf$$.file
6241 if test -x conf$$.file >/dev/null 2>&1; then
6242 ac_executable_p="test -x"
6243 else
6244 ac_executable_p="test -f"
6245 fi
6246 rm -f conf$$.file
6247
6248 # Extract the first word of "msgfmt", so it can be a program name with args.
6249 set dummy msgfmt; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if ${ac_cv_path_MSGFMT+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 case "$MSGFMT" in
6256 [\\/]* | ?:[\\/]*)
6257 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6258 ;;
6259 *)
6260 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6261 for ac_dir in $PATH; do
6262 IFS="$ac_save_IFS"
6263 test -z "$ac_dir" && ac_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6266 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6267 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6268 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6269 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6270 break 2
6271 fi
6272 fi
6273 done
6274 done
6275 IFS="$ac_save_IFS"
6276 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6277 ;;
6278 esac
6279 fi
6280 MSGFMT="$ac_cv_path_MSGFMT"
6281 if test "$MSGFMT" != ":"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6283 $as_echo "$MSGFMT" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6290 set dummy gmsgfmt; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_path_GMSGFMT+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 case $GMSGFMT in
6297 [\\/]* | ?:[\\/]*)
6298 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6299 ;;
6300 *)
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 break 2
6311 fi
6312 done
6313 done
6314 IFS=$as_save_IFS
6315
6316 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6317 ;;
6318 esac
6319 fi
6320 GMSGFMT=$ac_cv_path_GMSGFMT
6321 if test -n "$GMSGFMT"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6323 $as_echo "$GMSGFMT" >&6; }
6324 else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6327 fi
6328
6329
6330
6331 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6332 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6333 *) MSGFMT_015=$MSGFMT ;;
6334 esac
6335
6336 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6337 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6338 *) GMSGFMT_015=$GMSGFMT ;;
6339 esac
6340
6341
6342
6343 # Prepare PATH_SEPARATOR.
6344 # The user is always right.
6345 if test "${PATH_SEPARATOR+set}" != set; then
6346 echo "#! /bin/sh" >conf$$.sh
6347 echo "exit 0" >>conf$$.sh
6348 chmod +x conf$$.sh
6349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6350 PATH_SEPARATOR=';'
6351 else
6352 PATH_SEPARATOR=:
6353 fi
6354 rm -f conf$$.sh
6355 fi
6356
6357 # Find out how to test for executable files. Don't use a zero-byte file,
6358 # as systems may use methods other than mode bits to determine executability.
6359 cat >conf$$.file <<_ASEOF
6360 #! /bin/sh
6361 exit 0
6362 _ASEOF
6363 chmod +x conf$$.file
6364 if test -x conf$$.file >/dev/null 2>&1; then
6365 ac_executable_p="test -x"
6366 else
6367 ac_executable_p="test -f"
6368 fi
6369 rm -f conf$$.file
6370
6371 # Extract the first word of "xgettext", so it can be a program name with args.
6372 set dummy xgettext; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_path_XGETTEXT+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 case "$XGETTEXT" in
6379 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6381 ;;
6382 *)
6383 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6384 for ac_dir in $PATH; do
6385 IFS="$ac_save_IFS"
6386 test -z "$ac_dir" && ac_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6389 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6390 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6391 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6392 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6393 break 2
6394 fi
6395 fi
6396 done
6397 done
6398 IFS="$ac_save_IFS"
6399 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6400 ;;
6401 esac
6402 fi
6403 XGETTEXT="$ac_cv_path_XGETTEXT"
6404 if test "$XGETTEXT" != ":"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6406 $as_echo "$XGETTEXT" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412 rm -f messages.po
6413
6414 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6415 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6416 *) XGETTEXT_015=$XGETTEXT ;;
6417 esac
6418
6419
6420
6421 # Prepare PATH_SEPARATOR.
6422 # The user is always right.
6423 if test "${PATH_SEPARATOR+set}" != set; then
6424 echo "#! /bin/sh" >conf$$.sh
6425 echo "exit 0" >>conf$$.sh
6426 chmod +x conf$$.sh
6427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6428 PATH_SEPARATOR=';'
6429 else
6430 PATH_SEPARATOR=:
6431 fi
6432 rm -f conf$$.sh
6433 fi
6434
6435 # Find out how to test for executable files. Don't use a zero-byte file,
6436 # as systems may use methods other than mode bits to determine executability.
6437 cat >conf$$.file <<_ASEOF
6438 #! /bin/sh
6439 exit 0
6440 _ASEOF
6441 chmod +x conf$$.file
6442 if test -x conf$$.file >/dev/null 2>&1; then
6443 ac_executable_p="test -x"
6444 else
6445 ac_executable_p="test -f"
6446 fi
6447 rm -f conf$$.file
6448
6449 # Extract the first word of "msgmerge", so it can be a program name with args.
6450 set dummy msgmerge; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_path_MSGMERGE+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 case "$MSGMERGE" in
6457 [\\/]* | ?:[\\/]*)
6458 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6459 ;;
6460 *)
6461 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6462 for ac_dir in $PATH; do
6463 IFS="$ac_save_IFS"
6464 test -z "$ac_dir" && ac_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6467 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6468 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6469 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6470 break 2
6471 fi
6472 fi
6473 done
6474 done
6475 IFS="$ac_save_IFS"
6476 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6477 ;;
6478 esac
6479 fi
6480 MSGMERGE="$ac_cv_path_MSGMERGE"
6481 if test "$MSGMERGE" != ":"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6483 $as_echo "$MSGMERGE" >&6; }
6484 else
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489
6490 test -n "$localedir" || localedir='${datadir}/locale'
6491
6492
6493 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6494
6495
6496 ac_config_commands="$ac_config_commands po-directories"
6497
6498
6499
6500 if test "X$prefix" = "XNONE"; then
6501 acl_final_prefix="$ac_default_prefix"
6502 else
6503 acl_final_prefix="$prefix"
6504 fi
6505 if test "X$exec_prefix" = "XNONE"; then
6506 acl_final_exec_prefix='${prefix}'
6507 else
6508 acl_final_exec_prefix="$exec_prefix"
6509 fi
6510 acl_save_prefix="$prefix"
6511 prefix="$acl_final_prefix"
6512 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6513 prefix="$acl_save_prefix"
6514
6515
6516 # Check whether --with-gnu-ld was given.
6517 if test "${with_gnu_ld+set}" = set; then :
6518 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6519 else
6520 with_gnu_ld=no
6521 fi
6522
6523 # Prepare PATH_SEPARATOR.
6524 # The user is always right.
6525 if test "${PATH_SEPARATOR+set}" != set; then
6526 echo "#! /bin/sh" >conf$$.sh
6527 echo "exit 0" >>conf$$.sh
6528 chmod +x conf$$.sh
6529 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6530 PATH_SEPARATOR=';'
6531 else
6532 PATH_SEPARATOR=:
6533 fi
6534 rm -f conf$$.sh
6535 fi
6536 ac_prog=ld
6537 if test "$GCC" = yes; then
6538 # Check if gcc -print-prog-name=ld gives a path.
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6540 $as_echo_n "checking for ld used by GCC... " >&6; }
6541 case $host in
6542 *-*-mingw*)
6543 # gcc leaves a trailing carriage return which upsets mingw
6544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6545 *)
6546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6547 esac
6548 case $ac_prog in
6549 # Accept absolute paths.
6550 [\\/]* | [A-Za-z]:[\\/]*)
6551 re_direlt='/[^/][^/]*/\.\./'
6552 # Canonicalize the path of ld
6553 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6554 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6555 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6556 done
6557 test -z "$LD" && LD="$ac_prog"
6558 ;;
6559 "")
6560 # If it fails, then pretend we aren't using GCC.
6561 ac_prog=ld
6562 ;;
6563 *)
6564 # If it is relative, then search for the first ld in PATH.
6565 with_gnu_ld=unknown
6566 ;;
6567 esac
6568 elif test "$with_gnu_ld" = yes; then
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6570 $as_echo_n "checking for GNU ld... " >&6; }
6571 else
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6573 $as_echo_n "checking for non-GNU ld... " >&6; }
6574 fi
6575 if ${acl_cv_path_LD+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -z "$LD"; then
6579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6580 for ac_dir in $PATH; do
6581 test -z "$ac_dir" && ac_dir=.
6582 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6583 acl_cv_path_LD="$ac_dir/$ac_prog"
6584 # Check to see if the program is GNU ld. I'd rather use --version,
6585 # but apparently some GNU ld's only accept -v.
6586 # Break only if it was the GNU/non-GNU ld that we prefer.
6587 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6588 *GNU* | *'with BFD'*)
6589 test "$with_gnu_ld" != no && break ;;
6590 *)
6591 test "$with_gnu_ld" != yes && break ;;
6592 esac
6593 fi
6594 done
6595 IFS="$ac_save_ifs"
6596 else
6597 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6598 fi
6599 fi
6600
6601 LD="$acl_cv_path_LD"
6602 if test -n "$LD"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6604 $as_echo "$LD" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6611 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6612 if ${acl_cv_prog_gnu_ld+:} false; then :
6613 $as_echo_n "(cached) " >&6
6614 else
6615 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6616 case `$LD -v 2>&1 </dev/null` in
6617 *GNU* | *'with BFD'*)
6618 acl_cv_prog_gnu_ld=yes ;;
6619 *)
6620 acl_cv_prog_gnu_ld=no ;;
6621 esac
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6624 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6625 with_gnu_ld=$acl_cv_prog_gnu_ld
6626
6627
6628
6629
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6631 $as_echo_n "checking for shared library run path origin... " >&6; }
6632 if ${acl_cv_rpath+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635
6636 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6637 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6638 . ./conftest.sh
6639 rm -f ./conftest.sh
6640 acl_cv_rpath=done
6641
6642 fi
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6644 $as_echo "$acl_cv_rpath" >&6; }
6645 wl="$acl_cv_wl"
6646 acl_libext="$acl_cv_libext"
6647 acl_shlibext="$acl_cv_shlibext"
6648 acl_libname_spec="$acl_cv_libname_spec"
6649 acl_library_names_spec="$acl_cv_library_names_spec"
6650 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6651 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6652 acl_hardcode_direct="$acl_cv_hardcode_direct"
6653 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6654 # Check whether --enable-rpath was given.
6655 if test "${enable_rpath+set}" = set; then :
6656 enableval=$enable_rpath; :
6657 else
6658 enable_rpath=yes
6659 fi
6660
6661
6662
6663
6664 acl_libdirstem=lib
6665 acl_libdirstem2=
6666 case "$host_os" in
6667 solaris*)
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6669 $as_echo_n "checking for 64-bit host... " >&6; }
6670 if ${gl_cv_solaris_64bit+:} false; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6675
6676 #ifdef _LP64
6677 sixtyfour bits
6678 #endif
6679
6680 _ACEOF
6681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6682 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6683 gl_cv_solaris_64bit=yes
6684 else
6685 gl_cv_solaris_64bit=no
6686 fi
6687 rm -f conftest*
6688
6689
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6692 $as_echo "$gl_cv_solaris_64bit" >&6; }
6693 if test $gl_cv_solaris_64bit = yes; then
6694 acl_libdirstem=lib/64
6695 case "$host_cpu" in
6696 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6697 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6698 esac
6699 fi
6700 ;;
6701 *)
6702 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6703 if test -n "$searchpath"; then
6704 acl_save_IFS="${IFS= }"; IFS=":"
6705 for searchdir in $searchpath; do
6706 if test -d "$searchdir"; then
6707 case "$searchdir" in
6708 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6709 */../ | */.. )
6710 # Better ignore directories of this form. They are misleading.
6711 ;;
6712 *) searchdir=`cd "$searchdir" && pwd`
6713 case "$searchdir" in
6714 */lib64 ) acl_libdirstem=lib64 ;;
6715 esac ;;
6716 esac
6717 fi
6718 done
6719 IFS="$acl_save_IFS"
6720 fi
6721 ;;
6722 esac
6723 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736 use_additional=yes
6737
6738 acl_save_prefix="$prefix"
6739 prefix="$acl_final_prefix"
6740 acl_save_exec_prefix="$exec_prefix"
6741 exec_prefix="$acl_final_exec_prefix"
6742
6743 eval additional_includedir=\"$includedir\"
6744 eval additional_libdir=\"$libdir\"
6745
6746 exec_prefix="$acl_save_exec_prefix"
6747 prefix="$acl_save_prefix"
6748
6749
6750 # Check whether --with-libiconv-prefix was given.
6751 if test "${with_libiconv_prefix+set}" = set; then :
6752 withval=$with_libiconv_prefix;
6753 if test "X$withval" = "Xno"; then
6754 use_additional=no
6755 else
6756 if test "X$withval" = "X"; then
6757
6758 acl_save_prefix="$prefix"
6759 prefix="$acl_final_prefix"
6760 acl_save_exec_prefix="$exec_prefix"
6761 exec_prefix="$acl_final_exec_prefix"
6762
6763 eval additional_includedir=\"$includedir\"
6764 eval additional_libdir=\"$libdir\"
6765
6766 exec_prefix="$acl_save_exec_prefix"
6767 prefix="$acl_save_prefix"
6768
6769 else
6770 additional_includedir="$withval/include"
6771 additional_libdir="$withval/$acl_libdirstem"
6772 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6773 && ! test -d "$withval/$acl_libdirstem"; then
6774 additional_libdir="$withval/$acl_libdirstem2"
6775 fi
6776 fi
6777 fi
6778
6779 fi
6780
6781 LIBICONV=
6782 LTLIBICONV=
6783 INCICONV=
6784 LIBICONV_PREFIX=
6785 HAVE_LIBICONV=
6786 rpathdirs=
6787 ltrpathdirs=
6788 names_already_handled=
6789 names_next_round='iconv '
6790 while test -n "$names_next_round"; do
6791 names_this_round="$names_next_round"
6792 names_next_round=
6793 for name in $names_this_round; do
6794 already_handled=
6795 for n in $names_already_handled; do
6796 if test "$n" = "$name"; then
6797 already_handled=yes
6798 break
6799 fi
6800 done
6801 if test -z "$already_handled"; then
6802 names_already_handled="$names_already_handled $name"
6803 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6804 eval value=\"\$HAVE_LIB$uppername\"
6805 if test -n "$value"; then
6806 if test "$value" = yes; then
6807 eval value=\"\$LIB$uppername\"
6808 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6809 eval value=\"\$LTLIB$uppername\"
6810 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6811 else
6812 :
6813 fi
6814 else
6815 found_dir=
6816 found_la=
6817 found_so=
6818 found_a=
6819 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6820 if test -n "$acl_shlibext"; then
6821 shrext=".$acl_shlibext" # typically: shrext=.so
6822 else
6823 shrext=
6824 fi
6825 if test $use_additional = yes; then
6826 dir="$additional_libdir"
6827 if test -n "$acl_shlibext"; then
6828 if test -f "$dir/$libname$shrext"; then
6829 found_dir="$dir"
6830 found_so="$dir/$libname$shrext"
6831 else
6832 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6833 ver=`(cd "$dir" && \
6834 for f in "$libname$shrext".*; do echo "$f"; done \
6835 | sed -e "s,^$libname$shrext\\\\.,," \
6836 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6837 | sed 1q ) 2>/dev/null`
6838 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6839 found_dir="$dir"
6840 found_so="$dir/$libname$shrext.$ver"
6841 fi
6842 else
6843 eval library_names=\"$acl_library_names_spec\"
6844 for f in $library_names; do
6845 if test -f "$dir/$f"; then
6846 found_dir="$dir"
6847 found_so="$dir/$f"
6848 break
6849 fi
6850 done
6851 fi
6852 fi
6853 fi
6854 if test "X$found_dir" = "X"; then
6855 if test -f "$dir/$libname.$acl_libext"; then
6856 found_dir="$dir"
6857 found_a="$dir/$libname.$acl_libext"
6858 fi
6859 fi
6860 if test "X$found_dir" != "X"; then
6861 if test -f "$dir/$libname.la"; then
6862 found_la="$dir/$libname.la"
6863 fi
6864 fi
6865 fi
6866 if test "X$found_dir" = "X"; then
6867 for x in $LDFLAGS $LTLIBICONV; do
6868
6869 acl_save_prefix="$prefix"
6870 prefix="$acl_final_prefix"
6871 acl_save_exec_prefix="$exec_prefix"
6872 exec_prefix="$acl_final_exec_prefix"
6873 eval x=\"$x\"
6874 exec_prefix="$acl_save_exec_prefix"
6875 prefix="$acl_save_prefix"
6876
6877 case "$x" in
6878 -L*)
6879 dir=`echo "X$x" | sed -e 's/^X-L//'`
6880 if test -n "$acl_shlibext"; then
6881 if test -f "$dir/$libname$shrext"; then
6882 found_dir="$dir"
6883 found_so="$dir/$libname$shrext"
6884 else
6885 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6886 ver=`(cd "$dir" && \
6887 for f in "$libname$shrext".*; do echo "$f"; done \
6888 | sed -e "s,^$libname$shrext\\\\.,," \
6889 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6890 | sed 1q ) 2>/dev/null`
6891 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6892 found_dir="$dir"
6893 found_so="$dir/$libname$shrext.$ver"
6894 fi
6895 else
6896 eval library_names=\"$acl_library_names_spec\"
6897 for f in $library_names; do
6898 if test -f "$dir/$f"; then
6899 found_dir="$dir"
6900 found_so="$dir/$f"
6901 break
6902 fi
6903 done
6904 fi
6905 fi
6906 fi
6907 if test "X$found_dir" = "X"; then
6908 if test -f "$dir/$libname.$acl_libext"; then
6909 found_dir="$dir"
6910 found_a="$dir/$libname.$acl_libext"
6911 fi
6912 fi
6913 if test "X$found_dir" != "X"; then
6914 if test -f "$dir/$libname.la"; then
6915 found_la="$dir/$libname.la"
6916 fi
6917 fi
6918 ;;
6919 esac
6920 if test "X$found_dir" != "X"; then
6921 break
6922 fi
6923 done
6924 fi
6925 if test "X$found_dir" != "X"; then
6926 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6927 if test "X$found_so" != "X"; then
6928 if test "$enable_rpath" = no \
6929 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6930 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6931 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6932 else
6933 haveit=
6934 for x in $ltrpathdirs; do
6935 if test "X$x" = "X$found_dir"; then
6936 haveit=yes
6937 break
6938 fi
6939 done
6940 if test -z "$haveit"; then
6941 ltrpathdirs="$ltrpathdirs $found_dir"
6942 fi
6943 if test "$acl_hardcode_direct" = yes; then
6944 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6945 else
6946 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6947 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6948 haveit=
6949 for x in $rpathdirs; do
6950 if test "X$x" = "X$found_dir"; then
6951 haveit=yes
6952 break
6953 fi
6954 done
6955 if test -z "$haveit"; then
6956 rpathdirs="$rpathdirs $found_dir"
6957 fi
6958 else
6959 haveit=
6960 for x in $LDFLAGS $LIBICONV; do
6961
6962 acl_save_prefix="$prefix"
6963 prefix="$acl_final_prefix"
6964 acl_save_exec_prefix="$exec_prefix"
6965 exec_prefix="$acl_final_exec_prefix"
6966 eval x=\"$x\"
6967 exec_prefix="$acl_save_exec_prefix"
6968 prefix="$acl_save_prefix"
6969
6970 if test "X$x" = "X-L$found_dir"; then
6971 haveit=yes
6972 break
6973 fi
6974 done
6975 if test -z "$haveit"; then
6976 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6977 fi
6978 if test "$acl_hardcode_minus_L" != no; then
6979 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6980 else
6981 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6982 fi
6983 fi
6984 fi
6985 fi
6986 else
6987 if test "X$found_a" != "X"; then
6988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6989 else
6990 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6991 fi
6992 fi
6993 additional_includedir=
6994 case "$found_dir" in
6995 */$acl_libdirstem | */$acl_libdirstem/)
6996 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6997 if test "$name" = 'iconv'; then
6998 LIBICONV_PREFIX="$basedir"
6999 fi
7000 additional_includedir="$basedir/include"
7001 ;;
7002 */$acl_libdirstem2 | */$acl_libdirstem2/)
7003 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7004 if test "$name" = 'iconv'; then
7005 LIBICONV_PREFIX="$basedir"
7006 fi
7007 additional_includedir="$basedir/include"
7008 ;;
7009 esac
7010 if test "X$additional_includedir" != "X"; then
7011 if test "X$additional_includedir" != "X/usr/include"; then
7012 haveit=
7013 if test "X$additional_includedir" = "X/usr/local/include"; then
7014 if test -n "$GCC"; then
7015 case $host_os in
7016 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7017 esac
7018 fi
7019 fi
7020 if test -z "$haveit"; then
7021 for x in $CPPFLAGS $INCICONV; do
7022
7023 acl_save_prefix="$prefix"
7024 prefix="$acl_final_prefix"
7025 acl_save_exec_prefix="$exec_prefix"
7026 exec_prefix="$acl_final_exec_prefix"
7027 eval x=\"$x\"
7028 exec_prefix="$acl_save_exec_prefix"
7029 prefix="$acl_save_prefix"
7030
7031 if test "X$x" = "X-I$additional_includedir"; then
7032 haveit=yes
7033 break
7034 fi
7035 done
7036 if test -z "$haveit"; then
7037 if test -d "$additional_includedir"; then
7038 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7039 fi
7040 fi
7041 fi
7042 fi
7043 fi
7044 if test -n "$found_la"; then
7045 save_libdir="$libdir"
7046 case "$found_la" in
7047 */* | *\\*) . "$found_la" ;;
7048 *) . "./$found_la" ;;
7049 esac
7050 libdir="$save_libdir"
7051 for dep in $dependency_libs; do
7052 case "$dep" in
7053 -L*)
7054 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7055 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7056 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7057 haveit=
7058 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7059 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7060 if test -n "$GCC"; then
7061 case $host_os in
7062 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7063 esac
7064 fi
7065 fi
7066 if test -z "$haveit"; then
7067 haveit=
7068 for x in $LDFLAGS $LIBICONV; do
7069
7070 acl_save_prefix="$prefix"
7071 prefix="$acl_final_prefix"
7072 acl_save_exec_prefix="$exec_prefix"
7073 exec_prefix="$acl_final_exec_prefix"
7074 eval x=\"$x\"
7075 exec_prefix="$acl_save_exec_prefix"
7076 prefix="$acl_save_prefix"
7077
7078 if test "X$x" = "X-L$additional_libdir"; then
7079 haveit=yes
7080 break
7081 fi
7082 done
7083 if test -z "$haveit"; then
7084 if test -d "$additional_libdir"; then
7085 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7086 fi
7087 fi
7088 haveit=
7089 for x in $LDFLAGS $LTLIBICONV; do
7090
7091 acl_save_prefix="$prefix"
7092 prefix="$acl_final_prefix"
7093 acl_save_exec_prefix="$exec_prefix"
7094 exec_prefix="$acl_final_exec_prefix"
7095 eval x=\"$x\"
7096 exec_prefix="$acl_save_exec_prefix"
7097 prefix="$acl_save_prefix"
7098
7099 if test "X$x" = "X-L$additional_libdir"; then
7100 haveit=yes
7101 break
7102 fi
7103 done
7104 if test -z "$haveit"; then
7105 if test -d "$additional_libdir"; then
7106 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7107 fi
7108 fi
7109 fi
7110 fi
7111 ;;
7112 -R*)
7113 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7114 if test "$enable_rpath" != no; then
7115 haveit=
7116 for x in $rpathdirs; do
7117 if test "X$x" = "X$dir"; then
7118 haveit=yes
7119 break
7120 fi
7121 done
7122 if test -z "$haveit"; then
7123 rpathdirs="$rpathdirs $dir"
7124 fi
7125 haveit=
7126 for x in $ltrpathdirs; do
7127 if test "X$x" = "X$dir"; then
7128 haveit=yes
7129 break
7130 fi
7131 done
7132 if test -z "$haveit"; then
7133 ltrpathdirs="$ltrpathdirs $dir"
7134 fi
7135 fi
7136 ;;
7137 -l*)
7138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7139 ;;
7140 *.la)
7141 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7142 ;;
7143 *)
7144 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7145 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7146 ;;
7147 esac
7148 done
7149 fi
7150 else
7151 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7152 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7153 fi
7154 fi
7155 fi
7156 done
7157 done
7158 if test "X$rpathdirs" != "X"; then
7159 if test -n "$acl_hardcode_libdir_separator"; then
7160 alldirs=
7161 for found_dir in $rpathdirs; do
7162 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7163 done
7164 acl_save_libdir="$libdir"
7165 libdir="$alldirs"
7166 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7167 libdir="$acl_save_libdir"
7168 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7169 else
7170 for found_dir in $rpathdirs; do
7171 acl_save_libdir="$libdir"
7172 libdir="$found_dir"
7173 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7174 libdir="$acl_save_libdir"
7175 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7176 done
7177 fi
7178 fi
7179 if test "X$ltrpathdirs" != "X"; then
7180 for found_dir in $ltrpathdirs; do
7181 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7182 done
7183 fi
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7216 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7217 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 gt_save_LIBS="$LIBS"
7221 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 #include <CoreFoundation/CFPreferences.h>
7225 int
7226 main ()
7227 {
7228 CFPreferencesCopyAppValue(NULL, NULL)
7229 ;
7230 return 0;
7231 }
7232 _ACEOF
7233 if ac_fn_c_try_link "$LINENO"; then :
7234 gt_cv_func_CFPreferencesCopyAppValue=yes
7235 else
7236 gt_cv_func_CFPreferencesCopyAppValue=no
7237 fi
7238 rm -f core conftest.err conftest.$ac_objext \
7239 conftest$ac_exeext conftest.$ac_ext
7240 LIBS="$gt_save_LIBS"
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7243 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7244 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7245
7246 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7247
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7250 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7251 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 gt_save_LIBS="$LIBS"
7255 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 #include <CoreFoundation/CFLocale.h>
7259 int
7260 main ()
7261 {
7262 CFLocaleCopyCurrent();
7263 ;
7264 return 0;
7265 }
7266 _ACEOF
7267 if ac_fn_c_try_link "$LINENO"; then :
7268 gt_cv_func_CFLocaleCopyCurrent=yes
7269 else
7270 gt_cv_func_CFLocaleCopyCurrent=no
7271 fi
7272 rm -f core conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7274 LIBS="$gt_save_LIBS"
7275 fi
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7277 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7278 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7279
7280 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7281
7282 fi
7283 INTL_MACOSX_LIBS=
7284 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7285 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7286 fi
7287
7288
7289
7290
7291
7292
7293 LIBINTL=
7294 LTLIBINTL=
7295 POSUB=
7296
7297 case " $gt_needs " in
7298 *" need-formatstring-macros "*) gt_api_version=3 ;;
7299 *" need-ngettext "*) gt_api_version=2 ;;
7300 *) gt_api_version=1 ;;
7301 esac
7302 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7303 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7304
7305 if test "$USE_NLS" = "yes"; then
7306 gt_use_preinstalled_gnugettext=no
7307
7308
7309 if test $gt_api_version -ge 3; then
7310 gt_revision_test_code='
7311 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7312 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7313 #endif
7314 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7315 '
7316 else
7317 gt_revision_test_code=
7318 fi
7319 if test $gt_api_version -ge 2; then
7320 gt_expression_test_code=' + * ngettext ("", "", 0)'
7321 else
7322 gt_expression_test_code=
7323 fi
7324
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7326 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7327 if eval \${$gt_func_gnugettext_libc+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* end confdefs.h. */
7332 #include <libintl.h>
7333 $gt_revision_test_code
7334 extern int _nl_msg_cat_cntr;
7335 extern int *_nl_domain_bindings;
7336 int
7337 main ()
7338 {
7339 bindtextdomain ("", "");
7340 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7341 ;
7342 return 0;
7343 }
7344 _ACEOF
7345 if ac_fn_c_try_link "$LINENO"; then :
7346 eval "$gt_func_gnugettext_libc=yes"
7347 else
7348 eval "$gt_func_gnugettext_libc=no"
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext \
7351 conftest$ac_exeext conftest.$ac_ext
7352 fi
7353 eval ac_res=\$$gt_func_gnugettext_libc
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7355 $as_echo "$ac_res" >&6; }
7356
7357 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7358
7359
7360
7361
7362
7363 am_save_CPPFLAGS="$CPPFLAGS"
7364
7365 for element in $INCICONV; do
7366 haveit=
7367 for x in $CPPFLAGS; do
7368
7369 acl_save_prefix="$prefix"
7370 prefix="$acl_final_prefix"
7371 acl_save_exec_prefix="$exec_prefix"
7372 exec_prefix="$acl_final_exec_prefix"
7373 eval x=\"$x\"
7374 exec_prefix="$acl_save_exec_prefix"
7375 prefix="$acl_save_prefix"
7376
7377 if test "X$x" = "X$element"; then
7378 haveit=yes
7379 break
7380 fi
7381 done
7382 if test -z "$haveit"; then
7383 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7384 fi
7385 done
7386
7387
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7389 $as_echo_n "checking for iconv... " >&6; }
7390 if ${am_cv_func_iconv+:} false; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393
7394 am_cv_func_iconv="no, consider installing GNU libiconv"
7395 am_cv_lib_iconv=no
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 #include <stdlib.h>
7399 #include <iconv.h>
7400 int
7401 main ()
7402 {
7403 iconv_t cd = iconv_open("","");
7404 iconv(cd,NULL,NULL,NULL,NULL);
7405 iconv_close(cd);
7406 ;
7407 return 0;
7408 }
7409 _ACEOF
7410 if ac_fn_c_try_link "$LINENO"; then :
7411 am_cv_func_iconv=yes
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext \
7414 conftest$ac_exeext conftest.$ac_ext
7415 if test "$am_cv_func_iconv" != yes; then
7416 am_save_LIBS="$LIBS"
7417 LIBS="$LIBS $LIBICONV"
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7420 #include <stdlib.h>
7421 #include <iconv.h>
7422 int
7423 main ()
7424 {
7425 iconv_t cd = iconv_open("","");
7426 iconv(cd,NULL,NULL,NULL,NULL);
7427 iconv_close(cd);
7428 ;
7429 return 0;
7430 }
7431 _ACEOF
7432 if ac_fn_c_try_link "$LINENO"; then :
7433 am_cv_lib_iconv=yes
7434 am_cv_func_iconv=yes
7435 fi
7436 rm -f core conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
7438 LIBS="$am_save_LIBS"
7439 fi
7440
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7443 $as_echo "$am_cv_func_iconv" >&6; }
7444 if test "$am_cv_func_iconv" = yes; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7446 $as_echo_n "checking for working iconv... " >&6; }
7447 if ${am_cv_func_iconv_works+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450
7451 am_save_LIBS="$LIBS"
7452 if test $am_cv_lib_iconv = yes; then
7453 LIBS="$LIBS $LIBICONV"
7454 fi
7455 if test "$cross_compiling" = yes; then :
7456 case "$host_os" in
7457 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7458 *) am_cv_func_iconv_works="guessing yes" ;;
7459 esac
7460 else
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463
7464 #include <iconv.h>
7465 #include <string.h>
7466 int main ()
7467 {
7468 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7469 returns. */
7470 {
7471 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7472 if (cd_utf8_to_88591 != (iconv_t)(-1))
7473 {
7474 static const char input[] = "\342\202\254"; /* EURO SIGN */
7475 char buf[10];
7476 const char *inptr = input;
7477 size_t inbytesleft = strlen (input);
7478 char *outptr = buf;
7479 size_t outbytesleft = sizeof (buf);
7480 size_t res = iconv (cd_utf8_to_88591,
7481 (char **) &inptr, &inbytesleft,
7482 &outptr, &outbytesleft);
7483 if (res == 0)
7484 return 1;
7485 }
7486 }
7487 /* Test against Solaris 10 bug: Failures are not distinguishable from
7488 successful returns. */
7489 {
7490 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7491 if (cd_ascii_to_88591 != (iconv_t)(-1))
7492 {
7493 static const char input[] = "\263";
7494 char buf[10];
7495 const char *inptr = input;
7496 size_t inbytesleft = strlen (input);
7497 char *outptr = buf;
7498 size_t outbytesleft = sizeof (buf);
7499 size_t res = iconv (cd_ascii_to_88591,
7500 (char **) &inptr, &inbytesleft,
7501 &outptr, &outbytesleft);
7502 if (res == 0)
7503 return 1;
7504 }
7505 }
7506 #if 0 /* This bug could be worked around by the caller. */
7507 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7508 {
7509 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7510 if (cd_88591_to_utf8 != (iconv_t)(-1))
7511 {
7512 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7513 char buf[50];
7514 const char *inptr = input;
7515 size_t inbytesleft = strlen (input);
7516 char *outptr = buf;
7517 size_t outbytesleft = sizeof (buf);
7518 size_t res = iconv (cd_88591_to_utf8,
7519 (char **) &inptr, &inbytesleft,
7520 &outptr, &outbytesleft);
7521 if ((int)res > 0)
7522 return 1;
7523 }
7524 }
7525 #endif
7526 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7527 provided. */
7528 if (/* Try standardized names. */
7529 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7530 /* Try IRIX, OSF/1 names. */
7531 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7532 /* Try AIX names. */
7533 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7534 /* Try HP-UX names. */
7535 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7536 return 1;
7537 return 0;
7538 }
7539 _ACEOF
7540 if ac_fn_c_try_run "$LINENO"; then :
7541 am_cv_func_iconv_works=yes
7542 else
7543 am_cv_func_iconv_works=no
7544 fi
7545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7546 conftest.$ac_objext conftest.beam conftest.$ac_ext
7547 fi
7548
7549 LIBS="$am_save_LIBS"
7550
7551 fi
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7553 $as_echo "$am_cv_func_iconv_works" >&6; }
7554 case "$am_cv_func_iconv_works" in
7555 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7556 *) am_func_iconv=yes ;;
7557 esac
7558 else
7559 am_func_iconv=no am_cv_lib_iconv=no
7560 fi
7561 if test "$am_func_iconv" = yes; then
7562
7563 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7564
7565 fi
7566 if test "$am_cv_lib_iconv" = yes; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7568 $as_echo_n "checking how to link with libiconv... " >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7570 $as_echo "$LIBICONV" >&6; }
7571 else
7572 CPPFLAGS="$am_save_CPPFLAGS"
7573 LIBICONV=
7574 LTLIBICONV=
7575 fi
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587 use_additional=yes
7588
7589 acl_save_prefix="$prefix"
7590 prefix="$acl_final_prefix"
7591 acl_save_exec_prefix="$exec_prefix"
7592 exec_prefix="$acl_final_exec_prefix"
7593
7594 eval additional_includedir=\"$includedir\"
7595 eval additional_libdir=\"$libdir\"
7596
7597 exec_prefix="$acl_save_exec_prefix"
7598 prefix="$acl_save_prefix"
7599
7600
7601 # Check whether --with-libintl-prefix was given.
7602 if test "${with_libintl_prefix+set}" = set; then :
7603 withval=$with_libintl_prefix;
7604 if test "X$withval" = "Xno"; then
7605 use_additional=no
7606 else
7607 if test "X$withval" = "X"; then
7608
7609 acl_save_prefix="$prefix"
7610 prefix="$acl_final_prefix"
7611 acl_save_exec_prefix="$exec_prefix"
7612 exec_prefix="$acl_final_exec_prefix"
7613
7614 eval additional_includedir=\"$includedir\"
7615 eval additional_libdir=\"$libdir\"
7616
7617 exec_prefix="$acl_save_exec_prefix"
7618 prefix="$acl_save_prefix"
7619
7620 else
7621 additional_includedir="$withval/include"
7622 additional_libdir="$withval/$acl_libdirstem"
7623 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7624 && ! test -d "$withval/$acl_libdirstem"; then
7625 additional_libdir="$withval/$acl_libdirstem2"
7626 fi
7627 fi
7628 fi
7629
7630 fi
7631
7632 LIBINTL=
7633 LTLIBINTL=
7634 INCINTL=
7635 LIBINTL_PREFIX=
7636 HAVE_LIBINTL=
7637 rpathdirs=
7638 ltrpathdirs=
7639 names_already_handled=
7640 names_next_round='intl '
7641 while test -n "$names_next_round"; do
7642 names_this_round="$names_next_round"
7643 names_next_round=
7644 for name in $names_this_round; do
7645 already_handled=
7646 for n in $names_already_handled; do
7647 if test "$n" = "$name"; then
7648 already_handled=yes
7649 break
7650 fi
7651 done
7652 if test -z "$already_handled"; then
7653 names_already_handled="$names_already_handled $name"
7654 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7655 eval value=\"\$HAVE_LIB$uppername\"
7656 if test -n "$value"; then
7657 if test "$value" = yes; then
7658 eval value=\"\$LIB$uppername\"
7659 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7660 eval value=\"\$LTLIB$uppername\"
7661 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7662 else
7663 :
7664 fi
7665 else
7666 found_dir=
7667 found_la=
7668 found_so=
7669 found_a=
7670 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7671 if test -n "$acl_shlibext"; then
7672 shrext=".$acl_shlibext" # typically: shrext=.so
7673 else
7674 shrext=
7675 fi
7676 if test $use_additional = yes; then
7677 dir="$additional_libdir"
7678 if test -n "$acl_shlibext"; then
7679 if test -f "$dir/$libname$shrext"; then
7680 found_dir="$dir"
7681 found_so="$dir/$libname$shrext"
7682 else
7683 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7684 ver=`(cd "$dir" && \
7685 for f in "$libname$shrext".*; do echo "$f"; done \
7686 | sed -e "s,^$libname$shrext\\\\.,," \
7687 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7688 | sed 1q ) 2>/dev/null`
7689 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7690 found_dir="$dir"
7691 found_so="$dir/$libname$shrext.$ver"
7692 fi
7693 else
7694 eval library_names=\"$acl_library_names_spec\"
7695 for f in $library_names; do
7696 if test -f "$dir/$f"; then
7697 found_dir="$dir"
7698 found_so="$dir/$f"
7699 break
7700 fi
7701 done
7702 fi
7703 fi
7704 fi
7705 if test "X$found_dir" = "X"; then
7706 if test -f "$dir/$libname.$acl_libext"; then
7707 found_dir="$dir"
7708 found_a="$dir/$libname.$acl_libext"
7709 fi
7710 fi
7711 if test "X$found_dir" != "X"; then
7712 if test -f "$dir/$libname.la"; then
7713 found_la="$dir/$libname.la"
7714 fi
7715 fi
7716 fi
7717 if test "X$found_dir" = "X"; then
7718 for x in $LDFLAGS $LTLIBINTL; do
7719
7720 acl_save_prefix="$prefix"
7721 prefix="$acl_final_prefix"
7722 acl_save_exec_prefix="$exec_prefix"
7723 exec_prefix="$acl_final_exec_prefix"
7724 eval x=\"$x\"
7725 exec_prefix="$acl_save_exec_prefix"
7726 prefix="$acl_save_prefix"
7727
7728 case "$x" in
7729 -L*)
7730 dir=`echo "X$x" | sed -e 's/^X-L//'`
7731 if test -n "$acl_shlibext"; then
7732 if test -f "$dir/$libname$shrext"; then
7733 found_dir="$dir"
7734 found_so="$dir/$libname$shrext"
7735 else
7736 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7737 ver=`(cd "$dir" && \
7738 for f in "$libname$shrext".*; do echo "$f"; done \
7739 | sed -e "s,^$libname$shrext\\\\.,," \
7740 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7741 | sed 1q ) 2>/dev/null`
7742 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7743 found_dir="$dir"
7744 found_so="$dir/$libname$shrext.$ver"
7745 fi
7746 else
7747 eval library_names=\"$acl_library_names_spec\"
7748 for f in $library_names; do
7749 if test -f "$dir/$f"; then
7750 found_dir="$dir"
7751 found_so="$dir/$f"
7752 break
7753 fi
7754 done
7755 fi
7756 fi
7757 fi
7758 if test "X$found_dir" = "X"; then
7759 if test -f "$dir/$libname.$acl_libext"; then
7760 found_dir="$dir"
7761 found_a="$dir/$libname.$acl_libext"
7762 fi
7763 fi
7764 if test "X$found_dir" != "X"; then
7765 if test -f "$dir/$libname.la"; then
7766 found_la="$dir/$libname.la"
7767 fi
7768 fi
7769 ;;
7770 esac
7771 if test "X$found_dir" != "X"; then
7772 break
7773 fi
7774 done
7775 fi
7776 if test "X$found_dir" != "X"; then
7777 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7778 if test "X$found_so" != "X"; then
7779 if test "$enable_rpath" = no \
7780 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7781 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7782 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7783 else
7784 haveit=
7785 for x in $ltrpathdirs; do
7786 if test "X$x" = "X$found_dir"; then
7787 haveit=yes
7788 break
7789 fi
7790 done
7791 if test -z "$haveit"; then
7792 ltrpathdirs="$ltrpathdirs $found_dir"
7793 fi
7794 if test "$acl_hardcode_direct" = yes; then
7795 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7796 else
7797 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7798 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7799 haveit=
7800 for x in $rpathdirs; do
7801 if test "X$x" = "X$found_dir"; then
7802 haveit=yes
7803 break
7804 fi
7805 done
7806 if test -z "$haveit"; then
7807 rpathdirs="$rpathdirs $found_dir"
7808 fi
7809 else
7810 haveit=
7811 for x in $LDFLAGS $LIBINTL; do
7812
7813 acl_save_prefix="$prefix"
7814 prefix="$acl_final_prefix"
7815 acl_save_exec_prefix="$exec_prefix"
7816 exec_prefix="$acl_final_exec_prefix"
7817 eval x=\"$x\"
7818 exec_prefix="$acl_save_exec_prefix"
7819 prefix="$acl_save_prefix"
7820
7821 if test "X$x" = "X-L$found_dir"; then
7822 haveit=yes
7823 break
7824 fi
7825 done
7826 if test -z "$haveit"; then
7827 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7828 fi
7829 if test "$acl_hardcode_minus_L" != no; then
7830 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7831 else
7832 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7833 fi
7834 fi
7835 fi
7836 fi
7837 else
7838 if test "X$found_a" != "X"; then
7839 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7840 else
7841 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7842 fi
7843 fi
7844 additional_includedir=
7845 case "$found_dir" in
7846 */$acl_libdirstem | */$acl_libdirstem/)
7847 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7848 if test "$name" = 'intl'; then
7849 LIBINTL_PREFIX="$basedir"
7850 fi
7851 additional_includedir="$basedir/include"
7852 ;;
7853 */$acl_libdirstem2 | */$acl_libdirstem2/)
7854 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7855 if test "$name" = 'intl'; then
7856 LIBINTL_PREFIX="$basedir"
7857 fi
7858 additional_includedir="$basedir/include"
7859 ;;
7860 esac
7861 if test "X$additional_includedir" != "X"; then
7862 if test "X$additional_includedir" != "X/usr/include"; then
7863 haveit=
7864 if test "X$additional_includedir" = "X/usr/local/include"; then
7865 if test -n "$GCC"; then
7866 case $host_os in
7867 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7868 esac
7869 fi
7870 fi
7871 if test -z "$haveit"; then
7872 for x in $CPPFLAGS $INCINTL; do
7873
7874 acl_save_prefix="$prefix"
7875 prefix="$acl_final_prefix"
7876 acl_save_exec_prefix="$exec_prefix"
7877 exec_prefix="$acl_final_exec_prefix"
7878 eval x=\"$x\"
7879 exec_prefix="$acl_save_exec_prefix"
7880 prefix="$acl_save_prefix"
7881
7882 if test "X$x" = "X-I$additional_includedir"; then
7883 haveit=yes
7884 break
7885 fi
7886 done
7887 if test -z "$haveit"; then
7888 if test -d "$additional_includedir"; then
7889 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7890 fi
7891 fi
7892 fi
7893 fi
7894 fi
7895 if test -n "$found_la"; then
7896 save_libdir="$libdir"
7897 case "$found_la" in
7898 */* | *\\*) . "$found_la" ;;
7899 *) . "./$found_la" ;;
7900 esac
7901 libdir="$save_libdir"
7902 for dep in $dependency_libs; do
7903 case "$dep" in
7904 -L*)
7905 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7906 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7907 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7908 haveit=
7909 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7910 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7911 if test -n "$GCC"; then
7912 case $host_os in
7913 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7914 esac
7915 fi
7916 fi
7917 if test -z "$haveit"; then
7918 haveit=
7919 for x in $LDFLAGS $LIBINTL; do
7920
7921 acl_save_prefix="$prefix"
7922 prefix="$acl_final_prefix"
7923 acl_save_exec_prefix="$exec_prefix"
7924 exec_prefix="$acl_final_exec_prefix"
7925 eval x=\"$x\"
7926 exec_prefix="$acl_save_exec_prefix"
7927 prefix="$acl_save_prefix"
7928
7929 if test "X$x" = "X-L$additional_libdir"; then
7930 haveit=yes
7931 break
7932 fi
7933 done
7934 if test -z "$haveit"; then
7935 if test -d "$additional_libdir"; then
7936 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7937 fi
7938 fi
7939 haveit=
7940 for x in $LDFLAGS $LTLIBINTL; do
7941
7942 acl_save_prefix="$prefix"
7943 prefix="$acl_final_prefix"
7944 acl_save_exec_prefix="$exec_prefix"
7945 exec_prefix="$acl_final_exec_prefix"
7946 eval x=\"$x\"
7947 exec_prefix="$acl_save_exec_prefix"
7948 prefix="$acl_save_prefix"
7949
7950 if test "X$x" = "X-L$additional_libdir"; then
7951 haveit=yes
7952 break
7953 fi
7954 done
7955 if test -z "$haveit"; then
7956 if test -d "$additional_libdir"; then
7957 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7958 fi
7959 fi
7960 fi
7961 fi
7962 ;;
7963 -R*)
7964 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7965 if test "$enable_rpath" != no; then
7966 haveit=
7967 for x in $rpathdirs; do
7968 if test "X$x" = "X$dir"; then
7969 haveit=yes
7970 break
7971 fi
7972 done
7973 if test -z "$haveit"; then
7974 rpathdirs="$rpathdirs $dir"
7975 fi
7976 haveit=
7977 for x in $ltrpathdirs; do
7978 if test "X$x" = "X$dir"; then
7979 haveit=yes
7980 break
7981 fi
7982 done
7983 if test -z "$haveit"; then
7984 ltrpathdirs="$ltrpathdirs $dir"
7985 fi
7986 fi
7987 ;;
7988 -l*)
7989 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7990 ;;
7991 *.la)
7992 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7993 ;;
7994 *)
7995 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7996 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7997 ;;
7998 esac
7999 done
8000 fi
8001 else
8002 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8003 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8004 fi
8005 fi
8006 fi
8007 done
8008 done
8009 if test "X$rpathdirs" != "X"; then
8010 if test -n "$acl_hardcode_libdir_separator"; then
8011 alldirs=
8012 for found_dir in $rpathdirs; do
8013 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8014 done
8015 acl_save_libdir="$libdir"
8016 libdir="$alldirs"
8017 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8018 libdir="$acl_save_libdir"
8019 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8020 else
8021 for found_dir in $rpathdirs; do
8022 acl_save_libdir="$libdir"
8023 libdir="$found_dir"
8024 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8025 libdir="$acl_save_libdir"
8026 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8027 done
8028 fi
8029 fi
8030 if test "X$ltrpathdirs" != "X"; then
8031 for found_dir in $ltrpathdirs; do
8032 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8033 done
8034 fi
8035
8036
8037
8038
8039
8040
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8042 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8043 if eval \${$gt_func_gnugettext_libintl+:} false; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 gt_save_CPPFLAGS="$CPPFLAGS"
8047 CPPFLAGS="$CPPFLAGS $INCINTL"
8048 gt_save_LIBS="$LIBS"
8049 LIBS="$LIBS $LIBINTL"
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 #include <libintl.h>
8053 $gt_revision_test_code
8054 extern int _nl_msg_cat_cntr;
8055 extern
8056 #ifdef __cplusplus
8057 "C"
8058 #endif
8059 const char *_nl_expand_alias (const char *);
8060 int
8061 main ()
8062 {
8063 bindtextdomain ("", "");
8064 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8065 ;
8066 return 0;
8067 }
8068 _ACEOF
8069 if ac_fn_c_try_link "$LINENO"; then :
8070 eval "$gt_func_gnugettext_libintl=yes"
8071 else
8072 eval "$gt_func_gnugettext_libintl=no"
8073 fi
8074 rm -f core conftest.err conftest.$ac_objext \
8075 conftest$ac_exeext conftest.$ac_ext
8076 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8077 LIBS="$LIBS $LIBICONV"
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 #include <libintl.h>
8081 $gt_revision_test_code
8082 extern int _nl_msg_cat_cntr;
8083 extern
8084 #ifdef __cplusplus
8085 "C"
8086 #endif
8087 const char *_nl_expand_alias (const char *);
8088 int
8089 main ()
8090 {
8091 bindtextdomain ("", "");
8092 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8093 ;
8094 return 0;
8095 }
8096 _ACEOF
8097 if ac_fn_c_try_link "$LINENO"; then :
8098 LIBINTL="$LIBINTL $LIBICONV"
8099 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8100 eval "$gt_func_gnugettext_libintl=yes"
8101
8102 fi
8103 rm -f core conftest.err conftest.$ac_objext \
8104 conftest$ac_exeext conftest.$ac_ext
8105 fi
8106 CPPFLAGS="$gt_save_CPPFLAGS"
8107 LIBS="$gt_save_LIBS"
8108 fi
8109 eval ac_res=\$$gt_func_gnugettext_libintl
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8111 $as_echo "$ac_res" >&6; }
8112 fi
8113
8114 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8115 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8116 && test "$PACKAGE" != gettext-runtime \
8117 && test "$PACKAGE" != gettext-tools; }; then
8118 gt_use_preinstalled_gnugettext=yes
8119 else
8120 LIBINTL=
8121 LTLIBINTL=
8122 INCINTL=
8123 fi
8124
8125
8126
8127 if test -n "$INTL_MACOSX_LIBS"; then
8128 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8129 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8130 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8131 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8132 fi
8133 fi
8134
8135 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8136 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8137
8138 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8139
8140 else
8141 USE_NLS=no
8142 fi
8143 fi
8144
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8146 $as_echo_n "checking whether to use NLS... " >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8148 $as_echo "$USE_NLS" >&6; }
8149 if test "$USE_NLS" = "yes"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8151 $as_echo_n "checking where the gettext function comes from... " >&6; }
8152 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8153 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8154 gt_source="external libintl"
8155 else
8156 gt_source="libc"
8157 fi
8158 else
8159 gt_source="included intl directory"
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8162 $as_echo "$gt_source" >&6; }
8163 fi
8164
8165 if test "$USE_NLS" = "yes"; then
8166
8167 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8168 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8170 $as_echo_n "checking how to link with libintl... " >&6; }
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8172 $as_echo "$LIBINTL" >&6; }
8173
8174 for element in $INCINTL; do
8175 haveit=
8176 for x in $CPPFLAGS; do
8177
8178 acl_save_prefix="$prefix"
8179 prefix="$acl_final_prefix"
8180 acl_save_exec_prefix="$exec_prefix"
8181 exec_prefix="$acl_final_exec_prefix"
8182 eval x=\"$x\"
8183 exec_prefix="$acl_save_exec_prefix"
8184 prefix="$acl_save_prefix"
8185
8186 if test "X$x" = "X$element"; then
8187 haveit=yes
8188 break
8189 fi
8190 done
8191 if test -z "$haveit"; then
8192 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8193 fi
8194 done
8195
8196 fi
8197
8198
8199 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8200
8201
8202 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8203
8204 fi
8205
8206 POSUB=po
8207 fi
8208
8209
8210
8211 INTLLIBS="$LIBINTL"
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222 if test -n "$ac_tool_prefix"; then
8223 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8224 set dummy ${ac_tool_prefix}windres; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if ${ac_cv_prog_WINDRES+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 if test -n "$WINDRES"; then
8231 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8240 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8243 fi
8244 done
8245 done
8246 IFS=$as_save_IFS
8247
8248 fi
8249 fi
8250 WINDRES=$ac_cv_prog_WINDRES
8251 if test -n "$WINDRES"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8253 $as_echo "$WINDRES" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 fi
8258
8259
8260 fi
8261 if test -z "$ac_cv_prog_WINDRES"; then
8262 ac_ct_WINDRES=$WINDRES
8263 # Extract the first word of "windres", so it can be a program name with args.
8264 set dummy windres; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 if test -n "$ac_ct_WINDRES"; then
8271 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8275 do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8280 ac_cv_prog_ac_ct_WINDRES="windres"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8291 if test -n "$ac_ct_WINDRES"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8293 $as_echo "$ac_ct_WINDRES" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297 fi
8298
8299 if test "x$ac_ct_WINDRES" = x; then
8300 WINDRES=""
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308 WINDRES=$ac_ct_WINDRES
8309 fi
8310 else
8311 WINDRES="$ac_cv_prog_WINDRES"
8312 fi
8313
8314 if test "$WINDRES" != ""; then
8315 HAVE_WINDRES_TRUE=
8316 HAVE_WINDRES_FALSE='#'
8317 else
8318 HAVE_WINDRES_TRUE='#'
8319 HAVE_WINDRES_FALSE=
8320 fi
8321
8322
8323
8324 # Extract the first word of "help2man", so it can be a program name with args.
8325 set dummy help2man; ac_word=$2
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 $as_echo_n "checking for $ac_word... " >&6; }
8328 if ${ac_cv_path_HELP2MAN+:} false; then :
8329 $as_echo_n "(cached) " >&6
8330 else
8331 case $HELP2MAN in
8332 [\\/]* | ?:[\\/]*)
8333 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
8334 ;;
8335 *)
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH
8338 do
8339 IFS=$as_save_IFS
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8343 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345 break 2
8346 fi
8347 done
8348 done
8349 IFS=$as_save_IFS
8350
8351 ;;
8352 esac
8353 fi
8354 HELP2MAN=$ac_cv_path_HELP2MAN
8355 if test -n "$HELP2MAN"; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
8357 $as_echo "$HELP2MAN" >&6; }
8358 else
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8361 fi
8362
8363
8364 if test -z "$HELP2MAN"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install help2man (if you're a developer)" >&5
8366 $as_echo "$as_me: WARNING: You may need to install help2man (if you're a developer)" >&2;}
8367 # Set HELP2MAN so 'make' errors will be understandable
8368 HELP2MAN="help2man"
8369 LACK_HELP2MAN=1
8370 fi
8371
8372
8373 # pkg-config / pkgconf
8374
8375
8376
8377
8378
8379
8380
8381 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8382 if test -n "$ac_tool_prefix"; then
8383 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8384 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 case $PKG_CONFIG in
8391 [\\/]* | ?:[\\/]*)
8392 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8393 ;;
8394 *)
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8404 break 2
8405 fi
8406 done
8407 done
8408 IFS=$as_save_IFS
8409
8410 ;;
8411 esac
8412 fi
8413 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8414 if test -n "$PKG_CONFIG"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8416 $as_echo "$PKG_CONFIG" >&6; }
8417 else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8420 fi
8421
8422
8423 fi
8424 if test -z "$ac_cv_path_PKG_CONFIG"; then
8425 ac_pt_PKG_CONFIG=$PKG_CONFIG
8426 # Extract the first word of "pkg-config", so it can be a program name with args.
8427 set dummy pkg-config; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 case $ac_pt_PKG_CONFIG in
8434 [\\/]* | ?:[\\/]*)
8435 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8436 ;;
8437 *)
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8440 do
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8448 fi
8449 done
8450 done
8451 IFS=$as_save_IFS
8452
8453 ;;
8454 esac
8455 fi
8456 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8457 if test -n "$ac_pt_PKG_CONFIG"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8459 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8460 else
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8462 $as_echo "no" >&6; }
8463 fi
8464
8465 if test "x$ac_pt_PKG_CONFIG" = x; then
8466 PKG_CONFIG=""
8467 else
8468 case $cross_compiling:$ac_tool_warned in
8469 yes:)
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8472 ac_tool_warned=yes ;;
8473 esac
8474 PKG_CONFIG=$ac_pt_PKG_CONFIG
8475 fi
8476 else
8477 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8478 fi
8479
8480 fi
8481 if test -n "$PKG_CONFIG"; then
8482 _pkg_min_version=0.9.0
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8484 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8485 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8487 $as_echo "yes" >&6; }
8488 else
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8490 $as_echo "no" >&6; }
8491 PKG_CONFIG=""
8492 fi
8493 fi
8494
8495
8496
8497 # Check whether --enable-tests was given.
8498 if test "${enable_tests+set}" = set; then :
8499 enableval=$enable_tests;
8500 else
8501 enable_tests=yes
8502 fi
8503
8504 if test x"$enable_tests" = x"yes"; then
8505 # Extract the first word of "cxxtestgen", so it can be a program name with args.
8506 set dummy cxxtestgen; ac_word=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if ${ac_cv_path_CXXTESTGEN+:} false; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 case $CXXTESTGEN in
8513 [\\/]* | ?:[\\/]*)
8514 ac_cv_path_CXXTESTGEN="$CXXTESTGEN" # Let the user override the test with a path.
8515 ;;
8516 *)
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_path_CXXTESTGEN="$as_dir/$ac_word$ac_exec_ext"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528 done
8529 done
8530 IFS=$as_save_IFS
8531
8532 ;;
8533 esac
8534 fi
8535 CXXTESTGEN=$ac_cv_path_CXXTESTGEN
8536 if test -n "$CXXTESTGEN"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXTESTGEN" >&5
8538 $as_echo "$CXXTESTGEN" >&6; }
8539 else
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8542 fi
8543
8544
8545 if test -z "$CXXTESTGEN"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need cxxtestgen to run the testsuite" >&5
8547 $as_echo "$as_me: WARNING: Need cxxtestgen to run the testsuite" >&2;}
8548 LACK_CXXTESTGEN=1
8549 fi
8550 fi
8551 if test x"$enable_tests" = x"yes"; then
8552 HAVE_TESTS_TRUE=
8553 HAVE_TESTS_FALSE='#'
8554 else
8555 HAVE_TESTS_TRUE='#'
8556 HAVE_TESTS_FALSE=
8557 fi
8558
8559
8560
8561
8562 # Check whether --enable-upx was given.
8563 if test "${enable_upx+set}" = set; then :
8564 enableval=$enable_upx;
8565 else
8566 enable_upx=no
8567 fi
8568
8569 if test x"$enable_upx" = x"yes"; then
8570 # Extract the first word of "upx", so it can be a program name with args.
8571 set dummy upx; ac_word=$2
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 $as_echo_n "checking for $ac_word... " >&6; }
8574 if ${ac_cv_path_UPX+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 case $UPX in
8578 [\\/]* | ?:[\\/]*)
8579 ac_cv_path_UPX="$UPX" # Let the user override the test with a path.
8580 ;;
8581 *)
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in $PATH
8584 do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589 ac_cv_path_UPX="$as_dir/$ac_word$ac_exec_ext"
8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 break 2
8592 fi
8593 done
8594 done
8595 IFS=$as_save_IFS
8596
8597 ;;
8598 esac
8599 fi
8600 UPX=$ac_cv_path_UPX
8601 if test -n "$UPX"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPX" >&5
8603 $as_echo "$UPX" >&6; }
8604 else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8607 fi
8608
8609
8610 fi
8611 if test "$UPX" != ""; then
8612 HAVE_UPX_TRUE=
8613 HAVE_UPX_FALSE='#'
8614 else
8615 HAVE_UPX_TRUE='#'
8616 HAVE_UPX_FALSE=
8617 fi
8618
8619
8620 # Dynamic and static builds
8621 # Check whether --enable-static was given.
8622 if test "${enable_static+set}" = set; then :
8623 enableval=$enable_static;
8624 else
8625 enable_static=no
8626 fi
8627
8628 if test x"$enable_static" = x"yes"; then
8629 case "${host}" in
8630 # (cf. (autoconf.info)Using System Type) (2002)
8631 *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8632 # LIBS is handled by pkg-config and Libs.private/Requires.private
8633 # We still need to force choosing 'libxxx.a' over 'libxxx.dll.a':
8634 LDFLAGS="$LDFLAGS -static"
8635 ;;
8636 mipsallegrexel-psp-elf)
8637 # (Only static builds are possible for this architecture AFAIK)
8638 # Light version, if dependencies are compiled minimaly
8639 #LIBS="$LIBS -lfreetype -lz"
8640 # Full version, if planning to support more formats
8641 LIBS="-lvorbisidec -lfreetype -lpng -ljpeg -lz $LIBS"
8642 #LIBS="$LIBS -lfreetype -lpng -ltiff -ljpeg -lz -lvorbisfile -lvorbis -logg"
8643 ;;
8644 # *nix
8645 *)
8646 # The linker doesn't find dependent libs when using .a libs
8647 #LIBS="$LIBM -ldl $LIBS"
8648 LIBS="-ldl $LIBS"
8649 # Strip secondary dependencies added by e.g. fontconfig->libfreetype
8650 #LDFLAGS="$LDFLAGS -Wl,--as-needed"
8651 # Actually having freetype is handy, no need to add it for SDL_ttf.
8652 ;;
8653 esac
8654 fi
8655
8656
8657 # SDL and core libs
8658 # See BUILD for version requirements
8659 # PACKAGERS: DO *NOT* LOWER THE VERSIONS UNLESS YOU WANT TONS OF BUGS!
8660
8661 pkg_failed=no
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2" >&5
8663 $as_echo_n "checking for SDL2... " >&6; }
8664
8665 if test -n "$SDL2_CFLAGS"; then
8666 pkg_cv_SDL2_CFLAGS="$SDL2_CFLAGS"
8667 elif test -n "$PKG_CONFIG"; then
8668 if test -n "$PKG_CONFIG" && \
8669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 > 2.0.3 SDL2_image > 2.0.0 SDL2_mixer > 2.0.0 SDL2_ttf > 2.0.12 SDL2_gfx >= 1.0.1\""; } >&5
8670 ($PKG_CONFIG --exists --print-errors "sdl2 > 2.0.3 SDL2_image > 2.0.0 SDL2_mixer > 2.0.0 SDL2_ttf > 2.0.12 SDL2_gfx >= 1.0.1") 2>&5
8671 ac_status=$?
8672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8673 test $ac_status = 0; }; then
8674 pkg_cv_SDL2_CFLAGS=`$PKG_CONFIG --cflags "sdl2 > 2.0.3 SDL2_image > 2.0.0 SDL2_mixer > 2.0.0 SDL2_ttf > 2.0.12 SDL2_gfx >= 1.0.1" 2>/dev/null`
8675 test "x$?" != "x0" && pkg_failed=yes
8676 else
8677 pkg_failed=yes
8678 fi
8679 else
8680 pkg_failed=untried
8681 fi
8682 if test -n "$SDL2_LIBS"; then
8683 pkg_cv_SDL2_LIBS="$SDL2_LIBS"
8684 elif test -n "$PKG_CONFIG"; then
8685 if test -n "$PKG_CONFIG" && \
8686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 > 2.0.3 SDL2_image > 2.0.0 SDL2_mixer > 2.0.0 SDL2_ttf > 2.0.12 SDL2_gfx >= 1.0.1\""; } >&5
8687 ($PKG_CONFIG --exists --print-errors "sdl2 > 2.0.3 SDL2_image > 2.0.0 SDL2_mixer > 2.0.0 SDL2_ttf > 2.0.12 SDL2_gfx >= 1.0.1") 2>&5
8688 ac_status=$?
8689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8690 test $ac_status = 0; }; then
8691 pkg_cv_SDL2_LIBS=`$PKG_CONFIG --libs "sdl2 > 2.0.3 SDL2_image > 2.0.0 SDL2_mixer > 2.0.0 SDL2_ttf > 2.0.12 SDL2_gfx >= 1.0.1" 2>/dev/null`
8692 test "x$?" != "x0" && pkg_failed=yes
8693 else
8694 pkg_failed=yes
8695 fi
8696 else
8697 pkg_failed=untried
8698 fi
8699
8700
8701
8702 if test $pkg_failed = yes; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 $as_echo "no" >&6; }
8705
8706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8707 _pkg_short_errors_supported=yes
8708 else
8709 _pkg_short_errors_supported=no
8710 fi
8711 if test $_pkg_short_errors_supported = yes; then
8712 SDL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 > 2.0.3 SDL2_image > 2.0.0 SDL2_mixer > 2.0.0 SDL2_ttf > 2.0.12 SDL2_gfx >= 1.0.1" 2>&1`
8713 else
8714 SDL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 > 2.0.3 SDL2_image > 2.0.0 SDL2_mixer > 2.0.0 SDL2_ttf > 2.0.12 SDL2_gfx >= 1.0.1" 2>&1`
8715 fi
8716 # Put the nasty error message in config.log where it belongs
8717 echo "$SDL2_PKG_ERRORS" >&5
8718
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SDL2_PKG_ERRORS" >&5
8720 $as_echo "$as_me: WARNING: $SDL2_PKG_ERRORS" >&2;}; LACK_SDL2=1
8721 elif test $pkg_failed = untried; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SDL2_PKG_ERRORS" >&5
8725 $as_echo "$as_me: WARNING: $SDL2_PKG_ERRORS" >&2;}; LACK_SDL2=1
8726 else
8727 SDL2_CFLAGS=$pkg_cv_SDL2_CFLAGS
8728 SDL2_LIBS=$pkg_cv_SDL2_LIBS
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8730 $as_echo "yes" >&6; }
8731 CXXFLAGS="$CXXFLAGS $SDL2_CFLAGS"
8732 CFLAGS="$CXXFLAGS $SDL2_CFLAGS"
8733 LIBS="$SDL2_LIBS $LIBS"
8734 fi
8735
8736 case "${host}" in
8737 # (cf. (autoconf.info)Using System Type) (2002)
8738 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows* \
8739 | mipsallegrexel-psp-elf \
8740 | arm-unknown-linux-androideabi \
8741 | *-emscripten)
8742 # Can't search fonts using fontconfig under ms woe
8743 # Nor under Android or Emscripten (unless we recreate a full fontconfig root? ;))
8744 use_fontconfig="no"
8745 ;;
8746 *)
8747 use_fontconfig="yes"
8748 ;;
8749 esac
8750 if test x"$use_fontconfig" = x"yes"; then
8751
8752 pkg_failed=no
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
8754 $as_echo_n "checking for FONTCONFIG... " >&6; }
8755
8756 if test -n "$FONTCONFIG_CFLAGS"; then
8757 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
8758 elif test -n "$PKG_CONFIG"; then
8759 if test -n "$PKG_CONFIG" && \
8760 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.3\""; } >&5
8761 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.3") 2>&5
8762 ac_status=$?
8763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8764 test $ac_status = 0; }; then
8765 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.3" 2>/dev/null`
8766 test "x$?" != "x0" && pkg_failed=yes
8767 else
8768 pkg_failed=yes
8769 fi
8770 else
8771 pkg_failed=untried
8772 fi
8773 if test -n "$FONTCONFIG_LIBS"; then
8774 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
8775 elif test -n "$PKG_CONFIG"; then
8776 if test -n "$PKG_CONFIG" && \
8777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.3\""; } >&5
8778 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.3") 2>&5
8779 ac_status=$?
8780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8781 test $ac_status = 0; }; then
8782 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.3" 2>/dev/null`
8783 test "x$?" != "x0" && pkg_failed=yes
8784 else
8785 pkg_failed=yes
8786 fi
8787 else
8788 pkg_failed=untried
8789 fi
8790
8791
8792
8793 if test $pkg_failed = yes; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796
8797 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8798 _pkg_short_errors_supported=yes
8799 else
8800 _pkg_short_errors_supported=no
8801 fi
8802 if test $_pkg_short_errors_supported = yes; then
8803 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.3" 2>&1`
8804 else
8805 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.3" 2>&1`
8806 fi
8807 # Put the nasty error message in config.log where it belongs
8808 echo "$FONTCONFIG_PKG_ERRORS" >&5
8809
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FONTCONFIG_PKG_ERRORS" >&5
8811 $as_echo "$as_me: WARNING: $FONTCONFIG_PKG_ERRORS" >&2;}; LACK_FONTCONFIG=1
8812 elif test $pkg_failed = untried; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8814 $as_echo "no" >&6; }
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FONTCONFIG_PKG_ERRORS" >&5
8816 $as_echo "$as_me: WARNING: $FONTCONFIG_PKG_ERRORS" >&2;}; LACK_FONTCONFIG=1
8817 else
8818 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
8819 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8821 $as_echo "yes" >&6; }
8822
8823 $as_echo "#define HAVE_FONTCONFIG /**/" >>confdefs.h
8824
8825 fi
8826 CFLAGS="$CFLAGS $FONTCONFIG_CFLAGS"
8827 LIBS="$FONTCONFIG_LIBS $LIBS"
8828 fi
8829
8830
8831 # Lengthy Gnulib checks
8832
8833
8834
8835
8836
8837 LIBC_FATAL_STDERR_=1
8838 export LIBC_FATAL_STDERR_
8839
8840 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8841 if test "x$ac_cv_type_size_t" = xyes; then :
8842
8843 else
8844
8845 cat >>confdefs.h <<_ACEOF
8846 #define size_t unsigned int
8847 _ACEOF
8848
8849 fi
8850
8851 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8852 # for constant arguments. Useless!
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8854 $as_echo_n "checking for working alloca.h... " >&6; }
8855 if ${ac_cv_working_alloca_h+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860 #include <alloca.h>
8861 int
8862 main ()
8863 {
8864 char *p = (char *) alloca (2 * sizeof (int));
8865 if (p) return 0;
8866 ;
8867 return 0;
8868 }
8869 _ACEOF
8870 if ac_fn_c_try_link "$LINENO"; then :
8871 ac_cv_working_alloca_h=yes
8872 else
8873 ac_cv_working_alloca_h=no
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext \
8876 conftest$ac_exeext conftest.$ac_ext
8877 fi
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8879 $as_echo "$ac_cv_working_alloca_h" >&6; }
8880 if test $ac_cv_working_alloca_h = yes; then
8881
8882 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8883
8884 fi
8885
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8887 $as_echo_n "checking for alloca... " >&6; }
8888 if ${ac_cv_func_alloca_works+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892 /* end confdefs.h. */
8893 #ifdef __GNUC__
8894 # define alloca __builtin_alloca
8895 #else
8896 # ifdef _MSC_VER
8897 # include <malloc.h>
8898 # define alloca _alloca
8899 # else
8900 # ifdef HAVE_ALLOCA_H
8901 # include <alloca.h>
8902 # else
8903 # ifdef _AIX
8904 #pragma alloca
8905 # else
8906 # ifndef alloca /* predefined by HP cc +Olibcalls */
8907 void *alloca (size_t);
8908 # endif
8909 # endif
8910 # endif
8911 # endif
8912 #endif
8913
8914 int
8915 main ()
8916 {
8917 char *p = (char *) alloca (1);
8918 if (p) return 0;
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 ac_cv_func_alloca_works=yes
8925 else
8926 ac_cv_func_alloca_works=no
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8932 $as_echo "$ac_cv_func_alloca_works" >&6; }
8933
8934 if test $ac_cv_func_alloca_works = yes; then
8935
8936 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8937
8938 else
8939 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8940 # that cause trouble. Some versions do not even contain alloca or
8941 # contain a buggy version. If you still want to use their alloca,
8942 # use ar to extract alloca.o from them instead of compiling alloca.c.
8943
8944
8945
8946
8947
8948 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8949
8950 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8951
8952
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8954 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8955 if ${ac_cv_os_cray+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 #if defined CRAY && ! defined CRAY2
8961 webecray
8962 #else
8963 wenotbecray
8964 #endif
8965
8966 _ACEOF
8967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8968 $EGREP "webecray" >/dev/null 2>&1; then :
8969 ac_cv_os_cray=yes
8970 else
8971 ac_cv_os_cray=no
8972 fi
8973 rm -f conftest*
8974
8975 fi
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8977 $as_echo "$ac_cv_os_cray" >&6; }
8978 if test $ac_cv_os_cray = yes; then
8979 for ac_func in _getb67 GETB67 getb67; do
8980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8981 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8982 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8983
8984 cat >>confdefs.h <<_ACEOF
8985 #define CRAY_STACKSEG_END $ac_func
8986 _ACEOF
8987
8988 break
8989 fi
8990
8991 done
8992 fi
8993
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8995 $as_echo_n "checking stack direction for C alloca... " >&6; }
8996 if ${ac_cv_c_stack_direction+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 if test "$cross_compiling" = yes; then :
9000 ac_cv_c_stack_direction=0
9001 else
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9004 $ac_includes_default
9005 int
9006 find_stack_direction (int *addr, int depth)
9007 {
9008 int dir, dummy = 0;
9009 if (! addr)
9010 addr = &dummy;
9011 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9012 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9013 return dir + dummy;
9014 }
9015
9016 int
9017 main (int argc, char **argv)
9018 {
9019 return find_stack_direction (0, argc + !argv + 20) < 0;
9020 }
9021 _ACEOF
9022 if ac_fn_c_try_run "$LINENO"; then :
9023 ac_cv_c_stack_direction=1
9024 else
9025 ac_cv_c_stack_direction=-1
9026 fi
9027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9028 conftest.$ac_objext conftest.beam conftest.$ac_ext
9029 fi
9030
9031 fi
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9033 $as_echo "$ac_cv_c_stack_direction" >&6; }
9034 cat >>confdefs.h <<_ACEOF
9035 #define STACK_DIRECTION $ac_cv_c_stack_direction
9036 _ACEOF
9037
9038
9039 fi
9040
9041
9042
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9044 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9045 if ${gl_cv_have_include_next+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 rm -rf conftestd1a conftestd1b conftestd2
9049 mkdir conftestd1a conftestd1b conftestd2
9050 cat <<EOF > conftestd1a/conftest.h
9051 #define DEFINED_IN_CONFTESTD1
9052 #include_next <conftest.h>
9053 #ifdef DEFINED_IN_CONFTESTD2
9054 int foo;
9055 #else
9056 #error "include_next doesn't work"
9057 #endif
9058 EOF
9059 cat <<EOF > conftestd1b/conftest.h
9060 #define DEFINED_IN_CONFTESTD1
9061 #include <stdio.h>
9062 #include_next <conftest.h>
9063 #ifdef DEFINED_IN_CONFTESTD2
9064 int foo;
9065 #else
9066 #error "include_next doesn't work"
9067 #endif
9068 EOF
9069 cat <<EOF > conftestd2/conftest.h
9070 #ifndef DEFINED_IN_CONFTESTD1
9071 #error "include_next test doesn't work"
9072 #endif
9073 #define DEFINED_IN_CONFTESTD2
9074 EOF
9075 gl_save_CPPFLAGS="$CPPFLAGS"
9076 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079 #include <conftest.h>
9080 _ACEOF
9081 if ac_fn_c_try_compile "$LINENO"; then :
9082 gl_cv_have_include_next=yes
9083 else
9084 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #include <conftest.h>
9088 _ACEOF
9089 if ac_fn_c_try_compile "$LINENO"; then :
9090 gl_cv_have_include_next=buggy
9091 else
9092 gl_cv_have_include_next=no
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9095
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 CPPFLAGS="$gl_save_CPPFLAGS"
9099 rm -rf conftestd1a conftestd1b conftestd2
9100
9101 fi
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9103 $as_echo "$gl_cv_have_include_next" >&6; }
9104 PRAGMA_SYSTEM_HEADER=
9105 if test $gl_cv_have_include_next = yes; then
9106 INCLUDE_NEXT=include_next
9107 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9108 if test -n "$GCC"; then
9109 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
9110 fi
9111 else
9112 if test $gl_cv_have_include_next = buggy; then
9113 INCLUDE_NEXT=include
9114 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9115 else
9116 INCLUDE_NEXT=include
9117 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
9118 fi
9119 fi
9120
9121
9122
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9124 $as_echo_n "checking whether system header files limit the line length... " >&6; }
9125 if ${gl_cv_pragma_columns+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9130
9131 #ifdef __TANDEM
9132 choke me
9133 #endif
9134
9135 _ACEOF
9136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9137 $EGREP "choke me" >/dev/null 2>&1; then :
9138 gl_cv_pragma_columns=yes
9139 else
9140 gl_cv_pragma_columns=no
9141 fi
9142 rm -f conftest*
9143
9144
9145 fi
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9147 $as_echo "$gl_cv_pragma_columns" >&6; }
9148 if test $gl_cv_pragma_columns = yes; then
9149 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
9150 else
9151 PRAGMA_COLUMNS=
9152 fi
9153
9154
9155
9156
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
9158 $as_echo_n "checking for complete errno.h... " >&6; }
9159 if ${gl_cv_header_errno_h_complete+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165
9166 #include <errno.h>
9167 #if !defined ETXTBSY
9168 booboo
9169 #endif
9170 #if !defined ENOMSG
9171 booboo
9172 #endif
9173 #if !defined EIDRM
9174 booboo
9175 #endif
9176 #if !defined ENOLINK
9177 booboo
9178 #endif
9179 #if !defined EPROTO
9180 booboo
9181 #endif
9182 #if !defined EMULTIHOP
9183 booboo
9184 #endif
9185 #if !defined EBADMSG
9186 booboo
9187 #endif
9188 #if !defined EOVERFLOW
9189 booboo
9190 #endif
9191 #if !defined ENOTSUP
9192 booboo
9193 #endif
9194 #if !defined ENETRESET
9195 booboo
9196 #endif
9197 #if !defined ECONNABORTED
9198 booboo
9199 #endif
9200 #if !defined ESTALE
9201 booboo
9202 #endif
9203 #if !defined EDQUOT
9204 booboo
9205 #endif
9206 #if !defined ECANCELED
9207 booboo
9208 #endif
9209 #if !defined EOWNERDEAD
9210 booboo
9211 #endif
9212 #if !defined ENOTRECOVERABLE
9213 booboo
9214 #endif
9215 #if !defined EILSEQ
9216 booboo
9217 #endif
9218
9219 _ACEOF
9220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9221 $EGREP "booboo" >/dev/null 2>&1; then :
9222 gl_cv_header_errno_h_complete=no
9223 else
9224 gl_cv_header_errno_h_complete=yes
9225 fi
9226 rm -f conftest*
9227
9228
9229 fi
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
9231 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
9232 if test $gl_cv_header_errno_h_complete = yes; then
9233 ERRNO_H=''
9234 else
9235
9236
9237
9238
9239
9240
9241
9242
9243 if test $gl_cv_have_include_next = yes; then
9244 gl_cv_next_errno_h='<'errno.h'>'
9245 else
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
9247 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
9248 if ${gl_cv_next_errno_h+:} false; then :
9249 $as_echo_n "(cached) " >&6
9250 else
9251
9252
9253
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 #include <errno.h>
9257 _ACEOF
9258 case "$host_os" in
9259 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9260 *) gl_absname_cpp="$ac_cpp" ;;
9261 esac
9262
9263 case "$host_os" in
9264 mingw*)
9265 gl_dirsep_regex='[/\\]'
9266 ;;
9267 *)
9268 gl_dirsep_regex='\/'
9269 ;;
9270 esac
9271 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9272 gl_header_literal_regex=`echo 'errno.h' \
9273 | sed -e "$gl_make_literal_regex_sed"`
9274 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9275 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9276 s|^/[^/]|//&|
9277 p
9278 q
9279 }'
9280
9281 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9282 sed -n "$gl_absolute_header_sed"`
9283
9284 gl_header=$gl_cv_absolute_errno_h
9285 gl_cv_next_errno_h='"'$gl_header'"'
9286
9287
9288 fi
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
9290 $as_echo "$gl_cv_next_errno_h" >&6; }
9291 fi
9292 NEXT_ERRNO_H=$gl_cv_next_errno_h
9293
9294 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9295 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9296 gl_next_as_first_directive='<'errno.h'>'
9297 else
9298 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9299 gl_next_as_first_directive=$gl_cv_next_errno_h
9300 fi
9301 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
9302
9303
9304
9305
9306 ERRNO_H='errno.h'
9307 fi
9308
9309 if test -n "$ERRNO_H"; then
9310 GL_GENERATE_ERRNO_H_TRUE=
9311 GL_GENERATE_ERRNO_H_FALSE='#'
9312 else
9313 GL_GENERATE_ERRNO_H_TRUE='#'
9314 GL_GENERATE_ERRNO_H_FALSE=
9315 fi
9316
9317
9318 if test -n "$ERRNO_H"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
9320 $as_echo_n "checking for EMULTIHOP value... " >&6; }
9321 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327
9328 #include <errno.h>
9329 #ifdef EMULTIHOP
9330 yes
9331 #endif
9332
9333 _ACEOF
9334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9335 $EGREP "yes" >/dev/null 2>&1; then :
9336 gl_cv_header_errno_h_EMULTIHOP=yes
9337 else
9338 gl_cv_header_errno_h_EMULTIHOP=no
9339 fi
9340 rm -f conftest*
9341
9342 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345
9346 #define _XOPEN_SOURCE_EXTENDED 1
9347 #include <errno.h>
9348 #ifdef EMULTIHOP
9349 yes
9350 #endif
9351
9352 _ACEOF
9353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9354 $EGREP "yes" >/dev/null 2>&1; then :
9355 gl_cv_header_errno_h_EMULTIHOP=hidden
9356 fi
9357 rm -f conftest*
9358
9359 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
9360 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
9361 #define _XOPEN_SOURCE_EXTENDED 1
9362 #include <errno.h>
9363 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9364 #include <stdio.h>
9365 #include <stdlib.h>
9366 "; then :
9367
9368 fi
9369
9370 fi
9371 fi
9372
9373 fi
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
9375 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
9376 case $gl_cv_header_errno_h_EMULTIHOP in
9377 yes | no)
9378 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
9379 ;;
9380 *)
9381 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
9382 ;;
9383 esac
9384
9385
9386 fi
9387
9388
9389 if test -n "$ERRNO_H"; then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
9391 $as_echo_n "checking for ENOLINK value... " >&6; }
9392 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
9393 $as_echo_n "(cached) " >&6
9394 else
9395
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9398
9399 #include <errno.h>
9400 #ifdef ENOLINK
9401 yes
9402 #endif
9403
9404 _ACEOF
9405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9406 $EGREP "yes" >/dev/null 2>&1; then :
9407 gl_cv_header_errno_h_ENOLINK=yes
9408 else
9409 gl_cv_header_errno_h_ENOLINK=no
9410 fi
9411 rm -f conftest*
9412
9413 if test $gl_cv_header_errno_h_ENOLINK = no; then
9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9416
9417 #define _XOPEN_SOURCE_EXTENDED 1
9418 #include <errno.h>
9419 #ifdef ENOLINK
9420 yes
9421 #endif
9422
9423 _ACEOF
9424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9425 $EGREP "yes" >/dev/null 2>&1; then :
9426 gl_cv_header_errno_h_ENOLINK=hidden
9427 fi
9428 rm -f conftest*
9429
9430 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
9431 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
9432 #define _XOPEN_SOURCE_EXTENDED 1
9433 #include <errno.h>
9434 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9435 #include <stdio.h>
9436 #include <stdlib.h>
9437 "; then :
9438
9439 fi
9440
9441 fi
9442 fi
9443
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
9446 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
9447 case $gl_cv_header_errno_h_ENOLINK in
9448 yes | no)
9449 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
9450 ;;
9451 *)
9452 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
9453 ;;
9454 esac
9455
9456
9457 fi
9458
9459
9460 if test -n "$ERRNO_H"; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
9462 $as_echo_n "checking for EOVERFLOW value... " >&6; }
9463 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469
9470 #include <errno.h>
9471 #ifdef EOVERFLOW
9472 yes
9473 #endif
9474
9475 _ACEOF
9476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9477 $EGREP "yes" >/dev/null 2>&1; then :
9478 gl_cv_header_errno_h_EOVERFLOW=yes
9479 else
9480 gl_cv_header_errno_h_EOVERFLOW=no
9481 fi
9482 rm -f conftest*
9483
9484 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9487
9488 #define _XOPEN_SOURCE_EXTENDED 1
9489 #include <errno.h>
9490 #ifdef EOVERFLOW
9491 yes
9492 #endif
9493
9494 _ACEOF
9495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9496 $EGREP "yes" >/dev/null 2>&1; then :
9497 gl_cv_header_errno_h_EOVERFLOW=hidden
9498 fi
9499 rm -f conftest*
9500
9501 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
9502 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
9503 #define _XOPEN_SOURCE_EXTENDED 1
9504 #include <errno.h>
9505 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9506 #include <stdio.h>
9507 #include <stdlib.h>
9508 "; then :
9509
9510 fi
9511
9512 fi
9513 fi
9514
9515 fi
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
9517 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
9518 case $gl_cv_header_errno_h_EOVERFLOW in
9519 yes | no)
9520 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
9521 ;;
9522 *)
9523 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
9524 ;;
9525 esac
9526
9527
9528 fi
9529
9530
9531 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
9532 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
9533 ac_have_decl=1
9534 else
9535 ac_have_decl=0
9536 fi
9537
9538 cat >>confdefs.h <<_ACEOF
9539 #define HAVE_DECL_STRERROR_R $ac_have_decl
9540 _ACEOF
9541
9542 for ac_func in strerror_r
9543 do :
9544 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
9545 if test "x$ac_cv_func_strerror_r" = xyes; then :
9546 cat >>confdefs.h <<_ACEOF
9547 #define HAVE_STRERROR_R 1
9548 _ACEOF
9549
9550 fi
9551 done
9552
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9554 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
9555 if ${ac_cv_func_strerror_r_char_p+:} false; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558
9559 ac_cv_func_strerror_r_char_p=no
9560 if test $ac_cv_have_decl_strerror_r = yes; then
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9563 $ac_includes_default
9564 int
9565 main ()
9566 {
9567
9568 char buf[100];
9569 char x = *strerror_r (0, buf, sizeof buf);
9570 char *p = strerror_r (0, buf, sizeof buf);
9571 return !p || x;
9572
9573 ;
9574 return 0;
9575 }
9576 _ACEOF
9577 if ac_fn_c_try_compile "$LINENO"; then :
9578 ac_cv_func_strerror_r_char_p=yes
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9581 else
9582 # strerror_r is not declared. Choose between
9583 # systems that have relatively inaccessible declarations for the
9584 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
9585 # former has a strerror_r that returns char*, while the latter
9586 # has a strerror_r that returns `int'.
9587 # This test should segfault on the DEC system.
9588 if test "$cross_compiling" = yes; then :
9589 :
9590 else
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593 $ac_includes_default
9594 extern char *strerror_r ();
9595 int
9596 main ()
9597 {
9598 char buf[100];
9599 char x = *strerror_r (0, buf, sizeof buf);
9600 return ! isalpha (x);
9601 ;
9602 return 0;
9603 }
9604 _ACEOF
9605 if ac_fn_c_try_run "$LINENO"; then :
9606 ac_cv_func_strerror_r_char_p=yes
9607 fi
9608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9609 conftest.$ac_objext conftest.beam conftest.$ac_ext
9610 fi
9611
9612 fi
9613
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9616 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
9617 if test $ac_cv_func_strerror_r_char_p = yes; then
9618
9619 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9620
9621 fi
9622
9623
9624 XGETTEXT_EXTRA_OPTIONS=
9625
9626
9627
9628
9629
9630 GNULIB_CHDIR=0;
9631 GNULIB_CHOWN=0;
9632 GNULIB_CLOSE=0;
9633 GNULIB_DUP=0;
9634 GNULIB_DUP2=0;
9635 GNULIB_DUP3=0;
9636 GNULIB_ENVIRON=0;
9637 GNULIB_EUIDACCESS=0;
9638 GNULIB_FACCESSAT=0;
9639 GNULIB_FCHDIR=0;
9640 GNULIB_FCHOWNAT=0;
9641 GNULIB_FDATASYNC=0;
9642 GNULIB_FSYNC=0;
9643 GNULIB_FTRUNCATE=0;
9644 GNULIB_GETCWD=0;
9645 GNULIB_GETDOMAINNAME=0;
9646 GNULIB_GETDTABLESIZE=0;
9647 GNULIB_GETGROUPS=0;
9648 GNULIB_GETHOSTNAME=0;
9649 GNULIB_GETLOGIN=0;
9650 GNULIB_GETLOGIN_R=0;
9651 GNULIB_GETPAGESIZE=0;
9652 GNULIB_GETUSERSHELL=0;
9653 GNULIB_GROUP_MEMBER=0;
9654 GNULIB_ISATTY=0;
9655 GNULIB_LCHOWN=0;
9656 GNULIB_LINK=0;
9657 GNULIB_LINKAT=0;
9658 GNULIB_LSEEK=0;
9659 GNULIB_PIPE=0;
9660 GNULIB_PIPE2=0;
9661 GNULIB_PREAD=0;
9662 GNULIB_PWRITE=0;
9663 GNULIB_READ=0;
9664 GNULIB_READLINK=0;
9665 GNULIB_READLINKAT=0;
9666 GNULIB_RMDIR=0;
9667 GNULIB_SETHOSTNAME=0;
9668 GNULIB_SLEEP=0;
9669 GNULIB_SYMLINK=0;
9670 GNULIB_SYMLINKAT=0;
9671 GNULIB_TTYNAME_R=0;
9672 GNULIB_UNISTD_H_NONBLOCKING=0;
9673 GNULIB_UNISTD_H_SIGPIPE=0;
9674 GNULIB_UNLINK=0;
9675 GNULIB_UNLINKAT=0;
9676 GNULIB_USLEEP=0;
9677 GNULIB_WRITE=0;
9678 HAVE_CHOWN=1;
9679 HAVE_DUP2=1;
9680 HAVE_DUP3=1;
9681 HAVE_EUIDACCESS=1;
9682 HAVE_FACCESSAT=1;
9683 HAVE_FCHDIR=1;
9684 HAVE_FCHOWNAT=1;
9685 HAVE_FDATASYNC=1;
9686 HAVE_FSYNC=1;
9687 HAVE_FTRUNCATE=1;
9688 HAVE_GETDTABLESIZE=1;
9689 HAVE_GETGROUPS=1;
9690 HAVE_GETHOSTNAME=1;
9691 HAVE_GETLOGIN=1;
9692 HAVE_GETPAGESIZE=1;
9693 HAVE_GROUP_MEMBER=1;
9694 HAVE_LCHOWN=1;
9695 HAVE_LINK=1;
9696 HAVE_LINKAT=1;
9697 HAVE_PIPE=1;
9698 HAVE_PIPE2=1;
9699 HAVE_PREAD=1;
9700 HAVE_PWRITE=1;
9701 HAVE_READLINK=1;
9702 HAVE_READLINKAT=1;
9703 HAVE_SETHOSTNAME=1;
9704 HAVE_SLEEP=1;
9705 HAVE_SYMLINK=1;
9706 HAVE_SYMLINKAT=1;
9707 HAVE_UNLINKAT=1;
9708 HAVE_USLEEP=1;
9709 HAVE_DECL_ENVIRON=1;
9710 HAVE_DECL_FCHDIR=1;
9711 HAVE_DECL_FDATASYNC=1;
9712 HAVE_DECL_GETDOMAINNAME=1;
9713 HAVE_DECL_GETLOGIN_R=1;
9714 HAVE_DECL_GETPAGESIZE=1;
9715 HAVE_DECL_GETUSERSHELL=1;
9716 HAVE_DECL_SETHOSTNAME=1;
9717 HAVE_DECL_TTYNAME_R=1;
9718 HAVE_OS_H=0;
9719 HAVE_SYS_PARAM_H=0;
9720 REPLACE_CHOWN=0;
9721 REPLACE_CLOSE=0;
9722 REPLACE_DUP=0;
9723 REPLACE_DUP2=0;
9724 REPLACE_FCHOWNAT=0;
9725 REPLACE_FTRUNCATE=0;
9726 REPLACE_GETCWD=0;
9727 REPLACE_GETDOMAINNAME=0;
9728 REPLACE_GETDTABLESIZE=0;
9729 REPLACE_GETLOGIN_R=0;
9730 REPLACE_GETGROUPS=0;
9731 REPLACE_GETPAGESIZE=0;
9732 REPLACE_ISATTY=0;
9733 REPLACE_LCHOWN=0;
9734 REPLACE_LINK=0;
9735 REPLACE_LINKAT=0;
9736 REPLACE_LSEEK=0;
9737 REPLACE_PREAD=0;
9738 REPLACE_PWRITE=0;
9739 REPLACE_READ=0;
9740 REPLACE_READLINK=0;
9741 REPLACE_RMDIR=0;
9742 REPLACE_SLEEP=0;
9743 REPLACE_SYMLINK=0;
9744 REPLACE_TTYNAME_R=0;
9745 REPLACE_UNLINK=0;
9746 REPLACE_UNLINKAT=0;
9747 REPLACE_USLEEP=0;
9748 REPLACE_WRITE=0;
9749 UNISTD_H_HAVE_WINSOCK2_H=0;
9750 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9751
9752
9753
9754
9755
9756 for ac_header in $ac_header_list
9757 do :
9758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9759 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9760 "
9761 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9762 cat >>confdefs.h <<_ACEOF
9763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9764 _ACEOF
9765
9766 fi
9767
9768 done
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785 if test $gl_cv_have_include_next = yes; then
9786 gl_cv_next_getopt_h='<'getopt.h'>'
9787 else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9789 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9790 if ${gl_cv_next_getopt_h+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792 else
9793
9794 if test $ac_cv_header_getopt_h = yes; then
9795
9796
9797
9798
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9801 #include <getopt.h>
9802 _ACEOF
9803 case "$host_os" in
9804 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9805 *) gl_absname_cpp="$ac_cpp" ;;
9806 esac
9807
9808 case "$host_os" in
9809 mingw*)
9810 gl_dirsep_regex='[/\\]'
9811 ;;
9812 *)
9813 gl_dirsep_regex='\/'
9814 ;;
9815 esac
9816 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9817 gl_header_literal_regex=`echo 'getopt.h' \
9818 | sed -e "$gl_make_literal_regex_sed"`
9819 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9820 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9821 s|^/[^/]|//&|
9822 p
9823 q
9824 }'
9825
9826 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9827 sed -n "$gl_absolute_header_sed"`
9828
9829 gl_header=$gl_cv_absolute_getopt_h
9830 gl_cv_next_getopt_h='"'$gl_header'"'
9831 else
9832 gl_cv_next_getopt_h='<'getopt.h'>'
9833 fi
9834
9835
9836 fi
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9838 $as_echo "$gl_cv_next_getopt_h" >&6; }
9839 fi
9840 NEXT_GETOPT_H=$gl_cv_next_getopt_h
9841
9842 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9844 gl_next_as_first_directive='<'getopt.h'>'
9845 else
9846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9847 gl_next_as_first_directive=$gl_cv_next_getopt_h
9848 fi
9849 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
9850
9851
9852
9853
9854 if test $ac_cv_header_getopt_h = yes; then
9855 HAVE_GETOPT_H=1
9856 else
9857 HAVE_GETOPT_H=0
9858 fi
9859
9860
9861 gl_replace_getopt=
9862
9863 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9864 for ac_header in getopt.h
9865 do :
9866 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9867 if test "x$ac_cv_header_getopt_h" = xyes; then :
9868 cat >>confdefs.h <<_ACEOF
9869 #define HAVE_GETOPT_H 1
9870 _ACEOF
9871
9872 else
9873 gl_replace_getopt=yes
9874 fi
9875
9876 done
9877
9878 fi
9879
9880 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9881 for ac_func in getopt_long_only
9882 do :
9883 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9884 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
9885 cat >>confdefs.h <<_ACEOF
9886 #define HAVE_GETOPT_LONG_ONLY 1
9887 _ACEOF
9888
9889 else
9890 gl_replace_getopt=yes
9891 fi
9892 done
9893
9894 fi
9895
9896 if test -z "$gl_replace_getopt"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9898 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9899 if ${gl_cv_func_getopt_posix+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902
9903 if test $cross_compiling = no; then
9904 if test "$cross_compiling" = yes; then :
9905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9907 as_fn_error $? "cannot run test program while cross compiling
9908 See \`config.log' for more details" "$LINENO" 5; }
9909 else
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912
9913 #include <unistd.h>
9914 #include <stdlib.h>
9915 #include <string.h>
9916
9917 int
9918 main ()
9919 {
9920 static char program[] = "program";
9921 static char a[] = "-a";
9922 static char foo[] = "foo";
9923 static char bar[] = "bar";
9924 char *argv[] = { program, a, foo, bar, NULL };
9925 int c;
9926
9927 c = getopt (4, argv, "ab");
9928 if (!(c == 'a'))
9929 return 1;
9930 c = getopt (4, argv, "ab");
9931 if (!(c == -1))
9932 return 2;
9933 if (!(optind == 2))
9934 return 3;
9935 return 0;
9936 }
9937
9938 _ACEOF
9939 if ac_fn_c_try_run "$LINENO"; then :
9940 gl_cv_func_getopt_posix=maybe
9941 else
9942 gl_cv_func_getopt_posix=no
9943 fi
9944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9945 conftest.$ac_objext conftest.beam conftest.$ac_ext
9946 fi
9947
9948 if test $gl_cv_func_getopt_posix = maybe; then
9949 if test "$cross_compiling" = yes; then :
9950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9952 as_fn_error $? "cannot run test program while cross compiling
9953 See \`config.log' for more details" "$LINENO" 5; }
9954 else
9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 /* end confdefs.h. */
9957
9958 #include <unistd.h>
9959 #include <stdlib.h>
9960 #include <string.h>
9961
9962 int
9963 main ()
9964 {
9965 static char program[] = "program";
9966 static char donald[] = "donald";
9967 static char p[] = "-p";
9968 static char billy[] = "billy";
9969 static char duck[] = "duck";
9970 static char a[] = "-a";
9971 static char bar[] = "bar";
9972 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
9973 int c;
9974
9975 c = getopt (7, argv, "+abp:q:");
9976 if (!(c == -1))
9977 return 4;
9978 if (!(strcmp (argv[0], "program") == 0))
9979 return 5;
9980 if (!(strcmp (argv[1], "donald") == 0))
9981 return 6;
9982 if (!(strcmp (argv[2], "-p") == 0))
9983 return 7;
9984 if (!(strcmp (argv[3], "billy") == 0))
9985 return 8;
9986 if (!(strcmp (argv[4], "duck") == 0))
9987 return 9;
9988 if (!(strcmp (argv[5], "-a") == 0))
9989 return 10;
9990 if (!(strcmp (argv[6], "bar") == 0))
9991 return 11;
9992 if (!(optind == 1))
9993 return 12;
9994 return 0;
9995 }
9996
9997 _ACEOF
9998 if ac_fn_c_try_run "$LINENO"; then :
9999 gl_cv_func_getopt_posix=maybe
10000 else
10001 gl_cv_func_getopt_posix=no
10002 fi
10003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10004 conftest.$ac_objext conftest.beam conftest.$ac_ext
10005 fi
10006
10007 fi
10008 if test $gl_cv_func_getopt_posix = maybe; then
10009 if test "$cross_compiling" = yes; then :
10010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10012 as_fn_error $? "cannot run test program while cross compiling
10013 See \`config.log' for more details" "$LINENO" 5; }
10014 else
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017
10018 #include <unistd.h>
10019 #include <stdlib.h>
10020 #include <string.h>
10021
10022 int
10023 main ()
10024 {
10025 static char program[] = "program";
10026 static char ab[] = "-ab";
10027 char *argv[3] = { program, ab, NULL };
10028 if (getopt (2, argv, "ab:") != 'a')
10029 return 13;
10030 if (getopt (2, argv, "ab:") != '?')
10031 return 14;
10032 if (optopt != 'b')
10033 return 15;
10034 if (optind != 2)
10035 return 16;
10036 return 0;
10037 }
10038
10039 _ACEOF
10040 if ac_fn_c_try_run "$LINENO"; then :
10041 gl_cv_func_getopt_posix=yes
10042 else
10043 gl_cv_func_getopt_posix=no
10044 fi
10045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10046 conftest.$ac_objext conftest.beam conftest.$ac_ext
10047 fi
10048
10049 fi
10050 else
10051 case "$host_os" in
10052 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
10053 *) gl_cv_func_getopt_posix="guessing yes";;
10054 esac
10055 fi
10056
10057 fi
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
10059 $as_echo "$gl_cv_func_getopt_posix" >&6; }
10060 case "$gl_cv_func_getopt_posix" in
10061 *no) gl_replace_getopt=yes ;;
10062 esac
10063 fi
10064
10065 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
10067 $as_echo_n "checking for working GNU getopt function... " >&6; }
10068 if ${gl_cv_func_getopt_gnu+:} false; then :
10069 $as_echo_n "(cached) " >&6
10070 else
10071 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
10072 # optstring is necessary for programs like m4 that have POSIX-mandated
10073 # semantics for supporting options interspersed with files.
10074 # Also, since getopt_long is a GNU extension, we require optind=0.
10075 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
10076 # so take care to revert to the correct (non-)export state.
10077 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
10078 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
10079 xx) gl_had_POSIXLY_CORRECT=exported ;;
10080 x) gl_had_POSIXLY_CORRECT=yes ;;
10081 *) gl_had_POSIXLY_CORRECT= ;;
10082 esac
10083 POSIXLY_CORRECT=1
10084 export POSIXLY_CORRECT
10085 if test "$cross_compiling" = yes; then :
10086 gl_cv_func_getopt_gnu="guessing no"
10087
10088 else
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 #include <getopt.h>
10092 #include <stddef.h>
10093 #include <string.h>
10094
10095 #include <stdlib.h>
10096 #if defined __MACH__ && defined __APPLE__
10097 /* Avoid a crash on Mac OS X. */
10098 #include <mach/mach.h>
10099 #include <mach/mach_error.h>
10100 #include <mach/thread_status.h>
10101 #include <mach/exception.h>
10102 #include <mach/task.h>
10103 #include <pthread.h>
10104 /* The exception port on which our thread listens. */
10105 static mach_port_t our_exception_port;
10106 /* The main function of the thread listening for exceptions of type
10107 EXC_BAD_ACCESS. */
10108 static void *
10109 mach_exception_thread (void *arg)
10110 {
10111 /* Buffer for a message to be received. */
10112 struct {
10113 mach_msg_header_t head;
10114 mach_msg_body_t msgh_body;
10115 char data[1024];
10116 } msg;
10117 mach_msg_return_t retval;
10118 /* Wait for a message on the exception port. */
10119 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
10120 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
10121 if (retval != MACH_MSG_SUCCESS)
10122 abort ();
10123 exit (1);
10124 }
10125 static void
10126 nocrash_init (void)
10127 {
10128 mach_port_t self = mach_task_self ();
10129 /* Allocate a port on which the thread shall listen for exceptions. */
10130 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
10131 == KERN_SUCCESS) {
10132 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
10133 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
10134 MACH_MSG_TYPE_MAKE_SEND)
10135 == KERN_SUCCESS) {
10136 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
10137 for us. */
10138 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
10139 /* Create the thread listening on the exception port. */
10140 pthread_attr_t attr;
10141 pthread_t thread;
10142 if (pthread_attr_init (&attr) == 0
10143 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
10144 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
10145 pthread_attr_destroy (&attr);
10146 /* Replace the exception port info for these exceptions with our own.
10147 Note that we replace the exception port for the entire task, not only
10148 for a particular thread. This has the effect that when our exception
10149 port gets the message, the thread specific exception port has already
10150 been asked, and we don't need to bother about it.
10151 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
10152 task_set_exception_ports (self, mask, our_exception_port,
10153 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
10154 }
10155 }
10156 }
10157 }
10158 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10159 /* Avoid a crash on native Windows. */
10160 #define WIN32_LEAN_AND_MEAN
10161 #include <windows.h>
10162 #include <winerror.h>
10163 static LONG WINAPI
10164 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
10165 {
10166 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
10167 {
10168 case EXCEPTION_ACCESS_VIOLATION:
10169 case EXCEPTION_IN_PAGE_ERROR:
10170 case EXCEPTION_STACK_OVERFLOW:
10171 case EXCEPTION_GUARD_PAGE:
10172 case EXCEPTION_PRIV_INSTRUCTION:
10173 case EXCEPTION_ILLEGAL_INSTRUCTION:
10174 case EXCEPTION_DATATYPE_MISALIGNMENT:
10175 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
10176 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
10177 exit (1);
10178 }
10179 return EXCEPTION_CONTINUE_SEARCH;
10180 }
10181 static void
10182 nocrash_init (void)
10183 {
10184 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
10185 }
10186 #else
10187 /* Avoid a crash on POSIX systems. */
10188 #include <signal.h>
10189 /* A POSIX signal handler. */
10190 static void
10191 exception_handler (int sig)
10192 {
10193 exit (1);
10194 }
10195 static void
10196 nocrash_init (void)
10197 {
10198 #ifdef SIGSEGV
10199 signal (SIGSEGV, exception_handler);
10200 #endif
10201 #ifdef SIGBUS
10202 signal (SIGBUS, exception_handler);
10203 #endif
10204 }
10205 #endif
10206
10207
10208 int
10209 main ()
10210 {
10211
10212 int result = 0;
10213
10214 nocrash_init();
10215
10216 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
10217 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
10218 OSF/1 5.1, Solaris 10. */
10219 {
10220 static char conftest[] = "conftest";
10221 static char plus[] = "-+";
10222 char *argv[3] = { conftest, plus, NULL };
10223 opterr = 0;
10224 if (getopt (2, argv, "+a") != '?')
10225 result |= 1;
10226 }
10227 /* This code succeeds on glibc 2.8, mingw,
10228 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
10229 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
10230 {
10231 static char program[] = "program";
10232 static char p[] = "-p";
10233 static char foo[] = "foo";
10234 static char bar[] = "bar";
10235 char *argv[] = { program, p, foo, bar, NULL };
10236
10237 optind = 1;
10238 if (getopt (4, argv, "p::") != 'p')
10239 result |= 2;
10240 else if (optarg != NULL)
10241 result |= 4;
10242 else if (getopt (4, argv, "p::") != -1)
10243 result |= 6;
10244 else if (optind != 2)
10245 result |= 8;
10246 }
10247 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
10248 {
10249 static char program[] = "program";
10250 static char foo[] = "foo";
10251 static char p[] = "-p";
10252 char *argv[] = { program, foo, p, NULL };
10253 optind = 0;
10254 if (getopt (3, argv, "-p") != 1)
10255 result |= 16;
10256 else if (getopt (3, argv, "-p") != 'p')
10257 result |= 16;
10258 }
10259 /* This code fails on glibc 2.11. */
10260 {
10261 static char program[] = "program";
10262 static char b[] = "-b";
10263 static char a[] = "-a";
10264 char *argv[] = { program, b, a, NULL };
10265 optind = opterr = 0;
10266 if (getopt (3, argv, "+:a:b") != 'b')
10267 result |= 32;
10268 else if (getopt (3, argv, "+:a:b") != ':')
10269 result |= 32;
10270 }
10271 /* This code dumps core on glibc 2.14. */
10272 {
10273 static char program[] = "program";
10274 static char w[] = "-W";
10275 static char dummy[] = "dummy";
10276 char *argv[] = { program, w, dummy, NULL };
10277 optind = opterr = 1;
10278 if (getopt (3, argv, "W;") != 'W')
10279 result |= 64;
10280 }
10281 return result;
10282
10283 ;
10284 return 0;
10285 }
10286 _ACEOF
10287 if ac_fn_c_try_run "$LINENO"; then :
10288 gl_cv_func_getopt_gnu=yes
10289 else
10290 gl_cv_func_getopt_gnu=no
10291 fi
10292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10293 conftest.$ac_objext conftest.beam conftest.$ac_ext
10294 fi
10295
10296 case $gl_had_POSIXLY_CORRECT in
10297 exported) ;;
10298 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
10299 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
10300 esac
10301
10302 fi
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
10304 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
10305 if test "$gl_cv_func_getopt_gnu" != yes; then
10306 gl_replace_getopt=yes
10307 else
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
10309 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
10310 if ${gl_cv_func_getopt_long_gnu+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 if test "$cross_compiling" = yes; then :
10314 case "$host_os" in
10315 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
10316 *) gl_cv_func_getopt_long_gnu="guessing yes";;
10317 esac
10318
10319 else
10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10322 #include <getopt.h>
10323 #include <stddef.h>
10324 #include <string.h>
10325
10326 int
10327 main ()
10328 {
10329 static const struct option long_options[] =
10330 {
10331 { "xtremely-",no_argument, NULL, 1003 },
10332 { "xtra", no_argument, NULL, 1001 },
10333 { "xtreme", no_argument, NULL, 1002 },
10334 { "xtremely", no_argument, NULL, 1003 },
10335 { NULL, 0, NULL, 0 }
10336 };
10337 /* This code fails on OpenBSD 5.0. */
10338 {
10339 static char program[] = "program";
10340 static char xtremel[] = "--xtremel";
10341 char *argv[] = { program, xtremel, NULL };
10342 int option_index;
10343 optind = 1; opterr = 0;
10344 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
10345 return 1;
10346 }
10347 return 0;
10348
10349 ;
10350 return 0;
10351 }
10352 _ACEOF
10353 if ac_fn_c_try_run "$LINENO"; then :
10354 gl_cv_func_getopt_long_gnu=yes
10355 else
10356 gl_cv_func_getopt_long_gnu=no
10357 fi
10358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10359 conftest.$ac_objext conftest.beam conftest.$ac_ext
10360 fi
10361
10362
10363 fi
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
10365 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
10366 case "$gl_cv_func_getopt_long_gnu" in
10367 *yes) ;;
10368 *) gl_replace_getopt=yes ;;
10369 esac
10370 fi
10371 fi
10372
10373
10374
10375
10376
10377
10378 REPLACE_GETOPT=0
10379 if test -n "$gl_replace_getopt"; then
10380 REPLACE_GETOPT=1
10381 fi
10382
10383 if test $REPLACE_GETOPT = 1; then
10384
10385 GETOPT_H=getopt.h
10386
10387 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
10388
10389
10390
10391 fi
10392
10393 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
10394 if test "x$ac_cv_have_decl_getenv" = xyes; then :
10395 ac_have_decl=1
10396 else
10397 ac_have_decl=0
10398 fi
10399
10400 cat >>confdefs.h <<_ACEOF
10401 #define HAVE_DECL_GETENV $ac_have_decl
10402 _ACEOF
10403
10404
10405
10406
10407
10408
10409 for ac_func in $ac_func_list
10410 do :
10411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10413 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10414 cat >>confdefs.h <<_ACEOF
10415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10416 _ACEOF
10417
10418 fi
10419 done
10420
10421
10422
10423
10424 GNULIB_FFSL=0;
10425 GNULIB_FFSLL=0;
10426 GNULIB_MEMCHR=0;
10427 GNULIB_MEMMEM=0;
10428 GNULIB_MEMPCPY=0;
10429 GNULIB_MEMRCHR=0;
10430 GNULIB_RAWMEMCHR=0;
10431 GNULIB_STPCPY=0;
10432 GNULIB_STPNCPY=0;
10433 GNULIB_STRCHRNUL=0;
10434 GNULIB_STRDUP=0;
10435 GNULIB_STRNCAT=0;
10436 GNULIB_STRNDUP=0;
10437 GNULIB_STRNLEN=0;
10438 GNULIB_STRPBRK=0;
10439 GNULIB_STRSEP=0;
10440 GNULIB_STRSTR=0;
10441 GNULIB_STRCASESTR=0;
10442 GNULIB_STRTOK_R=0;
10443 GNULIB_MBSLEN=0;
10444 GNULIB_MBSNLEN=0;
10445 GNULIB_MBSCHR=0;
10446 GNULIB_MBSRCHR=0;
10447 GNULIB_MBSSTR=0;
10448 GNULIB_MBSCASECMP=0;
10449 GNULIB_MBSNCASECMP=0;
10450 GNULIB_MBSPCASECMP=0;
10451 GNULIB_MBSCASESTR=0;
10452 GNULIB_MBSCSPN=0;
10453 GNULIB_MBSPBRK=0;
10454 GNULIB_MBSSPN=0;
10455 GNULIB_MBSSEP=0;
10456 GNULIB_MBSTOK_R=0;
10457 GNULIB_STRERROR=0;
10458 GNULIB_STRERROR_R=0;
10459 GNULIB_STRSIGNAL=0;
10460 GNULIB_STRVERSCMP=0;
10461 HAVE_MBSLEN=0;
10462 HAVE_FFSL=1;
10463 HAVE_FFSLL=1;
10464 HAVE_MEMCHR=1;
10465 HAVE_DECL_MEMMEM=1;
10466 HAVE_MEMPCPY=1;
10467 HAVE_DECL_MEMRCHR=1;
10468 HAVE_RAWMEMCHR=1;
10469 HAVE_STPCPY=1;
10470 HAVE_STPNCPY=1;
10471 HAVE_STRCHRNUL=1;
10472 HAVE_DECL_STRDUP=1;
10473 HAVE_DECL_STRNDUP=1;
10474 HAVE_DECL_STRNLEN=1;
10475 HAVE_STRPBRK=1;
10476 HAVE_STRSEP=1;
10477 HAVE_STRCASESTR=1;
10478 HAVE_DECL_STRTOK_R=1;
10479 HAVE_DECL_STRERROR_R=1;
10480 HAVE_DECL_STRSIGNAL=1;
10481 HAVE_STRVERSCMP=1;
10482 REPLACE_MEMCHR=0;
10483 REPLACE_MEMMEM=0;
10484 REPLACE_STPNCPY=0;
10485 REPLACE_STRDUP=0;
10486 REPLACE_STRSTR=0;
10487 REPLACE_STRCASESTR=0;
10488 REPLACE_STRCHRNUL=0;
10489 REPLACE_STRERROR=0;
10490 REPLACE_STRERROR_R=0;
10491 REPLACE_STRNCAT=0;
10492 REPLACE_STRNDUP=0;
10493 REPLACE_STRNLEN=0;
10494 REPLACE_STRSIGNAL=0;
10495 REPLACE_STRTOK_R=0;
10496 UNDEFINE_STRTOK_R=0;
10497
10498
10499
10500
10501
10502 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10503 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10504 # irrelevant for anonymous mappings.
10505 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10506 if test "x$ac_cv_func_mmap" = xyes; then :
10507 gl_have_mmap=yes
10508 else
10509 gl_have_mmap=no
10510 fi
10511
10512
10513 # Try to allow MAP_ANONYMOUS.
10514 gl_have_mmap_anonymous=no
10515 if test $gl_have_mmap = yes; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10517 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h. */
10520
10521 #include <sys/mman.h>
10522 #ifdef MAP_ANONYMOUS
10523 I cannot identify this map
10524 #endif
10525
10526 _ACEOF
10527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10528 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10529 gl_have_mmap_anonymous=yes
10530 fi
10531 rm -f conftest*
10532
10533 if test $gl_have_mmap_anonymous != yes; then
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10536
10537 #include <sys/mman.h>
10538 #ifdef MAP_ANON
10539 I cannot identify this map
10540 #endif
10541
10542 _ACEOF
10543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10544 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10545
10546 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10547
10548 gl_have_mmap_anonymous=yes
10549 fi
10550 rm -f conftest*
10551
10552 fi
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10554 $as_echo "$gl_have_mmap_anonymous" >&6; }
10555 if test $gl_have_mmap_anonymous = yes; then
10556
10557 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10558
10559 fi
10560 fi
10561
10562
10563
10564
10565
10566
10567 if test $HAVE_MEMCHR = 1; then
10568 # Detect platform-specific bugs in some versions of glibc:
10569 # memchr should not dereference anything with length 0
10570 # http://bugzilla.redhat.com/499689
10571 # memchr should not dereference overestimated length after a match
10572 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10573 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10574 # Assume that memchr works on platforms that lack mprotect.
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10576 $as_echo_n "checking whether memchr works... " >&6; }
10577 if ${gl_cv_func_memchr_works+:} false; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 if test "$cross_compiling" = yes; then :
10581 gl_cv_func_memchr_works="guessing no"
10582 else
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585
10586 #include <string.h>
10587 #if HAVE_SYS_MMAN_H
10588 # include <fcntl.h>
10589 # include <unistd.h>
10590 # include <sys/types.h>
10591 # include <sys/mman.h>
10592 # ifndef MAP_FILE
10593 # define MAP_FILE 0
10594 # endif
10595 #endif
10596
10597 int
10598 main ()
10599 {
10600
10601 int result = 0;
10602 char *fence = NULL;
10603 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10604 # if HAVE_MAP_ANONYMOUS
10605 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10606 const int fd = -1;
10607 # else /* !HAVE_MAP_ANONYMOUS */
10608 const int flags = MAP_FILE | MAP_PRIVATE;
10609 int fd = open ("/dev/zero", O_RDONLY, 0666);
10610 if (fd >= 0)
10611 # endif
10612 {
10613 int pagesize = getpagesize ();
10614 char *two_pages =
10615 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10616 flags, fd, 0);
10617 if (two_pages != (char *)(-1)
10618 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10619 fence = two_pages + pagesize;
10620 }
10621 #endif
10622 if (fence)
10623 {
10624 if (memchr (fence, 0, 0))
10625 result |= 1;
10626 strcpy (fence - 9, "12345678");
10627 if (memchr (fence - 9, 0, 79) != fence - 1)
10628 result |= 2;
10629 if (memchr (fence - 1, 0, 3) != fence - 1)
10630 result |= 4;
10631 }
10632 return result;
10633
10634 ;
10635 return 0;
10636 }
10637 _ACEOF
10638 if ac_fn_c_try_run "$LINENO"; then :
10639 gl_cv_func_memchr_works=yes
10640 else
10641 gl_cv_func_memchr_works=no
10642 fi
10643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10644 conftest.$ac_objext conftest.beam conftest.$ac_ext
10645 fi
10646
10647 fi
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10649 $as_echo "$gl_cv_func_memchr_works" >&6; }
10650 if test "$gl_cv_func_memchr_works" != yes; then
10651 REPLACE_MEMCHR=1
10652 fi
10653 fi
10654
10655
10656
10657
10658 gl_cv_c_multiarch=no
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661 #ifndef __APPLE_CC__
10662 not a universal capable compiler
10663 #endif
10664 typedef int dummy;
10665
10666 _ACEOF
10667 if ac_fn_c_try_compile "$LINENO"; then :
10668
10669 arch=
10670 prev=
10671 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10672 if test -n "$prev"; then
10673 case $word in
10674 i?86 | x86_64 | ppc | ppc64)
10675 if test -z "$arch" || test "$arch" = "$word"; then
10676 arch="$word"
10677 else
10678 gl_cv_c_multiarch=yes
10679 fi
10680 ;;
10681 esac
10682 prev=
10683 else
10684 if test "x$word" = "x-arch"; then
10685 prev=arch
10686 fi
10687 fi
10688 done
10689
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 if test $gl_cv_c_multiarch = yes; then
10693 APPLE_UNIVERSAL_BUILD=1
10694 else
10695 APPLE_UNIVERSAL_BUILD=0
10696 fi
10697
10698
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10700 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10701 if ${ac_cv_header_stdbool_h+:} false; then :
10702 $as_echo_n "(cached) " >&6
10703 else
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10706
10707 #include <stdbool.h>
10708 #ifndef bool
10709 "error: bool is not defined"
10710 #endif
10711 #ifndef false
10712 "error: false is not defined"
10713 #endif
10714 #if false
10715 "error: false is not 0"
10716 #endif
10717 #ifndef true
10718 "error: true is not defined"
10719 #endif
10720 #if true != 1
10721 "error: true is not 1"
10722 #endif
10723 #ifndef __bool_true_false_are_defined
10724 "error: __bool_true_false_are_defined is not defined"
10725 #endif
10726
10727 struct s { _Bool s: 1; _Bool t; } s;
10728
10729 char a[true == 1 ? 1 : -1];
10730 char b[false == 0 ? 1 : -1];
10731 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10732 char d[(bool) 0.5 == true ? 1 : -1];
10733 /* See body of main program for 'e'. */
10734 char f[(_Bool) 0.0 == false ? 1 : -1];
10735 char g[true];
10736 char h[sizeof (_Bool)];
10737 char i[sizeof s.t];
10738 enum { j = false, k = true, l = false * true, m = true * 256 };
10739 /* The following fails for
10740 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10741 _Bool n[m];
10742 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10743 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10744 /* Catch a bug in an HP-UX C compiler. See
10745 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10746 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10747 */
10748 _Bool q = true;
10749 _Bool *pq = &q;
10750
10751 int
10752 main ()
10753 {
10754
10755 bool e = &s;
10756 *pq |= q;
10757 *pq |= ! q;
10758 /* Refer to every declared value, to avoid compiler optimizations. */
10759 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10760 + !m + !n + !o + !p + !q + !pq);
10761
10762 ;
10763 return 0;
10764 }
10765 _ACEOF
10766 if ac_fn_c_try_compile "$LINENO"; then :
10767 ac_cv_header_stdbool_h=yes
10768 else
10769 ac_cv_header_stdbool_h=no
10770 fi
10771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10772 fi
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10774 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10775 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10776 if test "x$ac_cv_type__Bool" = xyes; then :
10777
10778 cat >>confdefs.h <<_ACEOF
10779 #define HAVE__BOOL 1
10780 _ACEOF
10781
10782
10783 fi
10784
10785
10786
10787 REPLACE_NULL=0;
10788 HAVE_WCHAR_T=1;
10789
10790
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10792 $as_echo_n "checking for wchar_t... " >&6; }
10793 if ${gt_cv_c_wchar_t+:} false; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10798 #include <stddef.h>
10799 wchar_t foo = (wchar_t)'\0';
10800 int
10801 main ()
10802 {
10803
10804 ;
10805 return 0;
10806 }
10807 _ACEOF
10808 if ac_fn_c_try_compile "$LINENO"; then :
10809 gt_cv_c_wchar_t=yes
10810 else
10811 gt_cv_c_wchar_t=no
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814 fi
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10816 $as_echo "$gt_cv_c_wchar_t" >&6; }
10817 if test $gt_cv_c_wchar_t = yes; then
10818
10819 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10820
10821 fi
10822
10823
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10825 $as_echo_n "checking for unsigned long long int... " >&6; }
10826 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
10827 $as_echo_n "(cached) " >&6
10828 else
10829 ac_cv_type_unsigned_long_long_int=yes
10830 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833
10834 /* For now, do not test the preprocessor; as of 2007 there are too many
10835 implementations with broken preprocessors. Perhaps this can
10836 be revisited in 2012. In the meantime, code should not expect
10837 #if to work with literals wider than 32 bits. */
10838 /* Test literals. */
10839 long long int ll = 9223372036854775807ll;
10840 long long int nll = -9223372036854775807LL;
10841 unsigned long long int ull = 18446744073709551615ULL;
10842 /* Test constant expressions. */
10843 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10844 ? 1 : -1)];
10845 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10846 ? 1 : -1)];
10847 int i = 63;
10848 int
10849 main ()
10850 {
10851 /* Test availability of runtime routines for shift and division. */
10852 long long int llmax = 9223372036854775807ll;
10853 unsigned long long int ullmax = 18446744073709551615ull;
10854 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10855 | (llmax / ll) | (llmax % ll)
10856 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10857 | (ullmax / ull) | (ullmax % ull));
10858 ;
10859 return 0;
10860 }
10861
10862 _ACEOF
10863 if ac_fn_c_try_link "$LINENO"; then :
10864
10865 else
10866 ac_cv_type_unsigned_long_long_int=no
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext conftest.$ac_ext
10870 fi
10871 fi
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10873 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10874 if test $ac_cv_type_unsigned_long_long_int = yes; then
10875
10876 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10877
10878 fi
10879
10880
10881
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10883 $as_echo_n "checking for long long int... " >&6; }
10884 if ${ac_cv_type_long_long_int+:} false; then :
10885 $as_echo_n "(cached) " >&6
10886 else
10887 ac_cv_type_long_long_int=yes
10888 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10889 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10890 if test $ac_cv_type_long_long_int = yes; then
10891 if test "$cross_compiling" = yes; then :
10892 :
10893 else
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896 #include <limits.h>
10897 #ifndef LLONG_MAX
10898 # define HALF \
10899 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10900 # define LLONG_MAX (HALF - 1 + HALF)
10901 #endif
10902 int
10903 main ()
10904 {
10905 long long int n = 1;
10906 int i;
10907 for (i = 0; ; i++)
10908 {
10909 long long int m = n << i;
10910 if (m >> i != n)
10911 return 1;
10912 if (LLONG_MAX / 2 < m)
10913 break;
10914 }
10915 return 0;
10916 ;
10917 return 0;
10918 }
10919 _ACEOF
10920 if ac_fn_c_try_run "$LINENO"; then :
10921
10922 else
10923 ac_cv_type_long_long_int=no
10924 fi
10925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10926 conftest.$ac_objext conftest.beam conftest.$ac_ext
10927 fi
10928
10929 fi
10930 fi
10931 fi
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10933 $as_echo "$ac_cv_type_long_long_int" >&6; }
10934 if test $ac_cv_type_long_long_int = yes; then
10935
10936 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10937
10938 fi
10939
10940
10941
10942
10943
10944
10945
10946
10947 if test $ac_cv_type_long_long_int = yes; then
10948 HAVE_LONG_LONG_INT=1
10949 else
10950 HAVE_LONG_LONG_INT=0
10951 fi
10952
10953
10954 if test $ac_cv_type_unsigned_long_long_int = yes; then
10955 HAVE_UNSIGNED_LONG_LONG_INT=1
10956 else
10957 HAVE_UNSIGNED_LONG_LONG_INT=0
10958 fi
10959
10960
10961
10962 if test $ac_cv_header_wchar_h = yes; then
10963 HAVE_WCHAR_H=1
10964 else
10965 HAVE_WCHAR_H=0
10966 fi
10967
10968
10969 if test $ac_cv_header_inttypes_h = yes; then
10970 HAVE_INTTYPES_H=1
10971 else
10972 HAVE_INTTYPES_H=0
10973 fi
10974
10975
10976 if test $ac_cv_header_sys_types_h = yes; then
10977 HAVE_SYS_TYPES_H=1
10978 else
10979 HAVE_SYS_TYPES_H=0
10980 fi
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992 if test $gl_cv_have_include_next = yes; then
10993 gl_cv_next_stdint_h='<'stdint.h'>'
10994 else
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10996 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10997 if ${gl_cv_next_stdint_h+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999 else
11000
11001 if test $ac_cv_header_stdint_h = yes; then
11002
11003
11004
11005
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 #include <stdint.h>
11009 _ACEOF
11010 case "$host_os" in
11011 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11012 *) gl_absname_cpp="$ac_cpp" ;;
11013 esac
11014
11015 case "$host_os" in
11016 mingw*)
11017 gl_dirsep_regex='[/\\]'
11018 ;;
11019 *)
11020 gl_dirsep_regex='\/'
11021 ;;
11022 esac
11023 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11024 gl_header_literal_regex=`echo 'stdint.h' \
11025 | sed -e "$gl_make_literal_regex_sed"`
11026 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11027 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11028 s|^/[^/]|//&|
11029 p
11030 q
11031 }'
11032
11033 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11034 sed -n "$gl_absolute_header_sed"`
11035
11036 gl_header=$gl_cv_absolute_stdint_h
11037 gl_cv_next_stdint_h='"'$gl_header'"'
11038 else
11039 gl_cv_next_stdint_h='<'stdint.h'>'
11040 fi
11041
11042
11043 fi
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
11045 $as_echo "$gl_cv_next_stdint_h" >&6; }
11046 fi
11047 NEXT_STDINT_H=$gl_cv_next_stdint_h
11048
11049 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11050 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11051 gl_next_as_first_directive='<'stdint.h'>'
11052 else
11053 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11054 gl_next_as_first_directive=$gl_cv_next_stdint_h
11055 fi
11056 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
11057
11058
11059
11060
11061 if test $ac_cv_header_stdint_h = yes; then
11062 HAVE_STDINT_H=1
11063 else
11064 HAVE_STDINT_H=0
11065 fi
11066
11067
11068 if test $ac_cv_header_stdint_h = yes; then
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
11070 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
11071 if ${gl_cv_header_working_stdint_h+:} false; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 gl_cv_header_working_stdint_h=no
11075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076 /* end confdefs.h. */
11077
11078
11079 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11080 #include <stdint.h>
11081 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
11082 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
11083 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
11084 #endif
11085
11086
11087 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11088 included before <wchar.h>. */
11089 #include <stddef.h>
11090 #include <signal.h>
11091 #if HAVE_WCHAR_H
11092 # include <stdio.h>
11093 # include <time.h>
11094 # include <wchar.h>
11095 #endif
11096
11097
11098 #ifdef INT8_MAX
11099 int8_t a1 = INT8_MAX;
11100 int8_t a1min = INT8_MIN;
11101 #endif
11102 #ifdef INT16_MAX
11103 int16_t a2 = INT16_MAX;
11104 int16_t a2min = INT16_MIN;
11105 #endif
11106 #ifdef INT32_MAX
11107 int32_t a3 = INT32_MAX;
11108 int32_t a3min = INT32_MIN;
11109 #endif
11110 #ifdef INT64_MAX
11111 int64_t a4 = INT64_MAX;
11112 int64_t a4min = INT64_MIN;
11113 #endif
11114 #ifdef UINT8_MAX
11115 uint8_t b1 = UINT8_MAX;
11116 #else
11117 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
11118 #endif
11119 #ifdef UINT16_MAX
11120 uint16_t b2 = UINT16_MAX;
11121 #endif
11122 #ifdef UINT32_MAX
11123 uint32_t b3 = UINT32_MAX;
11124 #endif
11125 #ifdef UINT64_MAX
11126 uint64_t b4 = UINT64_MAX;
11127 #endif
11128 int_least8_t c1 = INT8_C (0x7f);
11129 int_least8_t c1max = INT_LEAST8_MAX;
11130 int_least8_t c1min = INT_LEAST8_MIN;
11131 int_least16_t c2 = INT16_C (0x7fff);
11132 int_least16_t c2max = INT_LEAST16_MAX;
11133 int_least16_t c2min = INT_LEAST16_MIN;
11134 int_least32_t c3 = INT32_C (0x7fffffff);
11135 int_least32_t c3max = INT_LEAST32_MAX;
11136 int_least32_t c3min = INT_LEAST32_MIN;
11137 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
11138 int_least64_t c4max = INT_LEAST64_MAX;
11139 int_least64_t c4min = INT_LEAST64_MIN;
11140 uint_least8_t d1 = UINT8_C (0xff);
11141 uint_least8_t d1max = UINT_LEAST8_MAX;
11142 uint_least16_t d2 = UINT16_C (0xffff);
11143 uint_least16_t d2max = UINT_LEAST16_MAX;
11144 uint_least32_t d3 = UINT32_C (0xffffffff);
11145 uint_least32_t d3max = UINT_LEAST32_MAX;
11146 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
11147 uint_least64_t d4max = UINT_LEAST64_MAX;
11148 int_fast8_t e1 = INT_FAST8_MAX;
11149 int_fast8_t e1min = INT_FAST8_MIN;
11150 int_fast16_t e2 = INT_FAST16_MAX;
11151 int_fast16_t e2min = INT_FAST16_MIN;
11152 int_fast32_t e3 = INT_FAST32_MAX;
11153 int_fast32_t e3min = INT_FAST32_MIN;
11154 int_fast64_t e4 = INT_FAST64_MAX;
11155 int_fast64_t e4min = INT_FAST64_MIN;
11156 uint_fast8_t f1 = UINT_FAST8_MAX;
11157 uint_fast16_t f2 = UINT_FAST16_MAX;
11158 uint_fast32_t f3 = UINT_FAST32_MAX;
11159 uint_fast64_t f4 = UINT_FAST64_MAX;
11160 #ifdef INTPTR_MAX
11161 intptr_t g = INTPTR_MAX;
11162 intptr_t gmin = INTPTR_MIN;
11163 #endif
11164 #ifdef UINTPTR_MAX
11165 uintptr_t h = UINTPTR_MAX;
11166 #endif
11167 intmax_t i = INTMAX_MAX;
11168 uintmax_t j = UINTMAX_MAX;
11169
11170 #include <limits.h> /* for CHAR_BIT */
11171 #define TYPE_MINIMUM(t) \
11172 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
11173 #define TYPE_MAXIMUM(t) \
11174 ((t) ((t) 0 < (t) -1 \
11175 ? (t) -1 \
11176 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
11177 struct s {
11178 int check_PTRDIFF:
11179 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
11180 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
11181 ? 1 : -1;
11182 /* Detect bug in FreeBSD 6.0 / ia64. */
11183 int check_SIG_ATOMIC:
11184 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
11185 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
11186 ? 1 : -1;
11187 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
11188 int check_WCHAR:
11189 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
11190 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
11191 ? 1 : -1;
11192 /* Detect bug in mingw. */
11193 int check_WINT:
11194 WINT_MIN == TYPE_MINIMUM (wint_t)
11195 && WINT_MAX == TYPE_MAXIMUM (wint_t)
11196 ? 1 : -1;
11197
11198 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
11199 int check_UINT8_C:
11200 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
11201 int check_UINT16_C:
11202 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
11203
11204 /* Detect bugs in OpenBSD 3.9 stdint.h. */
11205 #ifdef UINT8_MAX
11206 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
11207 #endif
11208 #ifdef UINT16_MAX
11209 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
11210 #endif
11211 #ifdef UINT32_MAX
11212 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
11213 #endif
11214 #ifdef UINT64_MAX
11215 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
11216 #endif
11217 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
11218 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
11219 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
11220 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
11221 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
11222 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
11223 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
11224 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
11225 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
11226 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
11227 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
11228 };
11229
11230 int
11231 main ()
11232 {
11233
11234 ;
11235 return 0;
11236 }
11237 _ACEOF
11238 if ac_fn_c_try_compile "$LINENO"; then :
11239 if test "$cross_compiling" = yes; then :
11240 gl_cv_header_working_stdint_h=yes
11241
11242 else
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245
11246
11247 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11248 #include <stdint.h>
11249
11250
11251 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11252 included before <wchar.h>. */
11253 #include <stddef.h>
11254 #include <signal.h>
11255 #if HAVE_WCHAR_H
11256 # include <stdio.h>
11257 # include <time.h>
11258 # include <wchar.h>
11259 #endif
11260
11261
11262 #include <stdio.h>
11263 #include <string.h>
11264 #define MVAL(macro) MVAL1(macro)
11265 #define MVAL1(expression) #expression
11266 static const char *macro_values[] =
11267 {
11268 #ifdef INT8_MAX
11269 MVAL (INT8_MAX),
11270 #endif
11271 #ifdef INT16_MAX
11272 MVAL (INT16_MAX),
11273 #endif
11274 #ifdef INT32_MAX
11275 MVAL (INT32_MAX),
11276 #endif
11277 #ifdef INT64_MAX
11278 MVAL (INT64_MAX),
11279 #endif
11280 #ifdef UINT8_MAX
11281 MVAL (UINT8_MAX),
11282 #endif
11283 #ifdef UINT16_MAX
11284 MVAL (UINT16_MAX),
11285 #endif
11286 #ifdef UINT32_MAX
11287 MVAL (UINT32_MAX),
11288 #endif
11289 #ifdef UINT64_MAX
11290 MVAL (UINT64_MAX),
11291 #endif
11292 NULL
11293 };
11294
11295 int
11296 main ()
11297 {
11298
11299 const char **mv;
11300 for (mv = macro_values; *mv != NULL; mv++)
11301 {
11302 const char *value = *mv;
11303 /* Test whether it looks like a cast expression. */
11304 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
11305 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
11306 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
11307 || strncmp (value, "((int)"/*)*/, 6) == 0
11308 || strncmp (value, "((signed short)"/*)*/, 15) == 0
11309 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
11310 return mv - macro_values + 1;
11311 }
11312 return 0;
11313
11314 ;
11315 return 0;
11316 }
11317 _ACEOF
11318 if ac_fn_c_try_run "$LINENO"; then :
11319 gl_cv_header_working_stdint_h=yes
11320 fi
11321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11322 conftest.$ac_objext conftest.beam conftest.$ac_ext
11323 fi
11324
11325
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328
11329 fi
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
11331 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
11332 fi
11333 if test "$gl_cv_header_working_stdint_h" = yes; then
11334 STDINT_H=
11335 else
11336 for ac_header in sys/inttypes.h sys/bitypes.h
11337 do :
11338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11340 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11341 cat >>confdefs.h <<_ACEOF
11342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11343 _ACEOF
11344
11345 fi
11346
11347 done
11348
11349 if test $ac_cv_header_sys_inttypes_h = yes; then
11350 HAVE_SYS_INTTYPES_H=1
11351 else
11352 HAVE_SYS_INTTYPES_H=0
11353 fi
11354
11355 if test $ac_cv_header_sys_bitypes_h = yes; then
11356 HAVE_SYS_BITYPES_H=1
11357 else
11358 HAVE_SYS_BITYPES_H=0
11359 fi
11360
11361
11362
11363
11364 if test $APPLE_UNIVERSAL_BUILD = 0; then
11365
11366
11367 for gltype in ptrdiff_t size_t ; do
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11369 $as_echo_n "checking for bit size of $gltype... " >&6; }
11370 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372 else
11373 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11374 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11375 included before <wchar.h>. */
11376 #include <stddef.h>
11377 #include <signal.h>
11378 #if HAVE_WCHAR_H
11379 # include <stdio.h>
11380 # include <time.h>
11381 # include <wchar.h>
11382 #endif
11383
11384 #include <limits.h>"; then :
11385
11386 else
11387 result=unknown
11388 fi
11389
11390 eval gl_cv_bitsizeof_${gltype}=\$result
11391
11392 fi
11393 eval ac_res=\$gl_cv_bitsizeof_${gltype}
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11395 $as_echo "$ac_res" >&6; }
11396 eval result=\$gl_cv_bitsizeof_${gltype}
11397 if test $result = unknown; then
11398 result=0
11399 fi
11400 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11401 cat >>confdefs.h <<_ACEOF
11402 #define BITSIZEOF_${GLTYPE} $result
11403 _ACEOF
11404
11405 eval BITSIZEOF_${GLTYPE}=\$result
11406 done
11407
11408
11409 fi
11410
11411
11412 for gltype in sig_atomic_t wchar_t wint_t ; do
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11414 $as_echo_n "checking for bit size of $gltype... " >&6; }
11415 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417 else
11418 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11419 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11420 included before <wchar.h>. */
11421 #include <stddef.h>
11422 #include <signal.h>
11423 #if HAVE_WCHAR_H
11424 # include <stdio.h>
11425 # include <time.h>
11426 # include <wchar.h>
11427 #endif
11428
11429 #include <limits.h>"; then :
11430
11431 else
11432 result=unknown
11433 fi
11434
11435 eval gl_cv_bitsizeof_${gltype}=\$result
11436
11437 fi
11438 eval ac_res=\$gl_cv_bitsizeof_${gltype}
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11440 $as_echo "$ac_res" >&6; }
11441 eval result=\$gl_cv_bitsizeof_${gltype}
11442 if test $result = unknown; then
11443 result=0
11444 fi
11445 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11446 cat >>confdefs.h <<_ACEOF
11447 #define BITSIZEOF_${GLTYPE} $result
11448 _ACEOF
11449
11450 eval BITSIZEOF_${GLTYPE}=\$result
11451 done
11452
11453
11454
11455
11456 for gltype in sig_atomic_t wchar_t wint_t ; do
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11458 $as_echo_n "checking whether $gltype is signed... " >&6; }
11459 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464
11465 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11466 included before <wchar.h>. */
11467 #include <stddef.h>
11468 #include <signal.h>
11469 #if HAVE_WCHAR_H
11470 # include <stdio.h>
11471 # include <time.h>
11472 # include <wchar.h>
11473 #endif
11474
11475 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11476 int
11477 main ()
11478 {
11479
11480 ;
11481 return 0;
11482 }
11483 _ACEOF
11484 if ac_fn_c_try_compile "$LINENO"; then :
11485 result=yes
11486 else
11487 result=no
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 eval gl_cv_type_${gltype}_signed=\$result
11491
11492 fi
11493 eval ac_res=\$gl_cv_type_${gltype}_signed
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11495 $as_echo "$ac_res" >&6; }
11496 eval result=\$gl_cv_type_${gltype}_signed
11497 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11498 if test "$result" = yes; then
11499 cat >>confdefs.h <<_ACEOF
11500 #define HAVE_SIGNED_${GLTYPE} 1
11501 _ACEOF
11502
11503 eval HAVE_SIGNED_${GLTYPE}=1
11504 else
11505 eval HAVE_SIGNED_${GLTYPE}=0
11506 fi
11507 done
11508
11509
11510 gl_cv_type_ptrdiff_t_signed=yes
11511 gl_cv_type_size_t_signed=no
11512 if test $APPLE_UNIVERSAL_BUILD = 0; then
11513
11514
11515 for gltype in ptrdiff_t size_t ; do
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11517 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11518 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 eval gl_cv_type_${gltype}_suffix=no
11522 eval result=\$gl_cv_type_${gltype}_signed
11523 if test "$result" = yes; then
11524 glsufu=
11525 else
11526 glsufu=u
11527 fi
11528 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
11529 case $glsuf in
11530 '') gltype1='int';;
11531 l) gltype1='long int';;
11532 ll) gltype1='long long int';;
11533 i64) gltype1='__int64';;
11534 u) gltype1='unsigned int';;
11535 ul) gltype1='unsigned long int';;
11536 ull) gltype1='unsigned long long int';;
11537 ui64)gltype1='unsigned __int64';;
11538 esac
11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11541
11542 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11543 included before <wchar.h>. */
11544 #include <stddef.h>
11545 #include <signal.h>
11546 #if HAVE_WCHAR_H
11547 # include <stdio.h>
11548 # include <time.h>
11549 # include <wchar.h>
11550 #endif
11551
11552 extern $gltype foo;
11553 extern $gltype1 foo;
11554 int
11555 main ()
11556 {
11557
11558 ;
11559 return 0;
11560 }
11561 _ACEOF
11562 if ac_fn_c_try_compile "$LINENO"; then :
11563 eval gl_cv_type_${gltype}_suffix=\$glsuf
11564 fi
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 eval result=\$gl_cv_type_${gltype}_suffix
11567 test "$result" != no && break
11568 done
11569 fi
11570 eval ac_res=\$gl_cv_type_${gltype}_suffix
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11572 $as_echo "$ac_res" >&6; }
11573 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11574 eval result=\$gl_cv_type_${gltype}_suffix
11575 test "$result" = no && result=
11576 eval ${GLTYPE}_SUFFIX=\$result
11577 cat >>confdefs.h <<_ACEOF
11578 #define ${GLTYPE}_SUFFIX $result
11579 _ACEOF
11580
11581 done
11582
11583
11584 fi
11585
11586
11587 for gltype in sig_atomic_t wchar_t wint_t ; do
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11589 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
11590 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 eval gl_cv_type_${gltype}_suffix=no
11594 eval result=\$gl_cv_type_${gltype}_signed
11595 if test "$result" = yes; then
11596 glsufu=
11597 else
11598 glsufu=u
11599 fi
11600 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
11601 case $glsuf in
11602 '') gltype1='int';;
11603 l) gltype1='long int';;
11604 ll) gltype1='long long int';;
11605 i64) gltype1='__int64';;
11606 u) gltype1='unsigned int';;
11607 ul) gltype1='unsigned long int';;
11608 ull) gltype1='unsigned long long int';;
11609 ui64)gltype1='unsigned __int64';;
11610 esac
11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613
11614 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11615 included before <wchar.h>. */
11616 #include <stddef.h>
11617 #include <signal.h>
11618 #if HAVE_WCHAR_H
11619 # include <stdio.h>
11620 # include <time.h>
11621 # include <wchar.h>
11622 #endif
11623
11624 extern $gltype foo;
11625 extern $gltype1 foo;
11626 int
11627 main ()
11628 {
11629
11630 ;
11631 return 0;
11632 }
11633 _ACEOF
11634 if ac_fn_c_try_compile "$LINENO"; then :
11635 eval gl_cv_type_${gltype}_suffix=\$glsuf
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 eval result=\$gl_cv_type_${gltype}_suffix
11639 test "$result" != no && break
11640 done
11641 fi
11642 eval ac_res=\$gl_cv_type_${gltype}_suffix
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11644 $as_echo "$ac_res" >&6; }
11645 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11646 eval result=\$gl_cv_type_${gltype}_suffix
11647 test "$result" = no && result=
11648 eval ${GLTYPE}_SUFFIX=\$result
11649 cat >>confdefs.h <<_ACEOF
11650 #define ${GLTYPE}_SUFFIX $result
11651 _ACEOF
11652
11653 done
11654
11655
11656
11657 if test $BITSIZEOF_WINT_T -lt 32; then
11658 BITSIZEOF_WINT_T=32
11659 fi
11660
11661 STDINT_H=stdint.h
11662 fi
11663
11664 if test -n "$STDINT_H"; then
11665 GL_GENERATE_STDINT_H_TRUE=
11666 GL_GENERATE_STDINT_H_FALSE='#'
11667 else
11668 GL_GENERATE_STDINT_H_TRUE='#'
11669 GL_GENERATE_STDINT_H_FALSE=
11670 fi
11671
11672
11673
11674 GNULIB_DPRINTF=0;
11675 GNULIB_FCLOSE=0;
11676 GNULIB_FDOPEN=0;
11677 GNULIB_FFLUSH=0;
11678 GNULIB_FGETC=0;
11679 GNULIB_FGETS=0;
11680 GNULIB_FOPEN=0;
11681 GNULIB_FPRINTF=0;
11682 GNULIB_FPRINTF_POSIX=0;
11683 GNULIB_FPURGE=0;
11684 GNULIB_FPUTC=0;
11685 GNULIB_FPUTS=0;
11686 GNULIB_FREAD=0;
11687 GNULIB_FREOPEN=0;
11688 GNULIB_FSCANF=0;
11689 GNULIB_FSEEK=0;
11690 GNULIB_FSEEKO=0;
11691 GNULIB_FTELL=0;
11692 GNULIB_FTELLO=0;
11693 GNULIB_FWRITE=0;
11694 GNULIB_GETC=0;
11695 GNULIB_GETCHAR=0;
11696 GNULIB_GETDELIM=0;
11697 GNULIB_GETLINE=0;
11698 GNULIB_OBSTACK_PRINTF=0;
11699 GNULIB_OBSTACK_PRINTF_POSIX=0;
11700 GNULIB_PCLOSE=0;
11701 GNULIB_PERROR=0;
11702 GNULIB_POPEN=0;
11703 GNULIB_PRINTF=0;
11704 GNULIB_PRINTF_POSIX=0;
11705 GNULIB_PUTC=0;
11706 GNULIB_PUTCHAR=0;
11707 GNULIB_PUTS=0;
11708 GNULIB_REMOVE=0;
11709 GNULIB_RENAME=0;
11710 GNULIB_RENAMEAT=0;
11711 GNULIB_SCANF=0;
11712 GNULIB_SNPRINTF=0;
11713 GNULIB_SPRINTF_POSIX=0;
11714 GNULIB_STDIO_H_NONBLOCKING=0;
11715 GNULIB_STDIO_H_SIGPIPE=0;
11716 GNULIB_TMPFILE=0;
11717 GNULIB_VASPRINTF=0;
11718 GNULIB_VFSCANF=0;
11719 GNULIB_VSCANF=0;
11720 GNULIB_VDPRINTF=0;
11721 GNULIB_VFPRINTF=0;
11722 GNULIB_VFPRINTF_POSIX=0;
11723 GNULIB_VPRINTF=0;
11724 GNULIB_VPRINTF_POSIX=0;
11725 GNULIB_VSNPRINTF=0;
11726 GNULIB_VSPRINTF_POSIX=0;
11727 HAVE_DECL_FPURGE=1;
11728 HAVE_DECL_FSEEKO=1;
11729 HAVE_DECL_FTELLO=1;
11730 HAVE_DECL_GETDELIM=1;
11731 HAVE_DECL_GETLINE=1;
11732 HAVE_DECL_OBSTACK_PRINTF=1;
11733 HAVE_DECL_SNPRINTF=1;
11734 HAVE_DECL_VSNPRINTF=1;
11735 HAVE_DPRINTF=1;
11736 HAVE_FSEEKO=1;
11737 HAVE_FTELLO=1;
11738 HAVE_PCLOSE=1;
11739 HAVE_POPEN=1;
11740 HAVE_RENAMEAT=1;
11741 HAVE_VASPRINTF=1;
11742 HAVE_VDPRINTF=1;
11743 REPLACE_DPRINTF=0;
11744 REPLACE_FCLOSE=0;
11745 REPLACE_FDOPEN=0;
11746 REPLACE_FFLUSH=0;
11747 REPLACE_FOPEN=0;
11748 REPLACE_FPRINTF=0;
11749 REPLACE_FPURGE=0;
11750 REPLACE_FREOPEN=0;
11751 REPLACE_FSEEK=0;
11752 REPLACE_FSEEKO=0;
11753 REPLACE_FTELL=0;
11754 REPLACE_FTELLO=0;
11755 REPLACE_GETDELIM=0;
11756 REPLACE_GETLINE=0;
11757 REPLACE_OBSTACK_PRINTF=0;
11758 REPLACE_PERROR=0;
11759 REPLACE_POPEN=0;
11760 REPLACE_PRINTF=0;
11761 REPLACE_REMOVE=0;
11762 REPLACE_RENAME=0;
11763 REPLACE_RENAMEAT=0;
11764 REPLACE_SNPRINTF=0;
11765 REPLACE_SPRINTF=0;
11766 REPLACE_STDIO_READ_FUNCS=0;
11767 REPLACE_STDIO_WRITE_FUNCS=0;
11768 REPLACE_TMPFILE=0;
11769 REPLACE_VASPRINTF=0;
11770 REPLACE_VDPRINTF=0;
11771 REPLACE_VFPRINTF=0;
11772 REPLACE_VPRINTF=0;
11773 REPLACE_VSNPRINTF=0;
11774 REPLACE_VSPRINTF=0;
11775
11776
11777 GNULIB__EXIT=0;
11778 GNULIB_ATOLL=0;
11779 GNULIB_CALLOC_POSIX=0;
11780 GNULIB_CANONICALIZE_FILE_NAME=0;
11781 GNULIB_GETLOADAVG=0;
11782 GNULIB_GETSUBOPT=0;
11783 GNULIB_GRANTPT=0;
11784 GNULIB_MALLOC_POSIX=0;
11785 GNULIB_MBTOWC=0;
11786 GNULIB_MKDTEMP=0;
11787 GNULIB_MKOSTEMP=0;
11788 GNULIB_MKOSTEMPS=0;
11789 GNULIB_MKSTEMP=0;
11790 GNULIB_MKSTEMPS=0;
11791 GNULIB_POSIX_OPENPT=0;
11792 GNULIB_PTSNAME=0;
11793 GNULIB_PTSNAME_R=0;
11794 GNULIB_PUTENV=0;
11795 GNULIB_RANDOM=0;
11796 GNULIB_RANDOM_R=0;
11797 GNULIB_REALLOC_POSIX=0;
11798 GNULIB_REALPATH=0;
11799 GNULIB_RPMATCH=0;
11800 GNULIB_SECURE_GETENV=0;
11801 GNULIB_SETENV=0;
11802 GNULIB_STRTOD=0;
11803 GNULIB_STRTOLL=0;
11804 GNULIB_STRTOULL=0;
11805 GNULIB_SYSTEM_POSIX=0;
11806 GNULIB_UNLOCKPT=0;
11807 GNULIB_UNSETENV=0;
11808 GNULIB_WCTOMB=0;
11809 HAVE__EXIT=1;
11810 HAVE_ATOLL=1;
11811 HAVE_CANONICALIZE_FILE_NAME=1;
11812 HAVE_DECL_GETLOADAVG=1;
11813 HAVE_GETSUBOPT=1;
11814 HAVE_GRANTPT=1;
11815 HAVE_MKDTEMP=1;
11816 HAVE_MKOSTEMP=1;
11817 HAVE_MKOSTEMPS=1;
11818 HAVE_MKSTEMP=1;
11819 HAVE_MKSTEMPS=1;
11820 HAVE_POSIX_OPENPT=1;
11821 HAVE_PTSNAME=1;
11822 HAVE_PTSNAME_R=1;
11823 HAVE_RANDOM=1;
11824 HAVE_RANDOM_H=1;
11825 HAVE_RANDOM_R=1;
11826 HAVE_REALPATH=1;
11827 HAVE_RPMATCH=1;
11828 HAVE_SECURE_GETENV=1;
11829 HAVE_SETENV=1;
11830 HAVE_DECL_SETENV=1;
11831 HAVE_STRTOD=1;
11832 HAVE_STRTOLL=1;
11833 HAVE_STRTOULL=1;
11834 HAVE_STRUCT_RANDOM_DATA=1;
11835 HAVE_SYS_LOADAVG_H=0;
11836 HAVE_UNLOCKPT=1;
11837 HAVE_DECL_UNSETENV=1;
11838 REPLACE_CALLOC=0;
11839 REPLACE_CANONICALIZE_FILE_NAME=0;
11840 REPLACE_MALLOC=0;
11841 REPLACE_MBTOWC=0;
11842 REPLACE_MKSTEMP=0;
11843 REPLACE_PTSNAME=0;
11844 REPLACE_PTSNAME_R=0;
11845 REPLACE_PUTENV=0;
11846 REPLACE_RANDOM_R=0;
11847 REPLACE_REALLOC=0;
11848 REPLACE_REALPATH=0;
11849 REPLACE_SETENV=0;
11850 REPLACE_STRTOD=0;
11851 REPLACE_UNSETENV=0;
11852 REPLACE_WCTOMB=0;
11853
11854
11855 GNULIB_FFS=0;
11856 HAVE_FFS=1;
11857 HAVE_STRCASECMP=1;
11858 HAVE_DECL_STRNCASECMP=1;
11859
11860
11861 REPLACE_STRERROR_0=0
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
11863 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
11864 if ${gl_cv_func_strerror_0_works+:} false; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 if test "$cross_compiling" = yes; then :
11868 case "$host_os" in
11869 # Guess yes on glibc systems.
11870 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
11871 # If we don't know, assume the worst.
11872 *) gl_cv_func_strerror_0_works="guessing no" ;;
11873 esac
11874
11875 else
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878 #include <string.h>
11879 #include <errno.h>
11880
11881 int
11882 main ()
11883 {
11884 int result = 0;
11885 char *str;
11886 errno = 0;
11887 str = strerror (0);
11888 if (!*str) result |= 1;
11889 if (errno) result |= 2;
11890 if (strstr (str, "nknown") || strstr (str, "ndefined"))
11891 result |= 4;
11892 return result;
11893 ;
11894 return 0;
11895 }
11896 _ACEOF
11897 if ac_fn_c_try_run "$LINENO"; then :
11898 gl_cv_func_strerror_0_works=yes
11899 else
11900 gl_cv_func_strerror_0_works=no
11901 fi
11902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11903 conftest.$ac_objext conftest.beam conftest.$ac_ext
11904 fi
11905
11906
11907 fi
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
11909 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
11910 case "$gl_cv_func_strerror_0_works" in
11911 *yes) ;;
11912 *)
11913 REPLACE_STRERROR_0=1
11914
11915 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
11916
11917 ;;
11918 esac
11919
11920
11921
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
11923 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
11924 if ${ac_cv_c_restrict+:} false; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 ac_cv_c_restrict=no
11928 # The order here caters to the fact that C++ does not require restrict.
11929 for ac_kw in __restrict __restrict__ _Restrict restrict; do
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932 typedef int * int_ptr;
11933 int foo (int_ptr $ac_kw ip) {
11934 return ip[0];
11935 }
11936 int
11937 main ()
11938 {
11939 int s[1];
11940 int * $ac_kw t = s;
11941 t[0] = 0;
11942 return foo(t)
11943 ;
11944 return 0;
11945 }
11946 _ACEOF
11947 if ac_fn_c_try_compile "$LINENO"; then :
11948 ac_cv_c_restrict=$ac_kw
11949 fi
11950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951 test "$ac_cv_c_restrict" != no && break
11952 done
11953
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
11956 $as_echo "$ac_cv_c_restrict" >&6; }
11957
11958 case $ac_cv_c_restrict in
11959 restrict) ;;
11960 no) $as_echo "#define restrict /**/" >>confdefs.h
11961 ;;
11962 *) cat >>confdefs.h <<_ACEOF
11963 #define restrict $ac_cv_c_restrict
11964 _ACEOF
11965 ;;
11966 esac
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979 if test $gl_cv_have_include_next = yes; then
11980 gl_cv_next_string_h='<'string.h'>'
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11983 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11984 if ${gl_cv_next_string_h+:} false; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987
11988
11989
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992 #include <string.h>
11993 _ACEOF
11994 case "$host_os" in
11995 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11996 *) gl_absname_cpp="$ac_cpp" ;;
11997 esac
11998
11999 case "$host_os" in
12000 mingw*)
12001 gl_dirsep_regex='[/\\]'
12002 ;;
12003 *)
12004 gl_dirsep_regex='\/'
12005 ;;
12006 esac
12007 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12008 gl_header_literal_regex=`echo 'string.h' \
12009 | sed -e "$gl_make_literal_regex_sed"`
12010 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12011 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12012 s|^/[^/]|//&|
12013 p
12014 q
12015 }'
12016
12017 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12018 sed -n "$gl_absolute_header_sed"`
12019
12020 gl_header=$gl_cv_absolute_string_h
12021 gl_cv_next_string_h='"'$gl_header'"'
12022
12023
12024 fi
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
12026 $as_echo "$gl_cv_next_string_h" >&6; }
12027 fi
12028 NEXT_STRING_H=$gl_cv_next_string_h
12029
12030 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12032 gl_next_as_first_directive='<'string.h'>'
12033 else
12034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12035 gl_next_as_first_directive=$gl_cv_next_string_h
12036 fi
12037 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
12038
12039
12040
12041
12042
12043
12044 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
12045 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12047 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12048 if eval \${$as_gl_Symbol+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12053 #include <string.h>
12054
12055 int
12056 main ()
12057 {
12058 #undef $gl_func
12059 (void) $gl_func;
12060 ;
12061 return 0;
12062 }
12063 _ACEOF
12064 if ac_fn_c_try_compile "$LINENO"; then :
12065 eval "$as_gl_Symbol=yes"
12066 else
12067 eval "$as_gl_Symbol=no"
12068 fi
12069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 fi
12071 eval ac_res=\$$as_gl_Symbol
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12073 $as_echo "$ac_res" >&6; }
12074 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
12075 cat >>confdefs.h <<_ACEOF
12076 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12077 _ACEOF
12078
12079 eval ac_cv_have_decl_$gl_func=yes
12080 fi
12081 done
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098 if test $gl_cv_have_include_next = yes; then
12099 gl_cv_next_strings_h='<'strings.h'>'
12100 else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
12102 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
12103 if ${gl_cv_next_strings_h+:} false; then :
12104 $as_echo_n "(cached) " >&6
12105 else
12106
12107 if test $ac_cv_header_strings_h = yes; then
12108
12109
12110
12111
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114 #include <strings.h>
12115 _ACEOF
12116 case "$host_os" in
12117 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12118 *) gl_absname_cpp="$ac_cpp" ;;
12119 esac
12120
12121 case "$host_os" in
12122 mingw*)
12123 gl_dirsep_regex='[/\\]'
12124 ;;
12125 *)
12126 gl_dirsep_regex='\/'
12127 ;;
12128 esac
12129 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12130 gl_header_literal_regex=`echo 'strings.h' \
12131 | sed -e "$gl_make_literal_regex_sed"`
12132 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12133 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12134 s|^/[^/]|//&|
12135 p
12136 q
12137 }'
12138
12139 gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12140 sed -n "$gl_absolute_header_sed"`
12141
12142 gl_header=$gl_cv_absolute_strings_h
12143 gl_cv_next_strings_h='"'$gl_header'"'
12144 else
12145 gl_cv_next_strings_h='<'strings.h'>'
12146 fi
12147
12148
12149 fi
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
12151 $as_echo "$gl_cv_next_strings_h" >&6; }
12152 fi
12153 NEXT_STRINGS_H=$gl_cv_next_strings_h
12154
12155 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12156 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12157 gl_next_as_first_directive='<'strings.h'>'
12158 else
12159 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12160 gl_next_as_first_directive=$gl_cv_next_strings_h
12161 fi
12162 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
12163
12164
12165
12166
12167 if test $ac_cv_header_strings_h = yes; then
12168 HAVE_STRINGS_H=1
12169 else
12170 HAVE_STRINGS_H=0
12171 fi
12172
12173
12174
12175 for gl_func in ffs strcasecmp strncasecmp; do
12176 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12178 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12179 if eval \${$as_gl_Symbol+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h. */
12184
12185 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
12186 <strings.h>. */
12187 #include <sys/types.h>
12188 #include <strings.h>
12189
12190 int
12191 main ()
12192 {
12193 #undef $gl_func
12194 (void) $gl_func;
12195 ;
12196 return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200 eval "$as_gl_Symbol=yes"
12201 else
12202 eval "$as_gl_Symbol=no"
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 eval ac_res=\$$as_gl_Symbol
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12208 $as_echo "$ac_res" >&6; }
12209 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
12210 cat >>confdefs.h <<_ACEOF
12211 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12212 _ACEOF
12213
12214 eval ac_cv_have_decl_$gl_func=yes
12215 fi
12216 done
12217
12218
12219
12220
12221 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12222 if test "x$ac_cv_type_pid_t" = xyes; then :
12223
12224 else
12225
12226 cat >>confdefs.h <<_ACEOF
12227 #define pid_t int
12228 _ACEOF
12229
12230 fi
12231
12232 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12233 if test "x$ac_cv_type_mode_t" = xyes; then :
12234
12235 else
12236
12237 cat >>confdefs.h <<_ACEOF
12238 #define mode_t int
12239 _ACEOF
12240
12241 fi
12242
12243
12244
12245 WINDOWS_64_BIT_OFF_T=0
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259 if test $gl_cv_have_include_next = yes; then
12260 gl_cv_next_sys_types_h='<'sys/types.h'>'
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
12263 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
12264 if ${gl_cv_next_sys_types_h+:} false; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267
12268
12269
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12272 #include <sys/types.h>
12273 _ACEOF
12274 case "$host_os" in
12275 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12276 *) gl_absname_cpp="$ac_cpp" ;;
12277 esac
12278
12279 case "$host_os" in
12280 mingw*)
12281 gl_dirsep_regex='[/\\]'
12282 ;;
12283 *)
12284 gl_dirsep_regex='\/'
12285 ;;
12286 esac
12287 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12288 gl_header_literal_regex=`echo 'sys/types.h' \
12289 | sed -e "$gl_make_literal_regex_sed"`
12290 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12291 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12292 s|^/[^/]|//&|
12293 p
12294 q
12295 }'
12296
12297 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12298 sed -n "$gl_absolute_header_sed"`
12299
12300 gl_header=$gl_cv_absolute_sys_types_h
12301 gl_cv_next_sys_types_h='"'$gl_header'"'
12302
12303
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
12306 $as_echo "$gl_cv_next_sys_types_h" >&6; }
12307 fi
12308 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
12309
12310 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12312 gl_next_as_first_directive='<'sys/types.h'>'
12313 else
12314 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12315 gl_next_as_first_directive=$gl_cv_next_sys_types_h
12316 fi
12317 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12335 $as_echo_n "checking for wint_t... " >&6; }
12336 if ${gt_cv_c_wint_t+:} false; then :
12337 $as_echo_n "(cached) " >&6
12338 else
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341
12342 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12343 <wchar.h>.
12344 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
12345 before <wchar.h>. */
12346 #include <stddef.h>
12347 #include <stdio.h>
12348 #include <time.h>
12349 #include <wchar.h>
12350 wint_t foo = (wchar_t)'\0';
12351 int
12352 main ()
12353 {
12354
12355 ;
12356 return 0;
12357 }
12358 _ACEOF
12359 if ac_fn_c_try_compile "$LINENO"; then :
12360 gt_cv_c_wint_t=yes
12361 else
12362 gt_cv_c_wint_t=no
12363 fi
12364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12367 $as_echo "$gt_cv_c_wint_t" >&6; }
12368 if test $gt_cv_c_wint_t = yes; then
12369
12370 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12371
12372 fi
12373
12374
12375
12376
12377
12378 if test $ac_cv_header_features_h = yes; then
12379 HAVE_FEATURES_H=1
12380 else
12381 HAVE_FEATURES_H=0
12382 fi
12383
12384
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12387 $as_echo_n "checking for inttypes.h... " >&6; }
12388 if ${gl_cv_header_inttypes_h+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12393
12394 #include <sys/types.h>
12395 #include <inttypes.h>
12396
12397 int
12398 main ()
12399 {
12400 uintmax_t i = (uintmax_t) -1; return !i;
12401 ;
12402 return 0;
12403 }
12404 _ACEOF
12405 if ac_fn_c_try_compile "$LINENO"; then :
12406 gl_cv_header_inttypes_h=yes
12407 else
12408 gl_cv_header_inttypes_h=no
12409 fi
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
12413 $as_echo "$gl_cv_header_inttypes_h" >&6; }
12414 if test $gl_cv_header_inttypes_h = yes; then
12415
12416 cat >>confdefs.h <<_ACEOF
12417 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12418 _ACEOF
12419
12420 fi
12421
12422
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12424 $as_echo_n "checking for stdint.h... " >&6; }
12425 if ${gl_cv_header_stdint_h+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430 #include <sys/types.h>
12431 #include <stdint.h>
12432 int
12433 main ()
12434 {
12435 uintmax_t i = (uintmax_t) -1; return !i;
12436 ;
12437 return 0;
12438 }
12439 _ACEOF
12440 if ac_fn_c_try_compile "$LINENO"; then :
12441 gl_cv_header_stdint_h=yes
12442 else
12443 gl_cv_header_stdint_h=no
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
12448 $as_echo "$gl_cv_header_stdint_h" >&6; }
12449 if test $gl_cv_header_stdint_h = yes; then
12450
12451 cat >>confdefs.h <<_ACEOF
12452 #define HAVE_STDINT_H_WITH_UINTMAX 1
12453 _ACEOF
12454
12455 fi
12456
12457
12458
12459
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
12461 $as_echo_n "checking for intmax_t... " >&6; }
12462 if ${gt_cv_c_intmax_t+:} false; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12467
12468 #include <stddef.h>
12469 #include <stdlib.h>
12470 #if HAVE_STDINT_H_WITH_UINTMAX
12471 #include <stdint.h>
12472 #endif
12473 #if HAVE_INTTYPES_H_WITH_UINTMAX
12474 #include <inttypes.h>
12475 #endif
12476
12477 int
12478 main ()
12479 {
12480 intmax_t x = -1; return !x;
12481 ;
12482 return 0;
12483 }
12484 _ACEOF
12485 if ac_fn_c_try_compile "$LINENO"; then :
12486 gt_cv_c_intmax_t=yes
12487 else
12488 gt_cv_c_intmax_t=no
12489 fi
12490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
12493 $as_echo "$gt_cv_c_intmax_t" >&6; }
12494 if test $gt_cv_c_intmax_t = yes; then
12495
12496 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
12497
12498 else
12499
12500 test $ac_cv_type_long_long_int = yes \
12501 && ac_type='long long' \
12502 || ac_type='long'
12503
12504 cat >>confdefs.h <<_ACEOF
12505 #define intmax_t $ac_type
12506 _ACEOF
12507
12508 fi
12509
12510
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
12512 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
12513 if ${gl_cv_cc_double_expbit0+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516
12517 if test "$cross_compiling" = yes; then :
12518
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12521
12522 #if defined arm || defined __arm || defined __arm__
12523 mixed_endianness
12524 #endif
12525
12526 _ACEOF
12527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12528 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
12529 gl_cv_cc_double_expbit0="unknown"
12530 else
12531
12532 :
12533 if ${ac_cv_c_bigendian+:} false; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 ac_cv_c_bigendian=unknown
12537 # See if we're dealing with a universal compiler.
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12540 #ifndef __APPLE_CC__
12541 not a universal capable compiler
12542 #endif
12543 typedef int dummy;
12544
12545 _ACEOF
12546 if ac_fn_c_try_compile "$LINENO"; then :
12547
12548 # Check for potential -arch flags. It is not universal unless
12549 # there are at least two -arch flags with different values.
12550 ac_arch=
12551 ac_prev=
12552 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12553 if test -n "$ac_prev"; then
12554 case $ac_word in
12555 i?86 | x86_64 | ppc | ppc64)
12556 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12557 ac_arch=$ac_word
12558 else
12559 ac_cv_c_bigendian=universal
12560 break
12561 fi
12562 ;;
12563 esac
12564 ac_prev=
12565 elif test "x$ac_word" = "x-arch"; then
12566 ac_prev=arch
12567 fi
12568 done
12569 fi
12570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571 if test $ac_cv_c_bigendian = unknown; then
12572 # See if sys/param.h defines the BYTE_ORDER macro.
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575 #include <sys/types.h>
12576 #include <sys/param.h>
12577
12578 int
12579 main ()
12580 {
12581 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12582 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12583 && LITTLE_ENDIAN)
12584 bogus endian macros
12585 #endif
12586
12587 ;
12588 return 0;
12589 }
12590 _ACEOF
12591 if ac_fn_c_try_compile "$LINENO"; then :
12592 # It does; now see whether it defined to BIG_ENDIAN or not.
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12595 #include <sys/types.h>
12596 #include <sys/param.h>
12597
12598 int
12599 main ()
12600 {
12601 #if BYTE_ORDER != BIG_ENDIAN
12602 not big endian
12603 #endif
12604
12605 ;
12606 return 0;
12607 }
12608 _ACEOF
12609 if ac_fn_c_try_compile "$LINENO"; then :
12610 ac_cv_c_bigendian=yes
12611 else
12612 ac_cv_c_bigendian=no
12613 fi
12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615 fi
12616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12617 fi
12618 if test $ac_cv_c_bigendian = unknown; then
12619 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622 #include <limits.h>
12623
12624 int
12625 main ()
12626 {
12627 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12628 bogus endian macros
12629 #endif
12630
12631 ;
12632 return 0;
12633 }
12634 _ACEOF
12635 if ac_fn_c_try_compile "$LINENO"; then :
12636 # It does; now see whether it defined to _BIG_ENDIAN or not.
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12639 #include <limits.h>
12640
12641 int
12642 main ()
12643 {
12644 #ifndef _BIG_ENDIAN
12645 not big endian
12646 #endif
12647
12648 ;
12649 return 0;
12650 }
12651 _ACEOF
12652 if ac_fn_c_try_compile "$LINENO"; then :
12653 ac_cv_c_bigendian=yes
12654 else
12655 ac_cv_c_bigendian=no
12656 fi
12657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658 fi
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 fi
12661 if test $ac_cv_c_bigendian = unknown; then
12662 # Compile a test program.
12663 if test "$cross_compiling" = yes; then :
12664 # Try to guess by grepping values from an object file.
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 short int ascii_mm[] =
12668 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12669 short int ascii_ii[] =
12670 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12671 int use_ascii (int i) {
12672 return ascii_mm[i] + ascii_ii[i];
12673 }
12674 short int ebcdic_ii[] =
12675 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12676 short int ebcdic_mm[] =
12677 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12678 int use_ebcdic (int i) {
12679 return ebcdic_mm[i] + ebcdic_ii[i];
12680 }
12681 extern int foo;
12682
12683 int
12684 main ()
12685 {
12686 return use_ascii (foo) == use_ebcdic (foo);
12687 ;
12688 return 0;
12689 }
12690 _ACEOF
12691 if ac_fn_c_try_compile "$LINENO"; then :
12692 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12693 ac_cv_c_bigendian=yes
12694 fi
12695 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12696 if test "$ac_cv_c_bigendian" = unknown; then
12697 ac_cv_c_bigendian=no
12698 else
12699 # finding both strings is unlikely to happen, but who knows?
12700 ac_cv_c_bigendian=unknown
12701 fi
12702 fi
12703 fi
12704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705 else
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12708 $ac_includes_default
12709 int
12710 main ()
12711 {
12712
12713 /* Are we little or big endian? From Harbison&Steele. */
12714 union
12715 {
12716 long int l;
12717 char c[sizeof (long int)];
12718 } u;
12719 u.l = 1;
12720 return u.c[sizeof (long int) - 1] == 1;
12721
12722 ;
12723 return 0;
12724 }
12725 _ACEOF
12726 if ac_fn_c_try_run "$LINENO"; then :
12727 ac_cv_c_bigendian=no
12728 else
12729 ac_cv_c_bigendian=yes
12730 fi
12731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12732 conftest.$ac_objext conftest.beam conftest.$ac_ext
12733 fi
12734
12735 fi
12736 fi
12737 :
12738 case $ac_cv_c_bigendian in #(
12739 yes)
12740 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
12741 no)
12742 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
12743 universal)
12744
12745 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12746
12747 ;; #(
12748 *)
12749 gl_cv_cc_double_expbit0="unknown" ;;
12750 esac
12751
12752
12753 fi
12754 rm -f conftest*
12755
12756
12757 else
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760
12761 #include <float.h>
12762 #include <stddef.h>
12763 #include <stdio.h>
12764 #include <string.h>
12765 #define NWORDS \
12766 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12767 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
12768 static unsigned int ored_words[NWORDS];
12769 static unsigned int anded_words[NWORDS];
12770 static void add_to_ored_words (double x)
12771 {
12772 memory_double m;
12773 size_t i;
12774 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
12775 memset (&m, 0, sizeof (memory_double));
12776 m.value = x;
12777 for (i = 0; i < NWORDS; i++)
12778 {
12779 ored_words[i] |= m.word[i];
12780 anded_words[i] &= m.word[i];
12781 }
12782 }
12783 int main ()
12784 {
12785 size_t j;
12786 FILE *fp = fopen ("conftest.out", "w");
12787 if (fp == NULL)
12788 return 1;
12789 for (j = 0; j < NWORDS; j++)
12790 anded_words[j] = ~ (unsigned int) 0;
12791 add_to_ored_words (0.25);
12792 add_to_ored_words (0.5);
12793 add_to_ored_words (1.0);
12794 add_to_ored_words (2.0);
12795 add_to_ored_words (4.0);
12796 /* Remove bits that are common (e.g. if representation of the first mantissa
12797 bit is explicit). */
12798 for (j = 0; j < NWORDS; j++)
12799 ored_words[j] &= ~anded_words[j];
12800 /* Now find the nonzero word. */
12801 for (j = 0; j < NWORDS; j++)
12802 if (ored_words[j] != 0)
12803 break;
12804 if (j < NWORDS)
12805 {
12806 size_t i;
12807 for (i = j + 1; i < NWORDS; i++)
12808 if (ored_words[i] != 0)
12809 {
12810 fprintf (fp, "unknown");
12811 return (fclose (fp) != 0);
12812 }
12813 for (i = 0; ; i++)
12814 if ((ored_words[j] >> i) & 1)
12815 {
12816 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12817 return (fclose (fp) != 0);
12818 }
12819 }
12820 fprintf (fp, "unknown");
12821 return (fclose (fp) != 0);
12822 }
12823
12824 _ACEOF
12825 if ac_fn_c_try_run "$LINENO"; then :
12826 gl_cv_cc_double_expbit0=`cat conftest.out`
12827 else
12828 gl_cv_cc_double_expbit0="unknown"
12829 fi
12830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12831 conftest.$ac_objext conftest.beam conftest.$ac_ext
12832 fi
12833
12834 rm -f conftest.out
12835
12836 fi
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
12838 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
12839 case "$gl_cv_cc_double_expbit0" in
12840 word*bit*)
12841 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12842 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
12843
12844 cat >>confdefs.h <<_ACEOF
12845 #define DBL_EXPBIT0_WORD $word
12846 _ACEOF
12847
12848
12849 cat >>confdefs.h <<_ACEOF
12850 #define DBL_EXPBIT0_BIT $bit
12851 _ACEOF
12852
12853 ;;
12854 esac
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
12865 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
12866 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869
12870 if test "$cross_compiling" = yes; then :
12871
12872 case "$host_os" in
12873 # Guess yes on glibc systems.
12874 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12875 # Guess yes on FreeBSD >= 5.
12876 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12877 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12878 # Guess yes on Mac OS X >= 10.3.
12879 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
12880 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12881 # Guess yes on OpenBSD >= 3.9.
12882 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
12883 gl_cv_func_snprintf_retval_c99="guessing no";;
12884 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12885 # Guess yes on Solaris >= 2.10.
12886 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
12887 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
12888 # Guess yes on AIX >= 4.
12889 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
12890 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12891 # Guess yes on NetBSD >= 3.
12892 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
12893 gl_cv_func_snprintf_retval_c99="guessing no";;
12894 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12895 # Guess yes on BeOS.
12896 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12897 # If we don't know, assume the worst.
12898 *) gl_cv_func_snprintf_retval_c99="guessing no";;
12899 esac
12900
12901 else
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12904
12905 #include <stdio.h>
12906 #include <string.h>
12907 #if HAVE_SNPRINTF
12908 # define my_snprintf snprintf
12909 #else
12910 # include <stdarg.h>
12911 static int my_snprintf (char *buf, int size, const char *format, ...)
12912 {
12913 va_list args;
12914 int ret;
12915 va_start (args, format);
12916 ret = vsnprintf (buf, size, format, args);
12917 va_end (args);
12918 return ret;
12919 }
12920 #endif
12921 static char buf[100];
12922 int main ()
12923 {
12924 strcpy (buf, "ABCDEF");
12925 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
12926 return 1;
12927 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
12928 return 2;
12929 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
12930 return 3;
12931 return 0;
12932 }
12933 _ACEOF
12934 if ac_fn_c_try_run "$LINENO"; then :
12935 gl_cv_func_snprintf_retval_c99=yes
12936 else
12937 gl_cv_func_snprintf_retval_c99=no
12938 fi
12939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12940 conftest.$ac_objext conftest.beam conftest.$ac_ext
12941 fi
12942
12943
12944 fi
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
12946 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
12947
12948
12949
12950
12951
12952
12953 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
12954 do :
12955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12956 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12957 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12958 cat >>confdefs.h <<_ACEOF
12959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12960 _ACEOF
12961
12962 fi
12963 done
12964
12965 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
12966 "
12967 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
12968 ac_have_decl=1
12969 else
12970 ac_have_decl=0
12971 fi
12972
12973 cat >>confdefs.h <<_ACEOF
12974 #define HAVE_DECL__SNPRINTF $ac_have_decl
12975 _ACEOF
12976
12977
12978
12979 case "$gl_cv_func_snprintf_retval_c99" in
12980 *yes)
12981
12982 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
12983
12984 ;;
12985 esac
12986
12987
12988 GNULIB_BTOWC=0;
12989 GNULIB_WCTOB=0;
12990 GNULIB_MBSINIT=0;
12991 GNULIB_MBRTOWC=0;
12992 GNULIB_MBRLEN=0;
12993 GNULIB_MBSRTOWCS=0;
12994 GNULIB_MBSNRTOWCS=0;
12995 GNULIB_WCRTOMB=0;
12996 GNULIB_WCSRTOMBS=0;
12997 GNULIB_WCSNRTOMBS=0;
12998 GNULIB_WCWIDTH=0;
12999 GNULIB_WMEMCHR=0;
13000 GNULIB_WMEMCMP=0;
13001 GNULIB_WMEMCPY=0;
13002 GNULIB_WMEMMOVE=0;
13003 GNULIB_WMEMSET=0;
13004 GNULIB_WCSLEN=0;
13005 GNULIB_WCSNLEN=0;
13006 GNULIB_WCSCPY=0;
13007 GNULIB_WCPCPY=0;
13008 GNULIB_WCSNCPY=0;
13009 GNULIB_WCPNCPY=0;
13010 GNULIB_WCSCAT=0;
13011 GNULIB_WCSNCAT=0;
13012 GNULIB_WCSCMP=0;
13013 GNULIB_WCSNCMP=0;
13014 GNULIB_WCSCASECMP=0;
13015 GNULIB_WCSNCASECMP=0;
13016 GNULIB_WCSCOLL=0;
13017 GNULIB_WCSXFRM=0;
13018 GNULIB_WCSDUP=0;
13019 GNULIB_WCSCHR=0;
13020 GNULIB_WCSRCHR=0;
13021 GNULIB_WCSCSPN=0;
13022 GNULIB_WCSSPN=0;
13023 GNULIB_WCSPBRK=0;
13024 GNULIB_WCSSTR=0;
13025 GNULIB_WCSTOK=0;
13026 GNULIB_WCSWIDTH=0;
13027 HAVE_BTOWC=1;
13028 HAVE_MBSINIT=1;
13029 HAVE_MBRTOWC=1;
13030 HAVE_MBRLEN=1;
13031 HAVE_MBSRTOWCS=1;
13032 HAVE_MBSNRTOWCS=1;
13033 HAVE_WCRTOMB=1;
13034 HAVE_WCSRTOMBS=1;
13035 HAVE_WCSNRTOMBS=1;
13036 HAVE_WMEMCHR=1;
13037 HAVE_WMEMCMP=1;
13038 HAVE_WMEMCPY=1;
13039 HAVE_WMEMMOVE=1;
13040 HAVE_WMEMSET=1;
13041 HAVE_WCSLEN=1;
13042 HAVE_WCSNLEN=1;
13043 HAVE_WCSCPY=1;
13044 HAVE_WCPCPY=1;
13045 HAVE_WCSNCPY=1;
13046 HAVE_WCPNCPY=1;
13047 HAVE_WCSCAT=1;
13048 HAVE_WCSNCAT=1;
13049 HAVE_WCSCMP=1;
13050 HAVE_WCSNCMP=1;
13051 HAVE_WCSCASECMP=1;
13052 HAVE_WCSNCASECMP=1;
13053 HAVE_WCSCOLL=1;
13054 HAVE_WCSXFRM=1;
13055 HAVE_WCSDUP=1;
13056 HAVE_WCSCHR=1;
13057 HAVE_WCSRCHR=1;
13058 HAVE_WCSCSPN=1;
13059 HAVE_WCSSPN=1;
13060 HAVE_WCSPBRK=1;
13061 HAVE_WCSSTR=1;
13062 HAVE_WCSTOK=1;
13063 HAVE_WCSWIDTH=1;
13064 HAVE_DECL_WCTOB=1;
13065 HAVE_DECL_WCWIDTH=1;
13066 REPLACE_MBSTATE_T=0;
13067 REPLACE_BTOWC=0;
13068 REPLACE_WCTOB=0;
13069 REPLACE_MBSINIT=0;
13070 REPLACE_MBRTOWC=0;
13071 REPLACE_MBRLEN=0;
13072 REPLACE_MBSRTOWCS=0;
13073 REPLACE_MBSNRTOWCS=0;
13074 REPLACE_WCRTOMB=0;
13075 REPLACE_WCSRTOMBS=0;
13076 REPLACE_WCSNRTOMBS=0;
13077 REPLACE_WCWIDTH=0;
13078 REPLACE_WCSWIDTH=0;
13079
13080
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
13082 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
13083 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 gl_cv_header_wchar_h_correct_inline=yes
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089
13090 #define wcstod renamed_wcstod
13091 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13092 <wchar.h>.
13093 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13094 included before <wchar.h>. */
13095 #include <stddef.h>
13096 #include <stdio.h>
13097 #include <time.h>
13098 #include <wchar.h>
13099 extern int zero (void);
13100 int main () { return zero(); }
13101
13102 _ACEOF
13103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13104 (eval $ac_compile) 2>&5
13105 ac_status=$?
13106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13107 test $ac_status = 0; }; then
13108 mv conftest.$ac_objext conftest1.$ac_objext
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111
13112 #define wcstod renamed_wcstod
13113 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13114 <wchar.h>.
13115 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13116 included before <wchar.h>. */
13117 #include <stddef.h>
13118 #include <stdio.h>
13119 #include <time.h>
13120 #include <wchar.h>
13121 int zero (void) { return 0; }
13122
13123 _ACEOF
13124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13125 (eval $ac_compile) 2>&5
13126 ac_status=$?
13127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13128 test $ac_status = 0; }; then
13129 mv conftest.$ac_objext conftest2.$ac_objext
13130 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
13131 :
13132 else
13133 gl_cv_header_wchar_h_correct_inline=no
13134 fi
13135 fi
13136 fi
13137 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
13138
13139 fi
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
13141 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
13142 if test $gl_cv_header_wchar_h_correct_inline = no; then
13143 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
13144 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
13145 C99 mode. You have four options:
13146 - Add the flag -fgnu89-inline to CC and reconfigure, or
13147 - Fix your include files, using parts of
13148 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
13149 - Use a gcc version older than 4.3, or
13150 - Don't use the flags -std=c99 or -std=gnu99.
13151 Configuration aborted." "$LINENO" 5
13152 fi
13153
13154
13155 if false; then
13156 GL_COND_LIBTOOL_TRUE=
13157 GL_COND_LIBTOOL_FALSE='#'
13158 else
13159 GL_COND_LIBTOOL_TRUE='#'
13160 GL_COND_LIBTOOL_FALSE=
13161 fi
13162
13163 gl_cond_libtool=false
13164 gl_libdeps=
13165 gl_ltlibdeps=
13166 gl_m4_base='gnulib/m4'
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176 gl_source_base='gnulib/lib'
13177
13178
13179 if test $ac_cv_func_alloca_works = no; then
13180 :
13181 fi
13182
13183 # Define an additional variable used in the Makefile substitution.
13184 if test $ac_cv_working_alloca_h = yes; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13186 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13187 if ${gl_cv_rpl_alloca+:} false; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13193
13194 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13195 Need own alloca
13196 #endif
13197
13198 _ACEOF
13199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13200 $EGREP "Need own alloca" >/dev/null 2>&1; then :
13201 gl_cv_rpl_alloca=yes
13202 else
13203 gl_cv_rpl_alloca=no
13204 fi
13205 rm -f conftest*
13206
13207
13208 fi
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13210 $as_echo "$gl_cv_rpl_alloca" >&6; }
13211 if test $gl_cv_rpl_alloca = yes; then
13212
13213 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13214
13215 ALLOCA_H=alloca.h
13216 else
13217 ALLOCA_H=
13218 fi
13219 else
13220 ALLOCA_H=alloca.h
13221 fi
13222
13223 if test -n "$ALLOCA_H"; then
13224 GL_GENERATE_ALLOCA_H_TRUE=
13225 GL_GENERATE_ALLOCA_H_FALSE='#'
13226 else
13227 GL_GENERATE_ALLOCA_H_TRUE='#'
13228 GL_GENERATE_ALLOCA_H_FALSE=
13229 fi
13230
13231
13232
13233
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
13235 $as_echo_n "checking for error_at_line... " >&6; }
13236 if ${ac_cv_lib_error_at_line+:} false; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241 #include <error.h>
13242 int
13243 main ()
13244 {
13245 error_at_line (0, 0, "", 0, "an error occurred");
13246 ;
13247 return 0;
13248 }
13249 _ACEOF
13250 if ac_fn_c_try_link "$LINENO"; then :
13251 ac_cv_lib_error_at_line=yes
13252 else
13253 ac_cv_lib_error_at_line=no
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13257 fi
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
13259 $as_echo "$ac_cv_lib_error_at_line" >&6; }
13260
13261 if test $ac_cv_lib_error_at_line = no; then
13262
13263
13264
13265
13266
13267
13268
13269
13270 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
13271
13272
13273
13274 :
13275
13276 fi
13277
13278
13279 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
13280
13281
13282
13283 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
13284
13285
13286
13287
13288
13289 FLOAT_H=
13290 REPLACE_FLOAT_LDBL=0
13291 case "$host_os" in
13292 aix* | beos* | openbsd* | mirbsd* | irix*)
13293 FLOAT_H=float.h
13294 ;;
13295 freebsd*)
13296 case "$host_cpu" in
13297 i[34567]86 )
13298 FLOAT_H=float.h
13299 ;;
13300 x86_64 )
13301 # On x86_64 systems, the C compiler may still be generating
13302 # 32-bit code.
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
13306 yes
13307 #endif
13308 _ACEOF
13309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13310 $EGREP "yes" >/dev/null 2>&1; then :
13311
13312 else
13313 FLOAT_H=float.h
13314 fi
13315 rm -f conftest*
13316
13317 ;;
13318 esac
13319 ;;
13320 linux*)
13321 case "$host_cpu" in
13322 powerpc*)
13323 FLOAT_H=float.h
13324 ;;
13325 esac
13326 ;;
13327 esac
13328 case "$host_os" in
13329 aix* | freebsd* | linux*)
13330 if test -n "$FLOAT_H"; then
13331 REPLACE_FLOAT_LDBL=1
13332 fi
13333 ;;
13334 esac
13335
13336 REPLACE_ITOLD=0
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
13338 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
13339 if ${gl_cv_func_itold_works+:} false; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342
13343 if test "$cross_compiling" = yes; then :
13344 case "$host" in
13345 sparc*-*-linux*)
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13348 #if defined __LP64__ || defined __arch64__
13349 yes
13350 #endif
13351 _ACEOF
13352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13353 $EGREP "yes" >/dev/null 2>&1; then :
13354 gl_cv_func_itold_works="guessing no"
13355 else
13356 gl_cv_func_itold_works="guessing yes"
13357 fi
13358 rm -f conftest*
13359
13360 ;;
13361 *) gl_cv_func_itold_works="guessing yes" ;;
13362 esac
13363
13364 else
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367
13368 int i = -1;
13369 volatile long double ld;
13370 int main ()
13371 {
13372 ld += i * 1.0L;
13373 if (ld > 0)
13374 return 1;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_run "$LINENO"; then :
13379 gl_cv_func_itold_works=yes
13380 else
13381 gl_cv_func_itold_works=no
13382 fi
13383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13384 conftest.$ac_objext conftest.beam conftest.$ac_ext
13385 fi
13386
13387
13388 fi
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
13390 $as_echo "$gl_cv_func_itold_works" >&6; }
13391 case "$gl_cv_func_itold_works" in
13392 *no)
13393 REPLACE_ITOLD=1
13394 FLOAT_H=float.h
13395 ;;
13396 esac
13397
13398 if test -n "$FLOAT_H"; then
13399
13400
13401
13402
13403
13404
13405
13406
13407 if test $gl_cv_have_include_next = yes; then
13408 gl_cv_next_float_h='<'float.h'>'
13409 else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13411 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13412 if ${gl_cv_next_float_h+:} false; then :
13413 $as_echo_n "(cached) " >&6
13414 else
13415
13416
13417
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13420 #include <float.h>
13421 _ACEOF
13422 case "$host_os" in
13423 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13424 *) gl_absname_cpp="$ac_cpp" ;;
13425 esac
13426
13427 case "$host_os" in
13428 mingw*)
13429 gl_dirsep_regex='[/\\]'
13430 ;;
13431 *)
13432 gl_dirsep_regex='\/'
13433 ;;
13434 esac
13435 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13436 gl_header_literal_regex=`echo 'float.h' \
13437 | sed -e "$gl_make_literal_regex_sed"`
13438 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13439 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13440 s|^/[^/]|//&|
13441 p
13442 q
13443 }'
13444
13445 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13446 sed -n "$gl_absolute_header_sed"`
13447
13448 gl_header=$gl_cv_absolute_float_h
13449 gl_cv_next_float_h='"'$gl_header'"'
13450
13451
13452 fi
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13454 $as_echo "$gl_cv_next_float_h" >&6; }
13455 fi
13456 NEXT_FLOAT_H=$gl_cv_next_float_h
13457
13458 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13459 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13460 gl_next_as_first_directive='<'float.h'>'
13461 else
13462 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13463 gl_next_as_first_directive=$gl_cv_next_float_h
13464 fi
13465 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13466
13467
13468
13469
13470 fi
13471
13472 if test -n "$FLOAT_H"; then
13473 GL_GENERATE_FLOAT_H_TRUE=
13474 GL_GENERATE_FLOAT_H_FALSE='#'
13475 else
13476 GL_GENERATE_FLOAT_H_TRUE='#'
13477 GL_GENERATE_FLOAT_H_FALSE=
13478 fi
13479
13480
13481
13482 if test $REPLACE_FLOAT_LDBL = 1; then
13483
13484
13485
13486
13487
13488
13489
13490
13491 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
13492
13493 fi
13494 if test $REPLACE_ITOLD = 1; then
13495
13496
13497
13498
13499
13500
13501
13502
13503 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
13504
13505 fi
13506
13507
13508
13509
13510
13511 if test $REPLACE_GETOPT = 1; then
13512
13513
13514
13515
13516
13517
13518
13519
13520 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13531
13532
13533
13534
13535 GNULIB_GL_UNISTD_H_GETOPT=1
13536 fi
13537
13538
13539
13540 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
13541
13542
13543
13544
13545
13546
13547
13548 REPLACE_GETOPT=0
13549 if test -n "$gl_replace_getopt"; then
13550 REPLACE_GETOPT=1
13551 fi
13552
13553 if test $REPLACE_GETOPT = 1; then
13554
13555 GETOPT_H=getopt.h
13556
13557 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13558
13559
13560
13561 fi
13562
13563 if test $REPLACE_GETOPT = 1; then
13564
13565
13566
13567
13568
13569
13570
13571
13572 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13583
13584
13585
13586
13587 GNULIB_GL_UNISTD_H_GETOPT=1
13588 fi
13589
13590
13591
13592
13593 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13594
13595
13596
13597
13598
13599
13600
13601
13602 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13603
13604
13605 for ac_header in bp-sym.h
13606 do :
13607 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13608 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
13609 cat >>confdefs.h <<_ACEOF
13610 #define HAVE_BP_SYM_H 1
13611 _ACEOF
13612
13613 fi
13614
13615 done
13616
13617
13618 fi
13619
13620
13621
13622
13623
13624 GNULIB_MEMCHR=1
13625
13626
13627
13628
13629
13630 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13631
13632
13633
13634
13635
13636 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
13637 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
13638
13639 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
13640
13641 else
13642 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
13643 fi
13644
13645
13646 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
13647
13648
13649
13650
13651
13652
13653
13654
13655 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
13656
13657 fi
13658
13659
13660
13661 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
13662
13663
13664
13665
13666
13667
13668
13669
13670 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
13671
13672 fi
13673
13674
13675 for ac_header in stdint.h
13676 do :
13677 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13678 if test "x$ac_cv_header_stdint_h" = xyes; then :
13679 cat >>confdefs.h <<_ACEOF
13680 #define HAVE_STDINT_H 1
13681 _ACEOF
13682
13683 fi
13684
13685 done
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
13688 $as_echo_n "checking for SIZE_MAX... " >&6; }
13689 if ${gl_cv_size_max+:} false; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692
13693 gl_cv_size_max=
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13696
13697 #include <limits.h>
13698 #if HAVE_STDINT_H
13699 #include <stdint.h>
13700 #endif
13701 #ifdef SIZE_MAX
13702 Found it
13703 #endif
13704
13705 _ACEOF
13706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13707 $EGREP "Found it" >/dev/null 2>&1; then :
13708 gl_cv_size_max=yes
13709 fi
13710 rm -f conftest*
13711
13712 if test -z "$gl_cv_size_max"; then
13713 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
13714 #include <limits.h>"; then :
13715
13716 else
13717 size_t_bits_minus_1=
13718 fi
13719
13720 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
13721
13722 else
13723 fits_in_uint=
13724 fi
13725
13726 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
13727 if test $fits_in_uint = 1; then
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730 #include <stddef.h>
13731 extern size_t foo;
13732 extern unsigned long foo;
13733
13734 int
13735 main ()
13736 {
13737
13738 ;
13739 return 0;
13740 }
13741 _ACEOF
13742 if ac_fn_c_try_compile "$LINENO"; then :
13743 fits_in_uint=0
13744 fi
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 fi
13747 if test $fits_in_uint = 1; then
13748 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
13749 else
13750 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
13751 fi
13752 else
13753 gl_cv_size_max='((size_t)~(size_t)0)'
13754 fi
13755 fi
13756
13757 fi
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
13759 $as_echo "$gl_cv_size_max" >&6; }
13760 if test "$gl_cv_size_max" != yes; then
13761
13762 cat >>confdefs.h <<_ACEOF
13763 #define SIZE_MAX $gl_cv_size_max
13764 _ACEOF
13765
13766 fi
13767
13768
13769
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13771 $as_echo_n "checking for ssize_t... " >&6; }
13772 if ${gt_cv_ssize_t+:} false; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13777 #include <sys/types.h>
13778 int
13779 main ()
13780 {
13781 int x = sizeof (ssize_t *) + sizeof (ssize_t);
13782 return !x;
13783 ;
13784 return 0;
13785 }
13786 _ACEOF
13787 if ac_fn_c_try_compile "$LINENO"; then :
13788 gt_cv_ssize_t=yes
13789 else
13790 gt_cv_ssize_t=no
13791 fi
13792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13793 fi
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
13795 $as_echo "$gt_cv_ssize_t" >&6; }
13796 if test $gt_cv_ssize_t = no; then
13797
13798 $as_echo "#define ssize_t int" >>confdefs.h
13799
13800 fi
13801
13802
13803
13804
13805 # Define two additional variables used in the Makefile substitution.
13806
13807 if test "$ac_cv_header_stdbool_h" = yes; then
13808 STDBOOL_H=''
13809 else
13810 STDBOOL_H='stdbool.h'
13811 fi
13812
13813 if test -n "$STDBOOL_H"; then
13814 GL_GENERATE_STDBOOL_H_TRUE=
13815 GL_GENERATE_STDBOOL_H_FALSE='#'
13816 else
13817 GL_GENERATE_STDBOOL_H_TRUE='#'
13818 GL_GENERATE_STDBOOL_H_FALSE=
13819 fi
13820
13821
13822 if test "$ac_cv_type__Bool" = yes; then
13823 HAVE__BOOL=1
13824 else
13825 HAVE__BOOL=0
13826 fi
13827
13828
13829
13830
13831
13832 STDDEF_H=
13833 if test $gt_cv_c_wchar_t = no; then
13834 HAVE_WCHAR_T=0
13835 STDDEF_H=stddef.h
13836 fi
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13838 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13839 if ${gl_cv_decl_null_works+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 #include <stddef.h>
13845 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13846
13847 int
13848 main ()
13849 {
13850
13851 ;
13852 return 0;
13853 }
13854 _ACEOF
13855 if ac_fn_c_try_compile "$LINENO"; then :
13856 gl_cv_decl_null_works=yes
13857 else
13858 gl_cv_decl_null_works=no
13859 fi
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 fi
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13863 $as_echo "$gl_cv_decl_null_works" >&6; }
13864 if test $gl_cv_decl_null_works = no; then
13865 REPLACE_NULL=1
13866 STDDEF_H=stddef.h
13867 fi
13868
13869 if test -n "$STDDEF_H"; then
13870 GL_GENERATE_STDDEF_H_TRUE=
13871 GL_GENERATE_STDDEF_H_FALSE='#'
13872 else
13873 GL_GENERATE_STDDEF_H_TRUE='#'
13874 GL_GENERATE_STDDEF_H_FALSE=
13875 fi
13876
13877 if test -n "$STDDEF_H"; then
13878
13879
13880
13881
13882
13883
13884
13885
13886 if test $gl_cv_have_include_next = yes; then
13887 gl_cv_next_stddef_h='<'stddef.h'>'
13888 else
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13890 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13891 if ${gl_cv_next_stddef_h+:} false; then :
13892 $as_echo_n "(cached) " >&6
13893 else
13894
13895
13896
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 #include <stddef.h>
13900 _ACEOF
13901 case "$host_os" in
13902 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13903 *) gl_absname_cpp="$ac_cpp" ;;
13904 esac
13905
13906 case "$host_os" in
13907 mingw*)
13908 gl_dirsep_regex='[/\\]'
13909 ;;
13910 *)
13911 gl_dirsep_regex='\/'
13912 ;;
13913 esac
13914 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13915 gl_header_literal_regex=`echo 'stddef.h' \
13916 | sed -e "$gl_make_literal_regex_sed"`
13917 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13918 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13919 s|^/[^/]|//&|
13920 p
13921 q
13922 }'
13923
13924 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13925 sed -n "$gl_absolute_header_sed"`
13926
13927 gl_header=$gl_cv_absolute_stddef_h
13928 gl_cv_next_stddef_h='"'$gl_header'"'
13929
13930
13931 fi
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13933 $as_echo "$gl_cv_next_stddef_h" >&6; }
13934 fi
13935 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13936
13937 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13939 gl_next_as_first_directive='<'stddef.h'>'
13940 else
13941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13942 gl_next_as_first_directive=$gl_cv_next_stddef_h
13943 fi
13944 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13945
13946
13947
13948
13949 fi
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962 if test $gl_cv_have_include_next = yes; then
13963 gl_cv_next_stdio_h='<'stdio.h'>'
13964 else
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
13966 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
13967 if ${gl_cv_next_stdio_h+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970
13971
13972
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 #include <stdio.h>
13976 _ACEOF
13977 case "$host_os" in
13978 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13979 *) gl_absname_cpp="$ac_cpp" ;;
13980 esac
13981
13982 case "$host_os" in
13983 mingw*)
13984 gl_dirsep_regex='[/\\]'
13985 ;;
13986 *)
13987 gl_dirsep_regex='\/'
13988 ;;
13989 esac
13990 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13991 gl_header_literal_regex=`echo 'stdio.h' \
13992 | sed -e "$gl_make_literal_regex_sed"`
13993 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13994 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13995 s|^/[^/]|//&|
13996 p
13997 q
13998 }'
13999
14000 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14001 sed -n "$gl_absolute_header_sed"`
14002
14003 gl_header=$gl_cv_absolute_stdio_h
14004 gl_cv_next_stdio_h='"'$gl_header'"'
14005
14006
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
14009 $as_echo "$gl_cv_next_stdio_h" >&6; }
14010 fi
14011 NEXT_STDIO_H=$gl_cv_next_stdio_h
14012
14013 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14015 gl_next_as_first_directive='<'stdio.h'>'
14016 else
14017 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14018 gl_next_as_first_directive=$gl_cv_next_stdio_h
14019 fi
14020 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
14021
14022
14023
14024
14025
14026 GNULIB_FSCANF=1
14027
14028
14029 cat >>confdefs.h <<_ACEOF
14030 #define GNULIB_FSCANF 1
14031 _ACEOF
14032
14033
14034 GNULIB_SCANF=1
14035
14036
14037 cat >>confdefs.h <<_ACEOF
14038 #define GNULIB_SCANF 1
14039 _ACEOF
14040
14041
14042 GNULIB_FGETC=1
14043 GNULIB_GETC=1
14044 GNULIB_GETCHAR=1
14045 GNULIB_FGETS=1
14046 GNULIB_FREAD=1
14047
14048
14049 GNULIB_FPRINTF=1
14050 GNULIB_PRINTF=1
14051 GNULIB_VFPRINTF=1
14052 GNULIB_VPRINTF=1
14053 GNULIB_FPUTC=1
14054 GNULIB_PUTC=1
14055 GNULIB_PUTCHAR=1
14056 GNULIB_FPUTS=1
14057 GNULIB_PUTS=1
14058 GNULIB_FWRITE=1
14059
14060
14061
14062
14063 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
14064 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14066 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14067 if eval \${$as_gl_Symbol+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14072 #include <stdio.h>
14073
14074 int
14075 main ()
14076 {
14077 #undef $gl_func
14078 (void) $gl_func;
14079 ;
14080 return 0;
14081 }
14082 _ACEOF
14083 if ac_fn_c_try_compile "$LINENO"; then :
14084 eval "$as_gl_Symbol=yes"
14085 else
14086 eval "$as_gl_Symbol=no"
14087 fi
14088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 fi
14090 eval ac_res=\$$as_gl_Symbol
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14092 $as_echo "$ac_res" >&6; }
14093 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
14094 cat >>confdefs.h <<_ACEOF
14095 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14096 _ACEOF
14097
14098 eval ac_cv_have_decl_$gl_func=yes
14099 fi
14100 done
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113 if test $gl_cv_have_include_next = yes; then
14114 gl_cv_next_stdlib_h='<'stdlib.h'>'
14115 else
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
14117 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
14118 if ${gl_cv_next_stdlib_h+:} false; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121
14122
14123
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14126 #include <stdlib.h>
14127 _ACEOF
14128 case "$host_os" in
14129 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14130 *) gl_absname_cpp="$ac_cpp" ;;
14131 esac
14132
14133 case "$host_os" in
14134 mingw*)
14135 gl_dirsep_regex='[/\\]'
14136 ;;
14137 *)
14138 gl_dirsep_regex='\/'
14139 ;;
14140 esac
14141 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14142 gl_header_literal_regex=`echo 'stdlib.h' \
14143 | sed -e "$gl_make_literal_regex_sed"`
14144 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14145 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14146 s|^/[^/]|//&|
14147 p
14148 q
14149 }'
14150
14151 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14152 sed -n "$gl_absolute_header_sed"`
14153
14154 gl_header=$gl_cv_absolute_stdlib_h
14155 gl_cv_next_stdlib_h='"'$gl_header'"'
14156
14157
14158 fi
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
14160 $as_echo "$gl_cv_next_stdlib_h" >&6; }
14161 fi
14162 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
14163
14164 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14165 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14166 gl_next_as_first_directive='<'stdlib.h'>'
14167 else
14168 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14169 gl_next_as_first_directive=$gl_cv_next_stdlib_h
14170 fi
14171 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
14172
14173
14174
14175
14176
14177
14178 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
14179 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14181 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14182 if eval \${$as_gl_Symbol+:} false; then :
14183 $as_echo_n "(cached) " >&6
14184 else
14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14187 #include <stdlib.h>
14188 #if HAVE_SYS_LOADAVG_H
14189 # include <sys/loadavg.h>
14190 #endif
14191 #if HAVE_RANDOM_H
14192 # include <random.h>
14193 #endif
14194
14195 int
14196 main ()
14197 {
14198 #undef $gl_func
14199 (void) $gl_func;
14200 ;
14201 return 0;
14202 }
14203 _ACEOF
14204 if ac_fn_c_try_compile "$LINENO"; then :
14205 eval "$as_gl_Symbol=yes"
14206 else
14207 eval "$as_gl_Symbol=no"
14208 fi
14209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 fi
14211 eval ac_res=\$$as_gl_Symbol
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14213 $as_echo "$ac_res" >&6; }
14214 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
14215 cat >>confdefs.h <<_ACEOF
14216 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14217 _ACEOF
14218
14219 eval ac_cv_have_decl_$gl_func=yes
14220 fi
14221 done
14222
14223
14224
14225
14226
14227 for ac_func in strcasecmp
14228 do :
14229 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
14230 if test "x$ac_cv_func_strcasecmp" = xyes; then :
14231 cat >>confdefs.h <<_ACEOF
14232 #define HAVE_STRCASECMP 1
14233 _ACEOF
14234
14235 fi
14236 done
14237
14238 if test $ac_cv_func_strcasecmp = no; then
14239 HAVE_STRCASECMP=0
14240 fi
14241
14242
14243
14244 for ac_func in strncasecmp
14245 do :
14246 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
14247 if test "x$ac_cv_func_strncasecmp" = xyes; then :
14248 cat >>confdefs.h <<_ACEOF
14249 #define HAVE_STRNCASECMP 1
14250 _ACEOF
14251
14252 fi
14253 done
14254
14255 if test $ac_cv_func_strncasecmp = yes; then
14256 HAVE_STRNCASECMP=1
14257 else
14258 HAVE_STRNCASECMP=0
14259 fi
14260 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
14261 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
14262 ac_have_decl=1
14263 else
14264 ac_have_decl=0
14265 fi
14266
14267 cat >>confdefs.h <<_ACEOF
14268 #define HAVE_DECL_STRNCASECMP $ac_have_decl
14269 _ACEOF
14270
14271 if test $ac_cv_have_decl_strncasecmp = no; then
14272 HAVE_DECL_STRNCASECMP=0
14273 fi
14274
14275
14276 if test $HAVE_STRCASECMP = 0; then
14277
14278
14279
14280
14281
14282
14283
14284
14285 gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
14286
14287
14288 :
14289
14290 fi
14291 if test $HAVE_STRNCASECMP = 0; then
14292
14293
14294
14295
14296
14297
14298
14299
14300 gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
14301
14302
14303 :
14304
14305 fi
14306
14307
14308
14309
14310
14311 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
14313 $as_echo_n "checking for working strerror function... " >&6; }
14314 if ${gl_cv_func_working_strerror+:} false; then :
14315 $as_echo_n "(cached) " >&6
14316 else
14317 if test "$cross_compiling" = yes; then :
14318 case "$host_os" in
14319 # Guess yes on glibc systems.
14320 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
14321 # If we don't know, assume the worst.
14322 *) gl_cv_func_working_strerror="guessing no" ;;
14323 esac
14324
14325 else
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14328 #include <string.h>
14329
14330 int
14331 main ()
14332 {
14333 if (!*strerror (-2)) return 1;
14334 ;
14335 return 0;
14336 }
14337 _ACEOF
14338 if ac_fn_c_try_run "$LINENO"; then :
14339 gl_cv_func_working_strerror=yes
14340 else
14341 gl_cv_func_working_strerror=no
14342 fi
14343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14344 conftest.$ac_objext conftest.beam conftest.$ac_ext
14345 fi
14346
14347
14348 fi
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
14350 $as_echo "$gl_cv_func_working_strerror" >&6; }
14351 case "$gl_cv_func_working_strerror" in
14352 *yes) ;;
14353 *)
14354 REPLACE_STRERROR=1
14355 ;;
14356 esac
14357
14358 else
14359 REPLACE_STRERROR=1
14360 fi
14361
14362 if test $REPLACE_STRERROR = 1; then
14363
14364
14365
14366
14367
14368
14369
14370
14371 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
14372
14373 fi
14374
14375
14376 cat >>confdefs.h <<_ACEOF
14377 #define GNULIB_STRERROR 1
14378 _ACEOF
14379
14380
14381
14382
14383
14384
14385
14386 GNULIB_STRERROR=1
14387
14388
14389
14390
14391
14392 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
14393
14394
14395
14396
14397
14398 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
14399
14400
14401
14402
14403
14404
14405
14406
14407 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
14408
14409
14410
14411
14412
14413 if test $ac_cv_header_sys_socket_h != yes; then
14414 for ac_header in winsock2.h
14415 do :
14416 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14417 if test "x$ac_cv_header_winsock2_h" = xyes; then :
14418 cat >>confdefs.h <<_ACEOF
14419 #define HAVE_WINSOCK2_H 1
14420 _ACEOF
14421
14422 fi
14423
14424 done
14425
14426 fi
14427 if test "$ac_cv_header_winsock2_h" = yes; then
14428 HAVE_WINSOCK2_H=1
14429 UNISTD_H_HAVE_WINSOCK2_H=1
14430 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
14431 else
14432 HAVE_WINSOCK2_H=0
14433 fi
14434
14435
14436 fi
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457 if test $gl_cv_have_include_next = yes; then
14458 gl_cv_next_unistd_h='<'unistd.h'>'
14459 else
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14461 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14462 if ${gl_cv_next_unistd_h+:} false; then :
14463 $as_echo_n "(cached) " >&6
14464 else
14465
14466 if test $ac_cv_header_unistd_h = yes; then
14467
14468
14469
14470
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473 #include <unistd.h>
14474 _ACEOF
14475 case "$host_os" in
14476 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14477 *) gl_absname_cpp="$ac_cpp" ;;
14478 esac
14479
14480 case "$host_os" in
14481 mingw*)
14482 gl_dirsep_regex='[/\\]'
14483 ;;
14484 *)
14485 gl_dirsep_regex='\/'
14486 ;;
14487 esac
14488 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14489 gl_header_literal_regex=`echo 'unistd.h' \
14490 | sed -e "$gl_make_literal_regex_sed"`
14491 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14492 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14493 s|^/[^/]|//&|
14494 p
14495 q
14496 }'
14497
14498 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14499 sed -n "$gl_absolute_header_sed"`
14500
14501 gl_header=$gl_cv_absolute_unistd_h
14502 gl_cv_next_unistd_h='"'$gl_header'"'
14503 else
14504 gl_cv_next_unistd_h='<'unistd.h'>'
14505 fi
14506
14507
14508 fi
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14510 $as_echo "$gl_cv_next_unistd_h" >&6; }
14511 fi
14512 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14513
14514 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14515 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14516 gl_next_as_first_directive='<'unistd.h'>'
14517 else
14518 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14519 gl_next_as_first_directive=$gl_cv_next_unistd_h
14520 fi
14521 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14522
14523
14524
14525
14526 if test $ac_cv_header_unistd_h = yes; then
14527 HAVE_UNISTD_H=1
14528 else
14529 HAVE_UNISTD_H=0
14530 fi
14531
14532
14533
14534
14535
14536
14537
14538 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
14539 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14541 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14542 if eval \${$as_gl_Symbol+:} false; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14547
14548 #if HAVE_UNISTD_H
14549 # include <unistd.h>
14550 #endif
14551 /* Some systems declare various items in the wrong headers. */
14552 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14553 # include <fcntl.h>
14554 # include <stdio.h>
14555 # include <stdlib.h>
14556 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14557 # include <io.h>
14558 # endif
14559 #endif
14560
14561 int
14562 main ()
14563 {
14564 #undef $gl_func
14565 (void) $gl_func;
14566 ;
14567 return 0;
14568 }
14569 _ACEOF
14570 if ac_fn_c_try_compile "$LINENO"; then :
14571 eval "$as_gl_Symbol=yes"
14572 else
14573 eval "$as_gl_Symbol=no"
14574 fi
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576 fi
14577 eval ac_res=\$$as_gl_Symbol
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14579 $as_echo "$ac_res" >&6; }
14580 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
14581 cat >>confdefs.h <<_ACEOF
14582 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14583 _ACEOF
14584
14585 eval ac_cv_have_decl_$gl_func=yes
14586 fi
14587 done
14588
14589
14590
14591
14592 if test $ac_cv_func_vasnprintf = no; then
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
14634
14635 if test $ac_cv_func_vasnprintf = yes; then
14636
14637 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
14638
14639 fi
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14652 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
14653
14654 else
14655
14656 $as_echo "#define ptrdiff_t long" >>confdefs.h
14657
14658
14659 fi
14660
14661
14662
14663
14664
14665
14666
14667 fi
14668
14669
14670 for ac_func in vasprintf
14671 do :
14672 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
14673 if test "x$ac_cv_func_vasprintf" = xyes; then :
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_VASPRINTF 1
14676 _ACEOF
14677
14678 fi
14679 done
14680
14681 if test $ac_cv_func_vasprintf = no; then
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
14702
14703
14704 if test $ac_cv_func_vasprintf = yes; then
14705 REPLACE_VASPRINTF=1
14706 else
14707 HAVE_VASPRINTF=0
14708 fi
14709
14710
14711
14712
14713
14714
14715
14716
14717 fi
14718
14719
14720
14721
14722
14723
14724 GNULIB_VASPRINTF=1
14725
14726
14727
14728
14729
14730 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
14731
14732
14733
14734
14735
14736 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
14737
14738
14739
14740 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754 if test $gl_cv_have_include_next = yes; then
14755 gl_cv_next_wchar_h='<'wchar.h'>'
14756 else
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14758 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14759 if ${gl_cv_next_wchar_h+:} false; then :
14760 $as_echo_n "(cached) " >&6
14761 else
14762
14763 if test $ac_cv_header_wchar_h = yes; then
14764
14765
14766
14767
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770 #include <wchar.h>
14771 _ACEOF
14772 case "$host_os" in
14773 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14774 *) gl_absname_cpp="$ac_cpp" ;;
14775 esac
14776
14777 case "$host_os" in
14778 mingw*)
14779 gl_dirsep_regex='[/\\]'
14780 ;;
14781 *)
14782 gl_dirsep_regex='\/'
14783 ;;
14784 esac
14785 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14786 gl_header_literal_regex=`echo 'wchar.h' \
14787 | sed -e "$gl_make_literal_regex_sed"`
14788 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14789 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14790 s|^/[^/]|//&|
14791 p
14792 q
14793 }'
14794
14795 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14796 sed -n "$gl_absolute_header_sed"`
14797
14798 gl_header=$gl_cv_absolute_wchar_h
14799 gl_cv_next_wchar_h='"'$gl_header'"'
14800 else
14801 gl_cv_next_wchar_h='<'wchar.h'>'
14802 fi
14803
14804
14805 fi
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14807 $as_echo "$gl_cv_next_wchar_h" >&6; }
14808 fi
14809 NEXT_WCHAR_H=$gl_cv_next_wchar_h
14810
14811 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14812 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14813 gl_next_as_first_directive='<'wchar.h'>'
14814 else
14815 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14816 gl_next_as_first_directive=$gl_cv_next_wchar_h
14817 fi
14818 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14819
14820
14821
14822
14823 if test $ac_cv_header_wchar_h = yes; then
14824 HAVE_WCHAR_H=1
14825 else
14826 HAVE_WCHAR_H=0
14827 fi
14828
14829
14830
14831
14832
14833 if test $gt_cv_c_wint_t = yes; then
14834 HAVE_WINT_T=1
14835 else
14836 HAVE_WINT_T=0
14837 fi
14838
14839
14840
14841 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
14842 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14844 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14845 if eval \${$as_gl_Symbol+:} false; then :
14846 $as_echo_n "(cached) " >&6
14847 else
14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14850
14851 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14852 <wchar.h>.
14853 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14854 included before <wchar.h>. */
14855 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14856 # include <stddef.h>
14857 # include <stdio.h>
14858 # include <time.h>
14859 #endif
14860 #include <wchar.h>
14861
14862 int
14863 main ()
14864 {
14865 #undef $gl_func
14866 (void) $gl_func;
14867 ;
14868 return 0;
14869 }
14870 _ACEOF
14871 if ac_fn_c_try_compile "$LINENO"; then :
14872 eval "$as_gl_Symbol=yes"
14873 else
14874 eval "$as_gl_Symbol=no"
14875 fi
14876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14877 fi
14878 eval ac_res=\$$as_gl_Symbol
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14880 $as_echo "$ac_res" >&6; }
14881 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
14882 cat >>confdefs.h <<_ACEOF
14883 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14884 _ACEOF
14885
14886 eval ac_cv_have_decl_$gl_func=yes
14887 fi
14888 done
14889
14890
14891 :
14892
14893
14894 for ac_header in stdint.h
14895 do :
14896 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14897 if test "x$ac_cv_header_stdint_h" = xyes; then :
14898 cat >>confdefs.h <<_ACEOF
14899 #define HAVE_STDINT_H 1
14900 _ACEOF
14901
14902 fi
14903
14904 done
14905
14906
14907 # End of code from modules
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917 gltests_libdeps=
14918 gltests_ltlibdeps=
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928 gl_source_base='tests'
14929 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
14930
14931 gl_module_indicator_condition=$gltests_WITNESS
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941 LIBGNU_LIBDEPS="$gl_libdeps"
14942
14943 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
14944
14945
14946
14947
14948 # Somewhat optional. Defines matching contants in config.h
14949 # (e.g. HAVE_SDL_FRAMERATE_H). Using a temporary CPPFLAGS to include
14950 # Gnulib's src and build directories ($top_srcdir and $top_builddir
14951 # not present here for some reason). Also sdl-config lacks a
14952 # --cppflags switch so we use SDL_CFLAGS.
14953 # http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00157.html
14954 # http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html
14955 # https://bugs.freedesktop.org/show_bug.cgi?id=47996
14956 old_CPPFLAGS="$CPPFLAGS"
14957 CPPFLAGS="$CPPFLAGS $SDL_CFLAGS -I${srcdir}/gnulib/lib -I./gnulib/lib"
14958 for ac_header in SDL.h SDL2_rotozoom.h SDL_framerate.h SDL_image.h
14959 do :
14960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14963 cat >>confdefs.h <<_ACEOF
14964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14965 _ACEOF
14966
14967 else
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find necessary SDL libs headers" >&5
14969 $as_echo "$as_me: WARNING: Could not find necessary SDL libs headers" >&2;}; LACK_HEADERS=1
14970 fi
14971
14972 done
14973
14974 CPPFLAGS="$old_CPPFLAGS"
14975
14976
14977 echo
14978 echo "Errors and warnings recap:"
14979 error=0
14980 warning=0
14981
14982 if test "$LACK_SDL2" = 1; then
14983 echo "* You need to install the SDL libraries:"
14984 echo "$SDL2_PKG_ERRORS"
14985 error=1
14986 fi
14987 if test "$LACK_CXXTESTGEN" = 1; then
14988 echo "* You need to install the 'cxxtest' testing framework:"
14989 echo "Could not find 'cxxtestgen'"
14990 error=1
14991 fi
14992 if test "$USE_NLS" = no; then
14993 echo "* You need to install the gettext library and enable NLS"
14994 error=1
14995 fi
14996
14997 if test "$use_fontconfig" = "yes" -a "$LACK_FONTCONFIG" = 1; then
14998 echo "* You need to install the fontconfig library"
14999 error=1
15000 fi
15001
15002 if test "$error" = 0 -a "$LACK_HEADERS" = 1; then
15003 echo "* Warning: You lack some library headers (.h) - see warnings above."
15004 #error=1
15005 warning=1
15006 fi
15007
15008 if test "$error" = 0 -a "$LACK_HELP2MAN" = 1; then
15009 echo -n "* Warning: The 'help2man' utility cannot be found. You won't be able to rebuild manpages"
15010 echo " (if you modify the source code)"
15011 warning=1
15012 fi
15013
15014 if test "$enable_upx" = "yes" -a -z "$UPX"; then
15015 echo "* UPX is explicitely activated (--enable-upx) but cannot be found"
15016 error=1
15017 fi
15018
15019 if test "$error" = 1; then
15020 echo
15021 echo "There are errors - stopping. Please check the reports above."
15022 echo "If dependencies (such as SDL_gfx) are missing,"
15023 echo "please check BUILD for distro package names."
15024 exit 1
15025 elif test "$warning" = 1; then
15026 echo
15027 echo "There were warnings - let's continue for now,"
15028 echo "but please check make sure nothing is missing."
15029 else
15030 echo "* No errors"
15031 fi
15032 echo
15033
15034
15035 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile gnulib/po/Makefile.in nsis/Makefile po/Makefile.in share/Makefile share/freedink/Makefile src/Makefile src/woeres.rc"
15036
15037
15038 cat >confcache <<\_ACEOF
15039 # This file is a shell script that caches the results of configure
15040 # tests run on this system so they can be shared between configure
15041 # scripts and configure runs, see configure's option --config-cache.
15042 # It is not useful on other systems. If it contains results you don't
15043 # want to keep, you may remove or edit it.
15044 #
15045 # config.status only pays attention to the cache file if you give it
15046 # the --recheck option to rerun configure.
15047 #
15048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15050 # following values.
15051
15052 _ACEOF
15053
15054 # The following way of writing the cache mishandles newlines in values,
15055 # but we know of no workaround that is simple, portable, and efficient.
15056 # So, we kill variables containing newlines.
15057 # Ultrix sh set writes to stderr and can't be redirected directly,
15058 # and sets the high bit in the cache file unless we assign to the vars.
15059 (
15060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15061 eval ac_val=\$$ac_var
15062 case $ac_val in #(
15063 *${as_nl}*)
15064 case $ac_var in #(
15065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15067 esac
15068 case $ac_var in #(
15069 _ | IFS | as_nl) ;; #(
15070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15071 *) { eval $ac_var=; unset $ac_var;} ;;
15072 esac ;;
15073 esac
15074 done
15075
15076 (set) 2>&1 |
15077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15078 *${as_nl}ac_space=\ *)
15079 # `set' does not quote correctly, so add quotes: double-quote
15080 # substitution turns \\\\ into \\, and sed turns \\ into \.
15081 sed -n \
15082 "s/'/'\\\\''/g;
15083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15084 ;; #(
15085 *)
15086 # `set' quotes correctly as required by POSIX, so do not add quotes.
15087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15088 ;;
15089 esac |
15090 sort
15091 ) |
15092 sed '
15093 /^ac_cv_env_/b end
15094 t clear
15095 :clear
15096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15097 t end
15098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15099 :end' >>confcache
15100 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15101 if test -w "$cache_file"; then
15102 if test "x$cache_file" != "x/dev/null"; then
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15104 $as_echo "$as_me: updating cache $cache_file" >&6;}
15105 if test ! -f "$cache_file" || test -h "$cache_file"; then
15106 cat confcache >"$cache_file"
15107 else
15108 case $cache_file in #(
15109 */* | ?:*)
15110 mv -f confcache "$cache_file"$$ &&
15111 mv -f "$cache_file"$$ "$cache_file" ;; #(
15112 *)
15113 mv -f confcache "$cache_file" ;;
15114 esac
15115 fi
15116 fi
15117 else
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15119 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15120 fi
15121 fi
15122 rm -f confcache
15123
15124 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15125 # Let make expand exec_prefix.
15126 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15127
15128 DEFS=-DHAVE_CONFIG_H
15129
15130 ac_libobjs=
15131 ac_ltlibobjs=
15132 U=
15133 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15134 # 1. Remove the extension, and $U if already installed.
15135 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15136 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15137 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15138 # will be set to the directory where LIBOBJS objects are built.
15139 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15140 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15141 done
15142 LIBOBJS=$ac_libobjs
15143
15144 LTLIBOBJS=$ac_ltlibobjs
15145
15146
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15148 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15149 if test -n "$am_sleep_pid"; then
15150 # Hide warnings about reused PIDs.
15151 wait $am_sleep_pid 2>/dev/null
15152 fi
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15154 $as_echo "done" >&6; }
15155 if test -n "$EXEEXT"; then
15156 am__EXEEXT_TRUE=
15157 am__EXEEXT_FALSE='#'
15158 else
15159 am__EXEEXT_TRUE='#'
15160 am__EXEEXT_FALSE=
15161 fi
15162
15163 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15164 as_fn_error $? "conditional \"AMDEP\" was never defined.
15165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15166 fi
15167 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15168 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15170 fi
15171 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15172 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15174 fi
15175 if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then
15176 as_fn_error $? "conditional \"ANDROID\" was never defined.
15177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15178 fi
15179 if test -z "${WOE_TRUE}" && test -z "${WOE_FALSE}"; then
15180 as_fn_error $? "conditional \"WOE\" was never defined.
15181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15182 fi
15183 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
15184 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
15185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15186 fi
15187 if test -z "${HAVE_TESTS_TRUE}" && test -z "${HAVE_TESTS_FALSE}"; then
15188 as_fn_error $? "conditional \"HAVE_TESTS\" was never defined.
15189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15190 fi
15191 if test -z "${HAVE_UPX_TRUE}" && test -z "${HAVE_UPX_FALSE}"; then
15192 as_fn_error $? "conditional \"HAVE_UPX\" was never defined.
15193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15194 fi
15195 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15196 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
15197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15198 fi
15199 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
15200 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
15201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15202 fi
15203 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
15204 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
15205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15206 fi
15207 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
15208 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
15209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15210 fi
15211 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
15212 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
15213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15214 fi
15215 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
15216 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
15217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15218 fi
15219 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
15220 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
15221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15222 fi
15223
15224
15225 gl_libobjs=
15226 gl_ltlibobjs=
15227 if test -n "$gl_LIBOBJS"; then
15228 # Remove the extension.
15229 sed_drop_objext='s/\.o$//;s/\.obj$//'
15230 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15231 gl_libobjs="$gl_libobjs $i.$ac_objext"
15232 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15233 done
15234 fi
15235 gl_LIBOBJS=$gl_libobjs
15236
15237 gl_LTLIBOBJS=$gl_ltlibobjs
15238
15239
15240
15241 gltests_libobjs=
15242 gltests_ltlibobjs=
15243 if test -n "$gltests_LIBOBJS"; then
15244 # Remove the extension.
15245 sed_drop_objext='s/\.o$//;s/\.obj$//'
15246 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15247 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15248 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15249 done
15250 fi
15251 gltests_LIBOBJS=$gltests_libobjs
15252
15253 gltests_LTLIBOBJS=$gltests_ltlibobjs
15254
15255
15256
15257 : "${CONFIG_STATUS=./config.status}"
15258 ac_write_fail=0
15259 ac_clean_files_save=$ac_clean_files
15260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15262 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15263 as_write_fail=0
15264 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15265 #! $SHELL
15266 # Generated by $as_me.
15267 # Run this file to recreate the current configuration.
15268 # Compiler output produced by configure, useful for debugging
15269 # configure, is in config.log if it exists.
15270
15271 debug=false
15272 ac_cs_recheck=false
15273 ac_cs_silent=false
15274
15275 SHELL=\${CONFIG_SHELL-$SHELL}
15276 export SHELL
15277 _ASEOF
15278 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15279 ## -------------------- ##
15280 ## M4sh Initialization. ##
15281 ## -------------------- ##
15282
15283 # Be more Bourne compatible
15284 DUALCASE=1; export DUALCASE # for MKS sh
15285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15286 emulate sh
15287 NULLCMD=:
15288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15289 # is contrary to our usage. Disable this feature.
15290 alias -g '${1+"$@"}'='"$@"'
15291 setopt NO_GLOB_SUBST
15292 else
15293 case `(set -o) 2>/dev/null` in #(
15294 *posix*) :
15295 set -o posix ;; #(
15296 *) :
15297 ;;
15298 esac
15299 fi
15300
15301
15302 as_nl='
15303 '
15304 export as_nl
15305 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15306 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15307 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15309 # Prefer a ksh shell builtin over an external printf program on Solaris,
15310 # but without wasting forks for bash or zsh.
15311 if test -z "$BASH_VERSION$ZSH_VERSION" \
15312 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15313 as_echo='print -r --'
15314 as_echo_n='print -rn --'
15315 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15316 as_echo='printf %s\n'
15317 as_echo_n='printf %s'
15318 else
15319 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15320 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15321 as_echo_n='/usr/ucb/echo -n'
15322 else
15323 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15324 as_echo_n_body='eval
15325 arg=$1;
15326 case $arg in #(
15327 *"$as_nl"*)
15328 expr "X$arg" : "X\\(.*\\)$as_nl";
15329 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15330 esac;
15331 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15332 '
15333 export as_echo_n_body
15334 as_echo_n='sh -c $as_echo_n_body as_echo'
15335 fi
15336 export as_echo_body
15337 as_echo='sh -c $as_echo_body as_echo'
15338 fi
15339
15340 # The user is always right.
15341 if test "${PATH_SEPARATOR+set}" != set; then
15342 PATH_SEPARATOR=:
15343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15344 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15345 PATH_SEPARATOR=';'
15346 }
15347 fi
15348
15349
15350 # IFS
15351 # We need space, tab and new line, in precisely that order. Quoting is
15352 # there to prevent editors from complaining about space-tab.
15353 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15354 # splitting by setting IFS to empty value.)
15355 IFS=" "" $as_nl"
15356
15357 # Find who we are. Look in the path if we contain no directory separator.
15358 as_myself=
15359 case $0 in #((
15360 *[\\/]* ) as_myself=$0 ;;
15361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15362 for as_dir in $PATH
15363 do
15364 IFS=$as_save_IFS
15365 test -z "$as_dir" && as_dir=.
15366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15367 done
15368 IFS=$as_save_IFS
15369
15370 ;;
15371 esac
15372 # We did not find ourselves, most probably we were run as `sh COMMAND'
15373 # in which case we are not to be found in the path.
15374 if test "x$as_myself" = x; then
15375 as_myself=$0
15376 fi
15377 if test ! -f "$as_myself"; then
15378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15379 exit 1
15380 fi
15381
15382 # Unset variables that we do not need and which cause bugs (e.g. in
15383 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15384 # suppresses any "Segmentation fault" message there. '((' could
15385 # trigger a bug in pdksh 5.2.14.
15386 for as_var in BASH_ENV ENV MAIL MAILPATH
15387 do eval test x\${$as_var+set} = xset \
15388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15389 done
15390 PS1='$ '
15391 PS2='> '
15392 PS4='+ '
15393
15394 # NLS nuisances.
15395 LC_ALL=C
15396 export LC_ALL
15397 LANGUAGE=C
15398 export LANGUAGE
15399
15400 # CDPATH.
15401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15402
15403
15404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15405 # ----------------------------------------
15406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15408 # script with STATUS, using 1 if that was 0.
15409 as_fn_error ()
15410 {
15411 as_status=$1; test $as_status -eq 0 && as_status=1
15412 if test "$4"; then
15413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15415 fi
15416 $as_echo "$as_me: error: $2" >&2
15417 as_fn_exit $as_status
15418 } # as_fn_error
15419
15420
15421 # as_fn_set_status STATUS
15422 # -----------------------
15423 # Set $? to STATUS, without forking.
15424 as_fn_set_status ()
15425 {
15426 return $1
15427 } # as_fn_set_status
15428
15429 # as_fn_exit STATUS
15430 # -----------------
15431 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15432 as_fn_exit ()
15433 {
15434 set +e
15435 as_fn_set_status $1
15436 exit $1
15437 } # as_fn_exit
15438
15439 # as_fn_unset VAR
15440 # ---------------
15441 # Portably unset VAR.
15442 as_fn_unset ()
15443 {
15444 { eval $1=; unset $1;}
15445 }
15446 as_unset=as_fn_unset
15447 # as_fn_append VAR VALUE
15448 # ----------------------
15449 # Append the text in VALUE to the end of the definition contained in VAR. Take
15450 # advantage of any shell optimizations that allow amortized linear growth over
15451 # repeated appends, instead of the typical quadratic growth present in naive
15452 # implementations.
15453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15454 eval 'as_fn_append ()
15455 {
15456 eval $1+=\$2
15457 }'
15458 else
15459 as_fn_append ()
15460 {
15461 eval $1=\$$1\$2
15462 }
15463 fi # as_fn_append
15464
15465 # as_fn_arith ARG...
15466 # ------------------
15467 # Perform arithmetic evaluation on the ARGs, and store the result in the
15468 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15469 # must be portable across $(()) and expr.
15470 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15471 eval 'as_fn_arith ()
15472 {
15473 as_val=$(( $* ))
15474 }'
15475 else
15476 as_fn_arith ()
15477 {
15478 as_val=`expr "$@" || test $? -eq 1`
15479 }
15480 fi # as_fn_arith
15481
15482
15483 if expr a : '\(a\)' >/dev/null 2>&1 &&
15484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15485 as_expr=expr
15486 else
15487 as_expr=false
15488 fi
15489
15490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15491 as_basename=basename
15492 else
15493 as_basename=false
15494 fi
15495
15496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15497 as_dirname=dirname
15498 else
15499 as_dirname=false
15500 fi
15501
15502 as_me=`$as_basename -- "$0" ||
15503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15504 X"$0" : 'X\(//\)$' \| \
15505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15506 $as_echo X/"$0" |
15507 sed '/^.*\/\([^/][^/]*\)\/*$/{
15508 s//\1/
15509 q
15510 }
15511 /^X\/\(\/\/\)$/{
15512 s//\1/
15513 q
15514 }
15515 /^X\/\(\/\).*/{
15516 s//\1/
15517 q
15518 }
15519 s/.*/./; q'`
15520
15521 # Avoid depending upon Character Ranges.
15522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15525 as_cr_digits='0123456789'
15526 as_cr_alnum=$as_cr_Letters$as_cr_digits
15527
15528 ECHO_C= ECHO_N= ECHO_T=
15529 case `echo -n x` in #(((((
15530 -n*)
15531 case `echo 'xy\c'` in
15532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15533 xy) ECHO_C='\c';;
15534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15535 ECHO_T=' ';;
15536 esac;;
15537 *)
15538 ECHO_N='-n';;
15539 esac
15540
15541 rm -f conf$$ conf$$.exe conf$$.file
15542 if test -d conf$$.dir; then
15543 rm -f conf$$.dir/conf$$.file
15544 else
15545 rm -f conf$$.dir
15546 mkdir conf$$.dir 2>/dev/null
15547 fi
15548 if (echo >conf$$.file) 2>/dev/null; then
15549 if ln -s conf$$.file conf$$ 2>/dev/null; then
15550 as_ln_s='ln -s'
15551 # ... but there are two gotchas:
15552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15554 # In both cases, we have to default to `cp -pR'.
15555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15556 as_ln_s='cp -pR'
15557 elif ln conf$$.file conf$$ 2>/dev/null; then
15558 as_ln_s=ln
15559 else
15560 as_ln_s='cp -pR'
15561 fi
15562 else
15563 as_ln_s='cp -pR'
15564 fi
15565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15566 rmdir conf$$.dir 2>/dev/null
15567
15568
15569 # as_fn_mkdir_p
15570 # -------------
15571 # Create "$as_dir" as a directory, including parents if necessary.
15572 as_fn_mkdir_p ()
15573 {
15574
15575 case $as_dir in #(
15576 -*) as_dir=./$as_dir;;
15577 esac
15578 test -d "$as_dir" || eval $as_mkdir_p || {
15579 as_dirs=
15580 while :; do
15581 case $as_dir in #(
15582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15583 *) as_qdir=$as_dir;;
15584 esac
15585 as_dirs="'$as_qdir' $as_dirs"
15586 as_dir=`$as_dirname -- "$as_dir" ||
15587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15588 X"$as_dir" : 'X\(//\)[^/]' \| \
15589 X"$as_dir" : 'X\(//\)$' \| \
15590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15591 $as_echo X"$as_dir" |
15592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15593 s//\1/
15594 q
15595 }
15596 /^X\(\/\/\)[^/].*/{
15597 s//\1/
15598 q
15599 }
15600 /^X\(\/\/\)$/{
15601 s//\1/
15602 q
15603 }
15604 /^X\(\/\).*/{
15605 s//\1/
15606 q
15607 }
15608 s/.*/./; q'`
15609 test -d "$as_dir" && break
15610 done
15611 test -z "$as_dirs" || eval "mkdir $as_dirs"
15612 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15613
15614
15615 } # as_fn_mkdir_p
15616 if mkdir -p . 2>/dev/null; then
15617 as_mkdir_p='mkdir -p "$as_dir"'
15618 else
15619 test -d ./-p && rmdir ./-p
15620 as_mkdir_p=false
15621 fi
15622
15623
15624 # as_fn_executable_p FILE
15625 # -----------------------
15626 # Test if FILE is an executable regular file.
15627 as_fn_executable_p ()
15628 {
15629 test -f "$1" && test -x "$1"
15630 } # as_fn_executable_p
15631 as_test_x='test -x'
15632 as_executable_p=as_fn_executable_p
15633
15634 # Sed expression to map a string onto a valid CPP name.
15635 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15636
15637 # Sed expression to map a string onto a valid variable name.
15638 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15639
15640
15641 exec 6>&1
15642 ## ----------------------------------- ##
15643 ## Main body of $CONFIG_STATUS script. ##
15644 ## ----------------------------------- ##
15645 _ASEOF
15646 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15647
15648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15649 # Save the log message, to keep $0 and so on meaningful, and to
15650 # report actual input values of CONFIG_FILES etc. instead of their
15651 # values after options handling.
15652 ac_log="
15653 This file was extended by GNU FreeDink $as_me 109.6, which was
15654 generated by GNU Autoconf 2.69. Invocation command line was
15655
15656 CONFIG_FILES = $CONFIG_FILES
15657 CONFIG_HEADERS = $CONFIG_HEADERS
15658 CONFIG_LINKS = $CONFIG_LINKS
15659 CONFIG_COMMANDS = $CONFIG_COMMANDS
15660 $ $0 $@
15661
15662 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15663 "
15664
15665 _ACEOF
15666
15667 case $ac_config_files in *"
15668 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15669 esac
15670
15671 case $ac_config_headers in *"
15672 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15673 esac
15674
15675
15676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15677 # Files that config.status was made for.
15678 config_files="$ac_config_files"
15679 config_headers="$ac_config_headers"
15680 config_commands="$ac_config_commands"
15681
15682 _ACEOF
15683
15684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685 ac_cs_usage="\
15686 \`$as_me' instantiates files and other configuration actions
15687 from templates according to the current configuration. Unless the files
15688 and actions are specified as TAGs, all are instantiated by default.
15689
15690 Usage: $0 [OPTION]... [TAG]...
15691
15692 -h, --help print this help, then exit
15693 -V, --version print version number and configuration settings, then exit
15694 --config print configuration, then exit
15695 -q, --quiet, --silent
15696 do not print progress messages
15697 -d, --debug don't remove temporary files
15698 --recheck update $as_me by reconfiguring in the same conditions
15699 --file=FILE[:TEMPLATE]
15700 instantiate the configuration file FILE
15701 --header=FILE[:TEMPLATE]
15702 instantiate the configuration header FILE
15703
15704 Configuration files:
15705 $config_files
15706
15707 Configuration headers:
15708 $config_headers
15709
15710 Configuration commands:
15711 $config_commands
15712
15713 Report bugs to <[email protected]>.
15714 GNU FreeDink home page: <http://www.gnu.org/software/freedink/>.
15715 General help using GNU software: <http://www.gnu.org/gethelp/>."
15716
15717 _ACEOF
15718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15719 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15720 ac_cs_version="\\
15721 GNU FreeDink config.status 109.6
15722 configured by $0, generated by GNU Autoconf 2.69,
15723 with options \\"\$ac_cs_config\\"
15724
15725 Copyright (C) 2012 Free Software Foundation, Inc.
15726 This config.status script is free software; the Free Software Foundation
15727 gives unlimited permission to copy, distribute and modify it."
15728
15729 ac_pwd='$ac_pwd'
15730 srcdir='$srcdir'
15731 INSTALL='$INSTALL'
15732 MKDIR_P='$MKDIR_P'
15733 AWK='$AWK'
15734 test -n "\$AWK" || AWK=awk
15735 _ACEOF
15736
15737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15738 # The default lists apply if the user does not specify any file.
15739 ac_need_defaults=:
15740 while test $# != 0
15741 do
15742 case $1 in
15743 --*=?*)
15744 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15745 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15746 ac_shift=:
15747 ;;
15748 --*=)
15749 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15750 ac_optarg=
15751 ac_shift=:
15752 ;;
15753 *)
15754 ac_option=$1
15755 ac_optarg=$2
15756 ac_shift=shift
15757 ;;
15758 esac
15759
15760 case $ac_option in
15761 # Handling of the options.
15762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15763 ac_cs_recheck=: ;;
15764 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15765 $as_echo "$ac_cs_version"; exit ;;
15766 --config | --confi | --conf | --con | --co | --c )
15767 $as_echo "$ac_cs_config"; exit ;;
15768 --debug | --debu | --deb | --de | --d | -d )
15769 debug=: ;;
15770 --file | --fil | --fi | --f )
15771 $ac_shift
15772 case $ac_optarg in
15773 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15774 '') as_fn_error $? "missing file argument" ;;
15775 esac
15776 as_fn_append CONFIG_FILES " '$ac_optarg'"
15777 ac_need_defaults=false;;
15778 --header | --heade | --head | --hea )
15779 $ac_shift
15780 case $ac_optarg in
15781 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15782 esac
15783 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15784 ac_need_defaults=false;;
15785 --he | --h)
15786 # Conflict between --help and --header
15787 as_fn_error $? "ambiguous option: \`$1'
15788 Try \`$0 --help' for more information.";;
15789 --help | --hel | -h )
15790 $as_echo "$ac_cs_usage"; exit ;;
15791 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15792 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15793 ac_cs_silent=: ;;
15794
15795 # This is an error.
15796 -*) as_fn_error $? "unrecognized option: \`$1'
15797 Try \`$0 --help' for more information." ;;
15798
15799 *) as_fn_append ac_config_targets " $1"
15800 ac_need_defaults=false ;;
15801
15802 esac
15803 shift
15804 done
15805
15806 ac_configure_extra_args=
15807
15808 if $ac_cs_silent; then
15809 exec 6>/dev/null
15810 ac_configure_extra_args="$ac_configure_extra_args --silent"
15811 fi
15812
15813 _ACEOF
15814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15815 if \$ac_cs_recheck; then
15816 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15817 shift
15818 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15819 CONFIG_SHELL='$SHELL'
15820 export CONFIG_SHELL
15821 exec "\$@"
15822 fi
15823
15824 _ACEOF
15825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15826 exec 5>>config.log
15827 {
15828 echo
15829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15830 ## Running $as_me. ##
15831 _ASBOX
15832 $as_echo "$ac_log"
15833 } >&5
15834
15835 _ACEOF
15836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15837 #
15838 # INIT-COMMANDS
15839 #
15840 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15841 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15842 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15843 # from automake < 1.5.
15844 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15845 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15846 LINGUAS="${LINGUAS-%UNSET%}"
15847
15848
15849 _ACEOF
15850
15851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15852
15853 # Handling of arguments.
15854 for ac_config_target in $ac_config_targets
15855 do
15856 case $ac_config_target in
15857 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15858 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15859 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15860 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15861 "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
15862 "gnulib/po/Makefile.in") CONFIG_FILES="$CONFIG_FILES gnulib/po/Makefile.in" ;;
15863 "nsis/Makefile") CONFIG_FILES="$CONFIG_FILES nsis/Makefile" ;;
15864 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15865 "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
15866 "share/freedink/Makefile") CONFIG_FILES="$CONFIG_FILES share/freedink/Makefile" ;;
15867 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15868 "src/woeres.rc") CONFIG_FILES="$CONFIG_FILES src/woeres.rc" ;;
15869
15870 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15871 esac
15872 done
15873
15874
15875 # If the user did not use the arguments to specify the items to instantiate,
15876 # then the envvar interface is used. Set only those that are not.
15877 # We use the long form for the default assignment because of an extremely
15878 # bizarre bug on SunOS 4.1.3.
15879 if $ac_need_defaults; then
15880 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15881 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15882 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15883 fi
15884
15885 # Have a temporary directory for convenience. Make it in the build tree
15886 # simply because there is no reason against having it here, and in addition,
15887 # creating and moving files from /tmp can sometimes cause problems.
15888 # Hook for its removal unless debugging.
15889 # Note that there is a small window in which the directory will not be cleaned:
15890 # after its creation but before its name has been assigned to `$tmp'.
15891 $debug ||
15892 {
15893 tmp= ac_tmp=
15894 trap 'exit_status=$?
15895 : "${ac_tmp:=$tmp}"
15896 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15897 ' 0
15898 trap 'as_fn_exit 1' 1 2 13 15
15899 }
15900 # Create a (secure) tmp directory for tmp files.
15901
15902 {
15903 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15904 test -d "$tmp"
15905 } ||
15906 {
15907 tmp=./conf$$-$RANDOM
15908 (umask 077 && mkdir "$tmp")
15909 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15910 ac_tmp=$tmp
15911
15912 # Set up the scripts for CONFIG_FILES section.
15913 # No need to generate them if there are no CONFIG_FILES.
15914 # This happens for instance with `./config.status config.h'.
15915 if test -n "$CONFIG_FILES"; then
15916
15917
15918 ac_cr=`echo X | tr X '\015'`
15919 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15920 # But we know of no other shell where ac_cr would be empty at this
15921 # point, so we can use a bashism as a fallback.
15922 if test "x$ac_cr" = x; then
15923 eval ac_cr=\$\'\\r\'
15924 fi
15925 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15926 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15927 ac_cs_awk_cr='\\r'
15928 else
15929 ac_cs_awk_cr=$ac_cr
15930 fi
15931
15932 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15933 _ACEOF
15934
15935
15936 {
15937 echo "cat >conf$$subs.awk <<_ACEOF" &&
15938 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15939 echo "_ACEOF"
15940 } >conf$$subs.sh ||
15941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15942 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15943 ac_delim='%!_!# '
15944 for ac_last_try in false false false false false :; do
15945 . ./conf$$subs.sh ||
15946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15947
15948 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15949 if test $ac_delim_n = $ac_delim_num; then
15950 break
15951 elif $ac_last_try; then
15952 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15953 else
15954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15955 fi
15956 done
15957 rm -f conf$$subs.sh
15958
15959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15960 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15961 _ACEOF
15962 sed -n '
15963 h
15964 s/^/S["/; s/!.*/"]=/
15965 p
15966 g
15967 s/^[^!]*!//
15968 :repl
15969 t repl
15970 s/'"$ac_delim"'$//
15971 t delim
15972 :nl
15973 h
15974 s/\(.\{148\}\)..*/\1/
15975 t more1
15976 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15977 p
15978 n
15979 b repl
15980 :more1
15981 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15982 p
15983 g
15984 s/.\{148\}//
15985 t nl
15986 :delim
15987 h
15988 s/\(.\{148\}\)..*/\1/
15989 t more2
15990 s/["\\]/\\&/g; s/^/"/; s/$/"/
15991 p
15992 b
15993 :more2
15994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15995 p
15996 g
15997 s/.\{148\}//
15998 t delim
15999 ' <conf$$subs.awk | sed '
16000 /^[^""]/{
16001 N
16002 s/\n//
16003 }
16004 ' >>$CONFIG_STATUS || ac_write_fail=1
16005 rm -f conf$$subs.awk
16006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16007 _ACAWK
16008 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16009 for (key in S) S_is_set[key] = 1
16010 FS = ""
16011
16012 }
16013 {
16014 line = $ 0
16015 nfields = split(line, field, "@")
16016 substed = 0
16017 len = length(field[1])
16018 for (i = 2; i < nfields; i++) {
16019 key = field[i]
16020 keylen = length(key)
16021 if (S_is_set[key]) {
16022 value = S[key]
16023 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16024 len += length(value) + length(field[++i])
16025 substed = 1
16026 } else
16027 len += 1 + keylen
16028 }
16029
16030 print line
16031 }
16032
16033 _ACAWK
16034 _ACEOF
16035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16036 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16037 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16038 else
16039 cat
16040 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16041 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16042 _ACEOF
16043
16044 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16045 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16046 # trailing colons and then remove the whole line if VPATH becomes empty
16047 # (actually we leave an empty line to preserve line numbers).
16048 if test "x$srcdir" = x.; then
16049 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16050 h
16051 s///
16052 s/^/:/
16053 s/[ ]*$/:/
16054 s/:\$(srcdir):/:/g
16055 s/:\${srcdir}:/:/g
16056 s/:@srcdir@:/:/g
16057 s/^:*//
16058 s/:*$//
16059 x
16060 s/\(=[ ]*\).*/\1/
16061 G
16062 s/\n//
16063 s/^[^=]*=[ ]*$//
16064 }'
16065 fi
16066
16067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16068 fi # test -n "$CONFIG_FILES"
16069
16070 # Set up the scripts for CONFIG_HEADERS section.
16071 # No need to generate them if there are no CONFIG_HEADERS.
16072 # This happens for instance with `./config.status Makefile'.
16073 if test -n "$CONFIG_HEADERS"; then
16074 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16075 BEGIN {
16076 _ACEOF
16077
16078 # Transform confdefs.h into an awk script `defines.awk', embedded as
16079 # here-document in config.status, that substitutes the proper values into
16080 # config.h.in to produce config.h.
16081
16082 # Create a delimiter string that does not exist in confdefs.h, to ease
16083 # handling of long lines.
16084 ac_delim='%!_!# '
16085 for ac_last_try in false false :; do
16086 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16087 if test -z "$ac_tt"; then
16088 break
16089 elif $ac_last_try; then
16090 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16091 else
16092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16093 fi
16094 done
16095
16096 # For the awk script, D is an array of macro values keyed by name,
16097 # likewise P contains macro parameters if any. Preserve backslash
16098 # newline sequences.
16099
16100 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16101 sed -n '
16102 s/.\{148\}/&'"$ac_delim"'/g
16103 t rset
16104 :rset
16105 s/^[ ]*#[ ]*define[ ][ ]*/ /
16106 t def
16107 d
16108 :def
16109 s/\\$//
16110 t bsnl
16111 s/["\\]/\\&/g
16112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16113 D["\1"]=" \3"/p
16114 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16115 d
16116 :bsnl
16117 s/["\\]/\\&/g
16118 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16119 D["\1"]=" \3\\\\\\n"\\/p
16120 t cont
16121 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16122 t cont
16123 d
16124 :cont
16125 n
16126 s/.\{148\}/&'"$ac_delim"'/g
16127 t clear
16128 :clear
16129 s/\\$//
16130 t bsnlc
16131 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16132 d
16133 :bsnlc
16134 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16135 b cont
16136 ' <confdefs.h | sed '
16137 s/'"$ac_delim"'/"\\\
16138 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16139
16140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16141 for (key in D) D_is_set[key] = 1
16142 FS = ""
16143 }
16144 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16145 line = \$ 0
16146 split(line, arg, " ")
16147 if (arg[1] == "#") {
16148 defundef = arg[2]
16149 mac1 = arg[3]
16150 } else {
16151 defundef = substr(arg[1], 2)
16152 mac1 = arg[2]
16153 }
16154 split(mac1, mac2, "(") #)
16155 macro = mac2[1]
16156 prefix = substr(line, 1, index(line, defundef) - 1)
16157 if (D_is_set[macro]) {
16158 # Preserve the white space surrounding the "#".
16159 print prefix "define", macro P[macro] D[macro]
16160 next
16161 } else {
16162 # Replace #undef with comments. This is necessary, for example,
16163 # in the case of _POSIX_SOURCE, which is predefined and required
16164 # on some systems where configure will not decide to define it.
16165 if (defundef == "undef") {
16166 print "/*", prefix defundef, macro, "*/"
16167 next
16168 }
16169 }
16170 }
16171 { print }
16172 _ACAWK
16173 _ACEOF
16174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16175 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16176 fi # test -n "$CONFIG_HEADERS"
16177
16178
16179 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16180 shift
16181 for ac_tag
16182 do
16183 case $ac_tag in
16184 :[FHLC]) ac_mode=$ac_tag; continue;;
16185 esac
16186 case $ac_mode$ac_tag in
16187 :[FHL]*:*);;
16188 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16189 :[FH]-) ac_tag=-:-;;
16190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16191 esac
16192 ac_save_IFS=$IFS
16193 IFS=:
16194 set x $ac_tag
16195 IFS=$ac_save_IFS
16196 shift
16197 ac_file=$1
16198 shift
16199
16200 case $ac_mode in
16201 :L) ac_source=$1;;
16202 :[FH])
16203 ac_file_inputs=
16204 for ac_f
16205 do
16206 case $ac_f in
16207 -) ac_f="$ac_tmp/stdin";;
16208 *) # Look for the file first in the build tree, then in the source tree
16209 # (if the path is not absolute). The absolute path cannot be DOS-style,
16210 # because $ac_f cannot contain `:'.
16211 test -f "$ac_f" ||
16212 case $ac_f in
16213 [\\/$]*) false;;
16214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16215 esac ||
16216 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16217 esac
16218 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16219 as_fn_append ac_file_inputs " '$ac_f'"
16220 done
16221
16222 # Let's still pretend it is `configure' which instantiates (i.e., don't
16223 # use $as_me), people would be surprised to read:
16224 # /* config.h. Generated by config.status. */
16225 configure_input='Generated from '`
16226 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16227 `' by configure.'
16228 if test x"$ac_file" != x-; then
16229 configure_input="$ac_file. $configure_input"
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16231 $as_echo "$as_me: creating $ac_file" >&6;}
16232 fi
16233 # Neutralize special characters interpreted by sed in replacement strings.
16234 case $configure_input in #(
16235 *\&* | *\|* | *\\* )
16236 ac_sed_conf_input=`$as_echo "$configure_input" |
16237 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16238 *) ac_sed_conf_input=$configure_input;;
16239 esac
16240
16241 case $ac_tag in
16242 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16244 esac
16245 ;;
16246 esac
16247
16248 ac_dir=`$as_dirname -- "$ac_file" ||
16249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16250 X"$ac_file" : 'X\(//\)[^/]' \| \
16251 X"$ac_file" : 'X\(//\)$' \| \
16252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16253 $as_echo X"$ac_file" |
16254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16255 s//\1/
16256 q
16257 }
16258 /^X\(\/\/\)[^/].*/{
16259 s//\1/
16260 q
16261 }
16262 /^X\(\/\/\)$/{
16263 s//\1/
16264 q
16265 }
16266 /^X\(\/\).*/{
16267 s//\1/
16268 q
16269 }
16270 s/.*/./; q'`
16271 as_dir="$ac_dir"; as_fn_mkdir_p
16272 ac_builddir=.
16273
16274 case "$ac_dir" in
16275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16276 *)
16277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16278 # A ".." for each directory in $ac_dir_suffix.
16279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16280 case $ac_top_builddir_sub in
16281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16283 esac ;;
16284 esac
16285 ac_abs_top_builddir=$ac_pwd
16286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16287 # for backward compatibility:
16288 ac_top_builddir=$ac_top_build_prefix
16289
16290 case $srcdir in
16291 .) # We are building in place.
16292 ac_srcdir=.
16293 ac_top_srcdir=$ac_top_builddir_sub
16294 ac_abs_top_srcdir=$ac_pwd ;;
16295 [\\/]* | ?:[\\/]* ) # Absolute name.
16296 ac_srcdir=$srcdir$ac_dir_suffix;
16297 ac_top_srcdir=$srcdir
16298 ac_abs_top_srcdir=$srcdir ;;
16299 *) # Relative name.
16300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16301 ac_top_srcdir=$ac_top_build_prefix$srcdir
16302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16303 esac
16304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16305
16306
16307 case $ac_mode in
16308 :F)
16309 #
16310 # CONFIG_FILE
16311 #
16312
16313 case $INSTALL in
16314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16316 esac
16317 ac_MKDIR_P=$MKDIR_P
16318 case $MKDIR_P in
16319 [\\/$]* | ?:[\\/]* ) ;;
16320 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16321 esac
16322 _ACEOF
16323
16324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16325 # If the template does not know about datarootdir, expand it.
16326 # FIXME: This hack should be removed a few years after 2.60.
16327 ac_datarootdir_hack=; ac_datarootdir_seen=
16328 ac_sed_dataroot='
16329 /datarootdir/ {
16330 p
16331 q
16332 }
16333 /@datadir@/p
16334 /@docdir@/p
16335 /@infodir@/p
16336 /@localedir@/p
16337 /@mandir@/p'
16338 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16339 *datarootdir*) ac_datarootdir_seen=yes;;
16340 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16342 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16343 _ACEOF
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345 ac_datarootdir_hack='
16346 s&@datadir@&$datadir&g
16347 s&@docdir@&$docdir&g
16348 s&@infodir@&$infodir&g
16349 s&@localedir@&$localedir&g
16350 s&@mandir@&$mandir&g
16351 s&\\\${datarootdir}&$datarootdir&g' ;;
16352 esac
16353 _ACEOF
16354
16355 # Neutralize VPATH when `$srcdir' = `.'.
16356 # Shell code in configure.ac might set extrasub.
16357 # FIXME: do we really want to maintain this feature?
16358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16359 ac_sed_extra="$ac_vpsub
16360 $extrasub
16361 _ACEOF
16362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363 :t
16364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16365 s|@configure_input@|$ac_sed_conf_input|;t t
16366 s&@top_builddir@&$ac_top_builddir_sub&;t t
16367 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16368 s&@srcdir@&$ac_srcdir&;t t
16369 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16370 s&@top_srcdir@&$ac_top_srcdir&;t t
16371 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16372 s&@builddir@&$ac_builddir&;t t
16373 s&@abs_builddir@&$ac_abs_builddir&;t t
16374 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16375 s&@INSTALL@&$ac_INSTALL&;t t
16376 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16377 $ac_datarootdir_hack
16378 "
16379 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16380 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16381
16382 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16383 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16385 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16387 which seems to be undefined. Please make sure it is defined" >&5
16388 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16389 which seems to be undefined. Please make sure it is defined" >&2;}
16390
16391 rm -f "$ac_tmp/stdin"
16392 case $ac_file in
16393 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16394 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16395 esac \
16396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16397 ;;
16398 :H)
16399 #
16400 # CONFIG_HEADER
16401 #
16402 if test x"$ac_file" != x-; then
16403 {
16404 $as_echo "/* $configure_input */" \
16405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16406 } >"$ac_tmp/config.h" \
16407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16408 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16410 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16411 else
16412 rm -f "$ac_file"
16413 mv "$ac_tmp/config.h" "$ac_file" \
16414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16415 fi
16416 else
16417 $as_echo "/* $configure_input */" \
16418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16419 || as_fn_error $? "could not create -" "$LINENO" 5
16420 fi
16421 # Compute "$ac_file"'s index in $config_headers.
16422 _am_arg="$ac_file"
16423 _am_stamp_count=1
16424 for _am_header in $config_headers :; do
16425 case $_am_header in
16426 $_am_arg | $_am_arg:* )
16427 break ;;
16428 * )
16429 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16430 esac
16431 done
16432 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16433 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16434 X"$_am_arg" : 'X\(//\)[^/]' \| \
16435 X"$_am_arg" : 'X\(//\)$' \| \
16436 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16437 $as_echo X"$_am_arg" |
16438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16439 s//\1/
16440 q
16441 }
16442 /^X\(\/\/\)[^/].*/{
16443 s//\1/
16444 q
16445 }
16446 /^X\(\/\/\)$/{
16447 s//\1/
16448 q
16449 }
16450 /^X\(\/\).*/{
16451 s//\1/
16452 q
16453 }
16454 s/.*/./; q'`/stamp-h$_am_stamp_count
16455 ;;
16456
16457 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16458 $as_echo "$as_me: executing $ac_file commands" >&6;}
16459 ;;
16460 esac
16461
16462
16463 case $ac_file$ac_mode in
16464 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16465 # Older Autoconf quotes --file arguments for eval, but not when files
16466 # are listed without --file. Let's play safe and only enable the eval
16467 # if we detect the quoting.
16468 # TODO: see whether this extra hack can be removed once we start
16469 # requiring Autoconf 2.70 or later.
16470 case $CONFIG_FILES in #(
16471 *\'*) :
16472 eval set x "$CONFIG_FILES" ;; #(
16473 *) :
16474 set x $CONFIG_FILES ;; #(
16475 *) :
16476 ;;
16477 esac
16478 shift
16479 # Used to flag and report bootstrapping failures.
16480 am_rc=0
16481 for am_mf
16482 do
16483 # Strip MF so we end up with the name of the file.
16484 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16485 # Check whether this is an Automake generated Makefile which includes
16486 # dependency-tracking related rules and includes.
16487 # Grep'ing the whole file directly is not great: AIX grep has a line
16488 # limit of 2048, but all sed's we know have understand at least 4000.
16489 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16490 || continue
16491 am_dirpart=`$as_dirname -- "$am_mf" ||
16492 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16493 X"$am_mf" : 'X\(//\)[^/]' \| \
16494 X"$am_mf" : 'X\(//\)$' \| \
16495 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16496 $as_echo X"$am_mf" |
16497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16498 s//\1/
16499 q
16500 }
16501 /^X\(\/\/\)[^/].*/{
16502 s//\1/
16503 q
16504 }
16505 /^X\(\/\/\)$/{
16506 s//\1/
16507 q
16508 }
16509 /^X\(\/\).*/{
16510 s//\1/
16511 q
16512 }
16513 s/.*/./; q'`
16514 am_filepart=`$as_basename -- "$am_mf" ||
16515 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16516 X"$am_mf" : 'X\(//\)$' \| \
16517 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16518 $as_echo X/"$am_mf" |
16519 sed '/^.*\/\([^/][^/]*\)\/*$/{
16520 s//\1/
16521 q
16522 }
16523 /^X\/\(\/\/\)$/{
16524 s//\1/
16525 q
16526 }
16527 /^X\/\(\/\).*/{
16528 s//\1/
16529 q
16530 }
16531 s/.*/./; q'`
16532 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16533 && sed -e '/# am--include-marker/d' "$am_filepart" \
16534 | $MAKE -f - am--depfiles" >&5
16535 (cd "$am_dirpart" \
16536 && sed -e '/# am--include-marker/d' "$am_filepart" \
16537 | $MAKE -f - am--depfiles) >&5 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } || am_rc=$?
16541 done
16542 if test $am_rc -ne 0; then
16543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16545 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16546 for automatic dependency tracking. Try re-running configure with the
16547 '--disable-dependency-tracking' option to at least be able to build
16548 the package (albeit without support for automatic dependency tracking).
16549 See \`config.log' for more details" "$LINENO" 5; }
16550 fi
16551 { am_dirpart=; unset am_dirpart;}
16552 { am_filepart=; unset am_filepart;}
16553 { am_mf=; unset am_mf;}
16554 { am_rc=; unset am_rc;}
16555 rm -f conftest-deps.mk
16556 }
16557 ;;
16558 "po-directories":C)
16559 for ac_file in $CONFIG_FILES; do
16560 # Support "outfile[:infile[:infile...]]"
16561 case "$ac_file" in
16562 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16563 esac
16564 # PO directories have a Makefile.in generated from Makefile.in.in.
16565 case "$ac_file" in */Makefile.in)
16566 # Adjust a relative srcdir.
16567 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16568 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16569 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16570 # In autoconf-2.13 it is called $ac_given_srcdir.
16571 # In autoconf-2.50 it is called $srcdir.
16572 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16573 case "$ac_given_srcdir" in
16574 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16575 /*) top_srcdir="$ac_given_srcdir" ;;
16576 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16577 esac
16578 # Treat a directory as a PO directory if and only if it has a
16579 # POTFILES.in file. This allows packages to have multiple PO
16580 # directories under different names or in different locations.
16581 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16582 rm -f "$ac_dir/POTFILES"
16583 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16584 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16585 POMAKEFILEDEPS="POTFILES.in"
16586 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16587 # on $ac_dir but don't depend on user-specified configuration
16588 # parameters.
16589 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16590 # The LINGUAS file contains the set of available languages.
16591 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16592 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16593 fi
16594 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16595 # Hide the ALL_LINGUAS assigment from automake < 1.5.
16596 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16597 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16598 else
16599 # The set of available languages was given in configure.in.
16600 # Hide the ALL_LINGUAS assigment from automake < 1.5.
16601 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16602 fi
16603 # Compute POFILES
16604 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16605 # Compute UPDATEPOFILES
16606 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16607 # Compute DUMMYPOFILES
16608 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16609 # Compute GMOFILES
16610 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16611 case "$ac_given_srcdir" in
16612 .) srcdirpre= ;;
16613 *) srcdirpre='$(srcdir)/' ;;
16614 esac
16615 POFILES=
16616 UPDATEPOFILES=
16617 DUMMYPOFILES=
16618 GMOFILES=
16619 for lang in $ALL_LINGUAS; do
16620 POFILES="$POFILES $srcdirpre$lang.po"
16621 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16622 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16623 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16624 done
16625 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16626 # environment variable.
16627 INST_LINGUAS=
16628 if test -n "$ALL_LINGUAS"; then
16629 for presentlang in $ALL_LINGUAS; do
16630 useit=no
16631 if test "%UNSET%" != "$LINGUAS"; then
16632 desiredlanguages="$LINGUAS"
16633 else
16634 desiredlanguages="$ALL_LINGUAS"
16635 fi
16636 for desiredlang in $desiredlanguages; do
16637 # Use the presentlang catalog if desiredlang is
16638 # a. equal to presentlang, or
16639 # b. a variant of presentlang (because in this case,
16640 # presentlang can be used as a fallback for messages
16641 # which are not translated in the desiredlang catalog).
16642 case "$desiredlang" in
16643 "$presentlang"*) useit=yes;;
16644 esac
16645 done
16646 if test $useit = yes; then
16647 INST_LINGUAS="$INST_LINGUAS $presentlang"
16648 fi
16649 done
16650 fi
16651 CATALOGS=
16652 if test -n "$INST_LINGUAS"; then
16653 for lang in $INST_LINGUAS; do
16654 CATALOGS="$CATALOGS $lang.gmo"
16655 done
16656 fi
16657 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16658 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16659 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16660 if test -f "$f"; then
16661 case "$f" in
16662 *.orig | *.bak | *~) ;;
16663 *) cat "$f" >> "$ac_dir/Makefile" ;;
16664 esac
16665 fi
16666 done
16667 fi
16668 ;;
16669 esac
16670 done ;;
16671
16672 esac
16673 done # for ac_tag
16674
16675
16676 as_fn_exit 0
16677 _ACEOF
16678 ac_clean_files=$ac_clean_files_save
16679
16680 test $ac_write_fail = 0 ||
16681 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16682
16683
16684 # configure is writing to config.log, and then calls config.status.
16685 # config.status does its own redirection, appending to config.log.
16686 # Unfortunately, on DOS this fails, as config.log is still kept open
16687 # by configure, so config.status won't be able to write to it; its
16688 # output is simply discarded. So we exec the FD to /dev/null,
16689 # effectively closing config.log, so it can be properly (re)opened and
16690 # appended to by config.status. When coming back to configure, we
16691 # need to make the FD available again.
16692 if test "$no_create" != yes; then
16693 ac_cs_success=:
16694 ac_config_status_args=
16695 test "$silent" = yes &&
16696 ac_config_status_args="$ac_config_status_args --quiet"
16697 exec 5>/dev/null
16698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16699 exec 5>>config.log
16700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16701 # would make configure fail if this is the last instruction.
16702 $ac_cs_success || as_fn_exit 1
16703 fi
16704 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16706 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16707 fi
16708
16709
16710
16711 echo
16712 echo "Options summary:"
16713 echo "* --enable-upx=$enable_upx"
16714 echo "* --enable-static=$enable_static"
16715 echo "* --enable-tests=$enable_tests"
16716 echo
16717 echo "Now you can type 'make' to compile $PACKAGE_STRING"
16718
16719 # TODO : check for GLM