Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for cabextract 1.11.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] and
271 $0: [email protected] about your system, including
272 $0: any error possibly output before this message. Then
273 $0: install a modern shell, or manually run the script
274 $0: under such a shell if you do have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321 return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
389 {
390 eval $1+=\$2
391 }'
392 else $as_nop
393 as_fn_append ()
394 {
395 eval $1=\$$1\$2
396 }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else $as_nop
411 as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422 return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 fi
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\/\)$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\).*/{
475 s//\1/
476 q
477 }
478 s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
494 p
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='cabextract'
613 PACKAGE_TARNAME='cabextract'
614 PACKAGE_VERSION='1.11'
615 PACKAGE_STRING='cabextract 1.11'
616 PACKAGE_BUGREPORT='[email protected]'
617 PACKAGE_URL=''
618
619 ac_unique_file="src/cabextract.c"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_func_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 EXTERNAL_LIBMSPACK_FALSE
657 EXTERNAL_LIBMSPACK_TRUE
658 libmspack_LIBS
659 libmspack_CFLAGS
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 LTLIBICONV
664 LIBICONV
665 EGREP
666 GREP
667 CPP
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 ALLOCA
677 LIBOBJS
678 RANLIB
679 ac_ct_AR
680 AR
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__include
689 DEPDIR
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 CSCOPE
702 ETAGS
703 CTAGS
704 am__untar
705 am__tar
706 AMTAR
707 am__leading_dot
708 SET_MAKE
709 AWK
710 mkdir_p
711 MKDIR_P
712 INSTALL_STRIP_PROGRAM
713 STRIP
714 install_sh
715 MAKEINFO
716 AUTOHEADER
717 AUTOMAKE
718 AUTOCONF
719 ACLOCAL
720 VERSION
721 PACKAGE
722 CYGPATH_W
723 am__isrc
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 target_alias
728 host_alias
729 build_alias
730 LIBS
731 ECHO_T
732 ECHO_N
733 ECHO_C
734 DEFS
735 mandir
736 localedir
737 libdir
738 psdir
739 pdfdir
740 dvidir
741 htmldir
742 infodir
743 docdir
744 oldincludedir
745 includedir
746 runstatedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL
766 am__quote'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_dependency_tracking
772 enable_largefile
773 with_gnu_ld
774 enable_rpath
775 with_libiconv_prefix
776 with_external_libmspack
777 '
778 ac_precious_vars='build_alias
779 host_alias
780 target_alias
781 CC
782 CFLAGS
783 LDFLAGS
784 LIBS
785 CPPFLAGS
786 CPP
787 PKG_CONFIG
788 PKG_CONFIG_PATH
789 PKG_CONFIG_LIBDIR
790 libmspack_CFLAGS
791 libmspack_LIBS'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 runstatedir='${localstatedir}/run'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: \`$ac_useropt'"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905 "enable_$ac_useropt"
906 "*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: \`$ac_useropt'"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931 "enable_$ac_useropt"
932 "*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -runstatedir | --runstatedir | --runstatedi | --runstated \
1082 | --runstate | --runstat | --runsta | --runst | --runs \
1083 | --run | --ru | --r)
1084 ac_prev=runstatedir ;;
1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087 | --run=* | --ru=* | --r=*)
1088 runstatedir=$ac_optarg ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: \`$ac_useropt'"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: \`$ac_useropt'"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir runstatedir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 printf "%s\n" X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures cabextract 1.11 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/cabextract]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1395
1396 cat <<\_ACEOF
1397
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of cabextract 1.11:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: "make V=1")
1420 --disable-silent-rules verbose build output (undo: "make V=0")
1421 --enable-dependency-tracking
1422 do not reject slow dependency extractors
1423 --disable-dependency-tracking
1424 speeds up one-time build
1425 --disable-largefile omit support for large files
1426 --disable-rpath do not hardcode runtime library paths
1427
1428 Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1433 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1434 --with-external-libmspack
1435 use external libmspack (default no)
1436
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CPP C preprocessor
1446 PKG_CONFIG path to pkg-config utility
1447 PKG_CONFIG_PATH
1448 directories to add to pkg-config's search path
1449 PKG_CONFIG_LIBDIR
1450 path overriding pkg-config's built-in search path
1451 libmspack_CFLAGS
1452 C compiler flags for libmspack, overriding pkg-config
1453 libmspack_LIBS
1454 linker flags for libmspack, overriding pkg-config
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to <[email protected]>.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" ||
1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 continue
1470 ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489 .) # We are building in place.
1490 ac_srcdir=.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1497 *) # Relative name.
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for configure.gnu first; this name is used for a wrapper for
1506 # Metaconfig's "Configure" on case-insensitive file systems.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1518 fi
1519
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1522 cat <<\_ACEOF
1523 cabextract configure 1.11
1524 generated by GNU Autoconf 2.71
1525
1526 Copyright (C) 2021 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530 exit
1531 fi
1532
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1536
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1541 {
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext conftest.beam
1544 if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 printf "%s\n" "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1557 fi
1558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext
1563 then :
1564 ac_retval=0
1565 else $as_nop
1566 printf "%s\n" "$as_me: failed program was:" >&5
1567 sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570 fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1573
1574 } # ac_fn_c_try_compile
1575
1576 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1577 # -------------------------------------------------------
1578 # Tests whether HEADER exists and can be compiled using the include files in
1579 # INCLUDES, setting the cache variable VAR accordingly.
1580 ac_fn_c_check_header_compile ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 printf %s "checking for $2... " >&6; }
1585 if eval test \${$3+y}
1586 then :
1587 printf %s "(cached) " >&6
1588 else $as_nop
1589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590 /* end confdefs.h. */
1591 $4
1592 #include <$2>
1593 _ACEOF
1594 if ac_fn_c_try_compile "$LINENO"
1595 then :
1596 eval "$3=yes"
1597 else $as_nop
1598 eval "$3=no"
1599 fi
1600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1601 fi
1602 eval ac_res=\$$3
1603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604 printf "%s\n" "$ac_res" >&6; }
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606
1607 } # ac_fn_c_check_header_compile
1608
1609 # ac_fn_c_try_run LINENO
1610 # ----------------------
1611 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1612 # executables *can* be run.
1613 ac_fn_c_try_run ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_link"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 printf "%s\n" "$ac_try_echo"; } >&5
1623 (eval "$ac_link") 2>&5
1624 ac_status=$?
1625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1627 { { case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 printf "%s\n" "$ac_try_echo"; } >&5
1633 (eval "$ac_try") 2>&5
1634 ac_status=$?
1635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; }; }
1637 then :
1638 ac_retval=0
1639 else $as_nop
1640 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1641 printf "%s\n" "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=$ac_status
1645 fi
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_run
1651
1652 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1653 # -------------------------------------------
1654 # Tests whether TYPE exists after having included INCLUDES, setting cache
1655 # variable VAR accordingly.
1656 ac_fn_c_check_type ()
1657 {
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 printf %s "checking for $2... " >&6; }
1661 if eval test \${$3+y}
1662 then :
1663 printf %s "(cached) " >&6
1664 else $as_nop
1665 eval "$3=no"
1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1668 $4
1669 int
1670 main (void)
1671 {
1672 if (sizeof ($2))
1673 return 0;
1674 ;
1675 return 0;
1676 }
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"
1679 then :
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 $4
1683 int
1684 main (void)
1685 {
1686 if (sizeof (($2)))
1687 return 0;
1688 ;
1689 return 0;
1690 }
1691 _ACEOF
1692 if ac_fn_c_try_compile "$LINENO"
1693 then :
1694
1695 else $as_nop
1696 eval "$3=yes"
1697 fi
1698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1699 fi
1700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1701 fi
1702 eval ac_res=\$$3
1703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 printf "%s\n" "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_type
1708
1709 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1710 # --------------------------------------------
1711 # Tries to find the compile-time value of EXPR in a program that includes
1712 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1713 # computed
1714 ac_fn_c_compute_int ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if test "$cross_compiling" = yes; then
1718 # Depending upon the size, compute the lo and hi bounds.
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 $4
1722 int
1723 main (void)
1724 {
1725 static int test_array [1 - 2 * !(($2) >= 0)];
1726 test_array [0] = 0;
1727 return test_array [0];
1728
1729 ;
1730 return 0;
1731 }
1732 _ACEOF
1733 if ac_fn_c_try_compile "$LINENO"
1734 then :
1735 ac_lo=0 ac_mid=0
1736 while :; do
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 int
1741 main (void)
1742 {
1743 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1744 test_array [0] = 0;
1745 return test_array [0];
1746
1747 ;
1748 return 0;
1749 }
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"
1752 then :
1753 ac_hi=$ac_mid; break
1754 else $as_nop
1755 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1756 if test $ac_lo -le $ac_mid; then
1757 ac_lo= ac_hi=
1758 break
1759 fi
1760 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1761 fi
1762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1763 done
1764 else $as_nop
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 $4
1768 int
1769 main (void)
1770 {
1771 static int test_array [1 - 2 * !(($2) < 0)];
1772 test_array [0] = 0;
1773 return test_array [0];
1774
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"
1780 then :
1781 ac_hi=-1 ac_mid=-1
1782 while :; do
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 $4
1786 int
1787 main (void)
1788 {
1789 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1790 test_array [0] = 0;
1791 return test_array [0];
1792
1793 ;
1794 return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"
1798 then :
1799 ac_lo=$ac_mid; break
1800 else $as_nop
1801 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1802 if test $ac_mid -le $ac_hi; then
1803 ac_lo= ac_hi=
1804 break
1805 fi
1806 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1809 done
1810 else $as_nop
1811 ac_lo= ac_hi=
1812 fi
1813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1816 # Binary search between lo and hi bounds.
1817 while test "x$ac_lo" != "x$ac_hi"; do
1818 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 $4
1822 int
1823 main (void)
1824 {
1825 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1826 test_array [0] = 0;
1827 return test_array [0];
1828
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"
1834 then :
1835 ac_hi=$ac_mid
1836 else $as_nop
1837 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1840 done
1841 case $ac_lo in #((
1842 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1843 '') ac_retval=1 ;;
1844 esac
1845 else
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 $4
1849 static long int longval (void) { return $2; }
1850 static unsigned long int ulongval (void) { return $2; }
1851 #include <stdio.h>
1852 #include <stdlib.h>
1853 int
1854 main (void)
1855 {
1856
1857 FILE *f = fopen ("conftest.val", "w");
1858 if (! f)
1859 return 1;
1860 if (($2) < 0)
1861 {
1862 long int i = longval ();
1863 if (i != ($2))
1864 return 1;
1865 fprintf (f, "%ld", i);
1866 }
1867 else
1868 {
1869 unsigned long int i = ulongval ();
1870 if (i != ($2))
1871 return 1;
1872 fprintf (f, "%lu", i);
1873 }
1874 /* Do not output a trailing newline, as this causes \r\n confusion
1875 on some platforms. */
1876 return ferror (f) || fclose (f) != 0;
1877
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_run "$LINENO"
1883 then :
1884 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1885 else $as_nop
1886 ac_retval=1
1887 fi
1888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1889 conftest.$ac_objext conftest.beam conftest.$ac_ext
1890 rm -f conftest.val
1891
1892 fi
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1895
1896 } # ac_fn_c_compute_int
1897
1898 # ac_fn_c_try_link LINENO
1899 # -----------------------
1900 # Try to link conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_c_try_link ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1905 if { { ac_try="$ac_link"
1906 case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 printf "%s\n" "$ac_try_echo"; } >&5
1912 (eval "$ac_link") 2>conftest.err
1913 ac_status=$?
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1918 fi
1919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && {
1921 test -z "$ac_c_werror_flag" ||
1922 test ! -s conftest.err
1923 } && test -s conftest$ac_exeext && {
1924 test "$cross_compiling" = yes ||
1925 test -x conftest$ac_exeext
1926 }
1927 then :
1928 ac_retval=0
1929 else $as_nop
1930 printf "%s\n" "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934 fi
1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 # interfere with the next link command; also delete a directory that is
1938 # left behind by Apple's compiler. We do this before executing the actions.
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_link
1944
1945 # ac_fn_c_check_func LINENO FUNC VAR
1946 # ----------------------------------
1947 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1948 ac_fn_c_check_func ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 printf %s "checking for $2... " >&6; }
1953 if eval test \${$3+y}
1954 then :
1955 printf %s "(cached) " >&6
1956 else $as_nop
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1961 #define $2 innocuous_$2
1962
1963 /* System header to define __stub macros and hopefully few prototypes,
1964 which can conflict with char $2 (); below. */
1965
1966 #include <limits.h>
1967 #undef $2
1968
1969 /* Override any GCC internal prototype to avoid an error.
1970 Use char because int might match the return type of a GCC
1971 builtin and then its argument prototype would still apply. */
1972 #ifdef __cplusplus
1973 extern "C"
1974 #endif
1975 char $2 ();
1976 /* The GNU C library defines this for functions which it implements
1977 to always fail with ENOSYS. Some functions are actually named
1978 something starting with __ and the normal name is an alias. */
1979 #if defined __stub_$2 || defined __stub___$2
1980 choke me
1981 #endif
1982
1983 int
1984 main (void)
1985 {
1986 return $2 ();
1987 ;
1988 return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_link "$LINENO"
1992 then :
1993 eval "$3=yes"
1994 else $as_nop
1995 eval "$3=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1998 conftest$ac_exeext conftest.$ac_ext
1999 fi
2000 eval ac_res=\$$3
2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 printf "%s\n" "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005 } # ac_fn_c_check_func
2006
2007 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2008 # ------------------------------------------------------------------
2009 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2010 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2011 ac_fn_check_decl ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 as_decl_name=`echo $2|sed 's/ *(.*//'`
2015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2016 printf %s "checking whether $as_decl_name is declared... " >&6; }
2017 if eval test \${$3+y}
2018 then :
2019 printf %s "(cached) " >&6
2020 else $as_nop
2021 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2022 eval ac_save_FLAGS=\$$6
2023 as_fn_append $6 " $5"
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $4
2027 int
2028 main (void)
2029 {
2030 #ifndef $as_decl_name
2031 #ifdef __cplusplus
2032 (void) $as_decl_use;
2033 #else
2034 (void) $as_decl_name;
2035 #endif
2036 #endif
2037
2038 ;
2039 return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"
2043 then :
2044 eval "$3=yes"
2045 else $as_nop
2046 eval "$3=no"
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2049 eval $6=\$ac_save_FLAGS
2050
2051 fi
2052 eval ac_res=\$$3
2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 printf "%s\n" "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057 } # ac_fn_check_decl
2058
2059 # ac_fn_c_try_cpp LINENO
2060 # ----------------------
2061 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_c_try_cpp ()
2063 {
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if { { ac_try="$ac_cpp conftest.$ac_ext"
2066 case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 printf "%s\n" "$ac_try_echo"; } >&5
2072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2073 ac_status=$?
2074 if test -s conftest.err; then
2075 grep -v '^ *+' conftest.err >conftest.er1
2076 cat conftest.er1 >&5
2077 mv -f conftest.er1 conftest.err
2078 fi
2079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } > conftest.i && {
2081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2082 test ! -s conftest.err
2083 }
2084 then :
2085 ac_retval=0
2086 else $as_nop
2087 printf "%s\n" "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2089
2090 ac_retval=1
2091 fi
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 as_fn_set_status $ac_retval
2094
2095 } # ac_fn_c_try_cpp
2096 ac_configure_args_raw=
2097 for ac_arg
2098 do
2099 case $ac_arg in
2100 *\'*)
2101 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2102 esac
2103 as_fn_append ac_configure_args_raw " '$ac_arg'"
2104 done
2105
2106 case $ac_configure_args_raw in
2107 *$as_nl*)
2108 ac_safe_unquote= ;;
2109 *)
2110 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2111 ac_unsafe_a="$ac_unsafe_z#~"
2112 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2113 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2114 esac
2115
2116 cat >config.log <<_ACEOF
2117 This file contains any messages produced by compilers while
2118 running configure, to aid debugging if configure makes a mistake.
2119
2120 It was created by cabextract $as_me 1.11, which was
2121 generated by GNU Autoconf 2.71. Invocation command line was
2122
2123 $ $0$ac_configure_args_raw
2124
2125 _ACEOF
2126 exec 5>>config.log
2127 {
2128 cat <<_ASUNAME
2129 ## --------- ##
2130 ## Platform. ##
2131 ## --------- ##
2132
2133 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2134 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2135 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2136 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2137 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138
2139 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2140 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2141
2142 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2143 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2144 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2145 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2146 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2147 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2148 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2149
2150 _ASUNAME
2151
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155 IFS=$as_save_IFS
2156 case $as_dir in #(((
2157 '') as_dir=./ ;;
2158 */) ;;
2159 *) as_dir=$as_dir/ ;;
2160 esac
2161 printf "%s\n" "PATH: $as_dir"
2162 done
2163 IFS=$as_save_IFS
2164
2165 } >&5
2166
2167 cat >&5 <<_ACEOF
2168
2169
2170 ## ----------- ##
2171 ## Core tests. ##
2172 ## ----------- ##
2173
2174 _ACEOF
2175
2176
2177 # Keep a trace of the command line.
2178 # Strip out --no-create and --no-recursion so they do not pile up.
2179 # Strip out --silent because we don't want to record it for future runs.
2180 # Also quote any args containing shell meta-characters.
2181 # Make two passes to allow for proper duplicate-argument suppression.
2182 ac_configure_args=
2183 ac_configure_args0=
2184 ac_configure_args1=
2185 ac_must_keep_next=false
2186 for ac_pass in 1 2
2187 do
2188 for ac_arg
2189 do
2190 case $ac_arg in
2191 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2193 | -silent | --silent | --silen | --sile | --sil)
2194 continue ;;
2195 *\'*)
2196 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2197 esac
2198 case $ac_pass in
2199 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2200 2)
2201 as_fn_append ac_configure_args1 " '$ac_arg'"
2202 if test $ac_must_keep_next = true; then
2203 ac_must_keep_next=false # Got value, back to normal.
2204 else
2205 case $ac_arg in
2206 *=* | --config-cache | -C | -disable-* | --disable-* \
2207 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2208 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2209 | -with-* | --with-* | -without-* | --without-* | --x)
2210 case "$ac_configure_args0 " in
2211 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2212 esac
2213 ;;
2214 -* ) ac_must_keep_next=true ;;
2215 esac
2216 fi
2217 as_fn_append ac_configure_args " '$ac_arg'"
2218 ;;
2219 esac
2220 done
2221 done
2222 { ac_configure_args0=; unset ac_configure_args0;}
2223 { ac_configure_args1=; unset ac_configure_args1;}
2224
2225 # When interrupted or exit'd, cleanup temporary files, and complete
2226 # config.log. We remove comments because anyway the quotes in there
2227 # would cause problems or look ugly.
2228 # WARNING: Use '\'' to represent an apostrophe within the trap.
2229 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2230 trap 'exit_status=$?
2231 # Sanitize IFS.
2232 IFS=" "" $as_nl"
2233 # Save into config.log some information that might help in debugging.
2234 {
2235 echo
2236
2237 printf "%s\n" "## ---------------- ##
2238 ## Cache variables. ##
2239 ## ---------------- ##"
2240 echo
2241 # The following way of writing the cache mishandles newlines in values,
2242 (
2243 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2244 eval ac_val=\$$ac_var
2245 case $ac_val in #(
2246 *${as_nl}*)
2247 case $ac_var in #(
2248 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2249 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2250 esac
2251 case $ac_var in #(
2252 _ | IFS | as_nl) ;; #(
2253 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2254 *) { eval $ac_var=; unset $ac_var;} ;;
2255 esac ;;
2256 esac
2257 done
2258 (set) 2>&1 |
2259 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2260 *${as_nl}ac_space=\ *)
2261 sed -n \
2262 "s/'\''/'\''\\\\'\'''\''/g;
2263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2264 ;; #(
2265 *)
2266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2267 ;;
2268 esac |
2269 sort
2270 )
2271 echo
2272
2273 printf "%s\n" "## ----------------- ##
2274 ## Output variables. ##
2275 ## ----------------- ##"
2276 echo
2277 for ac_var in $ac_subst_vars
2278 do
2279 eval ac_val=\$$ac_var
2280 case $ac_val in
2281 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 esac
2283 printf "%s\n" "$ac_var='\''$ac_val'\''"
2284 done | sort
2285 echo
2286
2287 if test -n "$ac_subst_files"; then
2288 printf "%s\n" "## ------------------- ##
2289 ## File substitutions. ##
2290 ## ------------------- ##"
2291 echo
2292 for ac_var in $ac_subst_files
2293 do
2294 eval ac_val=\$$ac_var
2295 case $ac_val in
2296 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 esac
2298 printf "%s\n" "$ac_var='\''$ac_val'\''"
2299 done | sort
2300 echo
2301 fi
2302
2303 if test -s confdefs.h; then
2304 printf "%s\n" "## ----------- ##
2305 ## confdefs.h. ##
2306 ## ----------- ##"
2307 echo
2308 cat confdefs.h
2309 echo
2310 fi
2311 test "$ac_signal" != 0 &&
2312 printf "%s\n" "$as_me: caught signal $ac_signal"
2313 printf "%s\n" "$as_me: exit $exit_status"
2314 } >&5
2315 rm -f core *.core core.conftest.* &&
2316 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2317 exit $exit_status
2318 ' 0
2319 for ac_signal in 1 2 13 15; do
2320 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2321 done
2322 ac_signal=0
2323
2324 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2325 rm -f -r conftest* confdefs.h
2326
2327 printf "%s\n" "/* confdefs.h */" > confdefs.h
2328
2329 # Predefined preprocessor variables.
2330
2331 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2332
2333 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2334
2335 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2336
2337 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2338
2339 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2340
2341 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2342
2343
2344 # Let the site file select an alternate cache file if it wants to.
2345 # Prefer an explicitly selected file to automatically selected ones.
2346 if test -n "$CONFIG_SITE"; then
2347 ac_site_files="$CONFIG_SITE"
2348 elif test "x$prefix" != xNONE; then
2349 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2350 else
2351 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2352 fi
2353
2354 for ac_site_file in $ac_site_files
2355 do
2356 case $ac_site_file in #(
2357 */*) :
2358 ;; #(
2359 *) :
2360 ac_site_file=./$ac_site_file ;;
2361 esac
2362 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2365 sed 's/^/| /' "$ac_site_file" >&5
2366 . "$ac_site_file" \
2367 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2369 as_fn_error $? "failed to load site script $ac_site_file
2370 See \`config.log' for more details" "$LINENO" 5; }
2371 fi
2372 done
2373
2374 if test -r "$cache_file"; then
2375 # Some versions of bash will fail to source /dev/null (special files
2376 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2377 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2379 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2380 case $cache_file in
2381 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2382 *) . "./$cache_file";;
2383 esac
2384 fi
2385 else
2386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2387 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2388 >$cache_file
2389 fi
2390
2391 # Test code for whether the C compiler supports C89 (global declarations)
2392 ac_c_conftest_c89_globals='
2393 /* Does the compiler advertise C89 conformance?
2394 Do not test the value of __STDC__, because some compilers set it to 0
2395 while being otherwise adequately conformant. */
2396 #if !defined __STDC__
2397 # error "Compiler does not advertise C89 conformance"
2398 #endif
2399
2400 #include <stddef.h>
2401 #include <stdarg.h>
2402 struct stat;
2403 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2404 struct buf { int x; };
2405 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2406 static char *e (p, i)
2407 char **p;
2408 int i;
2409 {
2410 return p[i];
2411 }
2412 static char *f (char * (*g) (char **, int), char **p, ...)
2413 {
2414 char *s;
2415 va_list v;
2416 va_start (v,p);
2417 s = g (p, va_arg (v,int));
2418 va_end (v);
2419 return s;
2420 }
2421
2422 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2423 function prototypes and stuff, but not \xHH hex character constants.
2424 These do not provoke an error unfortunately, instead are silently treated
2425 as an "x". The following induces an error, until -std is added to get
2426 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2427 array size at least. It is necessary to write \x00 == 0 to get something
2428 that is true only with -std. */
2429 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2430
2431 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2432 inside strings and character constants. */
2433 #define FOO(x) '\''x'\''
2434 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2435
2436 int test (int i, double x);
2437 struct s1 {int (*f) (int a);};
2438 struct s2 {int (*f) (double a);};
2439 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2440 int, int);'
2441
2442 # Test code for whether the C compiler supports C89 (body of main).
2443 ac_c_conftest_c89_main='
2444 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2445 '
2446
2447 # Test code for whether the C compiler supports C99 (global declarations)
2448 ac_c_conftest_c99_globals='
2449 // Does the compiler advertise C99 conformance?
2450 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2451 # error "Compiler does not advertise C99 conformance"
2452 #endif
2453
2454 #include <stdbool.h>
2455 extern int puts (const char *);
2456 extern int printf (const char *, ...);
2457 extern int dprintf (int, const char *, ...);
2458 extern void *malloc (size_t);
2459
2460 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2461 // dprintf is used instead of fprintf to avoid needing to declare
2462 // FILE and stderr.
2463 #define debug(...) dprintf (2, __VA_ARGS__)
2464 #define showlist(...) puts (#__VA_ARGS__)
2465 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2466 static void
2467 test_varargs_macros (void)
2468 {
2469 int x = 1234;
2470 int y = 5678;
2471 debug ("Flag");
2472 debug ("X = %d\n", x);
2473 showlist (The first, second, and third items.);
2474 report (x>y, "x is %d but y is %d", x, y);
2475 }
2476
2477 // Check long long types.
2478 #define BIG64 18446744073709551615ull
2479 #define BIG32 4294967295ul
2480 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2481 #if !BIG_OK
2482 #error "your preprocessor is broken"
2483 #endif
2484 #if BIG_OK
2485 #else
2486 #error "your preprocessor is broken"
2487 #endif
2488 static long long int bignum = -9223372036854775807LL;
2489 static unsigned long long int ubignum = BIG64;
2490
2491 struct incomplete_array
2492 {
2493 int datasize;
2494 double data[];
2495 };
2496
2497 struct named_init {
2498 int number;
2499 const wchar_t *name;
2500 double average;
2501 };
2502
2503 typedef const char *ccp;
2504
2505 static inline int
2506 test_restrict (ccp restrict text)
2507 {
2508 // See if C++-style comments work.
2509 // Iterate through items via the restricted pointer.
2510 // Also check for declarations in for loops.
2511 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2512 continue;
2513 return 0;
2514 }
2515
2516 // Check varargs and va_copy.
2517 static bool
2518 test_varargs (const char *format, ...)
2519 {
2520 va_list args;
2521 va_start (args, format);
2522 va_list args_copy;
2523 va_copy (args_copy, args);
2524
2525 const char *str = "";
2526 int number = 0;
2527 float fnumber = 0;
2528
2529 while (*format)
2530 {
2531 switch (*format++)
2532 {
2533 case '\''s'\'': // string
2534 str = va_arg (args_copy, const char *);
2535 break;
2536 case '\''d'\'': // int
2537 number = va_arg (args_copy, int);
2538 break;
2539 case '\''f'\'': // float
2540 fnumber = va_arg (args_copy, double);
2541 break;
2542 default:
2543 break;
2544 }
2545 }
2546 va_end (args_copy);
2547 va_end (args);
2548
2549 return *str && number && fnumber;
2550 }
2551 '
2552
2553 # Test code for whether the C compiler supports C99 (body of main).
2554 ac_c_conftest_c99_main='
2555 // Check bool.
2556 _Bool success = false;
2557 success |= (argc != 0);
2558
2559 // Check restrict.
2560 if (test_restrict ("String literal") == 0)
2561 success = true;
2562 char *restrict newvar = "Another string";
2563
2564 // Check varargs.
2565 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2566 test_varargs_macros ();
2567
2568 // Check flexible array members.
2569 struct incomplete_array *ia =
2570 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2571 ia->datasize = 10;
2572 for (int i = 0; i < ia->datasize; ++i)
2573 ia->data[i] = i * 1.234;
2574
2575 // Check named initializers.
2576 struct named_init ni = {
2577 .number = 34,
2578 .name = L"Test wide string",
2579 .average = 543.34343,
2580 };
2581
2582 ni.number = 58;
2583
2584 int dynamic_array[ni.number];
2585 dynamic_array[0] = argv[0][0];
2586 dynamic_array[ni.number - 1] = 543;
2587
2588 // work around unused variable warnings
2589 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2590 || dynamic_array[ni.number - 1] != 543);
2591 '
2592
2593 # Test code for whether the C compiler supports C11 (global declarations)
2594 ac_c_conftest_c11_globals='
2595 // Does the compiler advertise C11 conformance?
2596 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2597 # error "Compiler does not advertise C11 conformance"
2598 #endif
2599
2600 // Check _Alignas.
2601 char _Alignas (double) aligned_as_double;
2602 char _Alignas (0) no_special_alignment;
2603 extern char aligned_as_int;
2604 char _Alignas (0) _Alignas (int) aligned_as_int;
2605
2606 // Check _Alignof.
2607 enum
2608 {
2609 int_alignment = _Alignof (int),
2610 int_array_alignment = _Alignof (int[100]),
2611 char_alignment = _Alignof (char)
2612 };
2613 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2614
2615 // Check _Noreturn.
2616 int _Noreturn does_not_return (void) { for (;;) continue; }
2617
2618 // Check _Static_assert.
2619 struct test_static_assert
2620 {
2621 int x;
2622 _Static_assert (sizeof (int) <= sizeof (long int),
2623 "_Static_assert does not work in struct");
2624 long int y;
2625 };
2626
2627 // Check UTF-8 literals.
2628 #define u8 syntax error!
2629 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2630
2631 // Check duplicate typedefs.
2632 typedef long *long_ptr;
2633 typedef long int *long_ptr;
2634 typedef long_ptr long_ptr;
2635
2636 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2637 struct anonymous
2638 {
2639 union {
2640 struct { int i; int j; };
2641 struct { int k; long int l; } w;
2642 };
2643 int m;
2644 } v1;
2645 '
2646
2647 # Test code for whether the C compiler supports C11 (body of main).
2648 ac_c_conftest_c11_main='
2649 _Static_assert ((offsetof (struct anonymous, i)
2650 == offsetof (struct anonymous, w.k)),
2651 "Anonymous union alignment botch");
2652 v1.i = 2;
2653 v1.w.k = 5;
2654 ok |= v1.i != 5;
2655 '
2656
2657 # Test code for whether the C compiler supports C11 (complete).
2658 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2659 ${ac_c_conftest_c99_globals}
2660 ${ac_c_conftest_c11_globals}
2661
2662 int
2663 main (int argc, char **argv)
2664 {
2665 int ok = 0;
2666 ${ac_c_conftest_c89_main}
2667 ${ac_c_conftest_c99_main}
2668 ${ac_c_conftest_c11_main}
2669 return ok;
2670 }
2671 "
2672
2673 # Test code for whether the C compiler supports C99 (complete).
2674 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2675 ${ac_c_conftest_c99_globals}
2676
2677 int
2678 main (int argc, char **argv)
2679 {
2680 int ok = 0;
2681 ${ac_c_conftest_c89_main}
2682 ${ac_c_conftest_c99_main}
2683 return ok;
2684 }
2685 "
2686
2687 # Test code for whether the C compiler supports C89 (complete).
2688 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2689
2690 int
2691 main (int argc, char **argv)
2692 {
2693 int ok = 0;
2694 ${ac_c_conftest_c89_main}
2695 return ok;
2696 }
2697 "
2698
2699 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2700 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2701 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2702 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2703 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2704 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2705 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2706 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2707 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2708 as_fn_append ac_func_c_list " btowc HAVE_BTOWC"
2709 as_fn_append ac_func_c_list " mbsrtowcs HAVE_MBSRTOWCS"
2710 as_fn_append ac_func_c_list " mempcpy HAVE_MEMPCPY"
2711 as_fn_append ac_func_c_list " wmempcpy HAVE_WMEMPCPY"
2712
2713 # Auxiliary files required by this configure script.
2714 ac_aux_files="config.rpath config.guess config.sub ar-lib compile missing install-sh"
2715
2716 # Locations in which to look for auxiliary files.
2717 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2718
2719 # Search for a directory containing all of the required auxiliary files,
2720 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2721 # If we don't find one directory that contains all the files we need,
2722 # we report the set of missing files from the *first* directory in
2723 # $ac_aux_dir_candidates and give up.
2724 ac_missing_aux_files=""
2725 ac_first_candidate=:
2726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 as_found=false
2729 for as_dir in $ac_aux_dir_candidates
2730 do
2731 IFS=$as_save_IFS
2732 case $as_dir in #(((
2733 '') as_dir=./ ;;
2734 */) ;;
2735 *) as_dir=$as_dir/ ;;
2736 esac
2737 as_found=:
2738
2739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2740 ac_aux_dir_found=yes
2741 ac_install_sh=
2742 for ac_aux in $ac_aux_files
2743 do
2744 # As a special case, if "install-sh" is required, that requirement
2745 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2746 # and $ac_install_sh is set appropriately for whichever one is found.
2747 if test x"$ac_aux" = x"install-sh"
2748 then
2749 if test -f "${as_dir}install-sh"; then
2750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2751 ac_install_sh="${as_dir}install-sh -c"
2752 elif test -f "${as_dir}install.sh"; then
2753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2754 ac_install_sh="${as_dir}install.sh -c"
2755 elif test -f "${as_dir}shtool"; then
2756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2757 ac_install_sh="${as_dir}shtool install -c"
2758 else
2759 ac_aux_dir_found=no
2760 if $ac_first_candidate; then
2761 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2762 else
2763 break
2764 fi
2765 fi
2766 else
2767 if test -f "${as_dir}${ac_aux}"; then
2768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2769 else
2770 ac_aux_dir_found=no
2771 if $ac_first_candidate; then
2772 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2773 else
2774 break
2775 fi
2776 fi
2777 fi
2778 done
2779 if test "$ac_aux_dir_found" = yes; then
2780 ac_aux_dir="$as_dir"
2781 break
2782 fi
2783 ac_first_candidate=false
2784
2785 as_found=false
2786 done
2787 IFS=$as_save_IFS
2788 if $as_found
2789 then :
2790
2791 else $as_nop
2792 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2793 fi
2794
2795
2796 # These three variables are undocumented and unsupported,
2797 # and are intended to be withdrawn in a future Autoconf release.
2798 # They can cause serious problems if a builder's source tree is in a directory
2799 # whose full name contains unusual characters.
2800 if test -f "${ac_aux_dir}config.guess"; then
2801 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2802 fi
2803 if test -f "${ac_aux_dir}config.sub"; then
2804 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2805 fi
2806 if test -f "$ac_aux_dir/configure"; then
2807 ac_configure="$SHELL ${ac_aux_dir}configure"
2808 fi
2809
2810 # Check that the precious variables saved in the cache have kept the same
2811 # value.
2812 ac_cache_corrupted=false
2813 for ac_var in $ac_precious_vars; do
2814 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2815 eval ac_new_set=\$ac_env_${ac_var}_set
2816 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2817 eval ac_new_val=\$ac_env_${ac_var}_value
2818 case $ac_old_set,$ac_new_set in
2819 set,)
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2821 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2822 ac_cache_corrupted=: ;;
2823 ,set)
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2825 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2826 ac_cache_corrupted=: ;;
2827 ,);;
2828 *)
2829 if test "x$ac_old_val" != "x$ac_new_val"; then
2830 # differences in whitespace do not lead to failure.
2831 ac_old_val_w=`echo x $ac_old_val`
2832 ac_new_val_w=`echo x $ac_new_val`
2833 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2835 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2836 ac_cache_corrupted=:
2837 else
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2839 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2840 eval $ac_var=\$ac_old_val
2841 fi
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2843 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2845 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2846 fi;;
2847 esac
2848 # Pass precious variables to config.status.
2849 if test "$ac_new_set" = set; then
2850 case $ac_new_val in
2851 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2852 *) ac_arg=$ac_var=$ac_new_val ;;
2853 esac
2854 case " $ac_configure_args " in
2855 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2856 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2857 esac
2858 fi
2859 done
2860 if $ac_cache_corrupted; then
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2862 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2864 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2865 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2866 and start over" "$LINENO" 5
2867 fi
2868 ## -------------------- ##
2869 ## Main body of script. ##
2870 ## -------------------- ##
2871
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877
2878
2879 am__api_version='1.16'
2880
2881
2882
2883 # Find a good install program. We prefer a C program (faster),
2884 # so one script is as good as another. But avoid the broken or
2885 # incompatible versions:
2886 # SysV /etc/install, /usr/sbin/install
2887 # SunOS /usr/etc/install
2888 # IRIX /sbin/install
2889 # AIX /bin/install
2890 # AmigaOS /C/install, which installs bootblocks on floppy discs
2891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2894 # OS/2's system install, which has a completely different semantic
2895 # ./install, which can be erroneously created by make from ./install.sh.
2896 # Reject install programs that cannot install multiple files.
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2898 printf %s "checking for a BSD-compatible install... " >&6; }
2899 if test -z "$INSTALL"; then
2900 if test ${ac_cv_path_install+y}
2901 then :
2902 printf %s "(cached) " >&6
2903 else $as_nop
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 case $as_dir in #(((
2909 '') as_dir=./ ;;
2910 */) ;;
2911 *) as_dir=$as_dir/ ;;
2912 esac
2913 # Account for fact that we put trailing slashes in our PATH walk.
2914 case $as_dir in #((
2915 ./ | /[cC]/* | \
2916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2917 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2918 /usr/ucb/* ) ;;
2919 *)
2920 # OSF1 and SCO ODT 3.0 have their own names for install.
2921 # Don't use installbsd from OSF since it installs stuff as root
2922 # by default.
2923 for ac_prog in ginstall scoinst install; do
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2926 if test $ac_prog = install &&
2927 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2928 # AIX install. It has an incompatible calling convention.
2929 :
2930 elif test $ac_prog = install &&
2931 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2932 # program-specific install script used by HP pwplus--don't use.
2933 :
2934 else
2935 rm -rf conftest.one conftest.two conftest.dir
2936 echo one > conftest.one
2937 echo two > conftest.two
2938 mkdir conftest.dir
2939 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2940 test -s conftest.one && test -s conftest.two &&
2941 test -s conftest.dir/conftest.one &&
2942 test -s conftest.dir/conftest.two
2943 then
2944 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2945 break 3
2946 fi
2947 fi
2948 fi
2949 done
2950 done
2951 ;;
2952 esac
2953
2954 done
2955 IFS=$as_save_IFS
2956
2957 rm -rf conftest.one conftest.two conftest.dir
2958
2959 fi
2960 if test ${ac_cv_path_install+y}; then
2961 INSTALL=$ac_cv_path_install
2962 else
2963 # As a last resort, use the slow shell script. Don't cache a
2964 # value for INSTALL within a source directory, because that will
2965 # break other packages using the cache if that directory is
2966 # removed, or if the value is a relative name.
2967 INSTALL=$ac_install_sh
2968 fi
2969 fi
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2971 printf "%s\n" "$INSTALL" >&6; }
2972
2973 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2974 # It thinks the first close brace ends the variable substitution.
2975 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2976
2977 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2978
2979 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2980
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2982 printf %s "checking whether build environment is sane... " >&6; }
2983 # Reject unsafe characters in $srcdir or the absolute working directory
2984 # name. Accept space and tab only in the latter.
2985 am_lf='
2986 '
2987 case `pwd` in
2988 *[\\\"\#\$\&\'\`$am_lf]*)
2989 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2990 esac
2991 case $srcdir in
2992 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2993 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2994 esac
2995
2996 # Do 'set' in a subshell so we don't clobber the current shell's
2997 # arguments. Must try -L first in case configure is actually a
2998 # symlink; some systems play weird games with the mod time of symlinks
2999 # (eg FreeBSD returns the mod time of the symlink's containing
3000 # directory).
3001 if (
3002 am_has_slept=no
3003 for am_try in 1 2; do
3004 echo "timestamp, slept: $am_has_slept" > conftest.file
3005 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3006 if test "$*" = "X"; then
3007 # -L didn't work.
3008 set X `ls -t "$srcdir/configure" conftest.file`
3009 fi
3010 if test "$*" != "X $srcdir/configure conftest.file" \
3011 && test "$*" != "X conftest.file $srcdir/configure"; then
3012
3013 # If neither matched, then we have a broken ls. This can happen
3014 # if, for instance, CONFIG_SHELL is bash and it inherits a
3015 # broken ls alias from the environment. This has actually
3016 # happened. Such a system could not be considered "sane".
3017 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3018 alias in your environment" "$LINENO" 5
3019 fi
3020 if test "$2" = conftest.file || test $am_try -eq 2; then
3021 break
3022 fi
3023 # Just in case.
3024 sleep 1
3025 am_has_slept=yes
3026 done
3027 test "$2" = conftest.file
3028 )
3029 then
3030 # Ok.
3031 :
3032 else
3033 as_fn_error $? "newly created file is older than distributed files!
3034 Check your system clock" "$LINENO" 5
3035 fi
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3037 printf "%s\n" "yes" >&6; }
3038 # If we didn't sleep, we still need to ensure time stamps of config.status and
3039 # generated files are strictly newer.
3040 am_sleep_pid=
3041 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3042 ( sleep 1 ) &
3043 am_sleep_pid=$!
3044 fi
3045
3046 rm -f conftest.file
3047
3048 test "$program_prefix" != NONE &&
3049 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3050 # Use a double $ so make ignores it.
3051 test "$program_suffix" != NONE &&
3052 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3053 # Double any \ or $.
3054 # By default was `s,x,x', remove it if useless.
3055 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3056 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3057
3058
3059 # Expand $ac_aux_dir to an absolute path.
3060 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3061
3062
3063 if test x"${MISSING+set}" != xset; then
3064 MISSING="\${SHELL} '$am_aux_dir/missing'"
3065 fi
3066 # Use eval to expand $SHELL
3067 if eval "$MISSING --is-lightweight"; then
3068 am_missing_run="$MISSING "
3069 else
3070 am_missing_run=
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3072 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3073 fi
3074
3075 if test x"${install_sh+set}" != xset; then
3076 case $am_aux_dir in
3077 *\ * | *\ *)
3078 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3079 *)
3080 install_sh="\${SHELL} $am_aux_dir/install-sh"
3081 esac
3082 fi
3083
3084 # Installed binaries are usually stripped using 'strip' when the user
3085 # run "make install-strip". However 'strip' might not be the right
3086 # tool to use in cross-compilation environments, therefore Automake
3087 # will honor the 'STRIP' environment variable to overrule this program.
3088 if test "$cross_compiling" != no; then
3089 if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3091 set dummy ${ac_tool_prefix}strip; ac_word=$2
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 printf %s "checking for $ac_word... " >&6; }
3094 if test ${ac_cv_prog_STRIP+y}
3095 then :
3096 printf %s "(cached) " >&6
3097 else $as_nop
3098 if test -n "$STRIP"; then
3099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104 IFS=$as_save_IFS
3105 case $as_dir in #(((
3106 '') as_dir=./ ;;
3107 */) ;;
3108 *) as_dir=$as_dir/ ;;
3109 esac
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3114 break 2
3115 fi
3116 done
3117 done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 STRIP=$ac_cv_prog_STRIP
3123 if test -n "$STRIP"; then
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3125 printf "%s\n" "$STRIP" >&6; }
3126 else
3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 printf "%s\n" "no" >&6; }
3129 fi
3130
3131
3132 fi
3133 if test -z "$ac_cv_prog_STRIP"; then
3134 ac_ct_STRIP=$STRIP
3135 # Extract the first word of "strip", so it can be a program name with args.
3136 set dummy strip; ac_word=$2
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 printf %s "checking for $ac_word... " >&6; }
3139 if test ${ac_cv_prog_ac_ct_STRIP+y}
3140 then :
3141 printf %s "(cached) " >&6
3142 else $as_nop
3143 if test -n "$ac_ct_STRIP"; then
3144 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149 IFS=$as_save_IFS
3150 case $as_dir in #(((
3151 '') as_dir=./ ;;
3152 */) ;;
3153 *) as_dir=$as_dir/ ;;
3154 esac
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_ac_ct_STRIP="strip"
3158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3168 if test -n "$ac_ct_STRIP"; then
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3170 printf "%s\n" "$ac_ct_STRIP" >&6; }
3171 else
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 printf "%s\n" "no" >&6; }
3174 fi
3175
3176 if test "x$ac_ct_STRIP" = x; then
3177 STRIP=":"
3178 else
3179 case $cross_compiling:$ac_tool_warned in
3180 yes:)
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3182 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183 ac_tool_warned=yes ;;
3184 esac
3185 STRIP=$ac_ct_STRIP
3186 fi
3187 else
3188 STRIP="$ac_cv_prog_STRIP"
3189 fi
3190
3191 fi
3192 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3193
3194
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3196 printf %s "checking for a race-free mkdir -p... " >&6; }
3197 if test -z "$MKDIR_P"; then
3198 if test ${ac_cv_path_mkdir+y}
3199 then :
3200 printf %s "(cached) " >&6
3201 else $as_nop
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3204 do
3205 IFS=$as_save_IFS
3206 case $as_dir in #(((
3207 '') as_dir=./ ;;
3208 */) ;;
3209 *) as_dir=$as_dir/ ;;
3210 esac
3211 for ac_prog in mkdir gmkdir; do
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3214 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3215 'mkdir ('*'coreutils) '* | \
3216 'BusyBox '* | \
3217 'mkdir (fileutils) '4.1*)
3218 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3219 break 3;;
3220 esac
3221 done
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 fi
3227
3228 test -d ./--version && rmdir ./--version
3229 if test ${ac_cv_path_mkdir+y}; then
3230 MKDIR_P="$ac_cv_path_mkdir -p"
3231 else
3232 # As a last resort, use the slow shell script. Don't cache a
3233 # value for MKDIR_P within a source directory, because that will
3234 # break other packages using the cache if that directory is
3235 # removed, or if the value is a relative name.
3236 MKDIR_P="$ac_install_sh -d"
3237 fi
3238 fi
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3240 printf "%s\n" "$MKDIR_P" >&6; }
3241
3242 for ac_prog in gawk mawk nawk awk
3243 do
3244 # Extract the first word of "$ac_prog", so it can be a program name with args.
3245 set dummy $ac_prog; ac_word=$2
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 printf %s "checking for $ac_word... " >&6; }
3248 if test ${ac_cv_prog_AWK+y}
3249 then :
3250 printf %s "(cached) " >&6
3251 else $as_nop
3252 if test -n "$AWK"; then
3253 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 case $as_dir in #(((
3260 '') as_dir=./ ;;
3261 */) ;;
3262 *) as_dir=$as_dir/ ;;
3263 esac
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_AWK="$ac_prog"
3267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 AWK=$ac_cv_prog_AWK
3277 if test -n "$AWK"; then
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3279 printf "%s\n" "$AWK" >&6; }
3280 else
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 printf "%s\n" "no" >&6; }
3283 fi
3284
3285
3286 test -n "$AWK" && break
3287 done
3288
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3290 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3291 set x ${MAKE-make}
3292 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3293 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3294 then :
3295 printf %s "(cached) " >&6
3296 else $as_nop
3297 cat >conftest.make <<\_ACEOF
3298 SHELL = /bin/sh
3299 all:
3300 @echo '@@@%%%=$(MAKE)=@@@%%%'
3301 _ACEOF
3302 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3303 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3304 *@@@%%%=?*=@@@%%%*)
3305 eval ac_cv_prog_make_${ac_make}_set=yes;;
3306 *)
3307 eval ac_cv_prog_make_${ac_make}_set=no;;
3308 esac
3309 rm -f conftest.make
3310 fi
3311 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 printf "%s\n" "yes" >&6; }
3314 SET_MAKE=
3315 else
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 printf "%s\n" "no" >&6; }
3318 SET_MAKE="MAKE=${MAKE-make}"
3319 fi
3320
3321 rm -rf .tst 2>/dev/null
3322 mkdir .tst 2>/dev/null
3323 if test -d .tst; then
3324 am__leading_dot=.
3325 else
3326 am__leading_dot=_
3327 fi
3328 rmdir .tst 2>/dev/null
3329
3330 # Check whether --enable-silent-rules was given.
3331 if test ${enable_silent_rules+y}
3332 then :
3333 enableval=$enable_silent_rules;
3334 fi
3335
3336 case $enable_silent_rules in # (((
3337 yes) AM_DEFAULT_VERBOSITY=0;;
3338 no) AM_DEFAULT_VERBOSITY=1;;
3339 *) AM_DEFAULT_VERBOSITY=1;;
3340 esac
3341 am_make=${MAKE-make}
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3343 printf %s "checking whether $am_make supports nested variables... " >&6; }
3344 if test ${am_cv_make_support_nested_variables+y}
3345 then :
3346 printf %s "(cached) " >&6
3347 else $as_nop
3348 if printf "%s\n" 'TRUE=$(BAR$(V))
3349 BAR0=false
3350 BAR1=true
3351 V=1
3352 am__doit:
3353 @$(TRUE)
3354 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3355 am_cv_make_support_nested_variables=yes
3356 else
3357 am_cv_make_support_nested_variables=no
3358 fi
3359 fi
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3361 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3362 if test $am_cv_make_support_nested_variables = yes; then
3363 AM_V='$(V)'
3364 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3365 else
3366 AM_V=$AM_DEFAULT_VERBOSITY
3367 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3368 fi
3369 AM_BACKSLASH='\'
3370
3371 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3372 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3373 # is not polluted with repeated "-I."
3374 am__isrc=' -I$(srcdir)'
3375 # test to see if srcdir already configured
3376 if test -f $srcdir/config.status; then
3377 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3378 fi
3379 fi
3380
3381 # test whether we have cygpath
3382 if test -z "$CYGPATH_W"; then
3383 if (cygpath --version) >/dev/null 2>/dev/null; then
3384 CYGPATH_W='cygpath -w'
3385 else
3386 CYGPATH_W=echo
3387 fi
3388 fi
3389
3390
3391 # Define the identity of the package.
3392 PACKAGE='cabextract'
3393 VERSION='1.11'
3394
3395
3396 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3397
3398
3399 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3400
3401 # Some tools Automake needs.
3402
3403 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3404
3405
3406 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3407
3408
3409 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3410
3411
3412 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3413
3414
3415 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3416
3417 # For better backward compatibility. To be removed once Automake 1.9.x
3418 # dies out for good. For more background, see:
3419 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3420 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3421 mkdir_p='$(MKDIR_P)'
3422
3423 # We need awk for the "check" target (and possibly the TAP driver). The
3424 # system "awk" is bad on some platforms.
3425 # Always define AMTAR for backward compatibility. Yes, it's still used
3426 # in the wild :-( We should find a proper way to deprecate it ...
3427 AMTAR='$${TAR-tar}'
3428
3429
3430 # We'll loop over all known methods to create a tar archive until one works.
3431 _am_tools='gnutar pax cpio none'
3432
3433 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3434
3435
3436
3437
3438
3439 # Variables for tags utilities; see am/tags.am
3440 if test -z "$CTAGS"; then
3441 CTAGS=ctags
3442 fi
3443
3444 if test -z "$ETAGS"; then
3445 ETAGS=etags
3446 fi
3447
3448 if test -z "$CSCOPE"; then
3449 CSCOPE=cscope
3450 fi
3451
3452
3453
3454 # POSIX will say in a future version that running "rm -f" with no argument
3455 # is OK; and we want to be able to make that assumption in our Makefile
3456 # recipes. So use an aggressive probe to check that the usage we want is
3457 # actually supported "in the wild" to an acceptable degree.
3458 # See automake bug#10828.
3459 # To make any issue more visible, cause the running configure to be aborted
3460 # by default if the 'rm' program in use doesn't match our expectations; the
3461 # user can still override this though.
3462 if rm -f && rm -fr && rm -rf; then : OK; else
3463 cat >&2 <<'END'
3464 Oops!
3465
3466 Your 'rm' program seems unable to run without file operands specified
3467 on the command line, even when the '-f' option is present. This is contrary
3468 to the behaviour of most rm programs out there, and not conforming with
3469 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3470
3471 Please tell [email protected] about your system, including the value
3472 of your $PATH and any error possibly output before this message. This
3473 can help us improve future automake versions.
3474
3475 END
3476 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3477 echo 'Configuration will proceed anyway, since you have set the' >&2
3478 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3479 echo >&2
3480 else
3481 cat >&2 <<'END'
3482 Aborting the configuration process, to ensure you take notice of the issue.
3483
3484 You can download and install GNU coreutils to get an 'rm' implementation
3485 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3486
3487 If you want to complete the configuration process using your problematic
3488 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3489 to "yes", and re-run configure.
3490
3491 END
3492 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3493 fi
3494 fi
3495
3496
3497 ac_config_headers="$ac_config_headers config.h"
3498
3499
3500 # Checks for programs.
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510 ac_ext=c
3511 ac_cpp='$CPP $CPPFLAGS'
3512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3515 if test -n "$ac_tool_prefix"; then
3516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 printf %s "checking for $ac_word... " >&6; }
3520 if test ${ac_cv_prog_CC+y}
3521 then :
3522 printf %s "(cached) " >&6
3523 else $as_nop
3524 if test -n "$CC"; then
3525 ac_cv_prog_CC="$CC" # Let the user override the test.
3526 else
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3529 do
3530 IFS=$as_save_IFS
3531 case $as_dir in #(((
3532 '') as_dir=./ ;;
3533 */) ;;
3534 *) as_dir=$as_dir/ ;;
3535 esac
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3540 break 2
3541 fi
3542 done
3543 done
3544 IFS=$as_save_IFS
3545
3546 fi
3547 fi
3548 CC=$ac_cv_prog_CC
3549 if test -n "$CC"; then
3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3551 printf "%s\n" "$CC" >&6; }
3552 else
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 printf "%s\n" "no" >&6; }
3555 fi
3556
3557
3558 fi
3559 if test -z "$ac_cv_prog_CC"; then
3560 ac_ct_CC=$CC
3561 # Extract the first word of "gcc", so it can be a program name with args.
3562 set dummy gcc; ac_word=$2
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 printf %s "checking for $ac_word... " >&6; }
3565 if test ${ac_cv_prog_ac_ct_CC+y}
3566 then :
3567 printf %s "(cached) " >&6
3568 else $as_nop
3569 if test -n "$ac_ct_CC"; then
3570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 case $as_dir in #(((
3577 '') as_dir=./ ;;
3578 */) ;;
3579 *) as_dir=$as_dir/ ;;
3580 esac
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_ac_ct_CC="gcc"
3584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3585 break 2
3586 fi
3587 done
3588 done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3594 if test -n "$ac_ct_CC"; then
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3596 printf "%s\n" "$ac_ct_CC" >&6; }
3597 else
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 printf "%s\n" "no" >&6; }
3600 fi
3601
3602 if test "x$ac_ct_CC" = x; then
3603 CC=""
3604 else
3605 case $cross_compiling:$ac_tool_warned in
3606 yes:)
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3609 ac_tool_warned=yes ;;
3610 esac
3611 CC=$ac_ct_CC
3612 fi
3613 else
3614 CC="$ac_cv_prog_CC"
3615 fi
3616
3617 if test -z "$CC"; then
3618 if test -n "$ac_tool_prefix"; then
3619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3620 set dummy ${ac_tool_prefix}cc; ac_word=$2
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 printf %s "checking for $ac_word... " >&6; }
3623 if test ${ac_cv_prog_CC+y}
3624 then :
3625 printf %s "(cached) " >&6
3626 else $as_nop
3627 if test -n "$CC"; then
3628 ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633 IFS=$as_save_IFS
3634 case $as_dir in #(((
3635 '') as_dir=./ ;;
3636 */) ;;
3637 *) as_dir=$as_dir/ ;;
3638 esac
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3641 ac_cv_prog_CC="${ac_tool_prefix}cc"
3642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645 done
3646 done
3647 IFS=$as_save_IFS
3648
3649 fi
3650 fi
3651 CC=$ac_cv_prog_CC
3652 if test -n "$CC"; then
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3654 printf "%s\n" "$CC" >&6; }
3655 else
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 printf "%s\n" "no" >&6; }
3658 fi
3659
3660
3661 fi
3662 fi
3663 if test -z "$CC"; then
3664 # Extract the first word of "cc", so it can be a program name with args.
3665 set dummy cc; ac_word=$2
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 printf %s "checking for $ac_word... " >&6; }
3668 if test ${ac_cv_prog_CC+y}
3669 then :
3670 printf %s "(cached) " >&6
3671 else $as_nop
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC="$CC" # Let the user override the test.
3674 else
3675 ac_prog_rejected=no
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679 IFS=$as_save_IFS
3680 case $as_dir in #(((
3681 '') as_dir=./ ;;
3682 */) ;;
3683 *) as_dir=$as_dir/ ;;
3684 esac
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3687 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3688 ac_prog_rejected=yes
3689 continue
3690 fi
3691 ac_cv_prog_CC="cc"
3692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3693 break 2
3694 fi
3695 done
3696 done
3697 IFS=$as_save_IFS
3698
3699 if test $ac_prog_rejected = yes; then
3700 # We found a bogon in the path, so make sure we never use it.
3701 set dummy $ac_cv_prog_CC
3702 shift
3703 if test $# != 0; then
3704 # We chose a different compiler from the bogus one.
3705 # However, it has the same basename, so the bogon will be chosen
3706 # first if we set CC to just the basename; use the full file name.
3707 shift
3708 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3709 fi
3710 fi
3711 fi
3712 fi
3713 CC=$ac_cv_prog_CC
3714 if test -n "$CC"; then
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 printf "%s\n" "$CC" >&6; }
3717 else
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 printf "%s\n" "no" >&6; }
3720 fi
3721
3722
3723 fi
3724 if test -z "$CC"; then
3725 if test -n "$ac_tool_prefix"; then
3726 for ac_prog in cl.exe
3727 do
3728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 printf %s "checking for $ac_word... " >&6; }
3732 if test ${ac_cv_prog_CC+y}
3733 then :
3734 printf %s "(cached) " >&6
3735 else $as_nop
3736 if test -n "$CC"; then
3737 ac_cv_prog_CC="$CC" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742 IFS=$as_save_IFS
3743 case $as_dir in #(((
3744 '') as_dir=./ ;;
3745 */) ;;
3746 *) as_dir=$as_dir/ ;;
3747 esac
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754 done
3755 done
3756 IFS=$as_save_IFS
3757
3758 fi
3759 fi
3760 CC=$ac_cv_prog_CC
3761 if test -n "$CC"; then
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3763 printf "%s\n" "$CC" >&6; }
3764 else
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 printf "%s\n" "no" >&6; }
3767 fi
3768
3769
3770 test -n "$CC" && break
3771 done
3772 fi
3773 if test -z "$CC"; then
3774 ac_ct_CC=$CC
3775 for ac_prog in cl.exe
3776 do
3777 # Extract the first word of "$ac_prog", so it can be a program name with args.
3778 set dummy $ac_prog; ac_word=$2
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 printf %s "checking for $ac_word... " >&6; }
3781 if test ${ac_cv_prog_ac_ct_CC+y}
3782 then :
3783 printf %s "(cached) " >&6
3784 else $as_nop
3785 if test -n "$ac_ct_CC"; then
3786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791 IFS=$as_save_IFS
3792 case $as_dir in #(((
3793 '') as_dir=./ ;;
3794 */) ;;
3795 *) as_dir=$as_dir/ ;;
3796 esac
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_ac_ct_CC="$ac_prog"
3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803 done
3804 done
3805 IFS=$as_save_IFS
3806
3807 fi
3808 fi
3809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3810 if test -n "$ac_ct_CC"; then
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3812 printf "%s\n" "$ac_ct_CC" >&6; }
3813 else
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 printf "%s\n" "no" >&6; }
3816 fi
3817
3818
3819 test -n "$ac_ct_CC" && break
3820 done
3821
3822 if test "x$ac_ct_CC" = x; then
3823 CC=""
3824 else
3825 case $cross_compiling:$ac_tool_warned in
3826 yes:)
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829 ac_tool_warned=yes ;;
3830 esac
3831 CC=$ac_ct_CC
3832 fi
3833 fi
3834
3835 fi
3836 if test -z "$CC"; then
3837 if test -n "$ac_tool_prefix"; then
3838 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3839 set dummy ${ac_tool_prefix}clang; ac_word=$2
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 printf %s "checking for $ac_word... " >&6; }
3842 if test ${ac_cv_prog_CC+y}
3843 then :
3844 printf %s "(cached) " >&6
3845 else $as_nop
3846 if test -n "$CC"; then
3847 ac_cv_prog_CC="$CC" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3851 do
3852 IFS=$as_save_IFS
3853 case $as_dir in #(((
3854 '') as_dir=./ ;;
3855 */) ;;
3856 *) as_dir=$as_dir/ ;;
3857 esac
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_CC="${ac_tool_prefix}clang"
3861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3862 break 2
3863 fi
3864 done
3865 done
3866 IFS=$as_save_IFS
3867
3868 fi
3869 fi
3870 CC=$ac_cv_prog_CC
3871 if test -n "$CC"; then
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873 printf "%s\n" "$CC" >&6; }
3874 else
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 printf "%s\n" "no" >&6; }
3877 fi
3878
3879
3880 fi
3881 if test -z "$ac_cv_prog_CC"; then
3882 ac_ct_CC=$CC
3883 # Extract the first word of "clang", so it can be a program name with args.
3884 set dummy clang; ac_word=$2
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 printf %s "checking for $ac_word... " >&6; }
3887 if test ${ac_cv_prog_ac_ct_CC+y}
3888 then :
3889 printf %s "(cached) " >&6
3890 else $as_nop
3891 if test -n "$ac_ct_CC"; then
3892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3896 do
3897 IFS=$as_save_IFS
3898 case $as_dir in #(((
3899 '') as_dir=./ ;;
3900 */) ;;
3901 *) as_dir=$as_dir/ ;;
3902 esac
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_ac_ct_CC="clang"
3906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3907 break 2
3908 fi
3909 done
3910 done
3911 IFS=$as_save_IFS
3912
3913 fi
3914 fi
3915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3916 if test -n "$ac_ct_CC"; then
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3918 printf "%s\n" "$ac_ct_CC" >&6; }
3919 else
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 printf "%s\n" "no" >&6; }
3922 fi
3923
3924 if test "x$ac_ct_CC" = x; then
3925 CC=""
3926 else
3927 case $cross_compiling:$ac_tool_warned in
3928 yes:)
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3930 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3931 ac_tool_warned=yes ;;
3932 esac
3933 CC=$ac_ct_CC
3934 fi
3935 else
3936 CC="$ac_cv_prog_CC"
3937 fi
3938
3939 fi
3940
3941
3942 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error $? "no acceptable C compiler found in \$PATH
3945 See \`config.log' for more details" "$LINENO" 5; }
3946
3947 # Provide some information about the compiler.
3948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3949 set X $ac_compile
3950 ac_compiler=$2
3951 for ac_option in --version -v -V -qversion -version; do
3952 { { ac_try="$ac_compiler $ac_option >&5"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 printf "%s\n" "$ac_try_echo"; } >&5
3959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3960 ac_status=$?
3961 if test -s conftest.err; then
3962 sed '10a\
3963 ... rest of stderr output deleted ...
3964 10q' conftest.err >conftest.er1
3965 cat conftest.er1 >&5
3966 fi
3967 rm -f conftest.er1 conftest.err
3968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }
3970 done
3971
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974
3975 int
3976 main (void)
3977 {
3978
3979 ;
3980 return 0;
3981 }
3982 _ACEOF
3983 ac_clean_files_save=$ac_clean_files
3984 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3985 # Try to create an executable without -o first, disregard a.out.
3986 # It will help us diagnose broken compilers, and finding out an intuition
3987 # of exeext.
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3989 printf %s "checking whether the C compiler works... " >&6; }
3990 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3991
3992 # The possible output files:
3993 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3994
3995 ac_rmfiles=
3996 for ac_file in $ac_files
3997 do
3998 case $ac_file in
3999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4000 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4001 esac
4002 done
4003 rm -f $ac_rmfiles
4004
4005 if { { ac_try="$ac_link_default"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 printf "%s\n" "$ac_try_echo"; } >&5
4012 (eval "$ac_link_default") 2>&5
4013 ac_status=$?
4014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }
4016 then :
4017 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4018 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4019 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4020 # so that the user can short-circuit this test for compilers unknown to
4021 # Autoconf.
4022 for ac_file in $ac_files ''
4023 do
4024 test -f "$ac_file" || continue
4025 case $ac_file in
4026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4027 ;;
4028 [ab].out )
4029 # We found the default executable, but exeext='' is most
4030 # certainly right.
4031 break;;
4032 *.* )
4033 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4034 then :; else
4035 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4036 fi
4037 # We set ac_cv_exeext here because the later test for it is not
4038 # safe: cross compilers may not add the suffix if given an `-o'
4039 # argument, so we may need to know it at that point already.
4040 # Even if this section looks crufty: it has the advantage of
4041 # actually working.
4042 break;;
4043 * )
4044 break;;
4045 esac
4046 done
4047 test "$ac_cv_exeext" = no && ac_cv_exeext=
4048
4049 else $as_nop
4050 ac_file=''
4051 fi
4052 if test -z "$ac_file"
4053 then :
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 printf "%s\n" "no" >&6; }
4056 printf "%s\n" "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error 77 "C compiler cannot create executables
4062 See \`config.log' for more details" "$LINENO" 5; }
4063 else $as_nop
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4065 printf "%s\n" "yes" >&6; }
4066 fi
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4068 printf %s "checking for C compiler default output file name... " >&6; }
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4070 printf "%s\n" "$ac_file" >&6; }
4071 ac_exeext=$ac_cv_exeext
4072
4073 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4074 ac_clean_files=$ac_clean_files_save
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4076 printf %s "checking for suffix of executables... " >&6; }
4077 if { { ac_try="$ac_link"
4078 case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 printf "%s\n" "$ac_try_echo"; } >&5
4084 (eval "$ac_link") 2>&5
4085 ac_status=$?
4086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }
4088 then :
4089 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4090 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4091 # work properly (i.e., refer to `conftest.exe'), while it won't with
4092 # `rm'.
4093 for ac_file in conftest.exe conftest conftest.*; do
4094 test -f "$ac_file" || continue
4095 case $ac_file in
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4097 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4098 break;;
4099 * ) break;;
4100 esac
4101 done
4102 else $as_nop
4103 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4106 See \`config.log' for more details" "$LINENO" 5; }
4107 fi
4108 rm -f conftest conftest$ac_cv_exeext
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4110 printf "%s\n" "$ac_cv_exeext" >&6; }
4111
4112 rm -f conftest.$ac_ext
4113 EXEEXT=$ac_cv_exeext
4114 ac_exeext=$EXEEXT
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #include <stdio.h>
4118 int
4119 main (void)
4120 {
4121 FILE *f = fopen ("conftest.out", "w");
4122 return ferror (f) || fclose (f) != 0;
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 ac_clean_files="$ac_clean_files conftest.out"
4129 # Check that the compiler produces executables we can run. If not, either
4130 # the compiler is broken, or we cross compile.
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4132 printf %s "checking whether we are cross compiling... " >&6; }
4133 if test "$cross_compiling" != yes; then
4134 { { ac_try="$ac_link"
4135 case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140 printf "%s\n" "$ac_try_echo"; } >&5
4141 (eval "$ac_link") 2>&5
4142 ac_status=$?
4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144 test $ac_status = 0; }
4145 if { ac_try='./conftest$ac_cv_exeext'
4146 { { case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151 printf "%s\n" "$ac_try_echo"; } >&5
4152 (eval "$ac_try") 2>&5
4153 ac_status=$?
4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4155 test $ac_status = 0; }; }; then
4156 cross_compiling=no
4157 else
4158 if test "$cross_compiling" = maybe; then
4159 cross_compiling=yes
4160 else
4161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4162 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4163 as_fn_error 77 "cannot run C compiled programs.
4164 If you meant to cross compile, use \`--host'.
4165 See \`config.log' for more details" "$LINENO" 5; }
4166 fi
4167 fi
4168 fi
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4170 printf "%s\n" "$cross_compiling" >&6; }
4171
4172 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4173 ac_clean_files=$ac_clean_files_save
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4175 printf %s "checking for suffix of object files... " >&6; }
4176 if test ${ac_cv_objext+y}
4177 then :
4178 printf %s "(cached) " >&6
4179 else $as_nop
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182
4183 int
4184 main (void)
4185 {
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest.o conftest.obj
4192 if { { ac_try="$ac_compile"
4193 case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196 esac
4197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4198 printf "%s\n" "$ac_try_echo"; } >&5
4199 (eval "$ac_compile") 2>&5
4200 ac_status=$?
4201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4202 test $ac_status = 0; }
4203 then :
4204 for ac_file in conftest.o conftest.obj conftest.*; do
4205 test -f "$ac_file" || continue;
4206 case $ac_file in
4207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4208 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4209 break;;
4210 esac
4211 done
4212 else $as_nop
4213 printf "%s\n" "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4217 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4218 as_fn_error $? "cannot compute suffix of object files: cannot compile
4219 See \`config.log' for more details" "$LINENO" 5; }
4220 fi
4221 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4222 fi
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4224 printf "%s\n" "$ac_cv_objext" >&6; }
4225 OBJEXT=$ac_cv_objext
4226 ac_objext=$OBJEXT
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4228 printf %s "checking whether the compiler supports GNU C... " >&6; }
4229 if test ${ac_cv_c_compiler_gnu+y}
4230 then :
4231 printf %s "(cached) " >&6
4232 else $as_nop
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235
4236 int
4237 main (void)
4238 {
4239 #ifndef __GNUC__
4240 choke me
4241 #endif
4242
4243 ;
4244 return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_c_try_compile "$LINENO"
4248 then :
4249 ac_compiler_gnu=yes
4250 else $as_nop
4251 ac_compiler_gnu=no
4252 fi
4253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4255
4256 fi
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4258 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260
4261 if test $ac_compiler_gnu = yes; then
4262 GCC=yes
4263 else
4264 GCC=
4265 fi
4266 ac_test_CFLAGS=${CFLAGS+y}
4267 ac_save_CFLAGS=$CFLAGS
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4269 printf %s "checking whether $CC accepts -g... " >&6; }
4270 if test ${ac_cv_prog_cc_g+y}
4271 then :
4272 printf %s "(cached) " >&6
4273 else $as_nop
4274 ac_save_c_werror_flag=$ac_c_werror_flag
4275 ac_c_werror_flag=yes
4276 ac_cv_prog_cc_g=no
4277 CFLAGS="-g"
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280
4281 int
4282 main (void)
4283 {
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_compile "$LINENO"
4290 then :
4291 ac_cv_prog_cc_g=yes
4292 else $as_nop
4293 CFLAGS=""
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 int
4298 main (void)
4299 {
4300
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_c_try_compile "$LINENO"
4306 then :
4307
4308 else $as_nop
4309 ac_c_werror_flag=$ac_save_c_werror_flag
4310 CFLAGS="-g"
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4313
4314 int
4315 main (void)
4316 {
4317
4318 ;
4319 return 0;
4320 }
4321 _ACEOF
4322 if ac_fn_c_try_compile "$LINENO"
4323 then :
4324 ac_cv_prog_cc_g=yes
4325 fi
4326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4329 fi
4330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4331 ac_c_werror_flag=$ac_save_c_werror_flag
4332 fi
4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4334 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4335 if test $ac_test_CFLAGS; then
4336 CFLAGS=$ac_save_CFLAGS
4337 elif test $ac_cv_prog_cc_g = yes; then
4338 if test "$GCC" = yes; then
4339 CFLAGS="-g -O2"
4340 else
4341 CFLAGS="-g"
4342 fi
4343 else
4344 if test "$GCC" = yes; then
4345 CFLAGS="-O2"
4346 else
4347 CFLAGS=
4348 fi
4349 fi
4350 ac_prog_cc_stdc=no
4351 if test x$ac_prog_cc_stdc = xno
4352 then :
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4354 printf %s "checking for $CC option to enable C11 features... " >&6; }
4355 if test ${ac_cv_prog_cc_c11+y}
4356 then :
4357 printf %s "(cached) " >&6
4358 else $as_nop
4359 ac_cv_prog_cc_c11=no
4360 ac_save_CC=$CC
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4363 $ac_c_conftest_c11_program
4364 _ACEOF
4365 for ac_arg in '' -std=gnu11
4366 do
4367 CC="$ac_save_CC $ac_arg"
4368 if ac_fn_c_try_compile "$LINENO"
4369 then :
4370 ac_cv_prog_cc_c11=$ac_arg
4371 fi
4372 rm -f core conftest.err conftest.$ac_objext conftest.beam
4373 test "x$ac_cv_prog_cc_c11" != "xno" && break
4374 done
4375 rm -f conftest.$ac_ext
4376 CC=$ac_save_CC
4377 fi
4378
4379 if test "x$ac_cv_prog_cc_c11" = xno
4380 then :
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4382 printf "%s\n" "unsupported" >&6; }
4383 else $as_nop
4384 if test "x$ac_cv_prog_cc_c11" = x
4385 then :
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4387 printf "%s\n" "none needed" >&6; }
4388 else $as_nop
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4390 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4391 CC="$CC $ac_cv_prog_cc_c11"
4392 fi
4393 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4394 ac_prog_cc_stdc=c11
4395 fi
4396 fi
4397 if test x$ac_prog_cc_stdc = xno
4398 then :
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4400 printf %s "checking for $CC option to enable C99 features... " >&6; }
4401 if test ${ac_cv_prog_cc_c99+y}
4402 then :
4403 printf %s "(cached) " >&6
4404 else $as_nop
4405 ac_cv_prog_cc_c99=no
4406 ac_save_CC=$CC
4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* end confdefs.h. */
4409 $ac_c_conftest_c99_program
4410 _ACEOF
4411 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4412 do
4413 CC="$ac_save_CC $ac_arg"
4414 if ac_fn_c_try_compile "$LINENO"
4415 then :
4416 ac_cv_prog_cc_c99=$ac_arg
4417 fi
4418 rm -f core conftest.err conftest.$ac_objext conftest.beam
4419 test "x$ac_cv_prog_cc_c99" != "xno" && break
4420 done
4421 rm -f conftest.$ac_ext
4422 CC=$ac_save_CC
4423 fi
4424
4425 if test "x$ac_cv_prog_cc_c99" = xno
4426 then :
4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4428 printf "%s\n" "unsupported" >&6; }
4429 else $as_nop
4430 if test "x$ac_cv_prog_cc_c99" = x
4431 then :
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4433 printf "%s\n" "none needed" >&6; }
4434 else $as_nop
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4436 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4437 CC="$CC $ac_cv_prog_cc_c99"
4438 fi
4439 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4440 ac_prog_cc_stdc=c99
4441 fi
4442 fi
4443 if test x$ac_prog_cc_stdc = xno
4444 then :
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4446 printf %s "checking for $CC option to enable C89 features... " >&6; }
4447 if test ${ac_cv_prog_cc_c89+y}
4448 then :
4449 printf %s "(cached) " >&6
4450 else $as_nop
4451 ac_cv_prog_cc_c89=no
4452 ac_save_CC=$CC
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 $ac_c_conftest_c89_program
4456 _ACEOF
4457 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4458 do
4459 CC="$ac_save_CC $ac_arg"
4460 if ac_fn_c_try_compile "$LINENO"
4461 then :
4462 ac_cv_prog_cc_c89=$ac_arg
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext conftest.beam
4465 test "x$ac_cv_prog_cc_c89" != "xno" && break
4466 done
4467 rm -f conftest.$ac_ext
4468 CC=$ac_save_CC
4469 fi
4470
4471 if test "x$ac_cv_prog_cc_c89" = xno
4472 then :
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4474 printf "%s\n" "unsupported" >&6; }
4475 else $as_nop
4476 if test "x$ac_cv_prog_cc_c89" = x
4477 then :
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4479 printf "%s\n" "none needed" >&6; }
4480 else $as_nop
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4482 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4483 CC="$CC $ac_cv_prog_cc_c89"
4484 fi
4485 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4486 ac_prog_cc_stdc=c89
4487 fi
4488 fi
4489
4490 ac_ext=c
4491 ac_cpp='$CPP $CPPFLAGS'
4492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4495
4496
4497 ac_ext=c
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4503 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4504 if test ${am_cv_prog_cc_c_o+y}
4505 then :
4506 printf %s "(cached) " >&6
4507 else $as_nop
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510
4511 int
4512 main (void)
4513 {
4514
4515 ;
4516 return 0;
4517 }
4518 _ACEOF
4519 # Make sure it works both with $CC and with simple cc.
4520 # Following AC_PROG_CC_C_O, we do the test twice because some
4521 # compilers refuse to overwrite an existing .o file with -o,
4522 # though they will create one.
4523 am_cv_prog_cc_c_o=yes
4524 for am_i in 1 2; do
4525 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4526 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } \
4530 && test -f conftest2.$ac_objext; then
4531 : OK
4532 else
4533 am_cv_prog_cc_c_o=no
4534 break
4535 fi
4536 done
4537 rm -f core conftest*
4538 unset am_i
4539 fi
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4541 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4542 if test "$am_cv_prog_cc_c_o" != yes; then
4543 # Losing compiler, so override with the script.
4544 # FIXME: It is wrong to rewrite CC.
4545 # But if we don't then we get into trouble of one sort or another.
4546 # A longer-term fix would be to have automake use am__CC in this case,
4547 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4548 CC="$am_aux_dir/compile $CC"
4549 fi
4550 ac_ext=c
4551 ac_cpp='$CPP $CPPFLAGS'
4552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555
4556 DEPDIR="${am__leading_dot}deps"
4557
4558 ac_config_commands="$ac_config_commands depfiles"
4559
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4561 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4562 cat > confinc.mk << 'END'
4563 am__doit:
4564 @echo this is the am__doit target >confinc.out
4565 .PHONY: am__doit
4566 END
4567 am__include="#"
4568 am__quote=
4569 # BSD make does it like this.
4570 echo '.include "confinc.mk" # ignored' > confmf.BSD
4571 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4572 echo 'include confinc.mk # ignored' > confmf.GNU
4573 _am_result=no
4574 for s in GNU BSD; do
4575 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4576 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }
4580 case $?:`cat confinc.out 2>/dev/null` in #(
4581 '0:this is the am__doit target') :
4582 case $s in #(
4583 BSD) :
4584 am__include='.include' am__quote='"' ;; #(
4585 *) :
4586 am__include='include' am__quote='' ;;
4587 esac ;; #(
4588 *) :
4589 ;;
4590 esac
4591 if test "$am__include" != "#"; then
4592 _am_result="yes ($s style)"
4593 break
4594 fi
4595 done
4596 rm -f confinc.* confmf.*
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4598 printf "%s\n" "${_am_result}" >&6; }
4599
4600 # Check whether --enable-dependency-tracking was given.
4601 if test ${enable_dependency_tracking+y}
4602 then :
4603 enableval=$enable_dependency_tracking;
4604 fi
4605
4606 if test "x$enable_dependency_tracking" != xno; then
4607 am_depcomp="$ac_aux_dir/depcomp"
4608 AMDEPBACKSLASH='\'
4609 am__nodep='_no'
4610 fi
4611 if test "x$enable_dependency_tracking" != xno; then
4612 AMDEP_TRUE=
4613 AMDEP_FALSE='#'
4614 else
4615 AMDEP_TRUE='#'
4616 AMDEP_FALSE=
4617 fi
4618
4619
4620
4621 depcc="$CC" am_compiler_list=
4622
4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4624 printf %s "checking dependency style of $depcc... " >&6; }
4625 if test ${am_cv_CC_dependencies_compiler_type+y}
4626 then :
4627 printf %s "(cached) " >&6
4628 else $as_nop
4629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4630 # We make a subdir and do the tests there. Otherwise we can end up
4631 # making bogus files that we don't know about and never remove. For
4632 # instance it was reported that on HP-UX the gcc test will end up
4633 # making a dummy file named 'D' -- because '-MD' means "put the output
4634 # in D".
4635 rm -rf conftest.dir
4636 mkdir conftest.dir
4637 # Copy depcomp to subdir because otherwise we won't find it if we're
4638 # using a relative directory.
4639 cp "$am_depcomp" conftest.dir
4640 cd conftest.dir
4641 # We will build objects and dependencies in a subdirectory because
4642 # it helps to detect inapplicable dependency modes. For instance
4643 # both Tru64's cc and ICC support -MD to output dependencies as a
4644 # side effect of compilation, but ICC will put the dependencies in
4645 # the current directory while Tru64 will put them in the object
4646 # directory.
4647 mkdir sub
4648
4649 am_cv_CC_dependencies_compiler_type=none
4650 if test "$am_compiler_list" = ""; then
4651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4652 fi
4653 am__universal=false
4654 case " $depcc " in #(
4655 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4656 esac
4657
4658 for depmode in $am_compiler_list; do
4659 # Setup a source with many dependencies, because some compilers
4660 # like to wrap large dependency lists on column 80 (with \), and
4661 # we should not choose a depcomp mode which is confused by this.
4662 #
4663 # We need to recreate these files for each test, as the compiler may
4664 # overwrite some of them when testing with obscure command lines.
4665 # This happens at least with the AIX C compiler.
4666 : > sub/conftest.c
4667 for i in 1 2 3 4 5 6; do
4668 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4669 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4670 # Solaris 10 /bin/sh.
4671 echo '/* dummy */' > sub/conftst$i.h
4672 done
4673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4674
4675 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4676 # mode. It turns out that the SunPro C++ compiler does not properly
4677 # handle '-M -o', and we need to detect this. Also, some Intel
4678 # versions had trouble with output in subdirs.
4679 am__obj=sub/conftest.${OBJEXT-o}
4680 am__minus_obj="-o $am__obj"
4681 case $depmode in
4682 gcc)
4683 # This depmode causes a compiler race in universal mode.
4684 test "$am__universal" = false || continue
4685 ;;
4686 nosideeffect)
4687 # After this tag, mechanisms are not by side-effect, so they'll
4688 # only be used when explicitly requested.
4689 if test "x$enable_dependency_tracking" = xyes; then
4690 continue
4691 else
4692 break
4693 fi
4694 ;;
4695 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4696 # This compiler won't grok '-c -o', but also, the minuso test has
4697 # not run yet. These depmodes are late enough in the game, and
4698 # so weak that their functioning should not be impacted.
4699 am__obj=conftest.${OBJEXT-o}
4700 am__minus_obj=
4701 ;;
4702 none) break ;;
4703 esac
4704 if depmode=$depmode \
4705 source=sub/conftest.c object=$am__obj \
4706 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4707 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4708 >/dev/null 2>conftest.err &&
4709 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4711 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4713 # icc doesn't choke on unknown options, it will just issue warnings
4714 # or remarks (even with -Werror). So we grep stderr for any message
4715 # that says an option was ignored or not supported.
4716 # When given -MP, icc 7.0 and 7.1 complain thusly:
4717 # icc: Command line warning: ignoring option '-M'; no argument required
4718 # The diagnosis changed in icc 8.0:
4719 # icc: Command line remark: option '-MP' not supported
4720 if (grep 'ignoring option' conftest.err ||
4721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4722 am_cv_CC_dependencies_compiler_type=$depmode
4723 break
4724 fi
4725 fi
4726 done
4727
4728 cd ..
4729 rm -rf conftest.dir
4730 else
4731 am_cv_CC_dependencies_compiler_type=none
4732 fi
4733
4734 fi
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4736 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4737 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4738
4739 if
4740 test "x$enable_dependency_tracking" != xno \
4741 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4742 am__fastdepCC_TRUE=
4743 am__fastdepCC_FALSE='#'
4744 else
4745 am__fastdepCC_TRUE='#'
4746 am__fastdepCC_FALSE=
4747 fi
4748
4749
4750
4751
4752 if test -n "$ac_tool_prefix"; then
4753 for ac_prog in ar lib "link -lib"
4754 do
4755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 printf %s "checking for $ac_word... " >&6; }
4759 if test ${ac_cv_prog_AR+y}
4760 then :
4761 printf %s "(cached) " >&6
4762 else $as_nop
4763 if test -n "$AR"; then
4764 ac_cv_prog_AR="$AR" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769 IFS=$as_save_IFS
4770 case $as_dir in #(((
4771 '') as_dir=./ ;;
4772 */) ;;
4773 *) as_dir=$as_dir/ ;;
4774 esac
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785 fi
4786 fi
4787 AR=$ac_cv_prog_AR
4788 if test -n "$AR"; then
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4790 printf "%s\n" "$AR" >&6; }
4791 else
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 printf "%s\n" "no" >&6; }
4794 fi
4795
4796
4797 test -n "$AR" && break
4798 done
4799 fi
4800 if test -z "$AR"; then
4801 ac_ct_AR=$AR
4802 for ac_prog in ar lib "link -lib"
4803 do
4804 # Extract the first word of "$ac_prog", so it can be a program name with args.
4805 set dummy $ac_prog; ac_word=$2
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 printf %s "checking for $ac_word... " >&6; }
4808 if test ${ac_cv_prog_ac_ct_AR+y}
4809 then :
4810 printf %s "(cached) " >&6
4811 else $as_nop
4812 if test -n "$ac_ct_AR"; then
4813 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4817 do
4818 IFS=$as_save_IFS
4819 case $as_dir in #(((
4820 '') as_dir=./ ;;
4821 */) ;;
4822 *) as_dir=$as_dir/ ;;
4823 esac
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4826 ac_cv_prog_ac_ct_AR="$ac_prog"
4827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 fi
4835 fi
4836 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4837 if test -n "$ac_ct_AR"; then
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4839 printf "%s\n" "$ac_ct_AR" >&6; }
4840 else
4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 printf "%s\n" "no" >&6; }
4843 fi
4844
4845
4846 test -n "$ac_ct_AR" && break
4847 done
4848
4849 if test "x$ac_ct_AR" = x; then
4850 AR="false"
4851 else
4852 case $cross_compiling:$ac_tool_warned in
4853 yes:)
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856 ac_tool_warned=yes ;;
4857 esac
4858 AR=$ac_ct_AR
4859 fi
4860 fi
4861
4862 : ${AR=ar}
4863
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4865 printf %s "checking the archiver ($AR) interface... " >&6; }
4866 if test ${am_cv_ar_interface+y}
4867 then :
4868 printf %s "(cached) " >&6
4869 else $as_nop
4870 ac_ext=c
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
4876 am_cv_ar_interface=ar
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 int some_variable = 0;
4880 _ACEOF
4881 if ac_fn_c_try_compile "$LINENO"
4882 then :
4883 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4885 (eval $am_ar_try) 2>&5
4886 ac_status=$?
4887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4888 test $ac_status = 0; }
4889 if test "$ac_status" -eq 0; then
4890 am_cv_ar_interface=ar
4891 else
4892 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4894 (eval $am_ar_try) 2>&5
4895 ac_status=$?
4896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4897 test $ac_status = 0; }
4898 if test "$ac_status" -eq 0; then
4899 am_cv_ar_interface=lib
4900 else
4901 am_cv_ar_interface=unknown
4902 fi
4903 fi
4904 rm -f conftest.lib libconftest.a
4905
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4908 ac_ext=c
4909 ac_cpp='$CPP $CPPFLAGS'
4910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913
4914 fi
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4916 printf "%s\n" "$am_cv_ar_interface" >&6; }
4917
4918 case $am_cv_ar_interface in
4919 ar)
4920 ;;
4921 lib)
4922 # Microsoft lib, so override with the ar-lib wrapper script.
4923 # FIXME: It is wrong to rewrite AR.
4924 # But if we don't then we get into trouble of one sort or another.
4925 # A longer-term fix would be to have automake use am__AR in this case,
4926 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4927 # similar.
4928 AR="$am_aux_dir/ar-lib $AR"
4929 ;;
4930 unknown)
4931 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4932 ;;
4933 esac
4934
4935
4936 if test -n "$ac_tool_prefix"; then
4937 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4938 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 printf %s "checking for $ac_word... " >&6; }
4941 if test ${ac_cv_prog_RANLIB+y}
4942 then :
4943 printf %s "(cached) " >&6
4944 else $as_nop
4945 if test -n "$RANLIB"; then
4946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951 IFS=$as_save_IFS
4952 case $as_dir in #(((
4953 '') as_dir=./ ;;
4954 */) ;;
4955 *) as_dir=$as_dir/ ;;
4956 esac
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 RANLIB=$ac_cv_prog_RANLIB
4970 if test -n "$RANLIB"; then
4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4972 printf "%s\n" "$RANLIB" >&6; }
4973 else
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 printf "%s\n" "no" >&6; }
4976 fi
4977
4978
4979 fi
4980 if test -z "$ac_cv_prog_RANLIB"; then
4981 ac_ct_RANLIB=$RANLIB
4982 # Extract the first word of "ranlib", so it can be a program name with args.
4983 set dummy ranlib; ac_word=$2
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 printf %s "checking for $ac_word... " >&6; }
4986 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4987 then :
4988 printf %s "(cached) " >&6
4989 else $as_nop
4990 if test -n "$ac_ct_RANLIB"; then
4991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996 IFS=$as_save_IFS
4997 case $as_dir in #(((
4998 '') as_dir=./ ;;
4999 */) ;;
5000 *) as_dir=$as_dir/ ;;
5001 esac
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_ac_ct_RANLIB="ranlib"
5005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5006 break 2
5007 fi
5008 done
5009 done
5010 IFS=$as_save_IFS
5011
5012 fi
5013 fi
5014 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5015 if test -n "$ac_ct_RANLIB"; then
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5017 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5018 else
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 printf "%s\n" "no" >&6; }
5021 fi
5022
5023 if test "x$ac_ct_RANLIB" = x; then
5024 RANLIB=":"
5025 else
5026 case $cross_compiling:$ac_tool_warned in
5027 yes:)
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5029 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5030 ac_tool_warned=yes ;;
5031 esac
5032 RANLIB=$ac_ct_RANLIB
5033 fi
5034 else
5035 RANLIB="$ac_cv_prog_RANLIB"
5036 fi
5037
5038
5039 # Checks for header files.
5040 ac_header= ac_cache=
5041 for ac_item in $ac_header_c_list
5042 do
5043 if test $ac_cache; then
5044 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5045 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5046 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5047 fi
5048 ac_header= ac_cache=
5049 elif test $ac_header; then
5050 ac_cache=$ac_item
5051 else
5052 ac_header=$ac_item
5053 fi
5054 done
5055
5056
5057
5058
5059
5060
5061
5062
5063 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5064 then :
5065
5066 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5067
5068 fi
5069 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
5070 if test "x$ac_cv_header_getopt_h" = xyes
5071 then :
5072 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
5073
5074 fi
5075 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5076 if test "x$ac_cv_header_inttypes_h" = xyes
5077 then :
5078 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
5079
5080 fi
5081 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5082 if test "x$ac_cv_header_strings_h" = xyes
5083 then :
5084 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
5085
5086 fi
5087
5088
5089 # Checks for typedefs, structures, and compiler characteristics.
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5091 printf %s "checking for an ANSI C-conforming const... " >&6; }
5092 if test ${ac_cv_c_const+y}
5093 then :
5094 printf %s "(cached) " >&6
5095 else $as_nop
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098
5099 int
5100 main (void)
5101 {
5102
5103 #ifndef __cplusplus
5104 /* Ultrix mips cc rejects this sort of thing. */
5105 typedef int charset[2];
5106 const charset cs = { 0, 0 };
5107 /* SunOS 4.1.1 cc rejects this. */
5108 char const *const *pcpcc;
5109 char **ppc;
5110 /* NEC SVR4.0.2 mips cc rejects this. */
5111 struct point {int x, y;};
5112 static struct point const zero = {0,0};
5113 /* IBM XL C 1.02.0.0 rejects this.
5114 It does not let you subtract one const X* pointer from another in
5115 an arm of an if-expression whose if-part is not a constant
5116 expression */
5117 const char *g = "string";
5118 pcpcc = &g + (g ? g-g : 0);
5119 /* HPUX 7.0 cc rejects these. */
5120 ++pcpcc;
5121 ppc = (char**) pcpcc;
5122 pcpcc = (char const *const *) ppc;
5123 { /* SCO 3.2v4 cc rejects this sort of thing. */
5124 char tx;
5125 char *t = &tx;
5126 char const *s = 0 ? (char *) 0 : (char const *) 0;
5127
5128 *t++ = 0;
5129 if (s) return 0;
5130 }
5131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5132 int x[] = {25, 17};
5133 const int *foo = &x[0];
5134 ++foo;
5135 }
5136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5137 typedef const int *iptr;
5138 iptr p = 0;
5139 ++p;
5140 }
5141 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
5142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5143 struct s { int j; const int *ap[3]; } bx;
5144 struct s *b = &bx; b->j = 5;
5145 }
5146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5147 const int foo = 10;
5148 if (!foo) return 0;
5149 }
5150 return !cs[0] && !zero.x;
5151 #endif
5152
5153 ;
5154 return 0;
5155 }
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"
5158 then :
5159 ac_cv_c_const=yes
5160 else $as_nop
5161 ac_cv_c_const=no
5162 fi
5163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5164 fi
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5166 printf "%s\n" "$ac_cv_c_const" >&6; }
5167 if test $ac_cv_c_const = no; then
5168
5169 printf "%s\n" "#define const /**/" >>confdefs.h
5170
5171 fi
5172
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5174 printf %s "checking for inline... " >&6; }
5175 if test ${ac_cv_c_inline+y}
5176 then :
5177 printf %s "(cached) " >&6
5178 else $as_nop
5179 ac_cv_c_inline=no
5180 for ac_kw in inline __inline__ __inline; do
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #ifndef __cplusplus
5184 typedef int foo_t;
5185 static $ac_kw foo_t static_foo (void) {return 0; }
5186 $ac_kw foo_t foo (void) {return 0; }
5187 #endif
5188
5189 _ACEOF
5190 if ac_fn_c_try_compile "$LINENO"
5191 then :
5192 ac_cv_c_inline=$ac_kw
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5195 test "$ac_cv_c_inline" != no && break
5196 done
5197
5198 fi
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5200 printf "%s\n" "$ac_cv_c_inline" >&6; }
5201
5202 case $ac_cv_c_inline in
5203 inline | yes) ;;
5204 *)
5205 case $ac_cv_c_inline in
5206 no) ac_val=;;
5207 *) ac_val=$ac_cv_c_inline;;
5208 esac
5209 cat >>confdefs.h <<_ACEOF
5210 #ifndef __cplusplus
5211 #define inline $ac_val
5212 #endif
5213 _ACEOF
5214 ;;
5215 esac
5216
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5218 printf %s "checking whether byte ordering is bigendian... " >&6; }
5219 if test ${ac_cv_c_bigendian+y}
5220 then :
5221 printf %s "(cached) " >&6
5222 else $as_nop
5223 ac_cv_c_bigendian=unknown
5224 # See if we're dealing with a universal compiler.
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227 #ifndef __APPLE_CC__
5228 not a universal capable compiler
5229 #endif
5230 typedef int dummy;
5231
5232 _ACEOF
5233 if ac_fn_c_try_compile "$LINENO"
5234 then :
5235
5236 # Check for potential -arch flags. It is not universal unless
5237 # there are at least two -arch flags with different values.
5238 ac_arch=
5239 ac_prev=
5240 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5241 if test -n "$ac_prev"; then
5242 case $ac_word in
5243 i?86 | x86_64 | ppc | ppc64)
5244 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5245 ac_arch=$ac_word
5246 else
5247 ac_cv_c_bigendian=universal
5248 break
5249 fi
5250 ;;
5251 esac
5252 ac_prev=
5253 elif test "x$ac_word" = "x-arch"; then
5254 ac_prev=arch
5255 fi
5256 done
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5259 if test $ac_cv_c_bigendian = unknown; then
5260 # See if sys/param.h defines the BYTE_ORDER macro.
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <sys/types.h>
5264 #include <sys/param.h>
5265
5266 int
5267 main (void)
5268 {
5269 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5270 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5271 && LITTLE_ENDIAN)
5272 bogus endian macros
5273 #endif
5274
5275 ;
5276 return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"
5280 then :
5281 # It does; now see whether it defined to BIG_ENDIAN or not.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #include <sys/types.h>
5285 #include <sys/param.h>
5286
5287 int
5288 main (void)
5289 {
5290 #if BYTE_ORDER != BIG_ENDIAN
5291 not big endian
5292 #endif
5293
5294 ;
5295 return 0;
5296 }
5297 _ACEOF
5298 if ac_fn_c_try_compile "$LINENO"
5299 then :
5300 ac_cv_c_bigendian=yes
5301 else $as_nop
5302 ac_cv_c_bigendian=no
5303 fi
5304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5307 fi
5308 if test $ac_cv_c_bigendian = unknown; then
5309 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5312 #include <limits.h>
5313
5314 int
5315 main (void)
5316 {
5317 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5318 bogus endian macros
5319 #endif
5320
5321 ;
5322 return 0;
5323 }
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"
5326 then :
5327 # It does; now see whether it defined to _BIG_ENDIAN or not.
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 #include <limits.h>
5331
5332 int
5333 main (void)
5334 {
5335 #ifndef _BIG_ENDIAN
5336 not big endian
5337 #endif
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"
5344 then :
5345 ac_cv_c_bigendian=yes
5346 else $as_nop
5347 ac_cv_c_bigendian=no
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5350 fi
5351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5352 fi
5353 if test $ac_cv_c_bigendian = unknown; then
5354 # Compile a test program.
5355 if test "$cross_compiling" = yes
5356 then :
5357 # Try to guess by grepping values from an object file.
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360 unsigned short int ascii_mm[] =
5361 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5362 unsigned short int ascii_ii[] =
5363 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5364 int use_ascii (int i) {
5365 return ascii_mm[i] + ascii_ii[i];
5366 }
5367 unsigned short int ebcdic_ii[] =
5368 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5369 unsigned short int ebcdic_mm[] =
5370 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5371 int use_ebcdic (int i) {
5372 return ebcdic_mm[i] + ebcdic_ii[i];
5373 }
5374 extern int foo;
5375
5376 int
5377 main (void)
5378 {
5379 return use_ascii (foo) == use_ebcdic (foo);
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 if ac_fn_c_try_compile "$LINENO"
5385 then :
5386 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5387 ac_cv_c_bigendian=yes
5388 fi
5389 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5390 if test "$ac_cv_c_bigendian" = unknown; then
5391 ac_cv_c_bigendian=no
5392 else
5393 # finding both strings is unlikely to happen, but who knows?
5394 ac_cv_c_bigendian=unknown
5395 fi
5396 fi
5397 fi
5398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5399 else $as_nop
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 $ac_includes_default
5403 int
5404 main (void)
5405 {
5406
5407 /* Are we little or big endian? From Harbison&Steele. */
5408 union
5409 {
5410 long int l;
5411 char c[sizeof (long int)];
5412 } u;
5413 u.l = 1;
5414 return u.c[sizeof (long int) - 1] == 1;
5415
5416 ;
5417 return 0;
5418 }
5419 _ACEOF
5420 if ac_fn_c_try_run "$LINENO"
5421 then :
5422 ac_cv_c_bigendian=no
5423 else $as_nop
5424 ac_cv_c_bigendian=yes
5425 fi
5426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5427 conftest.$ac_objext conftest.beam conftest.$ac_ext
5428 fi
5429
5430 fi
5431 fi
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5433 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5434 case $ac_cv_c_bigendian in #(
5435 yes)
5436 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5437 ;; #(
5438 no)
5439 ;; #(
5440 universal)
5441
5442 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5443
5444 ;; #(
5445 *)
5446 as_fn_error $? "unknown endianness
5447 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5448 esac
5449
5450 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5451 if test "x$ac_cv_type_mode_t" = xyes
5452 then :
5453
5454 else $as_nop
5455
5456 printf "%s\n" "#define mode_t int" >>confdefs.h
5457
5458 fi
5459
5460 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5461 if test "x$ac_cv_type_off_t" = xyes
5462 then :
5463
5464 else $as_nop
5465
5466 printf "%s\n" "#define off_t long int" >>confdefs.h
5467
5468 fi
5469
5470 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5471 if test "x$ac_cv_type_size_t" = xyes
5472 then :
5473
5474 else $as_nop
5475
5476 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
5477
5478 fi
5479
5480 # Check whether --enable-largefile was given.
5481 if test ${enable_largefile+y}
5482 then :
5483 enableval=$enable_largefile;
5484 fi
5485
5486 if test "$enable_largefile" != no; then
5487
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5489 printf %s "checking for special C compiler options needed for large files... " >&6; }
5490 if test ${ac_cv_sys_largefile_CC+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else $as_nop
5494 ac_cv_sys_largefile_CC=no
5495 if test "$GCC" != yes; then
5496 ac_save_CC=$CC
5497 while :; do
5498 # IRIX 6.2 and later do not support large files by default,
5499 # so use the C compiler's -n32 option if that helps.
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 #include <sys/types.h>
5503 /* Check that off_t can represent 2**63 - 1 correctly.
5504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5505 since some C++ compilers masquerading as C compilers
5506 incorrectly reject 9223372036854775807. */
5507 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5509 && LARGE_OFF_T % 2147483647 == 1)
5510 ? 1 : -1];
5511 int
5512 main (void)
5513 {
5514
5515 ;
5516 return 0;
5517 }
5518 _ACEOF
5519 if ac_fn_c_try_compile "$LINENO"
5520 then :
5521 break
5522 fi
5523 rm -f core conftest.err conftest.$ac_objext conftest.beam
5524 CC="$CC -n32"
5525 if ac_fn_c_try_compile "$LINENO"
5526 then :
5527 ac_cv_sys_largefile_CC=' -n32'; break
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.beam
5530 break
5531 done
5532 CC=$ac_save_CC
5533 rm -f conftest.$ac_ext
5534 fi
5535 fi
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5537 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5538 if test "$ac_cv_sys_largefile_CC" != no; then
5539 CC=$CC$ac_cv_sys_largefile_CC
5540 fi
5541
5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5543 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5544 if test ${ac_cv_sys_file_offset_bits+y}
5545 then :
5546 printf %s "(cached) " >&6
5547 else $as_nop
5548 while :; do
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <sys/types.h>
5552 /* Check that off_t can represent 2**63 - 1 correctly.
5553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5554 since some C++ compilers masquerading as C compilers
5555 incorrectly reject 9223372036854775807. */
5556 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5558 && LARGE_OFF_T % 2147483647 == 1)
5559 ? 1 : -1];
5560 int
5561 main (void)
5562 {
5563
5564 ;
5565 return 0;
5566 }
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"
5569 then :
5570 ac_cv_sys_file_offset_bits=no; break
5571 fi
5572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #define _FILE_OFFSET_BITS 64
5576 #include <sys/types.h>
5577 /* Check that off_t can represent 2**63 - 1 correctly.
5578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5579 since some C++ compilers masquerading as C compilers
5580 incorrectly reject 9223372036854775807. */
5581 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5583 && LARGE_OFF_T % 2147483647 == 1)
5584 ? 1 : -1];
5585 int
5586 main (void)
5587 {
5588
5589 ;
5590 return 0;
5591 }
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"
5594 then :
5595 ac_cv_sys_file_offset_bits=64; break
5596 fi
5597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5598 ac_cv_sys_file_offset_bits=unknown
5599 break
5600 done
5601 fi
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5603 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5604 case $ac_cv_sys_file_offset_bits in #(
5605 no | unknown) ;;
5606 *)
5607 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5608 ;;
5609 esac
5610 rm -rf conftest*
5611 if test $ac_cv_sys_file_offset_bits = unknown; then
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5613 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5614 if test ${ac_cv_sys_large_files+y}
5615 then :
5616 printf %s "(cached) " >&6
5617 else $as_nop
5618 while :; do
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5629 ? 1 : -1];
5630 int
5631 main (void)
5632 {
5633
5634 ;
5635 return 0;
5636 }
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"
5639 then :
5640 ac_cv_sys_large_files=no; break
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #define _LARGE_FILES 1
5646 #include <sys/types.h>
5647 /* Check that off_t can represent 2**63 - 1 correctly.
5648 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5649 since some C++ compilers masquerading as C compilers
5650 incorrectly reject 9223372036854775807. */
5651 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5652 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5653 && LARGE_OFF_T % 2147483647 == 1)
5654 ? 1 : -1];
5655 int
5656 main (void)
5657 {
5658
5659 ;
5660 return 0;
5661 }
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"
5664 then :
5665 ac_cv_sys_large_files=1; break
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5668 ac_cv_sys_large_files=unknown
5669 break
5670 done
5671 fi
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5673 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5674 case $ac_cv_sys_large_files in #(
5675 no | unknown) ;;
5676 *)
5677 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5678 ;;
5679 esac
5680 rm -rf conftest*
5681 fi
5682 fi
5683
5684 # The cast to long int works around a bug in the HP C Compiler
5685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5687 # This bug is HP SR number 8606223364.
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
5689 printf %s "checking size of off_t... " >&6; }
5690 if test ${ac_cv_sizeof_off_t+y}
5691 then :
5692 printf %s "(cached) " >&6
5693 else $as_nop
5694 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
5695 then :
5696
5697 else $as_nop
5698 if test "$ac_cv_type_off_t" = yes; then
5699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5700 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5701 as_fn_error 77 "cannot compute sizeof (off_t)
5702 See \`config.log' for more details" "$LINENO" 5; }
5703 else
5704 ac_cv_sizeof_off_t=0
5705 fi
5706 fi
5707
5708 fi
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
5710 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
5711
5712
5713
5714 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
5715
5716
5717
5718 # Checks for library functions.
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
5720 printf %s "checking for working POSIX fnmatch... " >&6; }
5721 if test ${ac_cv_func_fnmatch_works+y}
5722 then :
5723 printf %s "(cached) " >&6
5724 else $as_nop
5725 # Some versions of Solaris, SCO, and the GNU C Library
5726 # have a broken or incompatible fnmatch.
5727 # So we run a test program. If we are cross-compiling, take no chance.
5728 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
5729 if test "$cross_compiling" = yes
5730 then :
5731 ac_cv_func_fnmatch_works=cross
5732 else $as_nop
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #include <fnmatch.h>
5736 # define y(a, b, c) (fnmatch (a, b, c) == 0)
5737 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
5738
5739 int
5740 main (void)
5741 {
5742 return
5743 (!(y ("a*", "abc", 0)
5744 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
5745 && y ("a\\\\bc", "abc", 0)
5746 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
5747 && y ("*x", ".x", 0)
5748 && n ("*x", ".x", FNM_PERIOD)
5749 && 1));
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_c_try_run "$LINENO"
5755 then :
5756 ac_cv_func_fnmatch_works=yes
5757 else $as_nop
5758 ac_cv_func_fnmatch_works=no
5759 fi
5760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5761 conftest.$ac_objext conftest.beam conftest.$ac_ext
5762 fi
5763
5764 fi
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
5766 printf "%s\n" "$ac_cv_func_fnmatch_works" >&6; }
5767 if test $ac_cv_func_fnmatch_works = yes
5768 then :
5769
5770 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
5771
5772 fi
5773
5774
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5776 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5777 if test ${ac_cv_sys_largefile_source+y}
5778 then :
5779 printf %s "(cached) " >&6
5780 else $as_nop
5781 while :; do
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 #include <sys/types.h> /* for off_t */
5785 #include <stdio.h>
5786 int
5787 main (void)
5788 {
5789 int (*fp) (FILE *, off_t, int) = fseeko;
5790 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5791 ;
5792 return 0;
5793 }
5794 _ACEOF
5795 if ac_fn_c_try_link "$LINENO"
5796 then :
5797 ac_cv_sys_largefile_source=no; break
5798 fi
5799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5800 conftest$ac_exeext conftest.$ac_ext
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803 #define _LARGEFILE_SOURCE 1
5804 #include <sys/types.h> /* for off_t */
5805 #include <stdio.h>
5806 int
5807 main (void)
5808 {
5809 int (*fp) (FILE *, off_t, int) = fseeko;
5810 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 if ac_fn_c_try_link "$LINENO"
5816 then :
5817 ac_cv_sys_largefile_source=1; break
5818 fi
5819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5820 conftest$ac_exeext conftest.$ac_ext
5821 ac_cv_sys_largefile_source=unknown
5822 break
5823 done
5824 fi
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
5826 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
5827 case $ac_cv_sys_largefile_source in #(
5828 no | unknown) ;;
5829 *)
5830 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
5831 ;;
5832 esac
5833 rm -rf conftest*
5834
5835 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5836 # in glibc 2.1.3, but that breaks too many other things.
5837 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5838 if test $ac_cv_sys_largefile_source != unknown; then
5839
5840 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
5841
5842 fi
5843
5844 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
5845 if test "x$ac_cv_func_mkdir" = xyes
5846 then :
5847 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
5848
5849 fi
5850 ac_fn_c_check_func "$LINENO" "_mkdir" "ac_cv_func__mkdir"
5851 if test "x$ac_cv_func__mkdir" = xyes
5852 then :
5853 printf "%s\n" "#define HAVE__MKDIR 1" >>confdefs.h
5854
5855 fi
5856
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes one argument" >&5
5858 printf %s "checking whether mkdir takes one argument... " >&6; }
5859 if test ${ac_cv_mkdir_takes_one_arg+y}
5860 then :
5861 printf %s "(cached) " >&6
5862 else $as_nop
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5865
5866 #include <sys/stat.h>
5867 #if HAVE_UNISTD_H
5868 # include <unistd.h>
5869 #endif
5870
5871 int
5872 main (void)
5873 {
5874 mkdir (".");
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_c_try_compile "$LINENO"
5880 then :
5881 ac_cv_mkdir_takes_one_arg=yes
5882 else $as_nop
5883 ac_cv_mkdir_takes_one_arg=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5886 fi
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_takes_one_arg" >&5
5888 printf "%s\n" "$ac_cv_mkdir_takes_one_arg" >&6; }
5889 if test x"$ac_cv_mkdir_takes_one_arg" = xyes; then
5890
5891 printf "%s\n" "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
5892
5893 fi
5894
5895 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
5896 if test "x$ac_cv_func_towlower" = xyes
5897 then :
5898 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h
5899
5900 fi
5901 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
5902 if test "x$ac_cv_func_umask" = xyes
5903 then :
5904 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
5905
5906 fi
5907 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
5908 if test "x$ac_cv_func_utime" = xyes
5909 then :
5910 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
5911
5912 fi
5913 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
5914 if test "x$ac_cv_func_utimes" = xyes
5915 then :
5916 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
5917
5918 fi
5919
5920
5921 for ac_func in getopt_long
5922 do :
5923 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5924 if test "x$ac_cv_func_getopt_long" = xyes
5925 then :
5926 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
5927
5928 else $as_nop
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
5930 printf %s "checking for getopt_long in -lgnugetopt... " >&6; }
5931 if test ${ac_cv_lib_gnugetopt_getopt_long+y}
5932 then :
5933 printf %s "(cached) " >&6
5934 else $as_nop
5935 ac_check_lib_save_LIBS=$LIBS
5936 LIBS="-lgnugetopt $LIBS"
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939
5940 /* Override any GCC internal prototype to avoid an error.
5941 Use char because int might match the return type of a GCC
5942 builtin and then its argument prototype would still apply. */
5943 char getopt_long ();
5944 int
5945 main (void)
5946 {
5947 return getopt_long ();
5948 ;
5949 return 0;
5950 }
5951 _ACEOF
5952 if ac_fn_c_try_link "$LINENO"
5953 then :
5954 ac_cv_lib_gnugetopt_getopt_long=yes
5955 else $as_nop
5956 ac_cv_lib_gnugetopt_getopt_long=no
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5959 conftest$ac_exeext conftest.$ac_ext
5960 LIBS=$ac_check_lib_save_LIBS
5961 fi
5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5963 printf "%s\n" "$ac_cv_lib_gnugetopt_getopt_long" >&6; }
5964 if test "x$ac_cv_lib_gnugetopt_getopt_long" = xyes
5965 then :
5966 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
5967
5968 else $as_nop
5969 case " $LIBOBJS " in
5970 *" getopt.$ac_objext "* ) ;;
5971 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
5972 ;;
5973 esac
5974 case " $LIBOBJS " in
5975 *" getopt1.$ac_objext "* ) ;;
5976 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
5977 ;;
5978 esac
5979
5980 fi
5981
5982 fi
5983
5984 done
5985 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5986 # for constant arguments. Useless!
5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5988 printf %s "checking for working alloca.h... " >&6; }
5989 if test ${ac_cv_working_alloca_h+y}
5990 then :
5991 printf %s "(cached) " >&6
5992 else $as_nop
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #include <alloca.h>
5996 int
5997 main (void)
5998 {
5999 char *p = (char *) alloca (2 * sizeof (int));
6000 if (p) return 0;
6001 ;
6002 return 0;
6003 }
6004 _ACEOF
6005 if ac_fn_c_try_link "$LINENO"
6006 then :
6007 ac_cv_working_alloca_h=yes
6008 else $as_nop
6009 ac_cv_working_alloca_h=no
6010 fi
6011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6012 conftest$ac_exeext conftest.$ac_ext
6013 fi
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6015 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
6016 if test $ac_cv_working_alloca_h = yes; then
6017
6018 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
6019
6020 fi
6021
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6023 printf %s "checking for alloca... " >&6; }
6024 if test ${ac_cv_func_alloca_works+y}
6025 then :
6026 printf %s "(cached) " >&6
6027 else $as_nop
6028 if test $ac_cv_working_alloca_h = yes; then
6029 ac_cv_func_alloca_works=yes
6030 else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 #include <stdlib.h>
6034 #include <stddef.h>
6035 #ifndef alloca
6036 # ifdef __GNUC__
6037 # define alloca __builtin_alloca
6038 # elif defined _MSC_VER
6039 # include <malloc.h>
6040 # define alloca _alloca
6041 # else
6042 # ifdef __cplusplus
6043 extern "C"
6044 # endif
6045 void *alloca (size_t);
6046 # endif
6047 #endif
6048
6049 int
6050 main (void)
6051 {
6052 char *p = (char *) alloca (1);
6053 if (p) return 0;
6054 ;
6055 return 0;
6056 }
6057 _ACEOF
6058 if ac_fn_c_try_link "$LINENO"
6059 then :
6060 ac_cv_func_alloca_works=yes
6061 else $as_nop
6062 ac_cv_func_alloca_works=no
6063 fi
6064 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6065 conftest$ac_exeext conftest.$ac_ext
6066 fi
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6068 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
6069 fi
6070
6071 if test $ac_cv_func_alloca_works = yes; then
6072
6073 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
6074
6075 else
6076 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6077 # that cause trouble. Some versions do not even contain alloca or
6078 # contain a buggy version. If you still want to use their alloca,
6079 # use ar to extract alloca.o from them instead of compiling alloca.c.
6080
6081 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6082
6083 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
6084
6085
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6087 printf %s "checking stack direction for C alloca... " >&6; }
6088 if test ${ac_cv_c_stack_direction+y}
6089 then :
6090 printf %s "(cached) " >&6
6091 else $as_nop
6092 if test "$cross_compiling" = yes
6093 then :
6094 ac_cv_c_stack_direction=0
6095 else $as_nop
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 $ac_includes_default
6099 int
6100 find_stack_direction (int *addr, int depth)
6101 {
6102 int dir, dummy = 0;
6103 if (! addr)
6104 addr = &dummy;
6105 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6106 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6107 return dir + dummy;
6108 }
6109
6110 int
6111 main (int argc, char **argv)
6112 {
6113 return find_stack_direction (0, argc + !argv + 20) < 0;
6114 }
6115 _ACEOF
6116 if ac_fn_c_try_run "$LINENO"
6117 then :
6118 ac_cv_c_stack_direction=1
6119 else $as_nop
6120 ac_cv_c_stack_direction=-1
6121 fi
6122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6123 conftest.$ac_objext conftest.beam conftest.$ac_ext
6124 fi
6125
6126 fi
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6128 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
6129 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
6130
6131
6132 fi
6133
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6135 printf %s "checking for mbstate_t... " >&6; }
6136 if test ${ac_cv_type_mbstate_t+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else $as_nop
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 $ac_includes_default
6143 # include <wchar.h>
6144 int
6145 main (void)
6146 {
6147 mbstate_t x; return sizeof x;
6148 ;
6149 return 0;
6150 }
6151 _ACEOF
6152 if ac_fn_c_try_compile "$LINENO"
6153 then :
6154 ac_cv_type_mbstate_t=yes
6155 else $as_nop
6156 ac_cv_type_mbstate_t=no
6157 fi
6158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6159 fi
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6161 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
6162 if test $ac_cv_type_mbstate_t = yes; then
6163
6164 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
6165
6166 else
6167
6168 printf "%s\n" "#define mbstate_t int" >>confdefs.h
6169
6170 fi
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
6172 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
6173 if test ${ac_cv_c_undeclared_builtin_options+y}
6174 then :
6175 printf %s "(cached) " >&6
6176 else $as_nop
6177 ac_save_CFLAGS=$CFLAGS
6178 ac_cv_c_undeclared_builtin_options='cannot detect'
6179 for ac_arg in '' -fno-builtin; do
6180 CFLAGS="$ac_save_CFLAGS $ac_arg"
6181 # This test program should *not* compile successfully.
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184
6185 int
6186 main (void)
6187 {
6188 (void) strchr;
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"
6194 then :
6195
6196 else $as_nop
6197 # This test program should compile successfully.
6198 # No library function is consistently available on
6199 # freestanding implementations, so test against a dummy
6200 # declaration. Include always-available headers on the
6201 # off chance that they somehow elicit warnings.
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6204 #include <float.h>
6205 #include <limits.h>
6206 #include <stdarg.h>
6207 #include <stddef.h>
6208 extern void ac_decl (int, char *);
6209
6210 int
6211 main (void)
6212 {
6213 (void) ac_decl (0, (char *) 0);
6214 (void) ac_decl;
6215
6216 ;
6217 return 0;
6218 }
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"
6221 then :
6222 if test x"$ac_arg" = x
6223 then :
6224 ac_cv_c_undeclared_builtin_options='none needed'
6225 else $as_nop
6226 ac_cv_c_undeclared_builtin_options=$ac_arg
6227 fi
6228 break
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6231 fi
6232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6233 done
6234 CFLAGS=$ac_save_CFLAGS
6235
6236 fi
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
6238 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
6239 case $ac_cv_c_undeclared_builtin_options in #(
6240 'cannot detect') :
6241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6242 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6243 as_fn_error $? "cannot make $CC report undeclared builtins
6244 See \`config.log' for more details" "$LINENO" 5; } ;; #(
6245 'none needed') :
6246 ac_c_undeclared_builtin_options='' ;; #(
6247 *) :
6248 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
6249 esac
6250
6251 ac_fn_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6252 if test "x$ac_cv_have_decl_getenv" = xyes
6253 then :
6254 ac_have_decl=1
6255 else $as_nop
6256 ac_have_decl=0
6257 fi
6258 printf "%s\n" "#define HAVE_DECL_GETENV $ac_have_decl" >>confdefs.h
6259
6260 ac_func=
6261 for ac_item in $ac_func_c_list
6262 do
6263 if test $ac_func; then
6264 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
6265 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
6266 echo "#define $ac_item 1" >> confdefs.h
6267 fi
6268 ac_func=
6269 else
6270 ac_func=$ac_item
6271 fi
6272 done
6273
6274
6275
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
6277 printf %s "checking for working POSIX fnmatch... " >&6; }
6278 if test ${ac_cv_func_fnmatch_works+y}
6279 then :
6280 printf %s "(cached) " >&6
6281 else $as_nop
6282 # Some versions of Solaris, SCO, and the GNU C Library
6283 # have a broken or incompatible fnmatch.
6284 # So we run a test program. If we are cross-compiling, take no chance.
6285 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
6286 if test "$cross_compiling" = yes
6287 then :
6288 ac_cv_func_fnmatch_works=cross
6289 else $as_nop
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 #include <fnmatch.h>
6293 # define y(a, b, c) (fnmatch (a, b, c) == 0)
6294 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
6295
6296 int
6297 main (void)
6298 {
6299 return
6300 (!(y ("a*", "abc", 0)
6301 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
6302 && y ("a\\\\bc", "abc", 0)
6303 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
6304 && y ("*x", ".x", 0)
6305 && n ("*x", ".x", FNM_PERIOD)
6306 && 1));
6307 ;
6308 return 0;
6309 }
6310 _ACEOF
6311 if ac_fn_c_try_run "$LINENO"
6312 then :
6313 ac_cv_func_fnmatch_works=yes
6314 else $as_nop
6315 ac_cv_func_fnmatch_works=no
6316 fi
6317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6318 conftest.$ac_objext conftest.beam conftest.$ac_ext
6319 fi
6320
6321 fi
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
6323 printf "%s\n" "$ac_cv_func_fnmatch_works" >&6; }
6324 if test $ac_cv_func_fnmatch_works = yes
6325 then :
6326 rm -f "$ac_config_libobj_dir/fnmatch.h"
6327 else $as_nop
6328
6329
6330 case " $LIBOBJS " in
6331 *" fnmatch.$ac_objext "* ) ;;
6332 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
6333 ;;
6334 esac
6335
6336 ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
6337
6338
6339 printf "%s\n" "#define fnmatch rpl_fnmatch" >>confdefs.h
6340
6341
6342 fi
6343
6344
6345
6346
6347 # Make sure we can run config.sub.
6348 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6349 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6350
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6352 printf %s "checking build system type... " >&6; }
6353 if test ${ac_cv_build+y}
6354 then :
6355 printf %s "(cached) " >&6
6356 else $as_nop
6357 ac_build_alias=$build_alias
6358 test "x$ac_build_alias" = x &&
6359 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6360 test "x$ac_build_alias" = x &&
6361 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6362 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6363 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6364
6365 fi
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6367 printf "%s\n" "$ac_cv_build" >&6; }
6368 case $ac_cv_build in
6369 *-*-*) ;;
6370 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6371 esac
6372 build=$ac_cv_build
6373 ac_save_IFS=$IFS; IFS='-'
6374 set x $ac_cv_build
6375 shift
6376 build_cpu=$1
6377 build_vendor=$2
6378 shift; shift
6379 # Remember, the first character of IFS is used to create $*,
6380 # except with old shells:
6381 build_os=$*
6382 IFS=$ac_save_IFS
6383 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6384
6385
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6387 printf %s "checking host system type... " >&6; }
6388 if test ${ac_cv_host+y}
6389 then :
6390 printf %s "(cached) " >&6
6391 else $as_nop
6392 if test "x$host_alias" = x; then
6393 ac_cv_host=$ac_cv_build
6394 else
6395 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6396 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6397 fi
6398
6399 fi
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6401 printf "%s\n" "$ac_cv_host" >&6; }
6402 case $ac_cv_host in
6403 *-*-*) ;;
6404 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6405 esac
6406 host=$ac_cv_host
6407 ac_save_IFS=$IFS; IFS='-'
6408 set x $ac_cv_host
6409 shift
6410 host_cpu=$1
6411 host_vendor=$2
6412 shift; shift
6413 # Remember, the first character of IFS is used to create $*,
6414 # except with old shells:
6415 host_os=$*
6416 IFS=$ac_save_IFS
6417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6418
6419
6420
6421 if test "X$prefix" = "XNONE"; then
6422 acl_final_prefix="$ac_default_prefix"
6423 else
6424 acl_final_prefix="$prefix"
6425 fi
6426 if test "X$exec_prefix" = "XNONE"; then
6427 acl_final_exec_prefix='${prefix}'
6428 else
6429 acl_final_exec_prefix="$exec_prefix"
6430 fi
6431 acl_save_prefix="$prefix"
6432 prefix="$acl_final_prefix"
6433 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6434 prefix="$acl_save_prefix"
6435
6436
6437
6438 # Check whether --with-gnu-ld was given.
6439 if test ${with_gnu_ld+y}
6440 then :
6441 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6442 else $as_nop
6443 with_gnu_ld=no
6444 fi
6445
6446 # Prepare PATH_SEPARATOR.
6447 # The user is always right.
6448 if test "${PATH_SEPARATOR+set}" != set; then
6449 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6450 # contains only /bin. Note that ksh looks also at the FPATH variable,
6451 # so we have to set that as well for the test.
6452 PATH_SEPARATOR=:
6453 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6454 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6455 || PATH_SEPARATOR=';'
6456 }
6457 fi
6458
6459 if test -n "$LD"; then
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
6461 printf %s "checking for ld... " >&6; }
6462 elif test "$GCC" = yes; then
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6464 printf %s "checking for ld used by $CC... " >&6; }
6465 elif test "$with_gnu_ld" = yes; then
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6467 printf %s "checking for GNU ld... " >&6; }
6468 else
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6470 printf %s "checking for non-GNU ld... " >&6; }
6471 fi
6472 if test -n "$LD"; then
6473 # Let the user override the test with a path.
6474 :
6475 else
6476 if test ${acl_cv_path_LD+y}
6477 then :
6478 printf %s "(cached) " >&6
6479 else $as_nop
6480
6481 acl_cv_path_LD= # Final result of this test
6482 ac_prog=ld # Program to search in $PATH
6483 if test "$GCC" = yes; then
6484 # Check if gcc -print-prog-name=ld gives a path.
6485 case $host in
6486 *-*-mingw*)
6487 # gcc leaves a trailing carriage return which upsets mingw
6488 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6489 *)
6490 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
6491 esac
6492 case $acl_output in
6493 # Accept absolute paths.
6494 [\\/]* | ?:[\\/]*)
6495 re_direlt='/[^/][^/]*/\.\./'
6496 # Canonicalize the pathname of ld
6497 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
6498 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
6499 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
6500 done
6501 # Got the pathname. No search in PATH is needed.
6502 acl_cv_path_LD="$acl_output"
6503 ac_prog=
6504 ;;
6505 "")
6506 # If it fails, then pretend we aren't using GCC.
6507 ;;
6508 *)
6509 # If it is relative, then search for the first ld in PATH.
6510 with_gnu_ld=unknown
6511 ;;
6512 esac
6513 fi
6514 if test -n "$ac_prog"; then
6515 # Search for $ac_prog in $PATH.
6516 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6517 for ac_dir in $PATH; do
6518 IFS="$acl_save_ifs"
6519 test -z "$ac_dir" && ac_dir=.
6520 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6521 acl_cv_path_LD="$ac_dir/$ac_prog"
6522 # Check to see if the program is GNU ld. I'd rather use --version,
6523 # but apparently some variants of GNU ld only accept -v.
6524 # Break only if it was the GNU/non-GNU ld that we prefer.
6525 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
6526 *GNU* | *'with BFD'*)
6527 test "$with_gnu_ld" != no && break
6528 ;;
6529 *)
6530 test "$with_gnu_ld" != yes && break
6531 ;;
6532 esac
6533 fi
6534 done
6535 IFS="$acl_save_ifs"
6536 fi
6537 case $host in
6538 *-*-aix*)
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 #if defined __powerpc64__ || defined _ARCH_PPC64
6542 int ok;
6543 #else
6544 error fail
6545 #endif
6546
6547 _ACEOF
6548 if ac_fn_c_try_compile "$LINENO"
6549 then :
6550 # The compiler produces 64-bit code. Add option '-b64' so that the
6551 # linker groks 64-bit object files.
6552 case "$acl_cv_path_LD " in
6553 *" -b64 "*) ;;
6554 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
6555 esac
6556
6557 fi
6558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6559 ;;
6560 sparc64-*-netbsd*)
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 #if defined __sparcv9 || defined __arch64__
6564 int ok;
6565 #else
6566 error fail
6567 #endif
6568
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"
6571 then :
6572
6573 else $as_nop
6574 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
6575 # so that the linker groks 32-bit object files.
6576 case "$acl_cv_path_LD " in
6577 *" -m elf32_sparc "*) ;;
6578 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
6579 esac
6580
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6583 ;;
6584 esac
6585
6586 fi
6587
6588 LD="$acl_cv_path_LD"
6589 fi
6590 if test -n "$LD"; then
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6592 printf "%s\n" "$LD" >&6; }
6593 else
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 printf "%s\n" "no" >&6; }
6596 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6597 fi
6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6599 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6600 if test ${acl_cv_prog_gnu_ld+y}
6601 then :
6602 printf %s "(cached) " >&6
6603 else $as_nop
6604 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6605 case `$LD -v 2>&1 </dev/null` in
6606 *GNU* | *'with BFD'*)
6607 acl_cv_prog_gnu_ld=yes
6608 ;;
6609 *)
6610 acl_cv_prog_gnu_ld=no
6611 ;;
6612 esac
6613 fi
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6615 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
6616 with_gnu_ld=$acl_cv_prog_gnu_ld
6617
6618
6619
6620
6621
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6623 printf %s "checking for shared library run path origin... " >&6; }
6624 if test ${acl_cv_rpath+y}
6625 then :
6626 printf %s "(cached) " >&6
6627 else $as_nop
6628
6629 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6630 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6631 . ./conftest.sh
6632 rm -f ./conftest.sh
6633 acl_cv_rpath=done
6634
6635 fi
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6637 printf "%s\n" "$acl_cv_rpath" >&6; }
6638 wl="$acl_cv_wl"
6639 acl_libext="$acl_cv_libext"
6640 acl_shlibext="$acl_cv_shlibext"
6641 acl_libname_spec="$acl_cv_libname_spec"
6642 acl_library_names_spec="$acl_cv_library_names_spec"
6643 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6644 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6645 acl_hardcode_direct="$acl_cv_hardcode_direct"
6646 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6647 # Check whether --enable-rpath was given.
6648 if test ${enable_rpath+y}
6649 then :
6650 enableval=$enable_rpath; :
6651 else $as_nop
6652 enable_rpath=yes
6653 fi
6654
6655
6656
6657
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
6659 printf %s "checking 32-bit host C ABI... " >&6; }
6660 if test ${gl_cv_host_cpu_c_abi_32bit+y}
6661 then :
6662 printf %s "(cached) " >&6
6663 else $as_nop
6664 if test -n "$gl_cv_host_cpu_c_abi"; then
6665 case "$gl_cv_host_cpu_c_abi" in
6666 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
6667 gl_cv_host_cpu_c_abi_32bit=yes ;;
6668 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
6669 gl_cv_host_cpu_c_abi_32bit=no ;;
6670 *)
6671 gl_cv_host_cpu_c_abi_32bit=unknown ;;
6672 esac
6673 else
6674 case "$host_cpu" in
6675
6676 # CPUs that only support a 32-bit ABI.
6677 arc \
6678 | bfin \
6679 | cris* \
6680 | csky \
6681 | epiphany \
6682 | ft32 \
6683 | h8300 \
6684 | m68k \
6685 | microblaze | microblazeel \
6686 | nds32 | nds32le | nds32be \
6687 | nios2 | nios2eb | nios2el \
6688 | or1k* \
6689 | or32 \
6690 | sh | sh1234 | sh1234elb \
6691 | tic6x \
6692 | xtensa* )
6693 gl_cv_host_cpu_c_abi_32bit=yes
6694 ;;
6695
6696 # CPUs that only support a 64-bit ABI.
6697 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
6698 | mmix )
6699 gl_cv_host_cpu_c_abi_32bit=no
6700 ;;
6701
6702 i[34567]86 )
6703 gl_cv_host_cpu_c_abi_32bit=yes
6704 ;;
6705
6706 x86_64 )
6707 # On x86_64 systems, the C compiler may be generating code in one of
6708 # these ABIs:
6709 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
6710 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
6711 # with native Windows (mingw, MSVC).
6712 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
6713 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 #if (defined __x86_64__ || defined __amd64__ \
6717 || defined _M_X64 || defined _M_AMD64) \
6718 && !(defined __ILP32__ || defined _ILP32)
6719 int ok;
6720 #else
6721 error fail
6722 #endif
6723
6724 _ACEOF
6725 if ac_fn_c_try_compile "$LINENO"
6726 then :
6727 gl_cv_host_cpu_c_abi_32bit=no
6728 else $as_nop
6729 gl_cv_host_cpu_c_abi_32bit=yes
6730 fi
6731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6732 ;;
6733
6734 arm* | aarch64 )
6735 # Assume arm with EABI.
6736 # On arm64 systems, the C compiler may be generating code in one of
6737 # these ABIs:
6738 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
6739 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
6740 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
6744 int ok;
6745 #else
6746 error fail
6747 #endif
6748
6749 _ACEOF
6750 if ac_fn_c_try_compile "$LINENO"
6751 then :
6752 gl_cv_host_cpu_c_abi_32bit=no
6753 else $as_nop
6754 gl_cv_host_cpu_c_abi_32bit=yes
6755 fi
6756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6757 ;;
6758
6759 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
6760 # On hppa, the C compiler may be generating 32-bit code or 64-bit
6761 # code. In the latter case, it defines _LP64 and __LP64__.
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764 #ifdef __LP64__
6765 int ok;
6766 #else
6767 error fail
6768 #endif
6769
6770 _ACEOF
6771 if ac_fn_c_try_compile "$LINENO"
6772 then :
6773 gl_cv_host_cpu_c_abi_32bit=no
6774 else $as_nop
6775 gl_cv_host_cpu_c_abi_32bit=yes
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6778 ;;
6779
6780 ia64* )
6781 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
6782 # 32-bit code. In the latter case, it defines _ILP32.
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785 #ifdef _ILP32
6786 int ok;
6787 #else
6788 error fail
6789 #endif
6790
6791 _ACEOF
6792 if ac_fn_c_try_compile "$LINENO"
6793 then :
6794 gl_cv_host_cpu_c_abi_32bit=yes
6795 else $as_nop
6796 gl_cv_host_cpu_c_abi_32bit=no
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6799 ;;
6800
6801 mips* )
6802 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
6803 # at 32.
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
6807 int ok;
6808 #else
6809 error fail
6810 #endif
6811
6812 _ACEOF
6813 if ac_fn_c_try_compile "$LINENO"
6814 then :
6815 gl_cv_host_cpu_c_abi_32bit=no
6816 else $as_nop
6817 gl_cv_host_cpu_c_abi_32bit=yes
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6820 ;;
6821
6822 powerpc* )
6823 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
6824 # No need to distinguish them here; the caller may distinguish
6825 # them based on the OS.
6826 # On powerpc64 systems, the C compiler may still be generating
6827 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
6828 # be generating 64-bit code.
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #if defined __powerpc64__ || defined _ARCH_PPC64
6832 int ok;
6833 #else
6834 error fail
6835 #endif
6836
6837 _ACEOF
6838 if ac_fn_c_try_compile "$LINENO"
6839 then :
6840 gl_cv_host_cpu_c_abi_32bit=no
6841 else $as_nop
6842 gl_cv_host_cpu_c_abi_32bit=yes
6843 fi
6844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6845 ;;
6846
6847 rs6000 )
6848 gl_cv_host_cpu_c_abi_32bit=yes
6849 ;;
6850
6851 riscv32 | riscv64 )
6852 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
6853 # Size of 'long' and 'void *':
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 #if defined __LP64__
6857 int ok;
6858 #else
6859 error fail
6860 #endif
6861
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"
6864 then :
6865 gl_cv_host_cpu_c_abi_32bit=no
6866 else $as_nop
6867 gl_cv_host_cpu_c_abi_32bit=yes
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6870 ;;
6871
6872 s390* )
6873 # On s390x, the C compiler may be generating 64-bit (= s390x) code
6874 # or 31-bit (= s390) code.
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 #if defined __LP64__ || defined __s390x__
6878 int ok;
6879 #else
6880 error fail
6881 #endif
6882
6883 _ACEOF
6884 if ac_fn_c_try_compile "$LINENO"
6885 then :
6886 gl_cv_host_cpu_c_abi_32bit=no
6887 else $as_nop
6888 gl_cv_host_cpu_c_abi_32bit=yes
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6891 ;;
6892
6893 sparc | sparc64 )
6894 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
6895 # C compiler still generates 32-bit code.
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 #if defined __sparcv9 || defined __arch64__
6899 int ok;
6900 #else
6901 error fail
6902 #endif
6903
6904 _ACEOF
6905 if ac_fn_c_try_compile "$LINENO"
6906 then :
6907 gl_cv_host_cpu_c_abi_32bit=no
6908 else $as_nop
6909 gl_cv_host_cpu_c_abi_32bit=yes
6910 fi
6911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6912 ;;
6913
6914 *)
6915 gl_cv_host_cpu_c_abi_32bit=unknown
6916 ;;
6917 esac
6918 fi
6919
6920 fi
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
6922 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
6923
6924 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
6925
6926 ac_ext=c
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6932 printf %s "checking how to run the C preprocessor... " >&6; }
6933 # On Suns, sometimes $CPP names a directory.
6934 if test -n "$CPP" && test -d "$CPP"; then
6935 CPP=
6936 fi
6937 if test -z "$CPP"; then
6938 if test ${ac_cv_prog_CPP+y}
6939 then :
6940 printf %s "(cached) " >&6
6941 else $as_nop
6942 # Double quotes because $CC needs to be expanded
6943 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6944 do
6945 ac_preproc_ok=false
6946 for ac_c_preproc_warn_flag in '' yes
6947 do
6948 # Use a header file that comes with gcc, so configuring glibc
6949 # with a fresh cross-compiler works.
6950 # On the NeXT, cc -E runs the code through the compiler's parser,
6951 # not just through cpp. "Syntax error" is here to catch this case.
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 #include <limits.h>
6955 Syntax error
6956 _ACEOF
6957 if ac_fn_c_try_cpp "$LINENO"
6958 then :
6959
6960 else $as_nop
6961 # Broken: fails on valid input.
6962 continue
6963 fi
6964 rm -f conftest.err conftest.i conftest.$ac_ext
6965
6966 # OK, works on sane cases. Now check whether nonexistent headers
6967 # can be detected and how.
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 #include <ac_nonexistent.h>
6971 _ACEOF
6972 if ac_fn_c_try_cpp "$LINENO"
6973 then :
6974 # Broken: success on invalid input.
6975 continue
6976 else $as_nop
6977 # Passes both tests.
6978 ac_preproc_ok=:
6979 break
6980 fi
6981 rm -f conftest.err conftest.i conftest.$ac_ext
6982
6983 done
6984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6985 rm -f conftest.i conftest.err conftest.$ac_ext
6986 if $ac_preproc_ok
6987 then :
6988 break
6989 fi
6990
6991 done
6992 ac_cv_prog_CPP=$CPP
6993
6994 fi
6995 CPP=$ac_cv_prog_CPP
6996 else
6997 ac_cv_prog_CPP=$CPP
6998 fi
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7000 printf "%s\n" "$CPP" >&6; }
7001 ac_preproc_ok=false
7002 for ac_c_preproc_warn_flag in '' yes
7003 do
7004 # Use a header file that comes with gcc, so configuring glibc
7005 # with a fresh cross-compiler works.
7006 # On the NeXT, cc -E runs the code through the compiler's parser,
7007 # not just through cpp. "Syntax error" is here to catch this case.
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 #include <limits.h>
7011 Syntax error
7012 _ACEOF
7013 if ac_fn_c_try_cpp "$LINENO"
7014 then :
7015
7016 else $as_nop
7017 # Broken: fails on valid input.
7018 continue
7019 fi
7020 rm -f conftest.err conftest.i conftest.$ac_ext
7021
7022 # OK, works on sane cases. Now check whether nonexistent headers
7023 # can be detected and how.
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 #include <ac_nonexistent.h>
7027 _ACEOF
7028 if ac_fn_c_try_cpp "$LINENO"
7029 then :
7030 # Broken: success on invalid input.
7031 continue
7032 else $as_nop
7033 # Passes both tests.
7034 ac_preproc_ok=:
7035 break
7036 fi
7037 rm -f conftest.err conftest.i conftest.$ac_ext
7038
7039 done
7040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7041 rm -f conftest.i conftest.err conftest.$ac_ext
7042 if $ac_preproc_ok
7043 then :
7044
7045 else $as_nop
7046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7047 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7048 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7049 See \`config.log' for more details" "$LINENO" 5; }
7050 fi
7051
7052 ac_ext=c
7053 ac_cpp='$CPP $CPPFLAGS'
7054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7057
7058
7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7060 printf %s "checking for grep that handles long lines and -e... " >&6; }
7061 if test ${ac_cv_path_GREP+y}
7062 then :
7063 printf %s "(cached) " >&6
7064 else $as_nop
7065 if test -z "$GREP"; then
7066 ac_path_GREP_found=false
7067 # Loop through the user's path and test for each of PROGNAME-LIST
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7070 do
7071 IFS=$as_save_IFS
7072 case $as_dir in #(((
7073 '') as_dir=./ ;;
7074 */) ;;
7075 *) as_dir=$as_dir/ ;;
7076 esac
7077 for ac_prog in grep ggrep
7078 do
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7081 as_fn_executable_p "$ac_path_GREP" || continue
7082 # Check for GNU ac_path_GREP and select it if it is found.
7083 # Check for GNU $ac_path_GREP
7084 case `"$ac_path_GREP" --version 2>&1` in
7085 *GNU*)
7086 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7087 *)
7088 ac_count=0
7089 printf %s 0123456789 >"conftest.in"
7090 while :
7091 do
7092 cat "conftest.in" "conftest.in" >"conftest.tmp"
7093 mv "conftest.tmp" "conftest.in"
7094 cp "conftest.in" "conftest.nl"
7095 printf "%s\n" 'GREP' >> "conftest.nl"
7096 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7098 as_fn_arith $ac_count + 1 && ac_count=$as_val
7099 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7100 # Best one so far, save it but keep looking for a better one
7101 ac_cv_path_GREP="$ac_path_GREP"
7102 ac_path_GREP_max=$ac_count
7103 fi
7104 # 10*(2^10) chars as input seems more than enough
7105 test $ac_count -gt 10 && break
7106 done
7107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7108 esac
7109
7110 $ac_path_GREP_found && break 3
7111 done
7112 done
7113 done
7114 IFS=$as_save_IFS
7115 if test -z "$ac_cv_path_GREP"; then
7116 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7117 fi
7118 else
7119 ac_cv_path_GREP=$GREP
7120 fi
7121
7122 fi
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7124 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7125 GREP="$ac_cv_path_GREP"
7126
7127
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7129 printf %s "checking for egrep... " >&6; }
7130 if test ${ac_cv_path_EGREP+y}
7131 then :
7132 printf %s "(cached) " >&6
7133 else $as_nop
7134 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7135 then ac_cv_path_EGREP="$GREP -E"
7136 else
7137 if test -z "$EGREP"; then
7138 ac_path_EGREP_found=false
7139 # Loop through the user's path and test for each of PROGNAME-LIST
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7142 do
7143 IFS=$as_save_IFS
7144 case $as_dir in #(((
7145 '') as_dir=./ ;;
7146 */) ;;
7147 *) as_dir=$as_dir/ ;;
7148 esac
7149 for ac_prog in egrep
7150 do
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7153 as_fn_executable_p "$ac_path_EGREP" || continue
7154 # Check for GNU ac_path_EGREP and select it if it is found.
7155 # Check for GNU $ac_path_EGREP
7156 case `"$ac_path_EGREP" --version 2>&1` in
7157 *GNU*)
7158 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7159 *)
7160 ac_count=0
7161 printf %s 0123456789 >"conftest.in"
7162 while :
7163 do
7164 cat "conftest.in" "conftest.in" >"conftest.tmp"
7165 mv "conftest.tmp" "conftest.in"
7166 cp "conftest.in" "conftest.nl"
7167 printf "%s\n" 'EGREP' >> "conftest.nl"
7168 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7170 as_fn_arith $ac_count + 1 && ac_count=$as_val
7171 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7172 # Best one so far, save it but keep looking for a better one
7173 ac_cv_path_EGREP="$ac_path_EGREP"
7174 ac_path_EGREP_max=$ac_count
7175 fi
7176 # 10*(2^10) chars as input seems more than enough
7177 test $ac_count -gt 10 && break
7178 done
7179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7180 esac
7181
7182 $ac_path_EGREP_found && break 3
7183 done
7184 done
7185 done
7186 IFS=$as_save_IFS
7187 if test -z "$ac_cv_path_EGREP"; then
7188 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7189 fi
7190 else
7191 ac_cv_path_EGREP=$EGREP
7192 fi
7193
7194 fi
7195 fi
7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7197 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7198 EGREP="$ac_cv_path_EGREP"
7199
7200
7201
7202
7203
7204
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7206 printf %s "checking for ELF binary format... " >&6; }
7207 if test ${gl_cv_elf+y}
7208 then :
7209 printf %s "(cached) " >&6
7210 else $as_nop
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 /* end confdefs.h. */
7213 #ifdef __ELF__
7214 Extensible Linking Format
7215 #endif
7216
7217 _ACEOF
7218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7219 $EGREP "Extensible Linking Format" >/dev/null 2>&1
7220 then :
7221 gl_cv_elf=yes
7222 else $as_nop
7223 gl_cv_elf=no
7224 fi
7225 rm -rf conftest*
7226
7227
7228 fi
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7230 printf "%s\n" "$gl_cv_elf" >&6; }
7231 if test $gl_cv_elf; then
7232 # Extract the ELF class of a file (5th byte) in decimal.
7233 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7234 if od -A x < /dev/null >/dev/null 2>/dev/null; then
7235 # Use POSIX od.
7236 func_elfclass ()
7237 {
7238 od -A n -t d1 -j 4 -N 1
7239 }
7240 else
7241 # Use BSD hexdump.
7242 func_elfclass ()
7243 {
7244 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7245 echo
7246 }
7247 fi
7248 case $HOST_CPU_C_ABI_32BIT in
7249 yes)
7250 # 32-bit ABI.
7251 acl_is_expected_elfclass ()
7252 {
7253 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
7254 }
7255 ;;
7256 no)
7257 # 64-bit ABI.
7258 acl_is_expected_elfclass ()
7259 {
7260 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
7261 }
7262 ;;
7263 *)
7264 # Unknown.
7265 acl_is_expected_elfclass ()
7266 {
7267 :
7268 }
7269 ;;
7270 esac
7271 else
7272 acl_is_expected_elfclass ()
7273 {
7274 :
7275 }
7276 fi
7277
7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7279 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
7280 if test ${acl_cv_libdirstems+y}
7281 then :
7282 printf %s "(cached) " >&6
7283 else $as_nop
7284 acl_libdirstem=lib
7285 acl_libdirstem2=
7286 acl_libdirstem3=
7287 case "$host_os" in
7288 solaris*)
7289 if test $HOST_CPU_C_ABI_32BIT = no; then
7290 acl_libdirstem2=lib/64
7291 case "$host_cpu" in
7292 sparc*) acl_libdirstem3=lib/sparcv9 ;;
7293 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7294 esac
7295 fi
7296 ;;
7297 *)
7298 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7299 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7300 if test $HOST_CPU_C_ABI_32BIT != no; then
7301 # 32-bit or unknown ABI.
7302 if test -d /usr/lib32; then
7303 acl_libdirstem2=lib32
7304 fi
7305 fi
7306 if test $HOST_CPU_C_ABI_32BIT != yes; then
7307 # 64-bit or unknown ABI.
7308 if test -d /usr/lib64; then
7309 acl_libdirstem3=lib64
7310 fi
7311 fi
7312 if test -n "$searchpath"; then
7313 acl_save_IFS="${IFS= }"; IFS=":"
7314 for searchdir in $searchpath; do
7315 if test -d "$searchdir"; then
7316 case "$searchdir" in
7317 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7318 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7319 */../ | */.. )
7320 # Better ignore directories of this form. They are misleading.
7321 ;;
7322 *) searchdir=`cd "$searchdir" && pwd`
7323 case "$searchdir" in
7324 */lib32 ) acl_libdirstem2=lib32 ;;
7325 */lib64 ) acl_libdirstem3=lib64 ;;
7326 esac ;;
7327 esac
7328 fi
7329 done
7330 IFS="$acl_save_IFS"
7331 if test $HOST_CPU_C_ABI_32BIT = yes; then
7332 # 32-bit ABI.
7333 acl_libdirstem3=
7334 fi
7335 if test $HOST_CPU_C_ABI_32BIT = no; then
7336 # 64-bit ABI.
7337 acl_libdirstem2=
7338 fi
7339 fi
7340 ;;
7341 esac
7342 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7343 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7344 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7345
7346 fi
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7348 printf "%s\n" "$acl_cv_libdirstems" >&6; }
7349 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7350 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7351 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363 use_additional=yes
7364
7365 acl_save_prefix="$prefix"
7366 prefix="$acl_final_prefix"
7367 acl_save_exec_prefix="$exec_prefix"
7368 exec_prefix="$acl_final_exec_prefix"
7369
7370 eval additional_includedir=\"$includedir\"
7371 eval additional_libdir=\"$libdir\"
7372 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7373 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7374
7375 exec_prefix="$acl_save_exec_prefix"
7376 prefix="$acl_save_prefix"
7377
7378
7379 # Check whether --with-libiconv-prefix was given.
7380 if test ${with_libiconv_prefix+y}
7381 then :
7382 withval=$with_libiconv_prefix;
7383 if test "X$withval" = "Xno"; then
7384 use_additional=no
7385 else
7386 if test "X$withval" = "X"; then
7387
7388 acl_save_prefix="$prefix"
7389 prefix="$acl_final_prefix"
7390 acl_save_exec_prefix="$exec_prefix"
7391 exec_prefix="$acl_final_exec_prefix"
7392
7393 eval additional_includedir=\"$includedir\"
7394 eval additional_libdir=\"$libdir\"
7395 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7396 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7397
7398 exec_prefix="$acl_save_exec_prefix"
7399 prefix="$acl_save_prefix"
7400
7401 else
7402 additional_includedir="$withval/include"
7403 additional_libdir="$withval/$acl_libdirstem"
7404 additional_libdir2="$withval/$acl_libdirstem2"
7405 additional_libdir3="$withval/$acl_libdirstem3"
7406 fi
7407 fi
7408
7409 fi
7410
7411 if test "X$additional_libdir2" = "X$additional_libdir"; then
7412 additional_libdir2=
7413 fi
7414 if test "X$additional_libdir3" = "X$additional_libdir"; then
7415 additional_libdir3=
7416 fi
7417 LIBICONV=
7418 LTLIBICONV=
7419 INCICONV=
7420 LIBICONV_PREFIX=
7421 HAVE_LIBICONV=
7422 rpathdirs=
7423 ltrpathdirs=
7424 names_already_handled=
7425 names_next_round='iconv '
7426 while test -n "$names_next_round"; do
7427 names_this_round="$names_next_round"
7428 names_next_round=
7429 for name in $names_this_round; do
7430 already_handled=
7431 for n in $names_already_handled; do
7432 if test "$n" = "$name"; then
7433 already_handled=yes
7434 break
7435 fi
7436 done
7437 if test -z "$already_handled"; then
7438 names_already_handled="$names_already_handled $name"
7439 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
7440 eval value=\"\$HAVE_LIB$uppername\"
7441 if test -n "$value"; then
7442 if test "$value" = yes; then
7443 eval value=\"\$LIB$uppername\"
7444 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7445 eval value=\"\$LTLIB$uppername\"
7446 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7447 else
7448 :
7449 fi
7450 else
7451 found_dir=
7452 found_la=
7453 found_so=
7454 found_a=
7455 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7456 if test -n "$acl_shlibext"; then
7457 shrext=".$acl_shlibext" # typically: shrext=.so
7458 else
7459 shrext=
7460 fi
7461 if test $use_additional = yes; then
7462 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
7463 if test "X$found_dir" = "X"; then
7464 eval dir=\$$additional_libdir_variable
7465 if test -n "$dir"; then
7466 if test -n "$acl_shlibext"; then
7467 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7468 found_dir="$dir"
7469 found_so="$dir/$libname$shrext"
7470 else
7471 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7472 ver=`(cd "$dir" && \
7473 for f in "$libname$shrext".*; do echo "$f"; done \
7474 | sed -e "s,^$libname$shrext\\\\.,," \
7475 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7476 | sed 1q ) 2>/dev/null`
7477 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7478 found_dir="$dir"
7479 found_so="$dir/$libname$shrext.$ver"
7480 fi
7481 else
7482 eval library_names=\"$acl_library_names_spec\"
7483 for f in $library_names; do
7484 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7485 found_dir="$dir"
7486 found_so="$dir/$f"
7487 break
7488 fi
7489 done
7490 fi
7491 fi
7492 fi
7493 if test "X$found_dir" = "X"; then
7494 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7495 found_dir="$dir"
7496 found_a="$dir/$libname.$acl_libext"
7497 fi
7498 fi
7499 if test "X$found_dir" != "X"; then
7500 if test -f "$dir/$libname.la"; then
7501 found_la="$dir/$libname.la"
7502 fi
7503 fi
7504 fi
7505 fi
7506 done
7507 fi
7508 if test "X$found_dir" = "X"; then
7509 for x in $LDFLAGS $LTLIBICONV; do
7510
7511 acl_save_prefix="$prefix"
7512 prefix="$acl_final_prefix"
7513 acl_save_exec_prefix="$exec_prefix"
7514 exec_prefix="$acl_final_exec_prefix"
7515 eval x=\"$x\"
7516 exec_prefix="$acl_save_exec_prefix"
7517 prefix="$acl_save_prefix"
7518
7519 case "$x" in
7520 -L*)
7521 dir=`echo "X$x" | sed -e 's/^X-L//'`
7522 if test -n "$acl_shlibext"; then
7523 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7524 found_dir="$dir"
7525 found_so="$dir/$libname$shrext"
7526 else
7527 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7528 ver=`(cd "$dir" && \
7529 for f in "$libname$shrext".*; do echo "$f"; done \
7530 | sed -e "s,^$libname$shrext\\\\.,," \
7531 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7532 | sed 1q ) 2>/dev/null`
7533 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7534 found_dir="$dir"
7535 found_so="$dir/$libname$shrext.$ver"
7536 fi
7537 else
7538 eval library_names=\"$acl_library_names_spec\"
7539 for f in $library_names; do
7540 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7541 found_dir="$dir"
7542 found_so="$dir/$f"
7543 break
7544 fi
7545 done
7546 fi
7547 fi
7548 fi
7549 if test "X$found_dir" = "X"; then
7550 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7551 found_dir="$dir"
7552 found_a="$dir/$libname.$acl_libext"
7553 fi
7554 fi
7555 if test "X$found_dir" != "X"; then
7556 if test -f "$dir/$libname.la"; then
7557 found_la="$dir/$libname.la"
7558 fi
7559 fi
7560 ;;
7561 esac
7562 if test "X$found_dir" != "X"; then
7563 break
7564 fi
7565 done
7566 fi
7567 if test "X$found_dir" != "X"; then
7568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7569 if test "X$found_so" != "X"; then
7570 if test "$enable_rpath" = no \
7571 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7572 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
7573 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
7574 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7575 else
7576 haveit=
7577 for x in $ltrpathdirs; do
7578 if test "X$x" = "X$found_dir"; then
7579 haveit=yes
7580 break
7581 fi
7582 done
7583 if test -z "$haveit"; then
7584 ltrpathdirs="$ltrpathdirs $found_dir"
7585 fi
7586 if test "$acl_hardcode_direct" = yes; then
7587 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7588 else
7589 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7590 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7591 haveit=
7592 for x in $rpathdirs; do
7593 if test "X$x" = "X$found_dir"; then
7594 haveit=yes
7595 break
7596 fi
7597 done
7598 if test -z "$haveit"; then
7599 rpathdirs="$rpathdirs $found_dir"
7600 fi
7601 else
7602 haveit=
7603 for x in $LDFLAGS $LIBICONV; do
7604
7605 acl_save_prefix="$prefix"
7606 prefix="$acl_final_prefix"
7607 acl_save_exec_prefix="$exec_prefix"
7608 exec_prefix="$acl_final_exec_prefix"
7609 eval x=\"$x\"
7610 exec_prefix="$acl_save_exec_prefix"
7611 prefix="$acl_save_prefix"
7612
7613 if test "X$x" = "X-L$found_dir"; then
7614 haveit=yes
7615 break
7616 fi
7617 done
7618 if test -z "$haveit"; then
7619 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7620 fi
7621 if test "$acl_hardcode_minus_L" != no; then
7622 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7623 else
7624 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7625 fi
7626 fi
7627 fi
7628 fi
7629 else
7630 if test "X$found_a" != "X"; then
7631 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7632 else
7633 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7634 fi
7635 fi
7636 additional_includedir=
7637 case "$found_dir" in
7638 */$acl_libdirstem | */$acl_libdirstem/)
7639 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7640 if test "$name" = 'iconv'; then
7641 LIBICONV_PREFIX="$basedir"
7642 fi
7643 additional_includedir="$basedir/include"
7644 ;;
7645 */$acl_libdirstem2 | */$acl_libdirstem2/)
7646 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7647 if test "$name" = 'iconv'; then
7648 LIBICONV_PREFIX="$basedir"
7649 fi
7650 additional_includedir="$basedir/include"
7651 ;;
7652 */$acl_libdirstem3 | */$acl_libdirstem3/)
7653 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
7654 if test "$name" = 'iconv'; then
7655 LIBICONV_PREFIX="$basedir"
7656 fi
7657 additional_includedir="$basedir/include"
7658 ;;
7659 esac
7660 if test "X$additional_includedir" != "X"; then
7661 if test "X$additional_includedir" != "X/usr/include"; then
7662 haveit=
7663 if test "X$additional_includedir" = "X/usr/local/include"; then
7664 if test -n "$GCC"; then
7665 case $host_os in
7666 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7667 esac
7668 fi
7669 fi
7670 if test -z "$haveit"; then
7671 for x in $CPPFLAGS $INCICONV; do
7672
7673 acl_save_prefix="$prefix"
7674 prefix="$acl_final_prefix"
7675 acl_save_exec_prefix="$exec_prefix"
7676 exec_prefix="$acl_final_exec_prefix"
7677 eval x=\"$x\"
7678 exec_prefix="$acl_save_exec_prefix"
7679 prefix="$acl_save_prefix"
7680
7681 if test "X$x" = "X-I$additional_includedir"; then
7682 haveit=yes
7683 break
7684 fi
7685 done
7686 if test -z "$haveit"; then
7687 if test -d "$additional_includedir"; then
7688 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7689 fi
7690 fi
7691 fi
7692 fi
7693 fi
7694 if test -n "$found_la"; then
7695 save_libdir="$libdir"
7696 case "$found_la" in
7697 */* | *\\*) . "$found_la" ;;
7698 *) . "./$found_la" ;;
7699 esac
7700 libdir="$save_libdir"
7701 for dep in $dependency_libs; do
7702 case "$dep" in
7703 -L*)
7704 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7705 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
7706 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
7707 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
7708 haveit=
7709 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
7710 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
7711 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
7712 if test -n "$GCC"; then
7713 case $host_os in
7714 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7715 esac
7716 fi
7717 fi
7718 if test -z "$haveit"; then
7719 haveit=
7720 for x in $LDFLAGS $LIBICONV; do
7721
7722 acl_save_prefix="$prefix"
7723 prefix="$acl_final_prefix"
7724 acl_save_exec_prefix="$exec_prefix"
7725 exec_prefix="$acl_final_exec_prefix"
7726 eval x=\"$x\"
7727 exec_prefix="$acl_save_exec_prefix"
7728 prefix="$acl_save_prefix"
7729
7730 if test "X$x" = "X-L$dependency_libdir"; then
7731 haveit=yes
7732 break
7733 fi
7734 done
7735 if test -z "$haveit"; then
7736 if test -d "$dependency_libdir"; then
7737 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
7738 fi
7739 fi
7740 haveit=
7741 for x in $LDFLAGS $LTLIBICONV; do
7742
7743 acl_save_prefix="$prefix"
7744 prefix="$acl_final_prefix"
7745 acl_save_exec_prefix="$exec_prefix"
7746 exec_prefix="$acl_final_exec_prefix"
7747 eval x=\"$x\"
7748 exec_prefix="$acl_save_exec_prefix"
7749 prefix="$acl_save_prefix"
7750
7751 if test "X$x" = "X-L$dependency_libdir"; then
7752 haveit=yes
7753 break
7754 fi
7755 done
7756 if test -z "$haveit"; then
7757 if test -d "$dependency_libdir"; then
7758 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
7759 fi
7760 fi
7761 fi
7762 fi
7763 ;;
7764 -R*)
7765 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7766 if test "$enable_rpath" != no; then
7767 haveit=
7768 for x in $rpathdirs; do
7769 if test "X$x" = "X$dir"; then
7770 haveit=yes
7771 break
7772 fi
7773 done
7774 if test -z "$haveit"; then
7775 rpathdirs="$rpathdirs $dir"
7776 fi
7777 haveit=
7778 for x in $ltrpathdirs; do
7779 if test "X$x" = "X$dir"; then
7780 haveit=yes
7781 break
7782 fi
7783 done
7784 if test -z "$haveit"; then
7785 ltrpathdirs="$ltrpathdirs $dir"
7786 fi
7787 fi
7788 ;;
7789 -l*)
7790 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7791 ;;
7792 *.la)
7793 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7794 ;;
7795 *)
7796 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7797 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7798 ;;
7799 esac
7800 done
7801 fi
7802 else
7803 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7804 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7805 fi
7806 fi
7807 fi
7808 done
7809 done
7810 if test "X$rpathdirs" != "X"; then
7811 if test -n "$acl_hardcode_libdir_separator"; then
7812 alldirs=
7813 for found_dir in $rpathdirs; do
7814 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7815 done
7816 acl_save_libdir="$libdir"
7817 libdir="$alldirs"
7818 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7819 libdir="$acl_save_libdir"
7820 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7821 else
7822 for found_dir in $rpathdirs; do
7823 acl_save_libdir="$libdir"
7824 libdir="$found_dir"
7825 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7826 libdir="$acl_save_libdir"
7827 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7828 done
7829 fi
7830 fi
7831 if test "X$ltrpathdirs" != "X"; then
7832 for found_dir in $ltrpathdirs; do
7833 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7834 done
7835 fi
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847 am_save_CPPFLAGS="$CPPFLAGS"
7848
7849 for element in $INCICONV; do
7850 haveit=
7851 for x in $CPPFLAGS; do
7852
7853 acl_save_prefix="$prefix"
7854 prefix="$acl_final_prefix"
7855 acl_save_exec_prefix="$exec_prefix"
7856 exec_prefix="$acl_final_exec_prefix"
7857 eval x=\"$x\"
7858 exec_prefix="$acl_save_exec_prefix"
7859 prefix="$acl_save_prefix"
7860
7861 if test "X$x" = "X$element"; then
7862 haveit=yes
7863 break
7864 fi
7865 done
7866 if test -z "$haveit"; then
7867 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7868 fi
7869 done
7870
7871
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7873 printf %s "checking for iconv... " >&6; }
7874 if test ${am_cv_func_iconv+y}
7875 then :
7876 printf %s "(cached) " >&6
7877 else $as_nop
7878
7879 am_cv_func_iconv="no, consider installing GNU libiconv"
7880 am_cv_lib_iconv=no
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7883
7884 #include <stdlib.h>
7885 #include <iconv.h>
7886
7887 int
7888 main (void)
7889 {
7890 iconv_t cd = iconv_open("","");
7891 iconv(cd,NULL,NULL,NULL,NULL);
7892 iconv_close(cd);
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 if ac_fn_c_try_link "$LINENO"
7898 then :
7899 am_cv_func_iconv=yes
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7902 conftest$ac_exeext conftest.$ac_ext
7903 if test "$am_cv_func_iconv" != yes; then
7904 am_save_LIBS="$LIBS"
7905 LIBS="$LIBS $LIBICONV"
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908
7909 #include <stdlib.h>
7910 #include <iconv.h>
7911
7912 int
7913 main (void)
7914 {
7915 iconv_t cd = iconv_open("","");
7916 iconv(cd,NULL,NULL,NULL,NULL);
7917 iconv_close(cd);
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 if ac_fn_c_try_link "$LINENO"
7923 then :
7924 am_cv_lib_iconv=yes
7925 am_cv_func_iconv=yes
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7928 conftest$ac_exeext conftest.$ac_ext
7929 LIBS="$am_save_LIBS"
7930 fi
7931
7932 fi
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7934 printf "%s\n" "$am_cv_func_iconv" >&6; }
7935 if test "$am_cv_func_iconv" = yes; then
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7937 printf %s "checking for working iconv... " >&6; }
7938 if test ${am_cv_func_iconv_works+y}
7939 then :
7940 printf %s "(cached) " >&6
7941 else $as_nop
7942
7943 am_save_LIBS="$LIBS"
7944 if test $am_cv_lib_iconv = yes; then
7945 LIBS="$LIBS $LIBICONV"
7946 fi
7947 am_cv_func_iconv_works=no
7948 for ac_iconv_const in '' 'const'; do
7949 if test "$cross_compiling" = yes
7950 then :
7951 case "$host_os" in
7952 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7953 *) am_cv_func_iconv_works="guessing yes" ;;
7954 esac
7955 else $as_nop
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958
7959 #include <iconv.h>
7960 #include <string.h>
7961
7962 #ifndef ICONV_CONST
7963 # define ICONV_CONST $ac_iconv_const
7964 #endif
7965
7966 int
7967 main (void)
7968 {
7969 int result = 0;
7970 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7971 returns. */
7972 {
7973 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7974 if (cd_utf8_to_88591 != (iconv_t)(-1))
7975 {
7976 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
7977 char buf[10];
7978 ICONV_CONST char *inptr = input;
7979 size_t inbytesleft = strlen (input);
7980 char *outptr = buf;
7981 size_t outbytesleft = sizeof (buf);
7982 size_t res = iconv (cd_utf8_to_88591,
7983 &inptr, &inbytesleft,
7984 &outptr, &outbytesleft);
7985 if (res == 0)
7986 result |= 1;
7987 iconv_close (cd_utf8_to_88591);
7988 }
7989 }
7990 /* Test against Solaris 10 bug: Failures are not distinguishable from
7991 successful returns. */
7992 {
7993 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7994 if (cd_ascii_to_88591 != (iconv_t)(-1))
7995 {
7996 static ICONV_CONST char input[] = "\263";
7997 char buf[10];
7998 ICONV_CONST char *inptr = input;
7999 size_t inbytesleft = strlen (input);
8000 char *outptr = buf;
8001 size_t outbytesleft = sizeof (buf);
8002 size_t res = iconv (cd_ascii_to_88591,
8003 &inptr, &inbytesleft,
8004 &outptr, &outbytesleft);
8005 if (res == 0)
8006 result |= 2;
8007 iconv_close (cd_ascii_to_88591);
8008 }
8009 }
8010 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8011 {
8012 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8013 if (cd_88591_to_utf8 != (iconv_t)(-1))
8014 {
8015 static ICONV_CONST char input[] = "\304";
8016 static char buf[2] = { (char)0xDE, (char)0xAD };
8017 ICONV_CONST char *inptr = input;
8018 size_t inbytesleft = 1;
8019 char *outptr = buf;
8020 size_t outbytesleft = 1;
8021 size_t res = iconv (cd_88591_to_utf8,
8022 &inptr, &inbytesleft,
8023 &outptr, &outbytesleft);
8024 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8025 result |= 4;
8026 iconv_close (cd_88591_to_utf8);
8027 }
8028 }
8029 #if 0 /* This bug could be worked around by the caller. */
8030 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8031 {
8032 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8033 if (cd_88591_to_utf8 != (iconv_t)(-1))
8034 {
8035 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8036 char buf[50];
8037 ICONV_CONST char *inptr = input;
8038 size_t inbytesleft = strlen (input);
8039 char *outptr = buf;
8040 size_t outbytesleft = sizeof (buf);
8041 size_t res = iconv (cd_88591_to_utf8,
8042 &inptr, &inbytesleft,
8043 &outptr, &outbytesleft);
8044 if ((int)res > 0)
8045 result |= 8;
8046 iconv_close (cd_88591_to_utf8);
8047 }
8048 }
8049 #endif
8050 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8051 provided. */
8052 {
8053 /* Try standardized names. */
8054 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8055 /* Try IRIX, OSF/1 names. */
8056 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8057 /* Try AIX names. */
8058 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8059 /* Try HP-UX names. */
8060 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8061 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8062 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8063 result |= 16;
8064 if (cd1 != (iconv_t)(-1))
8065 iconv_close (cd1);
8066 if (cd2 != (iconv_t)(-1))
8067 iconv_close (cd2);
8068 if (cd3 != (iconv_t)(-1))
8069 iconv_close (cd3);
8070 if (cd4 != (iconv_t)(-1))
8071 iconv_close (cd4);
8072 }
8073 return result;
8074
8075 ;
8076 return 0;
8077 }
8078 _ACEOF
8079 if ac_fn_c_try_run "$LINENO"
8080 then :
8081 am_cv_func_iconv_works=yes
8082 fi
8083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8084 conftest.$ac_objext conftest.beam conftest.$ac_ext
8085 fi
8086
8087 test "$am_cv_func_iconv_works" = no || break
8088 done
8089 LIBS="$am_save_LIBS"
8090
8091 fi
8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8093 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
8094 case "$am_cv_func_iconv_works" in
8095 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8096 *) am_func_iconv=yes ;;
8097 esac
8098 else
8099 am_func_iconv=no am_cv_lib_iconv=no
8100 fi
8101 if test "$am_func_iconv" = yes; then
8102
8103 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
8104
8105 fi
8106 if test "$am_cv_lib_iconv" = yes; then
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8108 printf %s "checking how to link with libiconv... " >&6; }
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8110 printf "%s\n" "$LIBICONV" >&6; }
8111 else
8112 CPPFLAGS="$am_save_CPPFLAGS"
8113 LIBICONV=
8114 LTLIBICONV=
8115 fi
8116
8117
8118
8119 if test "$am_cv_func_iconv" = yes; then
8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8121 printf %s "checking for iconv declaration... " >&6; }
8122 if test ${am_cv_proto_iconv+y}
8123 then :
8124 printf %s "(cached) " >&6
8125 else $as_nop
8126
8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8129
8130 #include <stdlib.h>
8131 #include <iconv.h>
8132 extern
8133 #ifdef __cplusplus
8134 "C"
8135 #endif
8136 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
8137 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8138 #else
8139 size_t iconv();
8140 #endif
8141
8142 int
8143 main (void)
8144 {
8145
8146 ;
8147 return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_compile "$LINENO"
8151 then :
8152 am_cv_proto_iconv_arg1=""
8153 else $as_nop
8154 am_cv_proto_iconv_arg1="const"
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8157 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8158 fi
8159
8160 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
8162 $am_cv_proto_iconv" >&5
8163 printf "%s\n" "
8164 $am_cv_proto_iconv" >&6; }
8165 else
8166 am_cv_proto_iconv_arg1=""
8167 fi
8168
8169 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
8170
8171
8172
8173
8174 # use an external libmspack if requested
8175 cabextract_external_libmspack=no
8176
8177 # Check whether --with-external-libmspack was given.
8178 if test ${with_external_libmspack+y}
8179 then :
8180 withval=$with_external_libmspack; cabextract_external_libmspack=$withval
8181 fi
8182
8183
8184 if test "z$cabextract_external_libmspack" != 'zno'; then
8185
8186
8187
8188
8189
8190
8191
8192 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8193 if test -n "$ac_tool_prefix"; then
8194 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8195 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 printf %s "checking for $ac_word... " >&6; }
8198 if test ${ac_cv_path_PKG_CONFIG+y}
8199 then :
8200 printf %s "(cached) " >&6
8201 else $as_nop
8202 case $PKG_CONFIG in
8203 [\\/]* | ?:[\\/]*)
8204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8205 ;;
8206 *)
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8209 do
8210 IFS=$as_save_IFS
8211 case $as_dir in #(((
8212 '') as_dir=./ ;;
8213 */) ;;
8214 *) as_dir=$as_dir/ ;;
8215 esac
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8218 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
8219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8220 break 2
8221 fi
8222 done
8223 done
8224 IFS=$as_save_IFS
8225
8226 ;;
8227 esac
8228 fi
8229 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8230 if test -n "$PKG_CONFIG"; then
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8232 printf "%s\n" "$PKG_CONFIG" >&6; }
8233 else
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 printf "%s\n" "no" >&6; }
8236 fi
8237
8238
8239 fi
8240 if test -z "$ac_cv_path_PKG_CONFIG"; then
8241 ac_pt_PKG_CONFIG=$PKG_CONFIG
8242 # Extract the first word of "pkg-config", so it can be a program name with args.
8243 set dummy pkg-config; ac_word=$2
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 printf %s "checking for $ac_word... " >&6; }
8246 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
8247 then :
8248 printf %s "(cached) " >&6
8249 else $as_nop
8250 case $ac_pt_PKG_CONFIG in
8251 [\\/]* | ?:[\\/]*)
8252 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8253 ;;
8254 *)
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258 IFS=$as_save_IFS
8259 case $as_dir in #(((
8260 '') as_dir=./ ;;
8261 */) ;;
8262 *) as_dir=$as_dir/ ;;
8263 esac
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8266 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
8267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8268 break 2
8269 fi
8270 done
8271 done
8272 IFS=$as_save_IFS
8273
8274 ;;
8275 esac
8276 fi
8277 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8278 if test -n "$ac_pt_PKG_CONFIG"; then
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8280 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
8281 else
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 printf "%s\n" "no" >&6; }
8284 fi
8285
8286 if test "x$ac_pt_PKG_CONFIG" = x; then
8287 PKG_CONFIG=""
8288 else
8289 case $cross_compiling:$ac_tool_warned in
8290 yes:)
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8293 ac_tool_warned=yes ;;
8294 esac
8295 PKG_CONFIG=$ac_pt_PKG_CONFIG
8296 fi
8297 else
8298 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8299 fi
8300
8301 fi
8302 if test -n "$PKG_CONFIG"; then
8303 _pkg_min_version=0.9.0
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8305 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8306 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8308 printf "%s\n" "yes" >&6; }
8309 else
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 printf "%s\n" "no" >&6; }
8312 PKG_CONFIG=""
8313 fi
8314 fi
8315
8316 pkg_failed=no
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmspack" >&5
8318 printf %s "checking for libmspack... " >&6; }
8319
8320 if test -n "$libmspack_CFLAGS"; then
8321 pkg_cv_libmspack_CFLAGS="$libmspack_CFLAGS"
8322 elif test -n "$PKG_CONFIG"; then
8323 if test -n "$PKG_CONFIG" && \
8324 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmspack >= 0.8alpha\""; } >&5
8325 ($PKG_CONFIG --exists --print-errors "libmspack >= 0.8alpha") 2>&5
8326 ac_status=$?
8327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8328 test $ac_status = 0; }; then
8329 pkg_cv_libmspack_CFLAGS=`$PKG_CONFIG --cflags "libmspack >= 0.8alpha" 2>/dev/null`
8330 test "x$?" != "x0" && pkg_failed=yes
8331 else
8332 pkg_failed=yes
8333 fi
8334 else
8335 pkg_failed=untried
8336 fi
8337 if test -n "$libmspack_LIBS"; then
8338 pkg_cv_libmspack_LIBS="$libmspack_LIBS"
8339 elif test -n "$PKG_CONFIG"; then
8340 if test -n "$PKG_CONFIG" && \
8341 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmspack >= 0.8alpha\""; } >&5
8342 ($PKG_CONFIG --exists --print-errors "libmspack >= 0.8alpha") 2>&5
8343 ac_status=$?
8344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8345 test $ac_status = 0; }; then
8346 pkg_cv_libmspack_LIBS=`$PKG_CONFIG --libs "libmspack >= 0.8alpha" 2>/dev/null`
8347 test "x$?" != "x0" && pkg_failed=yes
8348 else
8349 pkg_failed=yes
8350 fi
8351 else
8352 pkg_failed=untried
8353 fi
8354
8355
8356
8357 if test $pkg_failed = yes; then
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 printf "%s\n" "no" >&6; }
8360
8361 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8362 _pkg_short_errors_supported=yes
8363 else
8364 _pkg_short_errors_supported=no
8365 fi
8366 if test $_pkg_short_errors_supported = yes; then
8367 libmspack_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmspack >= 0.8alpha" 2>&1`
8368 else
8369 libmspack_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmspack >= 0.8alpha" 2>&1`
8370 fi
8371 # Put the nasty error message in config.log where it belongs
8372 echo "$libmspack_PKG_ERRORS" >&5
8373
8374 as_fn_error $? "Package requirements (libmspack >= 0.8alpha) were not met:
8375
8376 $libmspack_PKG_ERRORS
8377
8378 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8379 installed software in a non-standard prefix.
8380
8381 Alternatively, you may set the environment variables libmspack_CFLAGS
8382 and libmspack_LIBS to avoid the need to call pkg-config.
8383 See the pkg-config man page for more details." "$LINENO" 5
8384 elif test $pkg_failed = untried; then
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 printf "%s\n" "no" >&6; }
8387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8388 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8389 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8390 is in your PATH or set the PKG_CONFIG environment variable to the full
8391 path to pkg-config.
8392
8393 Alternatively, you may set the environment variables libmspack_CFLAGS
8394 and libmspack_LIBS to avoid the need to call pkg-config.
8395 See the pkg-config man page for more details.
8396
8397 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8398 See \`config.log' for more details" "$LINENO" 5; }
8399 else
8400 libmspack_CFLAGS=$pkg_cv_libmspack_CFLAGS
8401 libmspack_LIBS=$pkg_cv_libmspack_LIBS
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8403 printf "%s\n" "yes" >&6; }
8404
8405 fi
8406 ac_fn_c_check_header_compile "$LINENO" "mspack.h" "ac_cv_header_mspack_h" "$ac_includes_default"
8407 if test "x$ac_cv_header_mspack_h" = xyes
8408 then :
8409
8410 else $as_nop
8411 as_fn_error $? "Cannot find libmspack header" "$LINENO" 5
8412 fi
8413
8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mspack_create_cab_decompressor in -lmspack" >&5
8415 printf %s "checking for mspack_create_cab_decompressor in -lmspack... " >&6; }
8416 if test ${ac_cv_lib_mspack_mspack_create_cab_decompressor+y}
8417 then :
8418 printf %s "(cached) " >&6
8419 else $as_nop
8420 ac_check_lib_save_LIBS=$LIBS
8421 LIBS="-lmspack $LIBS"
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424
8425 /* Override any GCC internal prototype to avoid an error.
8426 Use char because int might match the return type of a GCC
8427 builtin and then its argument prototype would still apply. */
8428 char mspack_create_cab_decompressor ();
8429 int
8430 main (void)
8431 {
8432 return mspack_create_cab_decompressor ();
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"
8438 then :
8439 ac_cv_lib_mspack_mspack_create_cab_decompressor=yes
8440 else $as_nop
8441 ac_cv_lib_mspack_mspack_create_cab_decompressor=no
8442 fi
8443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8444 conftest$ac_exeext conftest.$ac_ext
8445 LIBS=$ac_check_lib_save_LIBS
8446 fi
8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mspack_mspack_create_cab_decompressor" >&5
8448 printf "%s\n" "$ac_cv_lib_mspack_mspack_create_cab_decompressor" >&6; }
8449 if test "x$ac_cv_lib_mspack_mspack_create_cab_decompressor" = xyes
8450 then :
8451 printf "%s\n" "#define HAVE_LIBMSPACK 1" >>confdefs.h
8452
8453 LIBS="-lmspack $LIBS"
8454
8455 else $as_nop
8456 as_fn_error $? "Cannot find libmspack library" "$LINENO" 5
8457 fi
8458
8459 fi
8460 if test "z$cabextract_external_libmspack" != 'zno'; then
8461 EXTERNAL_LIBMSPACK_TRUE=
8462 EXTERNAL_LIBMSPACK_FALSE='#'
8463 else
8464 EXTERNAL_LIBMSPACK_TRUE='#'
8465 EXTERNAL_LIBMSPACK_FALSE=
8466 fi
8467
8468
8469 ac_config_files="$ac_config_files Makefile cabextract.spec test/testcase"
8470
8471 cat >confcache <<\_ACEOF
8472 # This file is a shell script that caches the results of configure
8473 # tests run on this system so they can be shared between configure
8474 # scripts and configure runs, see configure's option --config-cache.
8475 # It is not useful on other systems. If it contains results you don't
8476 # want to keep, you may remove or edit it.
8477 #
8478 # config.status only pays attention to the cache file if you give it
8479 # the --recheck option to rerun configure.
8480 #
8481 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8482 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8483 # following values.
8484
8485 _ACEOF
8486
8487 # The following way of writing the cache mishandles newlines in values,
8488 # but we know of no workaround that is simple, portable, and efficient.
8489 # So, we kill variables containing newlines.
8490 # Ultrix sh set writes to stderr and can't be redirected directly,
8491 # and sets the high bit in the cache file unless we assign to the vars.
8492 (
8493 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8494 eval ac_val=\$$ac_var
8495 case $ac_val in #(
8496 *${as_nl}*)
8497 case $ac_var in #(
8498 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8499 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8500 esac
8501 case $ac_var in #(
8502 _ | IFS | as_nl) ;; #(
8503 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8504 *) { eval $ac_var=; unset $ac_var;} ;;
8505 esac ;;
8506 esac
8507 done
8508
8509 (set) 2>&1 |
8510 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8511 *${as_nl}ac_space=\ *)
8512 # `set' does not quote correctly, so add quotes: double-quote
8513 # substitution turns \\\\ into \\, and sed turns \\ into \.
8514 sed -n \
8515 "s/'/'\\\\''/g;
8516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8517 ;; #(
8518 *)
8519 # `set' quotes correctly as required by POSIX, so do not add quotes.
8520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8521 ;;
8522 esac |
8523 sort
8524 ) |
8525 sed '
8526 /^ac_cv_env_/b end
8527 t clear
8528 :clear
8529 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8530 t end
8531 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8532 :end' >>confcache
8533 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8534 if test -w "$cache_file"; then
8535 if test "x$cache_file" != "x/dev/null"; then
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8537 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8538 if test ! -f "$cache_file" || test -h "$cache_file"; then
8539 cat confcache >"$cache_file"
8540 else
8541 case $cache_file in #(
8542 */* | ?:*)
8543 mv -f confcache "$cache_file"$$ &&
8544 mv -f "$cache_file"$$ "$cache_file" ;; #(
8545 *)
8546 mv -f confcache "$cache_file" ;;
8547 esac
8548 fi
8549 fi
8550 else
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8552 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8553 fi
8554 fi
8555 rm -f confcache
8556
8557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8558 # Let make expand exec_prefix.
8559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8560
8561 DEFS=-DHAVE_CONFIG_H
8562
8563 ac_libobjs=
8564 ac_ltlibobjs=
8565 U=
8566 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8567 # 1. Remove the extension, and $U if already installed.
8568 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8569 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8571 # will be set to the directory where LIBOBJS objects are built.
8572 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8573 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8574 done
8575 LIBOBJS=$ac_libobjs
8576
8577 LTLIBOBJS=$ac_ltlibobjs
8578
8579
8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8581 printf %s "checking that generated files are newer than configure... " >&6; }
8582 if test -n "$am_sleep_pid"; then
8583 # Hide warnings about reused PIDs.
8584 wait $am_sleep_pid 2>/dev/null
8585 fi
8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
8587 printf "%s\n" "done" >&6; }
8588 if test -n "$EXEEXT"; then
8589 am__EXEEXT_TRUE=
8590 am__EXEEXT_FALSE='#'
8591 else
8592 am__EXEEXT_TRUE='#'
8593 am__EXEEXT_FALSE=
8594 fi
8595
8596 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8597 as_fn_error $? "conditional \"AMDEP\" was never defined.
8598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8599 fi
8600 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8601 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8603 fi
8604
8605 if test -z "${EXTERNAL_LIBMSPACK_TRUE}" && test -z "${EXTERNAL_LIBMSPACK_FALSE}"; then
8606 as_fn_error $? "conditional \"EXTERNAL_LIBMSPACK\" was never defined.
8607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8608 fi
8609
8610 : "${CONFIG_STATUS=./config.status}"
8611 ac_write_fail=0
8612 ac_clean_files_save=$ac_clean_files
8613 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8615 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8616 as_write_fail=0
8617 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8618 #! $SHELL
8619 # Generated by $as_me.
8620 # Run this file to recreate the current configuration.
8621 # Compiler output produced by configure, useful for debugging
8622 # configure, is in config.log if it exists.
8623
8624 debug=false
8625 ac_cs_recheck=false
8626 ac_cs_silent=false
8627
8628 SHELL=\${CONFIG_SHELL-$SHELL}
8629 export SHELL
8630 _ASEOF
8631 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8632 ## -------------------- ##
8633 ## M4sh Initialization. ##
8634 ## -------------------- ##
8635
8636 # Be more Bourne compatible
8637 DUALCASE=1; export DUALCASE # for MKS sh
8638 as_nop=:
8639 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8640 then :
8641 emulate sh
8642 NULLCMD=:
8643 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8644 # is contrary to our usage. Disable this feature.
8645 alias -g '${1+"$@"}'='"$@"'
8646 setopt NO_GLOB_SUBST
8647 else $as_nop
8648 case `(set -o) 2>/dev/null` in #(
8649 *posix*) :
8650 set -o posix ;; #(
8651 *) :
8652 ;;
8653 esac
8654 fi
8655
8656
8657
8658 # Reset variables that may have inherited troublesome values from
8659 # the environment.
8660
8661 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8662 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8663 # side effect of setting IFS to empty, thus disabling word splitting.)
8664 # Quoting is to prevent editors from complaining about space-tab.
8665 as_nl='
8666 '
8667 export as_nl
8668 IFS=" "" $as_nl"
8669
8670 PS1='$ '
8671 PS2='> '
8672 PS4='+ '
8673
8674 # Ensure predictable behavior from utilities with locale-dependent output.
8675 LC_ALL=C
8676 export LC_ALL
8677 LANGUAGE=C
8678 export LANGUAGE
8679
8680 # We cannot yet rely on "unset" to work, but we need these variables
8681 # to be unset--not just set to an empty or harmless value--now, to
8682 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8683 # also avoids known problems related to "unset" and subshell syntax
8684 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8685 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8686 do eval test \${$as_var+y} \
8687 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8688 done
8689
8690 # Ensure that fds 0, 1, and 2 are open.
8691 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8692 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8693 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8694
8695 # The user is always right.
8696 if ${PATH_SEPARATOR+false} :; then
8697 PATH_SEPARATOR=:
8698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8699 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8700 PATH_SEPARATOR=';'
8701 }
8702 fi
8703
8704
8705 # Find who we are. Look in the path if we contain no directory separator.
8706 as_myself=
8707 case $0 in #((
8708 *[\\/]* ) as_myself=$0 ;;
8709 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 for as_dir in $PATH
8711 do
8712 IFS=$as_save_IFS
8713 case $as_dir in #(((
8714 '') as_dir=./ ;;
8715 */) ;;
8716 *) as_dir=$as_dir/ ;;
8717 esac
8718 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8719 done
8720 IFS=$as_save_IFS
8721
8722 ;;
8723 esac
8724 # We did not find ourselves, most probably we were run as `sh COMMAND'
8725 # in which case we are not to be found in the path.
8726 if test "x$as_myself" = x; then
8727 as_myself=$0
8728 fi
8729 if test ! -f "$as_myself"; then
8730 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8731 exit 1
8732 fi
8733
8734
8735
8736 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8737 # ----------------------------------------
8738 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8739 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8740 # script with STATUS, using 1 if that was 0.
8741 as_fn_error ()
8742 {
8743 as_status=$1; test $as_status -eq 0 && as_status=1
8744 if test "$4"; then
8745 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8747 fi
8748 printf "%s\n" "$as_me: error: $2" >&2
8749 as_fn_exit $as_status
8750 } # as_fn_error
8751
8752
8753
8754 # as_fn_set_status STATUS
8755 # -----------------------
8756 # Set $? to STATUS, without forking.
8757 as_fn_set_status ()
8758 {
8759 return $1
8760 } # as_fn_set_status
8761
8762 # as_fn_exit STATUS
8763 # -----------------
8764 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8765 as_fn_exit ()
8766 {
8767 set +e
8768 as_fn_set_status $1
8769 exit $1
8770 } # as_fn_exit
8771
8772 # as_fn_unset VAR
8773 # ---------------
8774 # Portably unset VAR.
8775 as_fn_unset ()
8776 {
8777 { eval $1=; unset $1;}
8778 }
8779 as_unset=as_fn_unset
8780
8781 # as_fn_append VAR VALUE
8782 # ----------------------
8783 # Append the text in VALUE to the end of the definition contained in VAR. Take
8784 # advantage of any shell optimizations that allow amortized linear growth over
8785 # repeated appends, instead of the typical quadratic growth present in naive
8786 # implementations.
8787 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8788 then :
8789 eval 'as_fn_append ()
8790 {
8791 eval $1+=\$2
8792 }'
8793 else $as_nop
8794 as_fn_append ()
8795 {
8796 eval $1=\$$1\$2
8797 }
8798 fi # as_fn_append
8799
8800 # as_fn_arith ARG...
8801 # ------------------
8802 # Perform arithmetic evaluation on the ARGs, and store the result in the
8803 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8804 # must be portable across $(()) and expr.
8805 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8806 then :
8807 eval 'as_fn_arith ()
8808 {
8809 as_val=$(( $* ))
8810 }'
8811 else $as_nop
8812 as_fn_arith ()
8813 {
8814 as_val=`expr "$@" || test $? -eq 1`
8815 }
8816 fi # as_fn_arith
8817
8818
8819 if expr a : '\(a\)' >/dev/null 2>&1 &&
8820 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8821 as_expr=expr
8822 else
8823 as_expr=false
8824 fi
8825
8826 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8827 as_basename=basename
8828 else
8829 as_basename=false
8830 fi
8831
8832 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8833 as_dirname=dirname
8834 else
8835 as_dirname=false
8836 fi
8837
8838 as_me=`$as_basename -- "$0" ||
8839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8840 X"$0" : 'X\(//\)$' \| \
8841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8842 printf "%s\n" X/"$0" |
8843 sed '/^.*\/\([^/][^/]*\)\/*$/{
8844 s//\1/
8845 q
8846 }
8847 /^X\/\(\/\/\)$/{
8848 s//\1/
8849 q
8850 }
8851 /^X\/\(\/\).*/{
8852 s//\1/
8853 q
8854 }
8855 s/.*/./; q'`
8856
8857 # Avoid depending upon Character Ranges.
8858 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8859 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8860 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8861 as_cr_digits='0123456789'
8862 as_cr_alnum=$as_cr_Letters$as_cr_digits
8863
8864
8865 # Determine whether it's possible to make 'echo' print without a newline.
8866 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8867 # for compatibility with existing Makefiles.
8868 ECHO_C= ECHO_N= ECHO_T=
8869 case `echo -n x` in #(((((
8870 -n*)
8871 case `echo 'xy\c'` in
8872 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8873 xy) ECHO_C='\c';;
8874 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8875 ECHO_T=' ';;
8876 esac;;
8877 *)
8878 ECHO_N='-n';;
8879 esac
8880
8881 # For backward compatibility with old third-party macros, we provide
8882 # the shell variables $as_echo and $as_echo_n. New code should use
8883 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8884 as_echo='printf %s\n'
8885 as_echo_n='printf %s'
8886
8887 rm -f conf$$ conf$$.exe conf$$.file
8888 if test -d conf$$.dir; then
8889 rm -f conf$$.dir/conf$$.file
8890 else
8891 rm -f conf$$.dir
8892 mkdir conf$$.dir 2>/dev/null
8893 fi
8894 if (echo >conf$$.file) 2>/dev/null; then
8895 if ln -s conf$$.file conf$$ 2>/dev/null; then
8896 as_ln_s='ln -s'
8897 # ... but there are two gotchas:
8898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8900 # In both cases, we have to default to `cp -pR'.
8901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8902 as_ln_s='cp -pR'
8903 elif ln conf$$.file conf$$ 2>/dev/null; then
8904 as_ln_s=ln
8905 else
8906 as_ln_s='cp -pR'
8907 fi
8908 else
8909 as_ln_s='cp -pR'
8910 fi
8911 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8912 rmdir conf$$.dir 2>/dev/null
8913
8914
8915 # as_fn_mkdir_p
8916 # -------------
8917 # Create "$as_dir" as a directory, including parents if necessary.
8918 as_fn_mkdir_p ()
8919 {
8920
8921 case $as_dir in #(
8922 -*) as_dir=./$as_dir;;
8923 esac
8924 test -d "$as_dir" || eval $as_mkdir_p || {
8925 as_dirs=
8926 while :; do
8927 case $as_dir in #(
8928 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8929 *) as_qdir=$as_dir;;
8930 esac
8931 as_dirs="'$as_qdir' $as_dirs"
8932 as_dir=`$as_dirname -- "$as_dir" ||
8933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8934 X"$as_dir" : 'X\(//\)[^/]' \| \
8935 X"$as_dir" : 'X\(//\)$' \| \
8936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8937 printf "%s\n" X"$as_dir" |
8938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8939 s//\1/
8940 q
8941 }
8942 /^X\(\/\/\)[^/].*/{
8943 s//\1/
8944 q
8945 }
8946 /^X\(\/\/\)$/{
8947 s//\1/
8948 q
8949 }
8950 /^X\(\/\).*/{
8951 s//\1/
8952 q
8953 }
8954 s/.*/./; q'`
8955 test -d "$as_dir" && break
8956 done
8957 test -z "$as_dirs" || eval "mkdir $as_dirs"
8958 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8959
8960
8961 } # as_fn_mkdir_p
8962 if mkdir -p . 2>/dev/null; then
8963 as_mkdir_p='mkdir -p "$as_dir"'
8964 else
8965 test -d ./-p && rmdir ./-p
8966 as_mkdir_p=false
8967 fi
8968
8969
8970 # as_fn_executable_p FILE
8971 # -----------------------
8972 # Test if FILE is an executable regular file.
8973 as_fn_executable_p ()
8974 {
8975 test -f "$1" && test -x "$1"
8976 } # as_fn_executable_p
8977 as_test_x='test -x'
8978 as_executable_p=as_fn_executable_p
8979
8980 # Sed expression to map a string onto a valid CPP name.
8981 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8982
8983 # Sed expression to map a string onto a valid variable name.
8984 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8985
8986
8987 exec 6>&1
8988 ## ----------------------------------- ##
8989 ## Main body of $CONFIG_STATUS script. ##
8990 ## ----------------------------------- ##
8991 _ASEOF
8992 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8993
8994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8995 # Save the log message, to keep $0 and so on meaningful, and to
8996 # report actual input values of CONFIG_FILES etc. instead of their
8997 # values after options handling.
8998 ac_log="
8999 This file was extended by cabextract $as_me 1.11, which was
9000 generated by GNU Autoconf 2.71. Invocation command line was
9001
9002 CONFIG_FILES = $CONFIG_FILES
9003 CONFIG_HEADERS = $CONFIG_HEADERS
9004 CONFIG_LINKS = $CONFIG_LINKS
9005 CONFIG_COMMANDS = $CONFIG_COMMANDS
9006 $ $0 $@
9007
9008 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9009 "
9010
9011 _ACEOF
9012
9013 case $ac_config_files in *"
9014 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9015 esac
9016
9017 case $ac_config_headers in *"
9018 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9019 esac
9020
9021
9022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9023 # Files that config.status was made for.
9024 config_files="$ac_config_files"
9025 config_headers="$ac_config_headers"
9026 config_links="$ac_config_links"
9027 config_commands="$ac_config_commands"
9028
9029 _ACEOF
9030
9031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9032 ac_cs_usage="\
9033 \`$as_me' instantiates files and other configuration actions
9034 from templates according to the current configuration. Unless the files
9035 and actions are specified as TAGs, all are instantiated by default.
9036
9037 Usage: $0 [OPTION]... [TAG]...
9038
9039 -h, --help print this help, then exit
9040 -V, --version print version number and configuration settings, then exit
9041 --config print configuration, then exit
9042 -q, --quiet, --silent
9043 do not print progress messages
9044 -d, --debug don't remove temporary files
9045 --recheck update $as_me by reconfiguring in the same conditions
9046 --file=FILE[:TEMPLATE]
9047 instantiate the configuration file FILE
9048 --header=FILE[:TEMPLATE]
9049 instantiate the configuration header FILE
9050
9051 Configuration files:
9052 $config_files
9053
9054 Configuration headers:
9055 $config_headers
9056
9057 Configuration links:
9058 $config_links
9059
9060 Configuration commands:
9061 $config_commands
9062
9063 Report bugs to <[email protected]>."
9064
9065 _ACEOF
9066 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9067 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9069 ac_cs_config='$ac_cs_config_escaped'
9070 ac_cs_version="\\
9071 cabextract config.status 1.11
9072 configured by $0, generated by GNU Autoconf 2.71,
9073 with options \\"\$ac_cs_config\\"
9074
9075 Copyright (C) 2021 Free Software Foundation, Inc.
9076 This config.status script is free software; the Free Software Foundation
9077 gives unlimited permission to copy, distribute and modify it."
9078
9079 ac_pwd='$ac_pwd'
9080 srcdir='$srcdir'
9081 INSTALL='$INSTALL'
9082 MKDIR_P='$MKDIR_P'
9083 AWK='$AWK'
9084 test -n "\$AWK" || AWK=awk
9085 _ACEOF
9086
9087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9088 # The default lists apply if the user does not specify any file.
9089 ac_need_defaults=:
9090 while test $# != 0
9091 do
9092 case $1 in
9093 --*=?*)
9094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9095 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9096 ac_shift=:
9097 ;;
9098 --*=)
9099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9100 ac_optarg=
9101 ac_shift=:
9102 ;;
9103 *)
9104 ac_option=$1
9105 ac_optarg=$2
9106 ac_shift=shift
9107 ;;
9108 esac
9109
9110 case $ac_option in
9111 # Handling of the options.
9112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9113 ac_cs_recheck=: ;;
9114 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9115 printf "%s\n" "$ac_cs_version"; exit ;;
9116 --config | --confi | --conf | --con | --co | --c )
9117 printf "%s\n" "$ac_cs_config"; exit ;;
9118 --debug | --debu | --deb | --de | --d | -d )
9119 debug=: ;;
9120 --file | --fil | --fi | --f )
9121 $ac_shift
9122 case $ac_optarg in
9123 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9124 '') as_fn_error $? "missing file argument" ;;
9125 esac
9126 as_fn_append CONFIG_FILES " '$ac_optarg'"
9127 ac_need_defaults=false;;
9128 --header | --heade | --head | --hea )
9129 $ac_shift
9130 case $ac_optarg in
9131 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9132 esac
9133 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9134 ac_need_defaults=false;;
9135 --he | --h)
9136 # Conflict between --help and --header
9137 as_fn_error $? "ambiguous option: \`$1'
9138 Try \`$0 --help' for more information.";;
9139 --help | --hel | -h )
9140 printf "%s\n" "$ac_cs_usage"; exit ;;
9141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9142 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9143 ac_cs_silent=: ;;
9144
9145 # This is an error.
9146 -*) as_fn_error $? "unrecognized option: \`$1'
9147 Try \`$0 --help' for more information." ;;
9148
9149 *) as_fn_append ac_config_targets " $1"
9150 ac_need_defaults=false ;;
9151
9152 esac
9153 shift
9154 done
9155
9156 ac_configure_extra_args=
9157
9158 if $ac_cs_silent; then
9159 exec 6>/dev/null
9160 ac_configure_extra_args="$ac_configure_extra_args --silent"
9161 fi
9162
9163 _ACEOF
9164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9165 if \$ac_cs_recheck; then
9166 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9167 shift
9168 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9169 CONFIG_SHELL='$SHELL'
9170 export CONFIG_SHELL
9171 exec "\$@"
9172 fi
9173
9174 _ACEOF
9175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9176 exec 5>>config.log
9177 {
9178 echo
9179 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9180 ## Running $as_me. ##
9181 _ASBOX
9182 printf "%s\n" "$ac_log"
9183 } >&5
9184
9185 _ACEOF
9186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9187 #
9188 # INIT-COMMANDS
9189 #
9190 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
9191
9192 _ACEOF
9193
9194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9195
9196 # Handling of arguments.
9197 for ac_config_target in $ac_config_targets
9198 do
9199 case $ac_config_target in
9200 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9201 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9202 "$ac_config_libobj_dir/fnmatch.h") CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
9203 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9204 "cabextract.spec") CONFIG_FILES="$CONFIG_FILES cabextract.spec" ;;
9205 "test/testcase") CONFIG_FILES="$CONFIG_FILES test/testcase" ;;
9206
9207 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9208 esac
9209 done
9210
9211
9212 # If the user did not use the arguments to specify the items to instantiate,
9213 # then the envvar interface is used. Set only those that are not.
9214 # We use the long form for the default assignment because of an extremely
9215 # bizarre bug on SunOS 4.1.3.
9216 if $ac_need_defaults; then
9217 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9218 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
9219 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
9220 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
9221 fi
9222
9223 # Have a temporary directory for convenience. Make it in the build tree
9224 # simply because there is no reason against having it here, and in addition,
9225 # creating and moving files from /tmp can sometimes cause problems.
9226 # Hook for its removal unless debugging.
9227 # Note that there is a small window in which the directory will not be cleaned:
9228 # after its creation but before its name has been assigned to `$tmp'.
9229 $debug ||
9230 {
9231 tmp= ac_tmp=
9232 trap 'exit_status=$?
9233 : "${ac_tmp:=$tmp}"
9234 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9235 ' 0
9236 trap 'as_fn_exit 1' 1 2 13 15
9237 }
9238 # Create a (secure) tmp directory for tmp files.
9239
9240 {
9241 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9242 test -d "$tmp"
9243 } ||
9244 {
9245 tmp=./conf$$-$RANDOM
9246 (umask 077 && mkdir "$tmp")
9247 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9248 ac_tmp=$tmp
9249
9250 # Set up the scripts for CONFIG_FILES section.
9251 # No need to generate them if there are no CONFIG_FILES.
9252 # This happens for instance with `./config.status config.h'.
9253 if test -n "$CONFIG_FILES"; then
9254
9255
9256 ac_cr=`echo X | tr X '\015'`
9257 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9258 # But we know of no other shell where ac_cr would be empty at this
9259 # point, so we can use a bashism as a fallback.
9260 if test "x$ac_cr" = x; then
9261 eval ac_cr=\$\'\\r\'
9262 fi
9263 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9265 ac_cs_awk_cr='\\r'
9266 else
9267 ac_cs_awk_cr=$ac_cr
9268 fi
9269
9270 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9271 _ACEOF
9272
9273
9274 {
9275 echo "cat >conf$$subs.awk <<_ACEOF" &&
9276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9277 echo "_ACEOF"
9278 } >conf$$subs.sh ||
9279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9281 ac_delim='%!_!# '
9282 for ac_last_try in false false false false false :; do
9283 . ./conf$$subs.sh ||
9284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9285
9286 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9287 if test $ac_delim_n = $ac_delim_num; then
9288 break
9289 elif $ac_last_try; then
9290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9291 else
9292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9293 fi
9294 done
9295 rm -f conf$$subs.sh
9296
9297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9298 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9299 _ACEOF
9300 sed -n '
9301 h
9302 s/^/S["/; s/!.*/"]=/
9303 p
9304 g
9305 s/^[^!]*!//
9306 :repl
9307 t repl
9308 s/'"$ac_delim"'$//
9309 t delim
9310 :nl
9311 h
9312 s/\(.\{148\}\)..*/\1/
9313 t more1
9314 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9315 p
9316 n
9317 b repl
9318 :more1
9319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9320 p
9321 g
9322 s/.\{148\}//
9323 t nl
9324 :delim
9325 h
9326 s/\(.\{148\}\)..*/\1/
9327 t more2
9328 s/["\\]/\\&/g; s/^/"/; s/$/"/
9329 p
9330 b
9331 :more2
9332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9333 p
9334 g
9335 s/.\{148\}//
9336 t delim
9337 ' <conf$$subs.awk | sed '
9338 /^[^""]/{
9339 N
9340 s/\n//
9341 }
9342 ' >>$CONFIG_STATUS || ac_write_fail=1
9343 rm -f conf$$subs.awk
9344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9345 _ACAWK
9346 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9347 for (key in S) S_is_set[key] = 1
9348 FS = ""
9349
9350 }
9351 {
9352 line = $ 0
9353 nfields = split(line, field, "@")
9354 substed = 0
9355 len = length(field[1])
9356 for (i = 2; i < nfields; i++) {
9357 key = field[i]
9358 keylen = length(key)
9359 if (S_is_set[key]) {
9360 value = S[key]
9361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9362 len += length(value) + length(field[++i])
9363 substed = 1
9364 } else
9365 len += 1 + keylen
9366 }
9367
9368 print line
9369 }
9370
9371 _ACAWK
9372 _ACEOF
9373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9374 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9375 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9376 else
9377 cat
9378 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9379 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9380 _ACEOF
9381
9382 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9383 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9384 # trailing colons and then remove the whole line if VPATH becomes empty
9385 # (actually we leave an empty line to preserve line numbers).
9386 if test "x$srcdir" = x.; then
9387 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9388 h
9389 s///
9390 s/^/:/
9391 s/[ ]*$/:/
9392 s/:\$(srcdir):/:/g
9393 s/:\${srcdir}:/:/g
9394 s/:@srcdir@:/:/g
9395 s/^:*//
9396 s/:*$//
9397 x
9398 s/\(=[ ]*\).*/\1/
9399 G
9400 s/\n//
9401 s/^[^=]*=[ ]*$//
9402 }'
9403 fi
9404
9405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9406 fi # test -n "$CONFIG_FILES"
9407
9408 # Set up the scripts for CONFIG_HEADERS section.
9409 # No need to generate them if there are no CONFIG_HEADERS.
9410 # This happens for instance with `./config.status Makefile'.
9411 if test -n "$CONFIG_HEADERS"; then
9412 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9413 BEGIN {
9414 _ACEOF
9415
9416 # Transform confdefs.h into an awk script `defines.awk', embedded as
9417 # here-document in config.status, that substitutes the proper values into
9418 # config.h.in to produce config.h.
9419
9420 # Create a delimiter string that does not exist in confdefs.h, to ease
9421 # handling of long lines.
9422 ac_delim='%!_!# '
9423 for ac_last_try in false false :; do
9424 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9425 if test -z "$ac_tt"; then
9426 break
9427 elif $ac_last_try; then
9428 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9429 else
9430 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9431 fi
9432 done
9433
9434 # For the awk script, D is an array of macro values keyed by name,
9435 # likewise P contains macro parameters if any. Preserve backslash
9436 # newline sequences.
9437
9438 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9439 sed -n '
9440 s/.\{148\}/&'"$ac_delim"'/g
9441 t rset
9442 :rset
9443 s/^[ ]*#[ ]*define[ ][ ]*/ /
9444 t def
9445 d
9446 :def
9447 s/\\$//
9448 t bsnl
9449 s/["\\]/\\&/g
9450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9451 D["\1"]=" \3"/p
9452 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9453 d
9454 :bsnl
9455 s/["\\]/\\&/g
9456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9457 D["\1"]=" \3\\\\\\n"\\/p
9458 t cont
9459 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9460 t cont
9461 d
9462 :cont
9463 n
9464 s/.\{148\}/&'"$ac_delim"'/g
9465 t clear
9466 :clear
9467 s/\\$//
9468 t bsnlc
9469 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9470 d
9471 :bsnlc
9472 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9473 b cont
9474 ' <confdefs.h | sed '
9475 s/'"$ac_delim"'/"\\\
9476 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9477
9478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9479 for (key in D) D_is_set[key] = 1
9480 FS = ""
9481 }
9482 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9483 line = \$ 0
9484 split(line, arg, " ")
9485 if (arg[1] == "#") {
9486 defundef = arg[2]
9487 mac1 = arg[3]
9488 } else {
9489 defundef = substr(arg[1], 2)
9490 mac1 = arg[2]
9491 }
9492 split(mac1, mac2, "(") #)
9493 macro = mac2[1]
9494 prefix = substr(line, 1, index(line, defundef) - 1)
9495 if (D_is_set[macro]) {
9496 # Preserve the white space surrounding the "#".
9497 print prefix "define", macro P[macro] D[macro]
9498 next
9499 } else {
9500 # Replace #undef with comments. This is necessary, for example,
9501 # in the case of _POSIX_SOURCE, which is predefined and required
9502 # on some systems where configure will not decide to define it.
9503 if (defundef == "undef") {
9504 print "/*", prefix defundef, macro, "*/"
9505 next
9506 }
9507 }
9508 }
9509 { print }
9510 _ACAWK
9511 _ACEOF
9512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9513 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9514 fi # test -n "$CONFIG_HEADERS"
9515
9516
9517 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
9518 shift
9519 for ac_tag
9520 do
9521 case $ac_tag in
9522 :[FHLC]) ac_mode=$ac_tag; continue;;
9523 esac
9524 case $ac_mode$ac_tag in
9525 :[FHL]*:*);;
9526 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9527 :[FH]-) ac_tag=-:-;;
9528 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9529 esac
9530 ac_save_IFS=$IFS
9531 IFS=:
9532 set x $ac_tag
9533 IFS=$ac_save_IFS
9534 shift
9535 ac_file=$1
9536 shift
9537
9538 case $ac_mode in
9539 :L) ac_source=$1;;
9540 :[FH])
9541 ac_file_inputs=
9542 for ac_f
9543 do
9544 case $ac_f in
9545 -) ac_f="$ac_tmp/stdin";;
9546 *) # Look for the file first in the build tree, then in the source tree
9547 # (if the path is not absolute). The absolute path cannot be DOS-style,
9548 # because $ac_f cannot contain `:'.
9549 test -f "$ac_f" ||
9550 case $ac_f in
9551 [\\/$]*) false;;
9552 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9553 esac ||
9554 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9555 esac
9556 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9557 as_fn_append ac_file_inputs " '$ac_f'"
9558 done
9559
9560 # Let's still pretend it is `configure' which instantiates (i.e., don't
9561 # use $as_me), people would be surprised to read:
9562 # /* config.h. Generated by config.status. */
9563 configure_input='Generated from '`
9564 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9565 `' by configure.'
9566 if test x"$ac_file" != x-; then
9567 configure_input="$ac_file. $configure_input"
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9569 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9570 fi
9571 # Neutralize special characters interpreted by sed in replacement strings.
9572 case $configure_input in #(
9573 *\&* | *\|* | *\\* )
9574 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9575 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9576 *) ac_sed_conf_input=$configure_input;;
9577 esac
9578
9579 case $ac_tag in
9580 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9582 esac
9583 ;;
9584 esac
9585
9586 ac_dir=`$as_dirname -- "$ac_file" ||
9587 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9588 X"$ac_file" : 'X\(//\)[^/]' \| \
9589 X"$ac_file" : 'X\(//\)$' \| \
9590 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9591 printf "%s\n" X"$ac_file" |
9592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9593 s//\1/
9594 q
9595 }
9596 /^X\(\/\/\)[^/].*/{
9597 s//\1/
9598 q
9599 }
9600 /^X\(\/\/\)$/{
9601 s//\1/
9602 q
9603 }
9604 /^X\(\/\).*/{
9605 s//\1/
9606 q
9607 }
9608 s/.*/./; q'`
9609 as_dir="$ac_dir"; as_fn_mkdir_p
9610 ac_builddir=.
9611
9612 case "$ac_dir" in
9613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9614 *)
9615 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9616 # A ".." for each directory in $ac_dir_suffix.
9617 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9618 case $ac_top_builddir_sub in
9619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9621 esac ;;
9622 esac
9623 ac_abs_top_builddir=$ac_pwd
9624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9625 # for backward compatibility:
9626 ac_top_builddir=$ac_top_build_prefix
9627
9628 case $srcdir in
9629 .) # We are building in place.
9630 ac_srcdir=.
9631 ac_top_srcdir=$ac_top_builddir_sub
9632 ac_abs_top_srcdir=$ac_pwd ;;
9633 [\\/]* | ?:[\\/]* ) # Absolute name.
9634 ac_srcdir=$srcdir$ac_dir_suffix;
9635 ac_top_srcdir=$srcdir
9636 ac_abs_top_srcdir=$srcdir ;;
9637 *) # Relative name.
9638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9639 ac_top_srcdir=$ac_top_build_prefix$srcdir
9640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9641 esac
9642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9643
9644
9645 case $ac_mode in
9646 :F)
9647 #
9648 # CONFIG_FILE
9649 #
9650
9651 case $INSTALL in
9652 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9653 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9654 esac
9655 ac_MKDIR_P=$MKDIR_P
9656 case $MKDIR_P in
9657 [\\/$]* | ?:[\\/]* ) ;;
9658 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9659 esac
9660 _ACEOF
9661
9662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9663 # If the template does not know about datarootdir, expand it.
9664 # FIXME: This hack should be removed a few years after 2.60.
9665 ac_datarootdir_hack=; ac_datarootdir_seen=
9666 ac_sed_dataroot='
9667 /datarootdir/ {
9668 p
9669 q
9670 }
9671 /@datadir@/p
9672 /@docdir@/p
9673 /@infodir@/p
9674 /@localedir@/p
9675 /@mandir@/p'
9676 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9677 *datarootdir*) ac_datarootdir_seen=yes;;
9678 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9680 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9681 _ACEOF
9682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9683 ac_datarootdir_hack='
9684 s&@datadir@&$datadir&g
9685 s&@docdir@&$docdir&g
9686 s&@infodir@&$infodir&g
9687 s&@localedir@&$localedir&g
9688 s&@mandir@&$mandir&g
9689 s&\\\${datarootdir}&$datarootdir&g' ;;
9690 esac
9691 _ACEOF
9692
9693 # Neutralize VPATH when `$srcdir' = `.'.
9694 # Shell code in configure.ac might set extrasub.
9695 # FIXME: do we really want to maintain this feature?
9696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9697 ac_sed_extra="$ac_vpsub
9698 $extrasub
9699 _ACEOF
9700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9701 :t
9702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9703 s|@configure_input@|$ac_sed_conf_input|;t t
9704 s&@top_builddir@&$ac_top_builddir_sub&;t t
9705 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9706 s&@srcdir@&$ac_srcdir&;t t
9707 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9708 s&@top_srcdir@&$ac_top_srcdir&;t t
9709 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9710 s&@builddir@&$ac_builddir&;t t
9711 s&@abs_builddir@&$ac_abs_builddir&;t t
9712 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9713 s&@INSTALL@&$ac_INSTALL&;t t
9714 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9715 $ac_datarootdir_hack
9716 "
9717 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9718 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9719
9720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9721 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9723 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9725 which seems to be undefined. Please make sure it is defined" >&5
9726 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9727 which seems to be undefined. Please make sure it is defined" >&2;}
9728
9729 rm -f "$ac_tmp/stdin"
9730 case $ac_file in
9731 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9732 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9733 esac \
9734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9735 ;;
9736 :H)
9737 #
9738 # CONFIG_HEADER
9739 #
9740 if test x"$ac_file" != x-; then
9741 {
9742 printf "%s\n" "/* $configure_input */" >&1 \
9743 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9744 } >"$ac_tmp/config.h" \
9745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9746 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9748 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9749 else
9750 rm -f "$ac_file"
9751 mv "$ac_tmp/config.h" "$ac_file" \
9752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9753 fi
9754 else
9755 printf "%s\n" "/* $configure_input */" >&1 \
9756 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9757 || as_fn_error $? "could not create -" "$LINENO" 5
9758 fi
9759 # Compute "$ac_file"'s index in $config_headers.
9760 _am_arg="$ac_file"
9761 _am_stamp_count=1
9762 for _am_header in $config_headers :; do
9763 case $_am_header in
9764 $_am_arg | $_am_arg:* )
9765 break ;;
9766 * )
9767 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9768 esac
9769 done
9770 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9771 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9772 X"$_am_arg" : 'X\(//\)[^/]' \| \
9773 X"$_am_arg" : 'X\(//\)$' \| \
9774 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9775 printf "%s\n" X"$_am_arg" |
9776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9777 s//\1/
9778 q
9779 }
9780 /^X\(\/\/\)[^/].*/{
9781 s//\1/
9782 q
9783 }
9784 /^X\(\/\/\)$/{
9785 s//\1/
9786 q
9787 }
9788 /^X\(\/\).*/{
9789 s//\1/
9790 q
9791 }
9792 s/.*/./; q'`/stamp-h$_am_stamp_count
9793 ;;
9794 :L)
9795 #
9796 # CONFIG_LINK
9797 #
9798
9799 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
9800 :
9801 else
9802 # Prefer the file from the source tree if names are identical.
9803 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
9804 ac_source=$srcdir/$ac_source
9805 fi
9806
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
9808 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
9809
9810 if test ! -r "$ac_source"; then
9811 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
9812 fi
9813 rm -f "$ac_file"
9814
9815 # Try a relative symlink, then a hard link, then a copy.
9816 case $ac_source in
9817 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
9818 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
9819 esac
9820 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
9821 ln "$ac_source" "$ac_file" 2>/dev/null ||
9822 cp -p "$ac_source" "$ac_file" ||
9823 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
9824 fi
9825 ;;
9826 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9827 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
9828 ;;
9829 esac
9830
9831
9832 case $ac_file$ac_mode in
9833 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9834 # Older Autoconf quotes --file arguments for eval, but not when files
9835 # are listed without --file. Let's play safe and only enable the eval
9836 # if we detect the quoting.
9837 # TODO: see whether this extra hack can be removed once we start
9838 # requiring Autoconf 2.70 or later.
9839 case $CONFIG_FILES in #(
9840 *\'*) :
9841 eval set x "$CONFIG_FILES" ;; #(
9842 *) :
9843 set x $CONFIG_FILES ;; #(
9844 *) :
9845 ;;
9846 esac
9847 shift
9848 # Used to flag and report bootstrapping failures.
9849 am_rc=0
9850 for am_mf
9851 do
9852 # Strip MF so we end up with the name of the file.
9853 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
9854 # Check whether this is an Automake generated Makefile which includes
9855 # dependency-tracking related rules and includes.
9856 # Grep'ing the whole file directly is not great: AIX grep has a line
9857 # limit of 2048, but all sed's we know have understand at least 4000.
9858 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
9859 || continue
9860 am_dirpart=`$as_dirname -- "$am_mf" ||
9861 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9862 X"$am_mf" : 'X\(//\)[^/]' \| \
9863 X"$am_mf" : 'X\(//\)$' \| \
9864 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9865 printf "%s\n" X"$am_mf" |
9866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9867 s//\1/
9868 q
9869 }
9870 /^X\(\/\/\)[^/].*/{
9871 s//\1/
9872 q
9873 }
9874 /^X\(\/\/\)$/{
9875 s//\1/
9876 q
9877 }
9878 /^X\(\/\).*/{
9879 s//\1/
9880 q
9881 }
9882 s/.*/./; q'`
9883 am_filepart=`$as_basename -- "$am_mf" ||
9884 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
9885 X"$am_mf" : 'X\(//\)$' \| \
9886 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9887 printf "%s\n" X/"$am_mf" |
9888 sed '/^.*\/\([^/][^/]*\)\/*$/{
9889 s//\1/
9890 q
9891 }
9892 /^X\/\(\/\/\)$/{
9893 s//\1/
9894 q
9895 }
9896 /^X\/\(\/\).*/{
9897 s//\1/
9898 q
9899 }
9900 s/.*/./; q'`
9901 { echo "$as_me:$LINENO: cd "$am_dirpart" \
9902 && sed -e '/# am--include-marker/d' "$am_filepart" \
9903 | $MAKE -f - am--depfiles" >&5
9904 (cd "$am_dirpart" \
9905 && sed -e '/# am--include-marker/d' "$am_filepart" \
9906 | $MAKE -f - am--depfiles) >&5 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } || am_rc=$?
9910 done
9911 if test $am_rc -ne 0; then
9912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9913 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9914 as_fn_error $? "Something went wrong bootstrapping makefile fragments
9915 for automatic dependency tracking. If GNU make was not used, consider
9916 re-running the configure script with MAKE=\"gmake\" (or whatever is
9917 necessary). You can also try re-running configure with the
9918 '--disable-dependency-tracking' option to at least be able to build
9919 the package (albeit without support for automatic dependency tracking).
9920 See \`config.log' for more details" "$LINENO" 5; }
9921 fi
9922 { am_dirpart=; unset am_dirpart;}
9923 { am_filepart=; unset am_filepart;}
9924 { am_mf=; unset am_mf;}
9925 { am_rc=; unset am_rc;}
9926 rm -f conftest-deps.mk
9927 }
9928 ;;
9929
9930 esac
9931 done # for ac_tag
9932
9933
9934 as_fn_exit 0
9935 _ACEOF
9936 ac_clean_files=$ac_clean_files_save
9937
9938 test $ac_write_fail = 0 ||
9939 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9940
9941
9942 # configure is writing to config.log, and then calls config.status.
9943 # config.status does its own redirection, appending to config.log.
9944 # Unfortunately, on DOS this fails, as config.log is still kept open
9945 # by configure, so config.status won't be able to write to it; its
9946 # output is simply discarded. So we exec the FD to /dev/null,
9947 # effectively closing config.log, so it can be properly (re)opened and
9948 # appended to by config.status. When coming back to configure, we
9949 # need to make the FD available again.
9950 if test "$no_create" != yes; then
9951 ac_cs_success=:
9952 ac_config_status_args=
9953 test "$silent" = yes &&
9954 ac_config_status_args="$ac_config_status_args --quiet"
9955 exec 5>/dev/null
9956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9957 exec 5>>config.log
9958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9959 # would make configure fail if this is the last instruction.
9960 $ac_cs_success || as_fn_exit 1
9961 fi
9962 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9964 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9965 fi
9966
9967