Debian Codegraph @

src/argp/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for argp standalone-1.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME='argp'
579 PACKAGE_TARNAME='argp'
580 PACKAGE_VERSION='standalone-1.3'
581 PACKAGE_STRING='argp standalone-1.3'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="argp-ba.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='am__EXEEXT_FALSE
623 am__EXEEXT_TRUE
624 LTLIBOBJS
625 LIBOBJS
626 ALLOCA
627 RANLIB
628 EGREP
629 GREP
630 CPP
631 am__fastdepCC_FALSE
632 am__fastdepCC_TRUE
633 CCDEPMODE
634 am__nodep
635 AMDEPBACKSLASH
636 AMDEP_FALSE
637 AMDEP_TRUE
638 am__quote
639 am__include
640 DEPDIR
641 OBJEXT
642 EXEEXT
643 ac_ct_CC
644 CPPFLAGS
645 LDFLAGS
646 CFLAGS
647 CC
648 AM_BACKSLASH
649 AM_DEFAULT_VERBOSITY
650 AM_DEFAULT_V
651 AM_V
652 am__untar
653 am__tar
654 AMTAR
655 am__leading_dot
656 SET_MAKE
657 AWK
658 mkdir_p
659 MKDIR_P
660 INSTALL_STRIP_PROGRAM
661 STRIP
662 install_sh
663 MAKEINFO
664 AUTOHEADER
665 AUTOMAKE
666 AUTOCONF
667 ACLOCAL
668 VERSION
669 PACKAGE
670 CYGPATH_W
671 am__isrc
672 INSTALL_DATA
673 INSTALL_SCRIPT
674 INSTALL_PROGRAM
675 target_alias
676 host_alias
677 build_alias
678 LIBS
679 ECHO_T
680 ECHO_N
681 ECHO_C
682 DEFS
683 mandir
684 localedir
685 libdir
686 psdir
687 pdfdir
688 dvidir
689 htmldir
690 infodir
691 docdir
692 oldincludedir
693 includedir
694 localstatedir
695 sharedstatedir
696 sysconfdir
697 datadir
698 datarootdir
699 libexecdir
700 sbindir
701 bindir
702 program_transform_name
703 prefix
704 exec_prefix
705 PACKAGE_URL
706 PACKAGE_BUGREPORT
707 PACKAGE_STRING
708 PACKAGE_VERSION
709 PACKAGE_TARNAME
710 PACKAGE_NAME
711 PATH_SEPARATOR
712 SHELL'
713 ac_subst_files=''
714 ac_user_opts='
715 enable_option_checking
716 enable_silent_rules
717 enable_dependency_tracking
718 '
719 ac_precious_vars='build_alias
720 host_alias
721 target_alias
722 CC
723 CFLAGS
724 LDFLAGS
725 LIBS
726 CPPFLAGS
727 CPP'
728
729
730 # Initialize some variables set by options.
731 ac_init_help=
732 ac_init_version=false
733 ac_unrecognized_opts=
734 ac_unrecognized_sep=
735 # The variables have the same names as the options, with
736 # dashes changed to underlines.
737 cache_file=/dev/null
738 exec_prefix=NONE
739 no_create=
740 no_recursion=
741 prefix=NONE
742 program_prefix=NONE
743 program_suffix=NONE
744 program_transform_name=s,x,x,
745 silent=
746 site=
747 srcdir=
748 verbose=
749 x_includes=NONE
750 x_libraries=NONE
751
752 # Installation directory options.
753 # These are left unexpanded so users can "make install exec_prefix=/foo"
754 # and all the variables that are supposed to be based on exec_prefix
755 # by default will actually change.
756 # Use braces instead of parens because sh, perl, etc. also accept them.
757 # (The list follows the same order as the GNU Coding Standards.)
758 bindir='${exec_prefix}/bin'
759 sbindir='${exec_prefix}/sbin'
760 libexecdir='${exec_prefix}/libexec'
761 datarootdir='${prefix}/share'
762 datadir='${datarootdir}'
763 sysconfdir='${prefix}/etc'
764 sharedstatedir='${prefix}/com'
765 localstatedir='${prefix}/var'
766 includedir='${prefix}/include'
767 oldincludedir='/usr/include'
768 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
769 infodir='${datarootdir}/info'
770 htmldir='${docdir}'
771 dvidir='${docdir}'
772 pdfdir='${docdir}'
773 psdir='${docdir}'
774 libdir='${exec_prefix}/lib'
775 localedir='${datarootdir}/locale'
776 mandir='${datarootdir}/man'
777
778 ac_prev=
779 ac_dashdash=
780 for ac_option
781 do
782 # If the previous option needs an argument, assign it.
783 if test -n "$ac_prev"; then
784 eval $ac_prev=\$ac_option
785 ac_prev=
786 continue
787 fi
788
789 case $ac_option in
790 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
791 *=) ac_optarg= ;;
792 *) ac_optarg=yes ;;
793 esac
794
795 # Accept the important Cygnus configure options, so we can diagnose typos.
796
797 case $ac_dashdash$ac_option in
798 --)
799 ac_dashdash=yes ;;
800
801 -bindir | --bindir | --bindi | --bind | --bin | --bi)
802 ac_prev=bindir ;;
803 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 bindir=$ac_optarg ;;
805
806 -build | --build | --buil | --bui | --bu)
807 ac_prev=build_alias ;;
808 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809 build_alias=$ac_optarg ;;
810
811 -cache-file | --cache-file | --cache-fil | --cache-fi \
812 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813 ac_prev=cache_file ;;
814 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816 cache_file=$ac_optarg ;;
817
818 --config-cache | -C)
819 cache_file=config.cache ;;
820
821 -datadir | --datadir | --datadi | --datad)
822 ac_prev=datadir ;;
823 -datadir=* | --datadir=* | --datadi=* | --datad=*)
824 datadir=$ac_optarg ;;
825
826 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827 | --dataroo | --dataro | --datar)
828 ac_prev=datarootdir ;;
829 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831 datarootdir=$ac_optarg ;;
832
833 -disable-* | --disable-*)
834 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
837 as_fn_error $? "invalid feature name: $ac_useropt"
838 ac_useropt_orig=$ac_useropt
839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
841 *"
842 "enable_$ac_useropt"
843 "*) ;;
844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
845 ac_unrecognized_sep=', ';;
846 esac
847 eval enable_$ac_useropt=no ;;
848
849 -docdir | --docdir | --docdi | --doc | --do)
850 ac_prev=docdir ;;
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 docdir=$ac_optarg ;;
853
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 ac_prev=dvidir ;;
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 dvidir=$ac_optarg ;;
858
859 -enable-* | --enable-*)
860 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863 as_fn_error $? "invalid feature name: $ac_useropt"
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
867 *"
868 "enable_$ac_useropt"
869 "*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
872 esac
873 eval enable_$ac_useropt=\$ac_optarg ;;
874
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
883
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
886 with_gas=yes ;;
887
888 -help | --help | --hel | --he | -h)
889 ac_init_help=long ;;
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
894
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
899
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
901 ac_prev=htmldir ;;
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
903 | --ht=*)
904 htmldir=$ac_optarg ;;
905
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
912
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
914 ac_prev=infodir ;;
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
917
918 -libdir | --libdir | --libdi | --libd)
919 ac_prev=libdir ;;
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 libdir=$ac_optarg ;;
922
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
929
930 -localedir | --localedir | --localedi | --localed | --locale)
931 ac_prev=localedir ;;
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
934
935 -localstatedir | --localstatedir | --localstatedi | --localstated \
936 | --localstate | --localstat | --localsta | --localst | --locals)
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940 localstatedir=$ac_optarg ;;
941
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
943 ac_prev=mandir ;;
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
945 mandir=$ac_optarg ;;
946
947 -nfp | --nfp | --nf)
948 # Obsolete; use --without-fp.
949 with_fp=no ;;
950
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
953 no_create=yes ;;
954
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 no_recursion=yes ;;
958
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
967
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
969 ac_prev=prefix ;;
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 prefix=$ac_optarg ;;
972
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
979
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
986
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1003
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1005 ac_prev=pdfdir ;;
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1008
1009 -psdir | --psdir | --psdi | --psd | --ps)
1010 ac_prev=psdir ;;
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 psdir=$ac_optarg ;;
1013
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 silent=yes ;;
1017
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1019 ac_prev=sbindir ;;
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1021 | --sbi=* | --sb=*)
1022 sbindir=$ac_optarg ;;
1023
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1027 | --sha | --sh)
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1032 | --sha=* | --sh=*)
1033 sharedstatedir=$ac_optarg ;;
1034
1035 -site | --site | --sit)
1036 ac_prev=site ;;
1037 -site=* | --site=* | --sit=*)
1038 site=$ac_optarg ;;
1039
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1041 ac_prev=srcdir ;;
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1044
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1051
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1056
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 verbose=yes ;;
1059
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1062
1063 -with-* | --with-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error $? "invalid package name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1071 *"
1072 "with_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval with_$ac_useropt=\$ac_optarg ;;
1078
1079 -without-* | --without-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid package name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1087 *"
1088 "with_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval with_$ac_useropt=no ;;
1094
1095 --x)
1096 # Obsolete; use --with-x.
1097 with_x=yes ;;
1098
1099 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1100 | --x-incl | --x-inc | --x-in | --x-i)
1101 ac_prev=x_includes ;;
1102 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1103 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1104 x_includes=$ac_optarg ;;
1105
1106 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1107 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1108 ac_prev=x_libraries ;;
1109 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1110 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1111 x_libraries=$ac_optarg ;;
1112
1113 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1114 Try \`$0 --help' for more information"
1115 ;;
1116
1117 *=*)
1118 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1119 # Reject names that are not valid shell variable names.
1120 case $ac_envvar in #(
1121 '' | [0-9]* | *[!_$as_cr_alnum]* )
1122 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1123 esac
1124 eval $ac_envvar=\$ac_optarg
1125 export $ac_envvar ;;
1126
1127 *)
1128 # FIXME: should be removed in autoconf 3.0.
1129 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1130 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1131 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1132 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1133 ;;
1134
1135 esac
1136 done
1137
1138 if test -n "$ac_prev"; then
1139 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1140 as_fn_error $? "missing argument to $ac_option"
1141 fi
1142
1143 if test -n "$ac_unrecognized_opts"; then
1144 case $enable_option_checking in
1145 no) ;;
1146 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1147 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1148 esac
1149 fi
1150
1151 # Check all directory arguments for consistency.
1152 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1153 datadir sysconfdir sharedstatedir localstatedir includedir \
1154 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1155 libdir localedir mandir
1156 do
1157 eval ac_val=\$$ac_var
1158 # Remove trailing slashes.
1159 case $ac_val in
1160 */ )
1161 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1162 eval $ac_var=\$ac_val;;
1163 esac
1164 # Be sure to have absolute directory names.
1165 case $ac_val in
1166 [\\/$]* | ?:[\\/]* ) continue;;
1167 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1168 esac
1169 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1170 done
1171
1172 # There might be people who depend on the old broken behavior: `$host'
1173 # used to hold the argument of --host etc.
1174 # FIXME: To remove some day.
1175 build=$build_alias
1176 host=$host_alias
1177 target=$target_alias
1178
1179 # FIXME: To remove some day.
1180 if test "x$host_alias" != x; then
1181 if test "x$build_alias" = x; then
1182 cross_compiling=maybe
1183 elif test "x$build_alias" != "x$host_alias"; then
1184 cross_compiling=yes
1185 fi
1186 fi
1187
1188 ac_tool_prefix=
1189 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1190
1191 test "$silent" = yes && exec 6>/dev/null
1192
1193
1194 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1195 ac_ls_di=`ls -di .` &&
1196 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1197 as_fn_error $? "working directory cannot be determined"
1198 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1199 as_fn_error $? "pwd does not report name of working directory"
1200
1201
1202 # Find the source files, if location was not specified.
1203 if test -z "$srcdir"; then
1204 ac_srcdir_defaulted=yes
1205 # Try the directory containing this script, then the parent directory.
1206 ac_confdir=`$as_dirname -- "$as_myself" ||
1207 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208 X"$as_myself" : 'X\(//\)[^/]' \| \
1209 X"$as_myself" : 'X\(//\)$' \| \
1210 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1211 $as_echo X"$as_myself" |
1212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 s//\1/
1214 q
1215 }
1216 /^X\(\/\/\)[^/].*/{
1217 s//\1/
1218 q
1219 }
1220 /^X\(\/\/\)$/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\).*/{
1225 s//\1/
1226 q
1227 }
1228 s/.*/./; q'`
1229 srcdir=$ac_confdir
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 srcdir=..
1232 fi
1233 else
1234 ac_srcdir_defaulted=no
1235 fi
1236 if test ! -r "$srcdir/$ac_unique_file"; then
1237 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1238 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1239 fi
1240 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1241 ac_abs_confdir=`(
1242 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1243 pwd)`
1244 # When building in place, set srcdir=.
1245 if test "$ac_abs_confdir" = "$ac_pwd"; then
1246 srcdir=.
1247 fi
1248 # Remove unnecessary trailing slashes from srcdir.
1249 # Double slashes in file names in object file debugging info
1250 # mess up M-x gdb in Emacs.
1251 case $srcdir in
1252 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1253 esac
1254 for ac_var in $ac_precious_vars; do
1255 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1256 eval ac_env_${ac_var}_value=\$${ac_var}
1257 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1258 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1259 done
1260
1261 #
1262 # Report the --help message.
1263 #
1264 if test "$ac_init_help" = "long"; then
1265 # Omit some internal or obsolete options to make the list less imposing.
1266 # This message is too long to be a string in the A/UX 3.1 sh.
1267 cat <<_ACEOF
1268 \`configure' configures argp standalone-1.3 to adapt to many kinds of systems.
1269
1270 Usage: $0 [OPTION]... [VAR=VALUE]...
1271
1272 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1273 VAR=VALUE. See below for descriptions of some of the useful variables.
1274
1275 Defaults for the options are specified in brackets.
1276
1277 Configuration:
1278 -h, --help display this help and exit
1279 --help=short display options specific to this package
1280 --help=recursive display the short help of all the included packages
1281 -V, --version display version information and exit
1282 -q, --quiet, --silent do not print \`checking ...' messages
1283 --cache-file=FILE cache test results in FILE [disabled]
1284 -C, --config-cache alias for \`--cache-file=config.cache'
1285 -n, --no-create do not create output files
1286 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1287
1288 Installation directories:
1289 --prefix=PREFIX install architecture-independent files in PREFIX
1290 [$ac_default_prefix]
1291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1292 [PREFIX]
1293
1294 By default, \`make install' will install all the files in
1295 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1296 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1297 for instance \`--prefix=\$HOME'.
1298
1299 For better control, use the options below.
1300
1301 Fine tuning of the installation directories:
1302 --bindir=DIR user executables [EPREFIX/bin]
1303 --sbindir=DIR system admin executables [EPREFIX/sbin]
1304 --libexecdir=DIR program executables [EPREFIX/libexec]
1305 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1306 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1307 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1308 --libdir=DIR object code libraries [EPREFIX/lib]
1309 --includedir=DIR C header files [PREFIX/include]
1310 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1311 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1312 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1313 --infodir=DIR info documentation [DATAROOTDIR/info]
1314 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1315 --mandir=DIR man documentation [DATAROOTDIR/man]
1316 --docdir=DIR documentation root [DATAROOTDIR/doc/argp]
1317 --htmldir=DIR html documentation [DOCDIR]
1318 --dvidir=DIR dvi documentation [DOCDIR]
1319 --pdfdir=DIR pdf documentation [DOCDIR]
1320 --psdir=DIR ps documentation [DOCDIR]
1321 _ACEOF
1322
1323 cat <<\_ACEOF
1324
1325 Program names:
1326 --program-prefix=PREFIX prepend PREFIX to installed program names
1327 --program-suffix=SUFFIX append SUFFIX to installed program names
1328 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1329 _ACEOF
1330 fi
1331
1332 if test -n "$ac_init_help"; then
1333 case $ac_init_help in
1334 short | recursive ) echo "Configuration of argp standalone-1.3:";;
1335 esac
1336 cat <<\_ACEOF
1337
1338 Optional Features:
1339 --disable-option-checking ignore unrecognized --enable/--with options
1340 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1341 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1342 --enable-silent-rules less verbose build output (undo: "make V=1")
1343 --disable-silent-rules verbose build output (undo: "make V=0")
1344 --enable-dependency-tracking
1345 do not reject slow dependency extractors
1346 --disable-dependency-tracking
1347 speeds up one-time build
1348
1349 Some influential environment variables:
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1353 nonstandard directory <lib dir>
1354 LIBS libraries to pass to the linker, e.g. -l<library>
1355 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1356 you have headers in a nonstandard directory <include dir>
1357 CPP C preprocessor
1358
1359 Use these variables to override the choices made by `configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1361
1362 Report bugs to the package provider.
1363 _ACEOF
1364 ac_status=$?
1365 fi
1366
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" ||
1371 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1372 continue
1373 ac_builddir=.
1374
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *)
1378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1390
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1420 fi
1421
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 argp configure standalone-1.3
1426 generated by GNU Autoconf 2.69
1427
1428 Copyright (C) 2012 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1431 _ACEOF
1432 exit
1433 fi
1434
1435 ## ------------------------ ##
1436 ## Autoconf initialization. ##
1437 ## ------------------------ ##
1438
1439 # ac_fn_c_try_compile LINENO
1440 # --------------------------
1441 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1442 ac_fn_c_try_compile ()
1443 {
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 rm -f conftest.$ac_objext
1446 if { { ac_try="$ac_compile"
1447 case "(($ac_try" in
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1450 esac
1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_compile") 2>conftest.err
1454 ac_status=$?
1455 if test -s conftest.err; then
1456 grep -v '^ *+' conftest.err >conftest.er1
1457 cat conftest.er1 >&5
1458 mv -f conftest.er1 conftest.err
1459 fi
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } && {
1462 test -z "$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1464 } && test -s conftest.$ac_objext; then :
1465 ac_retval=0
1466 else
1467 $as_echo "$as_me: failed program was:" >&5
1468 sed 's/^/| /' conftest.$ac_ext >&5
1469
1470 ac_retval=1
1471 fi
1472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1473 as_fn_set_status $ac_retval
1474
1475 } # ac_fn_c_try_compile
1476
1477 # ac_fn_c_try_cpp LINENO
1478 # ----------------------
1479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_c_try_cpp ()
1481 {
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 if { { ac_try="$ac_cpp conftest.$ac_ext"
1484 case "(($ac_try" in
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1487 esac
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1491 ac_status=$?
1492 if test -s conftest.err; then
1493 grep -v '^ *+' conftest.err >conftest.er1
1494 cat conftest.er1 >&5
1495 mv -f conftest.er1 conftest.err
1496 fi
1497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498 test $ac_status = 0; } > conftest.i && {
1499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1500 test ! -s conftest.err
1501 }; then :
1502 ac_retval=0
1503 else
1504 $as_echo "$as_me: failed program was:" >&5
1505 sed 's/^/| /' conftest.$ac_ext >&5
1506
1507 ac_retval=1
1508 fi
1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1510 as_fn_set_status $ac_retval
1511
1512 } # ac_fn_c_try_cpp
1513
1514 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1515 # -------------------------------------------------------
1516 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1517 # the include files in INCLUDES and setting the cache variable VAR
1518 # accordingly.
1519 ac_fn_c_check_header_mongrel ()
1520 {
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 if eval \${$3+:} false; then :
1523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1524 $as_echo_n "checking for $2... " >&6; }
1525 if eval \${$3+:} false; then :
1526 $as_echo_n "(cached) " >&6
1527 fi
1528 eval ac_res=\$$3
1529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1530 $as_echo "$ac_res" >&6; }
1531 else
1532 # Is the header compilable?
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1534 $as_echo_n "checking $2 usability... " >&6; }
1535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1536 /* end confdefs.h. */
1537 $4
1538 #include <$2>
1539 _ACEOF
1540 if ac_fn_c_try_compile "$LINENO"; then :
1541 ac_header_compiler=yes
1542 else
1543 ac_header_compiler=no
1544 fi
1545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1547 $as_echo "$ac_header_compiler" >&6; }
1548
1549 # Is the header present?
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1551 $as_echo_n "checking $2 presence... " >&6; }
1552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553 /* end confdefs.h. */
1554 #include <$2>
1555 _ACEOF
1556 if ac_fn_c_try_cpp "$LINENO"; then :
1557 ac_header_preproc=yes
1558 else
1559 ac_header_preproc=no
1560 fi
1561 rm -f conftest.err conftest.i conftest.$ac_ext
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1563 $as_echo "$ac_header_preproc" >&6; }
1564
1565 # So? What about this header?
1566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1567 yes:no: )
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1569 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1571 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1572 ;;
1573 no:yes:* )
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1575 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1577 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1579 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1581 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1583 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1584 ;;
1585 esac
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if eval \${$3+:} false; then :
1589 $as_echo_n "(cached) " >&6
1590 else
1591 eval "$3=\$ac_header_compiler"
1592 fi
1593 eval ac_res=\$$3
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595 $as_echo "$ac_res" >&6; }
1596 fi
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598
1599 } # ac_fn_c_check_header_mongrel
1600
1601 # ac_fn_c_try_run LINENO
1602 # ----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1604 # that executables *can* be run.
1605 ac_fn_c_try_run ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_link"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>&5
1616 ac_status=$?
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1619 { { case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_try") 2>&5
1626 ac_status=$?
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; }; }; then :
1629 ac_retval=0
1630 else
1631 $as_echo "$as_me: program exited with status $ac_status" >&5
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=$ac_status
1636 fi
1637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
1640
1641 } # ac_fn_c_try_run
1642
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if eval \${$3+:} false; then :
1653 $as_echo_n "(cached) " >&6
1654 else
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1657 $4
1658 #include <$2>
1659 _ACEOF
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 eval "$3=yes"
1662 else
1663 eval "$3=no"
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 fi
1667 eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672 } # ac_fn_c_check_header_compile
1673
1674 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1675 # -------------------------------------------
1676 # Tests whether TYPE exists after having included INCLUDES, setting cache
1677 # variable VAR accordingly.
1678 ac_fn_c_check_type ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684 $as_echo_n "(cached) " >&6
1685 else
1686 eval "$3=no"
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 $4
1690 int
1691 main ()
1692 {
1693 if (sizeof ($2))
1694 return 0;
1695 ;
1696 return 0;
1697 }
1698 _ACEOF
1699 if ac_fn_c_try_compile "$LINENO"; then :
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 $4
1703 int
1704 main ()
1705 {
1706 if (sizeof (($2)))
1707 return 0;
1708 ;
1709 return 0;
1710 }
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713
1714 else
1715 eval "$3=yes"
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 fi
1721 eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726 } # ac_fn_c_check_type
1727
1728 # ac_fn_c_try_link LINENO
1729 # -----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_link ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 rm -f conftest.$ac_objext conftest$ac_exeext
1735 if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>conftest.err
1743 ac_status=$?
1744 if test -s conftest.err; then
1745 grep -v '^ *+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1748 fi
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && {
1751 test -z "$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 } && test -s conftest$ac_exeext && {
1754 test "$cross_compiling" = yes ||
1755 test -x conftest$ac_exeext
1756 }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=1
1763 fi
1764 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1765 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1766 # interfere with the next link command; also delete a directory that is
1767 # left behind by Apple's compiler. We do this before executing the actions.
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_link
1773
1774 # ac_fn_c_check_func LINENO FUNC VAR
1775 # ----------------------------------
1776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1777 ac_fn_c_check_func ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1789 #define $2 innocuous_$2
1790
1791 /* System header to define __stub macros and hopefully few prototypes,
1792 which can conflict with char $2 (); below.
1793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794 <limits.h> exists even on freestanding compilers. */
1795
1796 #ifdef __STDC__
1797 # include <limits.h>
1798 #else
1799 # include <assert.h>
1800 #endif
1801
1802 #undef $2
1803
1804 /* Override any GCC internal prototype to avoid an error.
1805 Use char because int might match the return type of a GCC
1806 builtin and then its argument prototype would still apply. */
1807 #ifdef __cplusplus
1808 extern "C"
1809 #endif
1810 char $2 ();
1811 /* The GNU C library defines this for functions which it implements
1812 to always fail with ENOSYS. Some functions are actually named
1813 something starting with __ and the normal name is an alias. */
1814 #if defined __stub_$2 || defined __stub___$2
1815 choke me
1816 #endif
1817
1818 int
1819 main ()
1820 {
1821 return $2 ();
1822 ;
1823 return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_link "$LINENO"; then :
1827 eval "$3=yes"
1828 else
1829 eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext \
1832 conftest$ac_exeext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_func
1840
1841 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1842 # ---------------------------------------------
1843 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1844 # accordingly.
1845 ac_fn_c_check_decl ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 as_decl_name=`echo $2|sed 's/ *(.*//'`
1849 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1851 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 $4
1858 int
1859 main ()
1860 {
1861 #ifndef $as_decl_name
1862 #ifdef __cplusplus
1863 (void) $as_decl_use;
1864 #else
1865 (void) $as_decl_name;
1866 #endif
1867 #endif
1868
1869 ;
1870 return 0;
1871 }
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 eval "$3=yes"
1875 else
1876 eval "$3=no"
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885 } # ac_fn_c_check_decl
1886 cat >config.log <<_ACEOF
1887 This file contains any messages produced by compilers while
1888 running configure, to aid debugging if configure makes a mistake.
1889
1890 It was created by argp $as_me standalone-1.3, which was
1891 generated by GNU Autoconf 2.69. Invocation command line was
1892
1893 $ $0 $@
1894
1895 _ACEOF
1896 exec 5>>config.log
1897 {
1898 cat <<_ASUNAME
1899 ## --------- ##
1900 ## Platform. ##
1901 ## --------- ##
1902
1903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908
1909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1911
1912 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1913 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1915 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1916 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1917 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1918 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1919
1920 _ASUNAME
1921
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 $as_echo "PATH: $as_dir"
1928 done
1929 IFS=$as_save_IFS
1930
1931 } >&5
1932
1933 cat >&5 <<_ACEOF
1934
1935
1936 ## ----------- ##
1937 ## Core tests. ##
1938 ## ----------- ##
1939
1940 _ACEOF
1941
1942
1943 # Keep a trace of the command line.
1944 # Strip out --no-create and --no-recursion so they do not pile up.
1945 # Strip out --silent because we don't want to record it for future runs.
1946 # Also quote any args containing shell meta-characters.
1947 # Make two passes to allow for proper duplicate-argument suppression.
1948 ac_configure_args=
1949 ac_configure_args0=
1950 ac_configure_args1=
1951 ac_must_keep_next=false
1952 for ac_pass in 1 2
1953 do
1954 for ac_arg
1955 do
1956 case $ac_arg in
1957 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1959 | -silent | --silent | --silen | --sile | --sil)
1960 continue ;;
1961 *\'*)
1962 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1963 esac
1964 case $ac_pass in
1965 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1966 2)
1967 as_fn_append ac_configure_args1 " '$ac_arg'"
1968 if test $ac_must_keep_next = true; then
1969 ac_must_keep_next=false # Got value, back to normal.
1970 else
1971 case $ac_arg in
1972 *=* | --config-cache | -C | -disable-* | --disable-* \
1973 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1974 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1975 | -with-* | --with-* | -without-* | --without-* | --x)
1976 case "$ac_configure_args0 " in
1977 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1978 esac
1979 ;;
1980 -* ) ac_must_keep_next=true ;;
1981 esac
1982 fi
1983 as_fn_append ac_configure_args " '$ac_arg'"
1984 ;;
1985 esac
1986 done
1987 done
1988 { ac_configure_args0=; unset ac_configure_args0;}
1989 { ac_configure_args1=; unset ac_configure_args1;}
1990
1991 # When interrupted or exit'd, cleanup temporary files, and complete
1992 # config.log. We remove comments because anyway the quotes in there
1993 # would cause problems or look ugly.
1994 # WARNING: Use '\'' to represent an apostrophe within the trap.
1995 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1996 trap 'exit_status=$?
1997 # Save into config.log some information that might help in debugging.
1998 {
1999 echo
2000
2001 $as_echo "## ---------------- ##
2002 ## Cache variables. ##
2003 ## ---------------- ##"
2004 echo
2005 # The following way of writing the cache mishandles newlines in values,
2006 (
2007 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2008 eval ac_val=\$$ac_var
2009 case $ac_val in #(
2010 *${as_nl}*)
2011 case $ac_var in #(
2012 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2013 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2014 esac
2015 case $ac_var in #(
2016 _ | IFS | as_nl) ;; #(
2017 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2018 *) { eval $ac_var=; unset $ac_var;} ;;
2019 esac ;;
2020 esac
2021 done
2022 (set) 2>&1 |
2023 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2024 *${as_nl}ac_space=\ *)
2025 sed -n \
2026 "s/'\''/'\''\\\\'\'''\''/g;
2027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2028 ;; #(
2029 *)
2030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2031 ;;
2032 esac |
2033 sort
2034 )
2035 echo
2036
2037 $as_echo "## ----------------- ##
2038 ## Output variables. ##
2039 ## ----------------- ##"
2040 echo
2041 for ac_var in $ac_subst_vars
2042 do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2050
2051 if test -n "$ac_subst_files"; then
2052 $as_echo "## ------------------- ##
2053 ## File substitutions. ##
2054 ## ------------------- ##"
2055 echo
2056 for ac_var in $ac_subst_files
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065 fi
2066
2067 if test -s confdefs.h; then
2068 $as_echo "## ----------- ##
2069 ## confdefs.h. ##
2070 ## ----------- ##"
2071 echo
2072 cat confdefs.h
2073 echo
2074 fi
2075 test "$ac_signal" != 0 &&
2076 $as_echo "$as_me: caught signal $ac_signal"
2077 $as_echo "$as_me: exit $exit_status"
2078 } >&5
2079 rm -f core *.core core.conftest.* &&
2080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2081 exit $exit_status
2082 ' 0
2083 for ac_signal in 1 2 13 15; do
2084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2085 done
2086 ac_signal=0
2087
2088 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2089 rm -f -r conftest* confdefs.h
2090
2091 $as_echo "/* confdefs.h */" > confdefs.h
2092
2093 # Predefined preprocessor variables.
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_NAME "$PACKAGE_NAME"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_STRING "$PACKAGE_STRING"
2109 _ACEOF
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2113 _ACEOF
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_URL "$PACKAGE_URL"
2117 _ACEOF
2118
2119
2120 # Let the site file select an alternate cache file if it wants to.
2121 # Prefer an explicitly selected file to automatically selected ones.
2122 ac_site_file1=NONE
2123 ac_site_file2=NONE
2124 if test -n "$CONFIG_SITE"; then
2125 # We do not want a PATH search for config.site.
2126 case $CONFIG_SITE in #((
2127 -*) ac_site_file1=./$CONFIG_SITE;;
2128 */*) ac_site_file1=$CONFIG_SITE;;
2129 *) ac_site_file1=./$CONFIG_SITE;;
2130 esac
2131 elif test "x$prefix" != xNONE; then
2132 ac_site_file1=$prefix/share/config.site
2133 ac_site_file2=$prefix/etc/config.site
2134 else
2135 ac_site_file1=$ac_default_prefix/share/config.site
2136 ac_site_file2=$ac_default_prefix/etc/config.site
2137 fi
2138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139 do
2140 test "x$ac_site_file" = xNONE && continue
2141 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2144 sed 's/^/| /' "$ac_site_file" >&5
2145 . "$ac_site_file" \
2146 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2148 as_fn_error $? "failed to load site script $ac_site_file
2149 See \`config.log' for more details" "$LINENO" 5; }
2150 fi
2151 done
2152
2153 if test -r "$cache_file"; then
2154 # Some versions of bash will fail to source /dev/null (special files
2155 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2156 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158 $as_echo "$as_me: loading cache $cache_file" >&6;}
2159 case $cache_file in
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
2162 esac
2163 fi
2164 else
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166 $as_echo "$as_me: creating cache $cache_file" >&6;}
2167 >$cache_file
2168 fi
2169
2170 # Check that the precious variables saved in the cache have kept the same
2171 # value.
2172 ac_cache_corrupted=false
2173 for ac_var in $ac_precious_vars; do
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
2178 case $ac_old_set,$ac_new_set in
2179 set,)
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2183 ,set)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2187 ,);;
2188 *)
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2206 fi;;
2207 esac
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2210 case $ac_new_val in
2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2213 esac
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2217 esac
2218 fi
2219 done
2220 if $ac_cache_corrupted; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2226 fi
2227 ## -------------------- ##
2228 ## Main body of script. ##
2229 ## -------------------- ##
2230
2231 ac_ext=c
2232 ac_cpp='$CPP $CPPFLAGS'
2233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236
2237
2238
2239
2240 # Needed to stop autoconf from looking for files in parent directories.
2241 ac_aux_dir=
2242 for ac_dir in . "$srcdir"/.; do
2243 if test -f "$ac_dir/install-sh"; then
2244 ac_aux_dir=$ac_dir
2245 ac_install_sh="$ac_aux_dir/install-sh -c"
2246 break
2247 elif test -f "$ac_dir/install.sh"; then
2248 ac_aux_dir=$ac_dir
2249 ac_install_sh="$ac_aux_dir/install.sh -c"
2250 break
2251 elif test -f "$ac_dir/shtool"; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/shtool install -c"
2254 break
2255 fi
2256 done
2257 if test -z "$ac_aux_dir"; then
2258 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2259 fi
2260
2261 # These three variables are undocumented and unsupported,
2262 # and are intended to be withdrawn in a future Autoconf release.
2263 # They can cause serious problems if a builder's source tree is in a directory
2264 # whose full name contains unusual characters.
2265 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2266 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2267 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2268
2269
2270
2271 am__api_version='1.13'
2272
2273 # Find a good install program. We prefer a C program (faster),
2274 # so one script is as good as another. But avoid the broken or
2275 # incompatible versions:
2276 # SysV /etc/install, /usr/sbin/install
2277 # SunOS /usr/etc/install
2278 # IRIX /sbin/install
2279 # AIX /bin/install
2280 # AmigaOS /C/install, which installs bootblocks on floppy discs
2281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2284 # OS/2's system install, which has a completely different semantic
2285 # ./install, which can be erroneously created by make from ./install.sh.
2286 # Reject install programs that cannot install multiple files.
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2288 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2289 if test -z "$INSTALL"; then
2290 if ${ac_cv_path_install+:} false; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 # Account for people who put trailing slashes in PATH elements.
2299 case $as_dir/ in #((
2300 ./ | .// | /[cC]/* | \
2301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2302 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2303 /usr/ucb/* ) ;;
2304 *)
2305 # OSF1 and SCO ODT 3.0 have their own names for install.
2306 # Don't use installbsd from OSF since it installs stuff as root
2307 # by default.
2308 for ac_prog in ginstall scoinst install; do
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2311 if test $ac_prog = install &&
2312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313 # AIX install. It has an incompatible calling convention.
2314 :
2315 elif test $ac_prog = install &&
2316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2317 # program-specific install script used by HP pwplus--don't use.
2318 :
2319 else
2320 rm -rf conftest.one conftest.two conftest.dir
2321 echo one > conftest.one
2322 echo two > conftest.two
2323 mkdir conftest.dir
2324 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2325 test -s conftest.one && test -s conftest.two &&
2326 test -s conftest.dir/conftest.one &&
2327 test -s conftest.dir/conftest.two
2328 then
2329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2330 break 3
2331 fi
2332 fi
2333 fi
2334 done
2335 done
2336 ;;
2337 esac
2338
2339 done
2340 IFS=$as_save_IFS
2341
2342 rm -rf conftest.one conftest.two conftest.dir
2343
2344 fi
2345 if test "${ac_cv_path_install+set}" = set; then
2346 INSTALL=$ac_cv_path_install
2347 else
2348 # As a last resort, use the slow shell script. Don't cache a
2349 # value for INSTALL within a source directory, because that will
2350 # break other packages using the cache if that directory is
2351 # removed, or if the value is a relative name.
2352 INSTALL=$ac_install_sh
2353 fi
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2356 $as_echo "$INSTALL" >&6; }
2357
2358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2359 # It thinks the first close brace ends the variable substitution.
2360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2361
2362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2363
2364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2365
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2367 $as_echo_n "checking whether build environment is sane... " >&6; }
2368 # Reject unsafe characters in $srcdir or the absolute working directory
2369 # name. Accept space and tab only in the latter.
2370 am_lf='
2371 '
2372 case `pwd` in
2373 *[\\\"\#\$\&\'\`$am_lf]*)
2374 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2375 esac
2376 case $srcdir in
2377 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2378 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2379 esac
2380
2381 # Do 'set' in a subshell so we don't clobber the current shell's
2382 # arguments. Must try -L first in case configure is actually a
2383 # symlink; some systems play weird games with the mod time of symlinks
2384 # (eg FreeBSD returns the mod time of the symlink's containing
2385 # directory).
2386 if (
2387 am_has_slept=no
2388 for am_try in 1 2; do
2389 echo "timestamp, slept: $am_has_slept" > conftest.file
2390 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2391 if test "$*" = "X"; then
2392 # -L didn't work.
2393 set X `ls -t "$srcdir/configure" conftest.file`
2394 fi
2395 if test "$*" != "X $srcdir/configure conftest.file" \
2396 && test "$*" != "X conftest.file $srcdir/configure"; then
2397
2398 # If neither matched, then we have a broken ls. This can happen
2399 # if, for instance, CONFIG_SHELL is bash and it inherits a
2400 # broken ls alias from the environment. This has actually
2401 # happened. Such a system could not be considered "sane".
2402 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2403 alias in your environment" "$LINENO" 5
2404 fi
2405 if test "$2" = conftest.file || test $am_try -eq 2; then
2406 break
2407 fi
2408 # Just in case.
2409 sleep 1
2410 am_has_slept=yes
2411 done
2412 test "$2" = conftest.file
2413 )
2414 then
2415 # Ok.
2416 :
2417 else
2418 as_fn_error $? "newly created file is older than distributed files!
2419 Check your system clock" "$LINENO" 5
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2422 $as_echo "yes" >&6; }
2423 # If we didn't sleep, we still need to ensure time stamps of config.status and
2424 # generated files are strictly newer.
2425 am_sleep_pid=
2426 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2427 ( sleep 1 ) &
2428 am_sleep_pid=$!
2429 fi
2430
2431 rm -f conftest.file
2432
2433 test "$program_prefix" != NONE &&
2434 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2435 # Use a double $ so make ignores it.
2436 test "$program_suffix" != NONE &&
2437 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2438 # Double any \ or $.
2439 # By default was `s,x,x', remove it if useless.
2440 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2441 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2442
2443 # expand $ac_aux_dir to an absolute path
2444 am_aux_dir=`cd $ac_aux_dir && pwd`
2445
2446 if test x"${MISSING+set}" != xset; then
2447 case $am_aux_dir in
2448 *\ * | *\ *)
2449 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2450 *)
2451 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2452 esac
2453 fi
2454 # Use eval to expand $SHELL
2455 if eval "$MISSING --is-lightweight"; then
2456 am_missing_run="$MISSING "
2457 else
2458 am_missing_run=
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2460 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2461 fi
2462
2463 if test x"${install_sh}" != xset; then
2464 case $am_aux_dir in
2465 *\ * | *\ *)
2466 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2467 *)
2468 install_sh="\${SHELL} $am_aux_dir/install-sh"
2469 esac
2470 fi
2471
2472 # Installed binaries are usually stripped using 'strip' when the user
2473 # run "make install-strip". However 'strip' might not be the right
2474 # tool to use in cross-compilation environments, therefore Automake
2475 # will honor the 'STRIP' environment variable to overrule this program.
2476 if test "$cross_compiling" != no; then
2477 if test -n "$ac_tool_prefix"; then
2478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}strip; ac_word=$2
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if ${ac_cv_prog_STRIP+:} false; then :
2483 $as_echo_n "(cached) " >&6
2484 else
2485 if test -n "$STRIP"; then
2486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 STRIP=$ac_cv_prog_STRIP
2506 if test -n "$STRIP"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2508 $as_echo "$STRIP" >&6; }
2509 else
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511 $as_echo "no" >&6; }
2512 fi
2513
2514
2515 fi
2516 if test -z "$ac_cv_prog_STRIP"; then
2517 ac_ct_STRIP=$STRIP
2518 # Extract the first word of "strip", so it can be a program name with args.
2519 set dummy strip; ac_word=$2
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521 $as_echo_n "checking for $ac_word... " >&6; }
2522 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 if test -n "$ac_ct_STRIP"; then
2526 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2535 ac_cv_prog_ac_ct_STRIP="strip"
2536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2538 fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2546 if test -n "$ac_ct_STRIP"; then
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2548 $as_echo "$ac_ct_STRIP" >&6; }
2549 else
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551 $as_echo "no" >&6; }
2552 fi
2553
2554 if test "x$ac_ct_STRIP" = x; then
2555 STRIP=":"
2556 else
2557 case $cross_compiling:$ac_tool_warned in
2558 yes:)
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2561 ac_tool_warned=yes ;;
2562 esac
2563 STRIP=$ac_ct_STRIP
2564 fi
2565 else
2566 STRIP="$ac_cv_prog_STRIP"
2567 fi
2568
2569 fi
2570 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2573 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2574 if test -z "$MKDIR_P"; then
2575 if ${ac_cv_path_mkdir+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2580 do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_prog in mkdir gmkdir; do
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2586 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2587 'mkdir (GNU coreutils) '* | \
2588 'mkdir (coreutils) '* | \
2589 'mkdir (fileutils) '4.1*)
2590 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2591 break 3;;
2592 esac
2593 done
2594 done
2595 done
2596 IFS=$as_save_IFS
2597
2598 fi
2599
2600 test -d ./--version && rmdir ./--version
2601 if test "${ac_cv_path_mkdir+set}" = set; then
2602 MKDIR_P="$ac_cv_path_mkdir -p"
2603 else
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for MKDIR_P within a source directory, because that will
2606 # break other packages using the cache if that directory is
2607 # removed, or if the value is a relative name.
2608 MKDIR_P="$ac_install_sh -d"
2609 fi
2610 fi
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2612 $as_echo "$MKDIR_P" >&6; }
2613
2614 for ac_prog in gawk mawk nawk awk
2615 do
2616 # Extract the first word of "$ac_prog", so it can be a program name with args.
2617 set dummy $ac_prog; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if ${ac_cv_prog_AWK+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 if test -n "$AWK"; then
2624 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_AWK="$ac_prog"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2636 fi
2637 done
2638 done
2639 IFS=$as_save_IFS
2640
2641 fi
2642 fi
2643 AWK=$ac_cv_prog_AWK
2644 if test -n "$AWK"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2646 $as_echo "$AWK" >&6; }
2647 else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2650 fi
2651
2652
2653 test -n "$AWK" && break
2654 done
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2657 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2658 set x ${MAKE-make}
2659 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2660 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 cat >conftest.make <<\_ACEOF
2664 SHELL = /bin/sh
2665 all:
2666 @echo '@@@%%%=$(MAKE)=@@@%%%'
2667 _ACEOF
2668 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2669 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2670 *@@@%%%=?*=@@@%%%*)
2671 eval ac_cv_prog_make_${ac_make}_set=yes;;
2672 *)
2673 eval ac_cv_prog_make_${ac_make}_set=no;;
2674 esac
2675 rm -f conftest.make
2676 fi
2677 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2679 $as_echo "yes" >&6; }
2680 SET_MAKE=
2681 else
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683 $as_echo "no" >&6; }
2684 SET_MAKE="MAKE=${MAKE-make}"
2685 fi
2686
2687 rm -rf .tst 2>/dev/null
2688 mkdir .tst 2>/dev/null
2689 if test -d .tst; then
2690 am__leading_dot=.
2691 else
2692 am__leading_dot=_
2693 fi
2694 rmdir .tst 2>/dev/null
2695
2696 # Check whether --enable-silent-rules was given.
2697 if test "${enable_silent_rules+set}" = set; then :
2698 enableval=$enable_silent_rules;
2699 fi
2700
2701 case $enable_silent_rules in # (((
2702 yes) AM_DEFAULT_VERBOSITY=0;;
2703 no) AM_DEFAULT_VERBOSITY=1;;
2704 *) AM_DEFAULT_VERBOSITY=1;;
2705 esac
2706 am_make=${MAKE-make}
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2708 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2709 if ${am_cv_make_support_nested_variables+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if $as_echo 'TRUE=$(BAR$(V))
2713 BAR0=false
2714 BAR1=true
2715 V=1
2716 am__doit:
2717 @$(TRUE)
2718 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2719 am_cv_make_support_nested_variables=yes
2720 else
2721 am_cv_make_support_nested_variables=no
2722 fi
2723 fi
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2725 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2726 if test $am_cv_make_support_nested_variables = yes; then
2727 AM_V='$(V)'
2728 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2729 else
2730 AM_V=$AM_DEFAULT_VERBOSITY
2731 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2732 fi
2733 AM_BACKSLASH='\'
2734
2735 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2736 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2737 # is not polluted with repeated "-I."
2738 am__isrc=' -I$(srcdir)'
2739 # test to see if srcdir already configured
2740 if test -f $srcdir/config.status; then
2741 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2742 fi
2743 fi
2744
2745 # test whether we have cygpath
2746 if test -z "$CYGPATH_W"; then
2747 if (cygpath --version) >/dev/null 2>/dev/null; then
2748 CYGPATH_W='cygpath -w'
2749 else
2750 CYGPATH_W=echo
2751 fi
2752 fi
2753
2754
2755 # Define the identity of the package.
2756 PACKAGE='argp'
2757 VERSION='standalone-1.3'
2758
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define PACKAGE "$PACKAGE"
2762 _ACEOF
2763
2764
2765 cat >>confdefs.h <<_ACEOF
2766 #define VERSION "$VERSION"
2767 _ACEOF
2768
2769 # Some tools Automake needs.
2770
2771 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2772
2773
2774 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2775
2776
2777 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2778
2779
2780 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2781
2782
2783 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2784
2785 # For better backward compatibility. To be removed once Automake 1.9.x
2786 # dies out for good. For more background, see:
2787 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2788 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2789 mkdir_p='$(MKDIR_P)'
2790
2791 # We need awk for the "check" target. The system "awk" is bad on
2792 # some platforms.
2793 # Always define AMTAR for backward compatibility. Yes, it's still used
2794 # in the wild :-( We should find a proper way to deprecate it ...
2795 AMTAR='$${TAR-tar}'
2796
2797
2798 # We'll loop over all known methods to create a tar archive until one works.
2799 _am_tools='gnutar pax cpio none'
2800
2801 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2802
2803
2804
2805
2806
2807
2808 ac_config_headers="$ac_config_headers config.h"
2809
2810
2811 # GNU libc defaults to supplying the ISO C library functions only. The
2812 # _GNU_SOURCE define enables these extensions, in particular we want
2813 # errno.h to declare program_invocation_name. Enable it on all
2814 # systems; no problems have been reported with it so far.
2815 DEPDIR="${am__leading_dot}deps"
2816
2817 ac_config_commands="$ac_config_commands depfiles"
2818
2819
2820 am_make=${MAKE-make}
2821 cat > confinc << 'END'
2822 am__doit:
2823 @echo this is the am__doit target
2824 .PHONY: am__doit
2825 END
2826 # If we don't find an include directive, just comment out the code.
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2828 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2829 am__include="#"
2830 am__quote=
2831 _am_result=none
2832 # First try GNU make style include.
2833 echo "include confinc" > confmf
2834 # Ignore all kinds of additional output from 'make'.
2835 case `$am_make -s -f confmf 2> /dev/null` in #(
2836 *the\ am__doit\ target*)
2837 am__include=include
2838 am__quote=
2839 _am_result=GNU
2840 ;;
2841 esac
2842 # Now try BSD make style include.
2843 if test "$am__include" = "#"; then
2844 echo '.include "confinc"' > confmf
2845 case `$am_make -s -f confmf 2> /dev/null` in #(
2846 *the\ am__doit\ target*)
2847 am__include=.include
2848 am__quote="\""
2849 _am_result=BSD
2850 ;;
2851 esac
2852 fi
2853
2854
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2856 $as_echo "$_am_result" >&6; }
2857 rm -f confinc confmf
2858
2859 # Check whether --enable-dependency-tracking was given.
2860 if test "${enable_dependency_tracking+set}" = set; then :
2861 enableval=$enable_dependency_tracking;
2862 fi
2863
2864 if test "x$enable_dependency_tracking" != xno; then
2865 am_depcomp="$ac_aux_dir/depcomp"
2866 AMDEPBACKSLASH='\'
2867 am__nodep='_no'
2868 fi
2869 if test "x$enable_dependency_tracking" != xno; then
2870 AMDEP_TRUE=
2871 AMDEP_FALSE='#'
2872 else
2873 AMDEP_TRUE='#'
2874 AMDEP_FALSE=
2875 fi
2876
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_CC+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 CC=$ac_cv_prog_CC
2912 if test -n "$CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920
2921 fi
2922 if test -z "$ac_cv_prog_CC"; then
2923 ac_ct_CC=$CC
2924 # Extract the first word of "gcc", so it can be a program name with args.
2925 set dummy gcc; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_ac_ct_CC="gcc"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960 if test "x$ac_ct_CC" = x; then
2961 CC=""
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 CC=$ac_ct_CC
2970 fi
2971 else
2972 CC="$ac_cv_prog_CC"
2973 fi
2974
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}cc; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_CC="${ac_tool_prefix}cc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007 $as_echo "$CC" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 fi
3012
3013
3014 fi
3015 fi
3016 if test -z "$CC"; then
3017 # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_CC+:} false; then :
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027 ac_prog_rejected=no
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036 ac_prog_rejected=yes
3037 continue
3038 fi
3039 ac_cv_prog_CC="cc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 if test $ac_prog_rejected = yes; then
3048 # We found a bogon in the path, so make sure we never use it.
3049 set dummy $ac_cv_prog_CC
3050 shift
3051 if test $# != 0; then
3052 # We chose a different compiler from the bogus one.
3053 # However, it has the same basename, so the bogon will be chosen
3054 # first if we set CC to just the basename; use the full file name.
3055 shift
3056 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3057 fi
3058 fi
3059 fi
3060 fi
3061 CC=$ac_cv_prog_CC
3062 if test -n "$CC"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3065 else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070
3071 fi
3072 if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 for ac_prog in cl.exe
3075 do
3076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112
3113 test -n "$CC" && break
3114 done
3115 fi
3116 if test -z "$CC"; then
3117 ac_ct_CC=$CC
3118 for ac_prog in cl.exe
3119 do
3120 # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$ac_ct_CC"; then
3128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_CC="$ac_prog"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3150 $as_echo "$ac_ct_CC" >&6; }
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 test -n "$ac_ct_CC" && break
3158 done
3159
3160 if test "x$ac_ct_CC" = x; then
3161 CC=""
3162 else
3163 case $cross_compiling:$ac_tool_warned in
3164 yes:)
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3167 ac_tool_warned=yes ;;
3168 esac
3169 CC=$ac_ct_CC
3170 fi
3171 fi
3172
3173 fi
3174
3175
3176 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error $? "no acceptable C compiler found in \$PATH
3179 See \`config.log' for more details" "$LINENO" 5; }
3180
3181 # Provide some information about the compiler.
3182 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3183 set X $ac_compile
3184 ac_compiler=$2
3185 for ac_option in --version -v -V -qversion; do
3186 { { ac_try="$ac_compiler $ac_option >&5"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3194 ac_status=$?
3195 if test -s conftest.err; then
3196 sed '10a\
3197 ... rest of stderr output deleted ...
3198 10q' conftest.err >conftest.er1
3199 cat conftest.er1 >&5
3200 fi
3201 rm -f conftest.er1 conftest.err
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }
3204 done
3205
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3208
3209 int
3210 main ()
3211 {
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 ac_clean_files_save=$ac_clean_files
3218 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3219 # Try to create an executable without -o first, disregard a.out.
3220 # It will help us diagnose broken compilers, and finding out an intuition
3221 # of exeext.
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3223 $as_echo_n "checking whether the C compiler works... " >&6; }
3224 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3225
3226 # The possible output files:
3227 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3228
3229 ac_rmfiles=
3230 for ac_file in $ac_files
3231 do
3232 case $ac_file in
3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3234 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3235 esac
3236 done
3237 rm -f $ac_rmfiles
3238
3239 if { { ac_try="$ac_link_default"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link_default") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; then :
3250 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3251 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3252 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3253 # so that the user can short-circuit this test for compilers unknown to
3254 # Autoconf.
3255 for ac_file in $ac_files ''
3256 do
3257 test -f "$ac_file" || continue
3258 case $ac_file in
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3260 ;;
3261 [ab].out )
3262 # We found the default executable, but exeext='' is most
3263 # certainly right.
3264 break;;
3265 *.* )
3266 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3267 then :; else
3268 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3269 fi
3270 # We set ac_cv_exeext here because the later test for it is not
3271 # safe: cross compilers may not add the suffix if given an `-o'
3272 # argument, so we may need to know it at that point already.
3273 # Even if this section looks crufty: it has the advantage of
3274 # actually working.
3275 break;;
3276 * )
3277 break;;
3278 esac
3279 done
3280 test "$ac_cv_exeext" = no && ac_cv_exeext=
3281
3282 else
3283 ac_file=''
3284 fi
3285 if test -z "$ac_file"; then :
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 $as_echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error 77 "C compiler cannot create executables
3294 See \`config.log' for more details" "$LINENO" 5; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298 fi
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3300 $as_echo_n "checking for C compiler default output file name... " >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3302 $as_echo "$ac_file" >&6; }
3303 ac_exeext=$ac_cv_exeext
3304
3305 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3306 ac_clean_files=$ac_clean_files_save
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3308 $as_echo_n "checking for suffix of executables... " >&6; }
3309 if { { ac_try="$ac_link"
3310 case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 $as_echo "$ac_try_echo"; } >&5
3316 (eval "$ac_link") 2>&5
3317 ac_status=$?
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }; then :
3320 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3321 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3322 # work properly (i.e., refer to `conftest.exe'), while it won't with
3323 # `rm'.
3324 for ac_file in conftest.exe conftest conftest.*; do
3325 test -f "$ac_file" || continue
3326 case $ac_file in
3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3329 break;;
3330 * ) break;;
3331 esac
3332 done
3333 else
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3337 See \`config.log' for more details" "$LINENO" 5; }
3338 fi
3339 rm -f conftest conftest$ac_cv_exeext
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3341 $as_echo "$ac_cv_exeext" >&6; }
3342
3343 rm -f conftest.$ac_ext
3344 EXEEXT=$ac_cv_exeext
3345 ac_exeext=$EXEEXT
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3348 #include <stdio.h>
3349 int
3350 main ()
3351 {
3352 FILE *f = fopen ("conftest.out", "w");
3353 return ferror (f) || fclose (f) != 0;
3354
3355 ;
3356 return 0;
3357 }
3358 _ACEOF
3359 ac_clean_files="$ac_clean_files conftest.out"
3360 # Check that the compiler produces executables we can run. If not, either
3361 # the compiler is broken, or we cross compile.
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3363 $as_echo_n "checking whether we are cross compiling... " >&6; }
3364 if test "$cross_compiling" != yes; then
3365 { { ac_try="$ac_link"
3366 case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_link") 2>&5
3373 ac_status=$?
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }
3376 if { ac_try='./conftest$ac_cv_exeext'
3377 { { case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_try") 2>&5
3384 ac_status=$?
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; }; then
3387 cross_compiling=no
3388 else
3389 if test "$cross_compiling" = maybe; then
3390 cross_compiling=yes
3391 else
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error $? "cannot run C compiled programs.
3395 If you meant to cross compile, use \`--host'.
3396 See \`config.log' for more details" "$LINENO" 5; }
3397 fi
3398 fi
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3401 $as_echo "$cross_compiling" >&6; }
3402
3403 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3404 ac_clean_files=$ac_clean_files_save
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3406 $as_echo_n "checking for suffix of object files... " >&6; }
3407 if ${ac_cv_objext+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.o conftest.obj
3422 if { { ac_try="$ac_compile"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_compile") 2>&5
3430 ac_status=$?
3431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432 test $ac_status = 0; }; then :
3433 for ac_file in conftest.o conftest.obj conftest.*; do
3434 test -f "$ac_file" || continue;
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3437 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3438 break;;
3439 esac
3440 done
3441 else
3442 $as_echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3444
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot compute suffix of object files: cannot compile
3448 See \`config.log' for more details" "$LINENO" 5; }
3449 fi
3450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3453 $as_echo "$ac_cv_objext" >&6; }
3454 OBJEXT=$ac_cv_objext
3455 ac_objext=$OBJEXT
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3457 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3458 if ${ac_cv_c_compiler_gnu+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3463
3464 int
3465 main ()
3466 {
3467 #ifndef __GNUC__
3468 choke me
3469 #endif
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_compiler_gnu=yes
3477 else
3478 ac_compiler_gnu=no
3479 fi
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3482
3483 fi
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3485 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3486 if test $ac_compiler_gnu = yes; then
3487 GCC=yes
3488 else
3489 GCC=
3490 fi
3491 ac_test_CFLAGS=${CFLAGS+set}
3492 ac_save_CFLAGS=$CFLAGS
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3494 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3495 if ${ac_cv_prog_cc_g+:} false; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 ac_save_c_werror_flag=$ac_c_werror_flag
3499 ac_c_werror_flag=yes
3500 ac_cv_prog_cc_g=no
3501 CFLAGS="-g"
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514 ac_cv_prog_cc_g=yes
3515 else
3516 CFLAGS=""
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3519
3520 int
3521 main ()
3522 {
3523
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529
3530 else
3531 ac_c_werror_flag=$ac_save_c_werror_flag
3532 CFLAGS="-g"
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535
3536 int
3537 main ()
3538 {
3539
3540 ;
3541 return 0;
3542 }
3543 _ACEOF
3544 if ac_fn_c_try_compile "$LINENO"; then :
3545 ac_cv_prog_cc_g=yes
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 fi
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_c_werror_flag=$ac_save_c_werror_flag
3553 fi
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3555 $as_echo "$ac_cv_prog_cc_g" >&6; }
3556 if test "$ac_test_CFLAGS" = set; then
3557 CFLAGS=$ac_save_CFLAGS
3558 elif test $ac_cv_prog_cc_g = yes; then
3559 if test "$GCC" = yes; then
3560 CFLAGS="-g -O2"
3561 else
3562 CFLAGS="-g"
3563 fi
3564 else
3565 if test "$GCC" = yes; then
3566 CFLAGS="-O2"
3567 else
3568 CFLAGS=
3569 fi
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3572 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3573 if ${ac_cv_prog_cc_c89+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 ac_cv_prog_cc_c89=no
3577 ac_save_CC=$CC
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <stdarg.h>
3581 #include <stdio.h>
3582 struct stat;
3583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3584 struct buf { int x; };
3585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3586 static char *e (p, i)
3587 char **p;
3588 int i;
3589 {
3590 return p[i];
3591 }
3592 static char *f (char * (*g) (char **, int), char **p, ...)
3593 {
3594 char *s;
3595 va_list v;
3596 va_start (v,p);
3597 s = g (p, va_arg (v,int));
3598 va_end (v);
3599 return s;
3600 }
3601
3602 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3603 function prototypes and stuff, but not '\xHH' hex character constants.
3604 These don't provoke an error unfortunately, instead are silently treated
3605 as 'x'. The following induces an error, until -std is added to get
3606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3607 array size at least. It's necessary to write '\x00'==0 to get something
3608 that's true only with -std. */
3609 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610
3611 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3612 inside strings and character constants. */
3613 #define FOO(x) 'x'
3614 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3615
3616 int test (int i, double x);
3617 struct s1 {int (*f) (int a);};
3618 struct s2 {int (*f) (double a);};
3619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3620 int argc;
3621 char **argv;
3622 int
3623 main ()
3624 {
3625 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3626 ;
3627 return 0;
3628 }
3629 _ACEOF
3630 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3631 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632 do
3633 CC="$ac_save_CC $ac_arg"
3634 if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_cv_prog_cc_c89=$ac_arg
3636 fi
3637 rm -f core conftest.err conftest.$ac_objext
3638 test "x$ac_cv_prog_cc_c89" != "xno" && break
3639 done
3640 rm -f conftest.$ac_ext
3641 CC=$ac_save_CC
3642
3643 fi
3644 # AC_CACHE_VAL
3645 case "x$ac_cv_prog_cc_c89" in
3646 x)
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3648 $as_echo "none needed" >&6; } ;;
3649 xno)
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3651 $as_echo "unsupported" >&6; } ;;
3652 *)
3653 CC="$CC $ac_cv_prog_cc_c89"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3655 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3656 esac
3657 if test "x$ac_cv_prog_cc_c89" != xno; then :
3658
3659 fi
3660
3661 ac_ext=c
3662 ac_cpp='$CPP $CPPFLAGS'
3663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666
3667 depcc="$CC" am_compiler_list=
3668
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3670 $as_echo_n "checking dependency style of $depcc... " >&6; }
3671 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3675 # We make a subdir and do the tests there. Otherwise we can end up
3676 # making bogus files that we don't know about and never remove. For
3677 # instance it was reported that on HP-UX the gcc test will end up
3678 # making a dummy file named 'D' -- because '-MD' means "put the output
3679 # in D".
3680 rm -rf conftest.dir
3681 mkdir conftest.dir
3682 # Copy depcomp to subdir because otherwise we won't find it if we're
3683 # using a relative directory.
3684 cp "$am_depcomp" conftest.dir
3685 cd conftest.dir
3686 # We will build objects and dependencies in a subdirectory because
3687 # it helps to detect inapplicable dependency modes. For instance
3688 # both Tru64's cc and ICC support -MD to output dependencies as a
3689 # side effect of compilation, but ICC will put the dependencies in
3690 # the current directory while Tru64 will put them in the object
3691 # directory.
3692 mkdir sub
3693
3694 am_cv_CC_dependencies_compiler_type=none
3695 if test "$am_compiler_list" = ""; then
3696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3697 fi
3698 am__universal=false
3699 case " $depcc " in #(
3700 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3701 esac
3702
3703 for depmode in $am_compiler_list; do
3704 # Setup a source with many dependencies, because some compilers
3705 # like to wrap large dependency lists on column 80 (with \), and
3706 # we should not choose a depcomp mode which is confused by this.
3707 #
3708 # We need to recreate these files for each test, as the compiler may
3709 # overwrite some of them when testing with obscure command lines.
3710 # This happens at least with the AIX C compiler.
3711 : > sub/conftest.c
3712 for i in 1 2 3 4 5 6; do
3713 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3714 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3715 # Solaris 10 /bin/sh.
3716 echo '/* dummy */' > sub/conftst$i.h
3717 done
3718 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3719
3720 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3721 # mode. It turns out that the SunPro C++ compiler does not properly
3722 # handle '-M -o', and we need to detect this. Also, some Intel
3723 # versions had trouble with output in subdirs.
3724 am__obj=sub/conftest.${OBJEXT-o}
3725 am__minus_obj="-o $am__obj"
3726 case $depmode in
3727 gcc)
3728 # This depmode causes a compiler race in universal mode.
3729 test "$am__universal" = false || continue
3730 ;;
3731 nosideeffect)
3732 # After this tag, mechanisms are not by side-effect, so they'll
3733 # only be used when explicitly requested.
3734 if test "x$enable_dependency_tracking" = xyes; then
3735 continue
3736 else
3737 break
3738 fi
3739 ;;
3740 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3741 # This compiler won't grok '-c -o', but also, the minuso test has
3742 # not run yet. These depmodes are late enough in the game, and
3743 # so weak that their functioning should not be impacted.
3744 am__obj=conftest.${OBJEXT-o}
3745 am__minus_obj=
3746 ;;
3747 none) break ;;
3748 esac
3749 if depmode=$depmode \
3750 source=sub/conftest.c object=$am__obj \
3751 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3752 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3753 >/dev/null 2>conftest.err &&
3754 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3755 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3756 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3757 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3758 # icc doesn't choke on unknown options, it will just issue warnings
3759 # or remarks (even with -Werror). So we grep stderr for any message
3760 # that says an option was ignored or not supported.
3761 # When given -MP, icc 7.0 and 7.1 complain thusly:
3762 # icc: Command line warning: ignoring option '-M'; no argument required
3763 # The diagnosis changed in icc 8.0:
3764 # icc: Command line remark: option '-MP' not supported
3765 if (grep 'ignoring option' conftest.err ||
3766 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3767 am_cv_CC_dependencies_compiler_type=$depmode
3768 break
3769 fi
3770 fi
3771 done
3772
3773 cd ..
3774 rm -rf conftest.dir
3775 else
3776 am_cv_CC_dependencies_compiler_type=none
3777 fi
3778
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3781 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3782 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3783
3784 if
3785 test "x$enable_dependency_tracking" != xno \
3786 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3787 am__fastdepCC_TRUE=
3788 am__fastdepCC_FALSE='#'
3789 else
3790 am__fastdepCC_TRUE='#'
3791 am__fastdepCC_FALSE=
3792 fi
3793
3794
3795
3796 ac_ext=c
3797 ac_cpp='$CPP $CPPFLAGS'
3798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3802 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3803 # On Suns, sometimes $CPP names a directory.
3804 if test -n "$CPP" && test -d "$CPP"; then
3805 CPP=
3806 fi
3807 if test -z "$CPP"; then
3808 if ${ac_cv_prog_CPP+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810 else
3811 # Double quotes because CPP needs to be expanded
3812 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3813 do
3814 ac_preproc_ok=false
3815 for ac_c_preproc_warn_flag in '' yes
3816 do
3817 # Use a header file that comes with gcc, so configuring glibc
3818 # with a fresh cross-compiler works.
3819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3820 # <limits.h> exists even on freestanding compilers.
3821 # On the NeXT, cc -E runs the code through the compiler's parser,
3822 # not just through cpp. "Syntax error" is here to catch this case.
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #ifdef __STDC__
3826 # include <limits.h>
3827 #else
3828 # include <assert.h>
3829 #endif
3830 Syntax error
3831 _ACEOF
3832 if ac_fn_c_try_cpp "$LINENO"; then :
3833
3834 else
3835 # Broken: fails on valid input.
3836 continue
3837 fi
3838 rm -f conftest.err conftest.i conftest.$ac_ext
3839
3840 # OK, works on sane cases. Now check whether nonexistent headers
3841 # can be detected and how.
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3845 _ACEOF
3846 if ac_fn_c_try_cpp "$LINENO"; then :
3847 # Broken: success on invalid input.
3848 continue
3849 else
3850 # Passes both tests.
3851 ac_preproc_ok=:
3852 break
3853 fi
3854 rm -f conftest.err conftest.i conftest.$ac_ext
3855
3856 done
3857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858 rm -f conftest.i conftest.err conftest.$ac_ext
3859 if $ac_preproc_ok; then :
3860 break
3861 fi
3862
3863 done
3864 ac_cv_prog_CPP=$CPP
3865
3866 fi
3867 CPP=$ac_cv_prog_CPP
3868 else
3869 ac_cv_prog_CPP=$CPP
3870 fi
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3872 $as_echo "$CPP" >&6; }
3873 ac_preproc_ok=false
3874 for ac_c_preproc_warn_flag in '' yes
3875 do
3876 # Use a header file that comes with gcc, so configuring glibc
3877 # with a fresh cross-compiler works.
3878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3879 # <limits.h> exists even on freestanding compilers.
3880 # On the NeXT, cc -E runs the code through the compiler's parser,
3881 # not just through cpp. "Syntax error" is here to catch this case.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #ifdef __STDC__
3885 # include <limits.h>
3886 #else
3887 # include <assert.h>
3888 #endif
3889 Syntax error
3890 _ACEOF
3891 if ac_fn_c_try_cpp "$LINENO"; then :
3892
3893 else
3894 # Broken: fails on valid input.
3895 continue
3896 fi
3897 rm -f conftest.err conftest.i conftest.$ac_ext
3898
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <ac_nonexistent.h>
3904 _ACEOF
3905 if ac_fn_c_try_cpp "$LINENO"; then :
3906 # Broken: success on invalid input.
3907 continue
3908 else
3909 # Passes both tests.
3910 ac_preproc_ok=:
3911 break
3912 fi
3913 rm -f conftest.err conftest.i conftest.$ac_ext
3914
3915 done
3916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917 rm -f conftest.i conftest.err conftest.$ac_ext
3918 if $ac_preproc_ok; then :
3919
3920 else
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3924 See \`config.log' for more details" "$LINENO" 5; }
3925 fi
3926
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932
3933
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3935 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3936 if ${ac_cv_path_GREP+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -z "$GREP"; then
3940 ac_path_GREP_found=false
3941 # Loop through the user's path and test for each of PROGNAME-LIST
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3944 do
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_prog in grep ggrep; do
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3950 as_fn_executable_p "$ac_path_GREP" || continue
3951 # Check for GNU ac_path_GREP and select it if it is found.
3952 # Check for GNU $ac_path_GREP
3953 case `"$ac_path_GREP" --version 2>&1` in
3954 *GNU*)
3955 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3956 *)
3957 ac_count=0
3958 $as_echo_n 0123456789 >"conftest.in"
3959 while :
3960 do
3961 cat "conftest.in" "conftest.in" >"conftest.tmp"
3962 mv "conftest.tmp" "conftest.in"
3963 cp "conftest.in" "conftest.nl"
3964 $as_echo 'GREP' >> "conftest.nl"
3965 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3967 as_fn_arith $ac_count + 1 && ac_count=$as_val
3968 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3969 # Best one so far, save it but keep looking for a better one
3970 ac_cv_path_GREP="$ac_path_GREP"
3971 ac_path_GREP_max=$ac_count
3972 fi
3973 # 10*(2^10) chars as input seems more than enough
3974 test $ac_count -gt 10 && break
3975 done
3976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3977 esac
3978
3979 $ac_path_GREP_found && break 3
3980 done
3981 done
3982 done
3983 IFS=$as_save_IFS
3984 if test -z "$ac_cv_path_GREP"; then
3985 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3986 fi
3987 else
3988 ac_cv_path_GREP=$GREP
3989 fi
3990
3991 fi
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3993 $as_echo "$ac_cv_path_GREP" >&6; }
3994 GREP="$ac_cv_path_GREP"
3995
3996
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3998 $as_echo_n "checking for egrep... " >&6; }
3999 if ${ac_cv_path_EGREP+:} false; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003 then ac_cv_path_EGREP="$GREP -E"
4004 else
4005 if test -z "$EGREP"; then
4006 ac_path_EGREP_found=false
4007 # Loop through the user's path and test for each of PROGNAME-LIST
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4010 do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_prog in egrep; do
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4016 as_fn_executable_p "$ac_path_EGREP" || continue
4017 # Check for GNU ac_path_EGREP and select it if it is found.
4018 # Check for GNU $ac_path_EGREP
4019 case `"$ac_path_EGREP" --version 2>&1` in
4020 *GNU*)
4021 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4022 *)
4023 ac_count=0
4024 $as_echo_n 0123456789 >"conftest.in"
4025 while :
4026 do
4027 cat "conftest.in" "conftest.in" >"conftest.tmp"
4028 mv "conftest.tmp" "conftest.in"
4029 cp "conftest.in" "conftest.nl"
4030 $as_echo 'EGREP' >> "conftest.nl"
4031 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4033 as_fn_arith $ac_count + 1 && ac_count=$as_val
4034 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4035 # Best one so far, save it but keep looking for a better one
4036 ac_cv_path_EGREP="$ac_path_EGREP"
4037 ac_path_EGREP_max=$ac_count
4038 fi
4039 # 10*(2^10) chars as input seems more than enough
4040 test $ac_count -gt 10 && break
4041 done
4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043 esac
4044
4045 $ac_path_EGREP_found && break 3
4046 done
4047 done
4048 done
4049 IFS=$as_save_IFS
4050 if test -z "$ac_cv_path_EGREP"; then
4051 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4052 fi
4053 else
4054 ac_cv_path_EGREP=$EGREP
4055 fi
4056
4057 fi
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4060 $as_echo "$ac_cv_path_EGREP" >&6; }
4061 EGREP="$ac_cv_path_EGREP"
4062
4063
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4065 $as_echo_n "checking for ANSI C header files... " >&6; }
4066 if ${ac_cv_header_stdc+:} false; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071 #include <stdlib.h>
4072 #include <stdarg.h>
4073 #include <string.h>
4074 #include <float.h>
4075
4076 int
4077 main ()
4078 {
4079
4080 ;
4081 return 0;
4082 }
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_cv_header_stdc=yes
4086 else
4087 ac_cv_header_stdc=no
4088 fi
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090
4091 if test $ac_cv_header_stdc = yes; then
4092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <string.h>
4096
4097 _ACEOF
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 $EGREP "memchr" >/dev/null 2>&1; then :
4100
4101 else
4102 ac_cv_header_stdc=no
4103 fi
4104 rm -f conftest*
4105
4106 fi
4107
4108 if test $ac_cv_header_stdc = yes; then
4109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <stdlib.h>
4113
4114 _ACEOF
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 $EGREP "free" >/dev/null 2>&1; then :
4117
4118 else
4119 ac_cv_header_stdc=no
4120 fi
4121 rm -f conftest*
4122
4123 fi
4124
4125 if test $ac_cv_header_stdc = yes; then
4126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4127 if test "$cross_compiling" = yes; then :
4128 :
4129 else
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #include <ctype.h>
4133 #include <stdlib.h>
4134 #if ((' ' & 0x0FF) == 0x020)
4135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4137 #else
4138 # define ISLOWER(c) \
4139 (('a' <= (c) && (c) <= 'i') \
4140 || ('j' <= (c) && (c) <= 'r') \
4141 || ('s' <= (c) && (c) <= 'z'))
4142 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4143 #endif
4144
4145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4146 int
4147 main ()
4148 {
4149 int i;
4150 for (i = 0; i < 256; i++)
4151 if (XOR (islower (i), ISLOWER (i))
4152 || toupper (i) != TOUPPER (i))
4153 return 2;
4154 return 0;
4155 }
4156 _ACEOF
4157 if ac_fn_c_try_run "$LINENO"; then :
4158
4159 else
4160 ac_cv_header_stdc=no
4161 fi
4162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4163 conftest.$ac_objext conftest.beam conftest.$ac_ext
4164 fi
4165
4166 fi
4167 fi
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4169 $as_echo "$ac_cv_header_stdc" >&6; }
4170 if test $ac_cv_header_stdc = yes; then
4171
4172 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4173
4174 fi
4175
4176 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4177 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4178 inttypes.h stdint.h unistd.h
4179 do :
4180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4181 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4182 "
4183 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4184 cat >>confdefs.h <<_ACEOF
4185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4186 _ACEOF
4187
4188 fi
4189
4190 done
4191
4192
4193
4194 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4195 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4196 MINIX=yes
4197 else
4198 MINIX=
4199 fi
4200
4201
4202 if test "$MINIX" = yes; then
4203
4204 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4205
4206
4207 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4208
4209
4210 $as_echo "#define _MINIX 1" >>confdefs.h
4211
4212 fi
4213
4214
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4216 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4217 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222
4223 # define __EXTENSIONS__ 1
4224 $ac_includes_default
4225 int
4226 main ()
4227 {
4228
4229 ;
4230 return 0;
4231 }
4232 _ACEOF
4233 if ac_fn_c_try_compile "$LINENO"; then :
4234 ac_cv_safe_to_define___extensions__=yes
4235 else
4236 ac_cv_safe_to_define___extensions__=no
4237 fi
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 fi
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4241 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4242 test $ac_cv_safe_to_define___extensions__ = yes &&
4243 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4244
4245 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4246
4247 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4248
4249 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4250
4251 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4252
4253
4254
4255
4256 # Checks for programs.
4257 ac_ext=c
4258 ac_cpp='$CPP $CPPFLAGS'
4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262 if test -n "$ac_tool_prefix"; then
4263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4264 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_CC+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284 done
4285 done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 CC=$ac_cv_prog_CC
4291 if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299
4300 fi
4301 if test -z "$ac_cv_prog_CC"; then
4302 ac_ct_CC=$CC
4303 # Extract the first word of "gcc", so it can be a program name with args.
4304 set dummy gcc; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$ac_ct_CC"; then
4311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_prog_ac_ct_CC="gcc"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4331 if test -n "$ac_ct_CC"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4333 $as_echo "$ac_ct_CC" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339 if test "x$ac_ct_CC" = x; then
4340 CC=""
4341 else
4342 case $cross_compiling:$ac_tool_warned in
4343 yes:)
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 ac_tool_warned=yes ;;
4347 esac
4348 CC=$ac_ct_CC
4349 fi
4350 else
4351 CC="$ac_cv_prog_CC"
4352 fi
4353
4354 if test -z "$CC"; then
4355 if test -n "$ac_tool_prefix"; then
4356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4357 set dummy ${ac_tool_prefix}cc; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if ${ac_cv_prog_CC+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if test -n "$CC"; then
4364 ac_cv_prog_CC="$CC" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373 ac_cv_prog_CC="${ac_tool_prefix}cc"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4376 fi
4377 done
4378 done
4379 IFS=$as_save_IFS
4380
4381 fi
4382 fi
4383 CC=$ac_cv_prog_CC
4384 if test -n "$CC"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4386 $as_echo "$CC" >&6; }
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390 fi
4391
4392
4393 fi
4394 fi
4395 if test -z "$CC"; then
4396 # Extract the first word of "cc", so it can be a program name with args.
4397 set dummy cc; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if ${ac_cv_prog_CC+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 if test -n "$CC"; then
4404 ac_cv_prog_CC="$CC" # Let the user override the test.
4405 else
4406 ac_prog_rejected=no
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4415 ac_prog_rejected=yes
4416 continue
4417 fi
4418 ac_cv_prog_CC="cc"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 if test $ac_prog_rejected = yes; then
4427 # We found a bogon in the path, so make sure we never use it.
4428 set dummy $ac_cv_prog_CC
4429 shift
4430 if test $# != 0; then
4431 # We chose a different compiler from the bogus one.
4432 # However, it has the same basename, so the bogon will be chosen
4433 # first if we set CC to just the basename; use the full file name.
4434 shift
4435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4436 fi
4437 fi
4438 fi
4439 fi
4440 CC=$ac_cv_prog_CC
4441 if test -n "$CC"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4443 $as_echo "$CC" >&6; }
4444 else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447 fi
4448
4449
4450 fi
4451 if test -z "$CC"; then
4452 if test -n "$ac_tool_prefix"; then
4453 for ac_prog in cl.exe
4454 do
4455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_prog_CC+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$CC"; then
4463 ac_cv_prog_CC="$CC" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476 done
4477 done
4478 IFS=$as_save_IFS
4479
4480 fi
4481 fi
4482 CC=$ac_cv_prog_CC
4483 if test -n "$CC"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4485 $as_echo "$CC" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 fi
4490
4491
4492 test -n "$CC" && break
4493 done
4494 fi
4495 if test -z "$CC"; then
4496 ac_ct_CC=$CC
4497 for ac_prog in cl.exe
4498 do
4499 # Extract the first word of "$ac_prog", so it can be a program name with args.
4500 set dummy $ac_prog; ac_word=$2
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if test -n "$ac_ct_CC"; then
4507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_prog_ac_ct_CC="$ac_prog"
4517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520 done
4521 done
4522 IFS=$as_save_IFS
4523
4524 fi
4525 fi
4526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4527 if test -n "$ac_ct_CC"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4529 $as_echo "$ac_ct_CC" >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534
4535
4536 test -n "$ac_ct_CC" && break
4537 done
4538
4539 if test "x$ac_ct_CC" = x; then
4540 CC=""
4541 else
4542 case $cross_compiling:$ac_tool_warned in
4543 yes:)
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4546 ac_tool_warned=yes ;;
4547 esac
4548 CC=$ac_ct_CC
4549 fi
4550 fi
4551
4552 fi
4553
4554
4555 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 as_fn_error $? "no acceptable C compiler found in \$PATH
4558 See \`config.log' for more details" "$LINENO" 5; }
4559
4560 # Provide some information about the compiler.
4561 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4562 set X $ac_compile
4563 ac_compiler=$2
4564 for ac_option in --version -v -V -qversion; do
4565 { { ac_try="$ac_compiler $ac_option >&5"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 $as_echo "$ac_try_echo"; } >&5
4572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4573 ac_status=$?
4574 if test -s conftest.err; then
4575 sed '10a\
4576 ... rest of stderr output deleted ...
4577 10q' conftest.err >conftest.er1
4578 cat conftest.er1 >&5
4579 fi
4580 rm -f conftest.er1 conftest.err
4581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4582 test $ac_status = 0; }
4583 done
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4586 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4587 if ${ac_cv_c_compiler_gnu+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592
4593 int
4594 main ()
4595 {
4596 #ifndef __GNUC__
4597 choke me
4598 #endif
4599
4600 ;
4601 return 0;
4602 }
4603 _ACEOF
4604 if ac_fn_c_try_compile "$LINENO"; then :
4605 ac_compiler_gnu=yes
4606 else
4607 ac_compiler_gnu=no
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4611
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4614 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4615 if test $ac_compiler_gnu = yes; then
4616 GCC=yes
4617 else
4618 GCC=
4619 fi
4620 ac_test_CFLAGS=${CFLAGS+set}
4621 ac_save_CFLAGS=$CFLAGS
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4623 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4624 if ${ac_cv_prog_cc_g+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 ac_save_c_werror_flag=$ac_c_werror_flag
4628 ac_c_werror_flag=yes
4629 ac_cv_prog_cc_g=no
4630 CFLAGS="-g"
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633
4634 int
4635 main ()
4636 {
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_prog_cc_g=yes
4644 else
4645 CFLAGS=""
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648
4649 int
4650 main ()
4651 {
4652
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658
4659 else
4660 ac_c_werror_flag=$ac_save_c_werror_flag
4661 CFLAGS="-g"
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664
4665 int
4666 main ()
4667 {
4668
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"; then :
4674 ac_cv_prog_cc_g=yes
4675 fi
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 fi
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 fi
4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 ac_c_werror_flag=$ac_save_c_werror_flag
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4684 $as_echo "$ac_cv_prog_cc_g" >&6; }
4685 if test "$ac_test_CFLAGS" = set; then
4686 CFLAGS=$ac_save_CFLAGS
4687 elif test $ac_cv_prog_cc_g = yes; then
4688 if test "$GCC" = yes; then
4689 CFLAGS="-g -O2"
4690 else
4691 CFLAGS="-g"
4692 fi
4693 else
4694 if test "$GCC" = yes; then
4695 CFLAGS="-O2"
4696 else
4697 CFLAGS=
4698 fi
4699 fi
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4701 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4702 if ${ac_cv_prog_cc_c89+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 ac_cv_prog_cc_c89=no
4706 ac_save_CC=$CC
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 #include <stdarg.h>
4710 #include <stdio.h>
4711 struct stat;
4712 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4713 struct buf { int x; };
4714 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4715 static char *e (p, i)
4716 char **p;
4717 int i;
4718 {
4719 return p[i];
4720 }
4721 static char *f (char * (*g) (char **, int), char **p, ...)
4722 {
4723 char *s;
4724 va_list v;
4725 va_start (v,p);
4726 s = g (p, va_arg (v,int));
4727 va_end (v);
4728 return s;
4729 }
4730
4731 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4732 function prototypes and stuff, but not '\xHH' hex character constants.
4733 These don't provoke an error unfortunately, instead are silently treated
4734 as 'x'. The following induces an error, until -std is added to get
4735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4736 array size at least. It's necessary to write '\x00'==0 to get something
4737 that's true only with -std. */
4738 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4739
4740 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4741 inside strings and character constants. */
4742 #define FOO(x) 'x'
4743 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4744
4745 int test (int i, double x);
4746 struct s1 {int (*f) (int a);};
4747 struct s2 {int (*f) (double a);};
4748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4749 int argc;
4750 char **argv;
4751 int
4752 main ()
4753 {
4754 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4755 ;
4756 return 0;
4757 }
4758 _ACEOF
4759 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4761 do
4762 CC="$ac_save_CC $ac_arg"
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_prog_cc_c89=$ac_arg
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext
4767 test "x$ac_cv_prog_cc_c89" != "xno" && break
4768 done
4769 rm -f conftest.$ac_ext
4770 CC=$ac_save_CC
4771
4772 fi
4773 # AC_CACHE_VAL
4774 case "x$ac_cv_prog_cc_c89" in
4775 x)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4777 $as_echo "none needed" >&6; } ;;
4778 xno)
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4780 $as_echo "unsupported" >&6; } ;;
4781 *)
4782 CC="$CC $ac_cv_prog_cc_c89"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4784 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4785 esac
4786 if test "x$ac_cv_prog_cc_c89" != xno; then :
4787
4788 fi
4789
4790 ac_ext=c
4791 ac_cpp='$CPP $CPPFLAGS'
4792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795
4796 depcc="$CC" am_compiler_list=
4797
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4799 $as_echo_n "checking dependency style of $depcc... " >&6; }
4800 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4804 # We make a subdir and do the tests there. Otherwise we can end up
4805 # making bogus files that we don't know about and never remove. For
4806 # instance it was reported that on HP-UX the gcc test will end up
4807 # making a dummy file named 'D' -- because '-MD' means "put the output
4808 # in D".
4809 rm -rf conftest.dir
4810 mkdir conftest.dir
4811 # Copy depcomp to subdir because otherwise we won't find it if we're
4812 # using a relative directory.
4813 cp "$am_depcomp" conftest.dir
4814 cd conftest.dir
4815 # We will build objects and dependencies in a subdirectory because
4816 # it helps to detect inapplicable dependency modes. For instance
4817 # both Tru64's cc and ICC support -MD to output dependencies as a
4818 # side effect of compilation, but ICC will put the dependencies in
4819 # the current directory while Tru64 will put them in the object
4820 # directory.
4821 mkdir sub
4822
4823 am_cv_CC_dependencies_compiler_type=none
4824 if test "$am_compiler_list" = ""; then
4825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4826 fi
4827 am__universal=false
4828 case " $depcc " in #(
4829 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4830 esac
4831
4832 for depmode in $am_compiler_list; do
4833 # Setup a source with many dependencies, because some compilers
4834 # like to wrap large dependency lists on column 80 (with \), and
4835 # we should not choose a depcomp mode which is confused by this.
4836 #
4837 # We need to recreate these files for each test, as the compiler may
4838 # overwrite some of them when testing with obscure command lines.
4839 # This happens at least with the AIX C compiler.
4840 : > sub/conftest.c
4841 for i in 1 2 3 4 5 6; do
4842 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4843 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4844 # Solaris 10 /bin/sh.
4845 echo '/* dummy */' > sub/conftst$i.h
4846 done
4847 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4848
4849 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4850 # mode. It turns out that the SunPro C++ compiler does not properly
4851 # handle '-M -o', and we need to detect this. Also, some Intel
4852 # versions had trouble with output in subdirs.
4853 am__obj=sub/conftest.${OBJEXT-o}
4854 am__minus_obj="-o $am__obj"
4855 case $depmode in
4856 gcc)
4857 # This depmode causes a compiler race in universal mode.
4858 test "$am__universal" = false || continue
4859 ;;
4860 nosideeffect)
4861 # After this tag, mechanisms are not by side-effect, so they'll
4862 # only be used when explicitly requested.
4863 if test "x$enable_dependency_tracking" = xyes; then
4864 continue
4865 else
4866 break
4867 fi
4868 ;;
4869 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4870 # This compiler won't grok '-c -o', but also, the minuso test has
4871 # not run yet. These depmodes are late enough in the game, and
4872 # so weak that their functioning should not be impacted.
4873 am__obj=conftest.${OBJEXT-o}
4874 am__minus_obj=
4875 ;;
4876 none) break ;;
4877 esac
4878 if depmode=$depmode \
4879 source=sub/conftest.c object=$am__obj \
4880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4881 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4882 >/dev/null 2>conftest.err &&
4883 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4885 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4887 # icc doesn't choke on unknown options, it will just issue warnings
4888 # or remarks (even with -Werror). So we grep stderr for any message
4889 # that says an option was ignored or not supported.
4890 # When given -MP, icc 7.0 and 7.1 complain thusly:
4891 # icc: Command line warning: ignoring option '-M'; no argument required
4892 # The diagnosis changed in icc 8.0:
4893 # icc: Command line remark: option '-MP' not supported
4894 if (grep 'ignoring option' conftest.err ||
4895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4896 am_cv_CC_dependencies_compiler_type=$depmode
4897 break
4898 fi
4899 fi
4900 done
4901
4902 cd ..
4903 rm -rf conftest.dir
4904 else
4905 am_cv_CC_dependencies_compiler_type=none
4906 fi
4907
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4910 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4911 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4912
4913 if
4914 test "x$enable_dependency_tracking" != xno \
4915 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4916 am__fastdepCC_TRUE=
4917 am__fastdepCC_FALSE='#'
4918 else
4919 am__fastdepCC_TRUE='#'
4920 am__fastdepCC_FALSE=
4921 fi
4922
4923
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4925 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4926 set x ${MAKE-make}
4927 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4928 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 cat >conftest.make <<\_ACEOF
4932 SHELL = /bin/sh
4933 all:
4934 @echo '@@@%%%=$(MAKE)=@@@%%%'
4935 _ACEOF
4936 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4937 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4938 *@@@%%%=?*=@@@%%%*)
4939 eval ac_cv_prog_make_${ac_make}_set=yes;;
4940 *)
4941 eval ac_cv_prog_make_${ac_make}_set=no;;
4942 esac
4943 rm -f conftest.make
4944 fi
4945 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4947 $as_echo "yes" >&6; }
4948 SET_MAKE=
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 SET_MAKE="MAKE=${MAKE-make}"
4953 fi
4954
4955 if test -n "$ac_tool_prefix"; then
4956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_RANLIB+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$RANLIB"; then
4964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4976 fi
4977 done
4978 done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 RANLIB=$ac_cv_prog_RANLIB
4984 if test -n "$RANLIB"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4986 $as_echo "$RANLIB" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993 fi
4994 if test -z "$ac_cv_prog_RANLIB"; then
4995 ac_ct_RANLIB=$RANLIB
4996 # Extract the first word of "ranlib", so it can be a program name with args.
4997 set dummy ranlib; ac_word=$2
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999 $as_echo_n "checking for $ac_word... " >&6; }
5000 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 if test -n "$ac_ct_RANLIB"; then
5004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_ac_ct_RANLIB="ranlib"
5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021 fi
5022 fi
5023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5024 if test -n "$ac_ct_RANLIB"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5026 $as_echo "$ac_ct_RANLIB" >&6; }
5027 else
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5030 fi
5031
5032 if test "x$ac_ct_RANLIB" = x; then
5033 RANLIB=":"
5034 else
5035 case $cross_compiling:$ac_tool_warned in
5036 yes:)
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5039 ac_tool_warned=yes ;;
5040 esac
5041 RANLIB=$ac_ct_RANLIB
5042 fi
5043 else
5044 RANLIB="$ac_cv_prog_RANLIB"
5045 fi
5046
5047
5048 if test "x$ac_cv_prog_cc_stdc" = xno ; then
5049 as_fn_error $? "the C compiler doesn't handle ANSI-C" "$LINENO" 5
5050 fi
5051
5052 # Checks for libraries.
5053
5054 # Checks for header files.
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5056 $as_echo_n "checking for ANSI C header files... " >&6; }
5057 if ${ac_cv_header_stdc+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 #include <stdlib.h>
5063 #include <stdarg.h>
5064 #include <string.h>
5065 #include <float.h>
5066
5067 int
5068 main ()
5069 {
5070
5071 ;
5072 return 0;
5073 }
5074 _ACEOF
5075 if ac_fn_c_try_compile "$LINENO"; then :
5076 ac_cv_header_stdc=yes
5077 else
5078 ac_cv_header_stdc=no
5079 fi
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081
5082 if test $ac_cv_header_stdc = yes; then
5083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086 #include <string.h>
5087
5088 _ACEOF
5089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5090 $EGREP "memchr" >/dev/null 2>&1; then :
5091
5092 else
5093 ac_cv_header_stdc=no
5094 fi
5095 rm -f conftest*
5096
5097 fi
5098
5099 if test $ac_cv_header_stdc = yes; then
5100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 #include <stdlib.h>
5104
5105 _ACEOF
5106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5107 $EGREP "free" >/dev/null 2>&1; then :
5108
5109 else
5110 ac_cv_header_stdc=no
5111 fi
5112 rm -f conftest*
5113
5114 fi
5115
5116 if test $ac_cv_header_stdc = yes; then
5117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5118 if test "$cross_compiling" = yes; then :
5119 :
5120 else
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 #include <ctype.h>
5124 #include <stdlib.h>
5125 #if ((' ' & 0x0FF) == 0x020)
5126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5128 #else
5129 # define ISLOWER(c) \
5130 (('a' <= (c) && (c) <= 'i') \
5131 || ('j' <= (c) && (c) <= 'r') \
5132 || ('s' <= (c) && (c) <= 'z'))
5133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5134 #endif
5135
5136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5137 int
5138 main ()
5139 {
5140 int i;
5141 for (i = 0; i < 256; i++)
5142 if (XOR (islower (i), ISLOWER (i))
5143 || toupper (i) != TOUPPER (i))
5144 return 2;
5145 return 0;
5146 }
5147 _ACEOF
5148 if ac_fn_c_try_run "$LINENO"; then :
5149
5150 else
5151 ac_cv_header_stdc=no
5152 fi
5153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5154 conftest.$ac_objext conftest.beam conftest.$ac_ext
5155 fi
5156
5157 fi
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5160 $as_echo "$ac_cv_header_stdc" >&6; }
5161 if test $ac_cv_header_stdc = yes; then
5162
5163 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5164
5165 fi
5166
5167 for ac_header in limits.h malloc.h unistd.h sysexits.h stdarg.h
5168 do :
5169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5172 cat >>confdefs.h <<_ACEOF
5173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5174 _ACEOF
5175
5176 fi
5177
5178 done
5179
5180
5181 # Checks for typedefs, structures, and compiler characteristics.
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5183 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5184 if ${ac_cv_c_const+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189
5190 int
5191 main ()
5192 {
5193
5194 #ifndef __cplusplus
5195 /* Ultrix mips cc rejects this sort of thing. */
5196 typedef int charset[2];
5197 const charset cs = { 0, 0 };
5198 /* SunOS 4.1.1 cc rejects this. */
5199 char const *const *pcpcc;
5200 char **ppc;
5201 /* NEC SVR4.0.2 mips cc rejects this. */
5202 struct point {int x, y;};
5203 static struct point const zero = {0,0};
5204 /* AIX XL C 1.02.0.0 rejects this.
5205 It does not let you subtract one const X* pointer from another in
5206 an arm of an if-expression whose if-part is not a constant
5207 expression */
5208 const char *g = "string";
5209 pcpcc = &g + (g ? g-g : 0);
5210 /* HPUX 7.0 cc rejects these. */
5211 ++pcpcc;
5212 ppc = (char**) pcpcc;
5213 pcpcc = (char const *const *) ppc;
5214 { /* SCO 3.2v4 cc rejects this sort of thing. */
5215 char tx;
5216 char *t = &tx;
5217 char const *s = 0 ? (char *) 0 : (char const *) 0;
5218
5219 *t++ = 0;
5220 if (s) return 0;
5221 }
5222 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5223 int x[] = {25, 17};
5224 const int *foo = &x[0];
5225 ++foo;
5226 }
5227 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5228 typedef const int *iptr;
5229 iptr p = 0;
5230 ++p;
5231 }
5232 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5233 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5234 struct s { int j; const int *ap[3]; } bx;
5235 struct s *b = &bx; b->j = 5;
5236 }
5237 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5238 const int foo = 10;
5239 if (!foo) return 0;
5240 }
5241 return !cs[0] && !zero.x;
5242 #endif
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 ac_cv_c_const=yes
5250 else
5251 ac_cv_c_const=no
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5256 $as_echo "$ac_cv_c_const" >&6; }
5257 if test $ac_cv_c_const = no; then
5258
5259 $as_echo "#define const /**/" >>confdefs.h
5260
5261 fi
5262
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5264 $as_echo_n "checking for inline... " >&6; }
5265 if ${ac_cv_c_inline+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 ac_cv_c_inline=no
5269 for ac_kw in inline __inline__ __inline; do
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 #ifndef __cplusplus
5273 typedef int foo_t;
5274 static $ac_kw foo_t static_foo () {return 0; }
5275 $ac_kw foo_t foo () {return 0; }
5276 #endif
5277
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_c_inline=$ac_kw
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 test "$ac_cv_c_inline" != no && break
5284 done
5285
5286 fi
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5288 $as_echo "$ac_cv_c_inline" >&6; }
5289
5290 case $ac_cv_c_inline in
5291 inline | yes) ;;
5292 *)
5293 case $ac_cv_c_inline in
5294 no) ac_val=;;
5295 *) ac_val=$ac_cv_c_inline;;
5296 esac
5297 cat >>confdefs.h <<_ACEOF
5298 #ifndef __cplusplus
5299 #define inline $ac_val
5300 #endif
5301 _ACEOF
5302 ;;
5303 esac
5304
5305 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5306 if test "x$ac_cv_type_size_t" = xyes; then :
5307
5308 else
5309
5310 cat >>confdefs.h <<_ACEOF
5311 #define size_t unsigned int
5312 _ACEOF
5313
5314 fi
5315
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
5318 $as_echo_n "checking for __attribute__... " >&6; }
5319 if ${lsh_cv_c_attribute+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324
5325 #include <stdlib.h>
5326
5327 static void foo(void) __attribute__ ((noreturn));
5328
5329 static void __attribute__ ((noreturn))
5330 foo(void)
5331 {
5332 exit(1);
5333 }
5334
5335 int
5336 main ()
5337 {
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 lsh_cv_c_attribute=yes
5345 else
5346 lsh_cv_c_attribute=no
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsh_cv_c_attribute" >&5
5351 $as_echo "$lsh_cv_c_attribute" >&6; }
5352
5353
5354 if test "x$lsh_cv_c_attribute" = "xyes"; then
5355 $as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
5356
5357 fi
5358
5359
5360
5361 # Checks for library functions.
5362 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5363 # for constant arguments. Useless!
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5365 $as_echo_n "checking for working alloca.h... " >&6; }
5366 if ${ac_cv_working_alloca_h+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #include <alloca.h>
5372 int
5373 main ()
5374 {
5375 char *p = (char *) alloca (2 * sizeof (int));
5376 if (p) return 0;
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 if ac_fn_c_try_link "$LINENO"; then :
5382 ac_cv_working_alloca_h=yes
5383 else
5384 ac_cv_working_alloca_h=no
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext \
5387 conftest$ac_exeext conftest.$ac_ext
5388 fi
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5390 $as_echo "$ac_cv_working_alloca_h" >&6; }
5391 if test $ac_cv_working_alloca_h = yes; then
5392
5393 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5394
5395 fi
5396
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5398 $as_echo_n "checking for alloca... " >&6; }
5399 if ${ac_cv_func_alloca_works+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #ifdef __GNUC__
5405 # define alloca __builtin_alloca
5406 #else
5407 # ifdef _MSC_VER
5408 # include <malloc.h>
5409 # define alloca _alloca
5410 # else
5411 # ifdef HAVE_ALLOCA_H
5412 # include <alloca.h>
5413 # else
5414 # ifdef _AIX
5415 #pragma alloca
5416 # else
5417 # ifndef alloca /* predefined by HP cc +Olibcalls */
5418 void *alloca (size_t);
5419 # endif
5420 # endif
5421 # endif
5422 # endif
5423 #endif
5424
5425 int
5426 main ()
5427 {
5428 char *p = (char *) alloca (1);
5429 if (p) return 0;
5430 ;
5431 return 0;
5432 }
5433 _ACEOF
5434 if ac_fn_c_try_link "$LINENO"; then :
5435 ac_cv_func_alloca_works=yes
5436 else
5437 ac_cv_func_alloca_works=no
5438 fi
5439 rm -f core conftest.err conftest.$ac_objext \
5440 conftest$ac_exeext conftest.$ac_ext
5441 fi
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5443 $as_echo "$ac_cv_func_alloca_works" >&6; }
5444
5445 if test $ac_cv_func_alloca_works = yes; then
5446
5447 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5448
5449 else
5450 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5451 # that cause trouble. Some versions do not even contain alloca or
5452 # contain a buggy version. If you still want to use their alloca,
5453 # use ar to extract alloca.o from them instead of compiling alloca.c.
5454
5455 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5456
5457 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5458
5459
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5461 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5462 if ${ac_cv_os_cray+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #if defined CRAY && ! defined CRAY2
5468 webecray
5469 #else
5470 wenotbecray
5471 #endif
5472
5473 _ACEOF
5474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5475 $EGREP "webecray" >/dev/null 2>&1; then :
5476 ac_cv_os_cray=yes
5477 else
5478 ac_cv_os_cray=no
5479 fi
5480 rm -f conftest*
5481
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5484 $as_echo "$ac_cv_os_cray" >&6; }
5485 if test $ac_cv_os_cray = yes; then
5486 for ac_func in _getb67 GETB67 getb67; do
5487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5488 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5489 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5490
5491 cat >>confdefs.h <<_ACEOF
5492 #define CRAY_STACKSEG_END $ac_func
5493 _ACEOF
5494
5495 break
5496 fi
5497
5498 done
5499 fi
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5502 $as_echo_n "checking stack direction for C alloca... " >&6; }
5503 if ${ac_cv_c_stack_direction+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 if test "$cross_compiling" = yes; then :
5507 ac_cv_c_stack_direction=0
5508 else
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 $ac_includes_default
5512 int
5513 find_stack_direction (int *addr, int depth)
5514 {
5515 int dir, dummy = 0;
5516 if (! addr)
5517 addr = &dummy;
5518 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5519 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5520 return dir + dummy;
5521 }
5522
5523 int
5524 main (int argc, char **argv)
5525 {
5526 return find_stack_direction (0, argc + !argv + 20) < 0;
5527 }
5528 _ACEOF
5529 if ac_fn_c_try_run "$LINENO"; then :
5530 ac_cv_c_stack_direction=1
5531 else
5532 ac_cv_c_stack_direction=-1
5533 fi
5534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5535 conftest.$ac_objext conftest.beam conftest.$ac_ext
5536 fi
5537
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5540 $as_echo "$ac_cv_c_stack_direction" >&6; }
5541 cat >>confdefs.h <<_ACEOF
5542 #define STACK_DIRECTION $ac_cv_c_stack_direction
5543 _ACEOF
5544
5545
5546 fi
5547
5548 for ac_header in malloc.h
5549 do :
5550 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5551 if test "x$ac_cv_header_malloc_h" = xyes; then :
5552 cat >>confdefs.h <<_ACEOF
5553 #define HAVE_MALLOC_H 1
5554 _ACEOF
5555
5556 fi
5557
5558 done
5559
5560
5561 for ac_func in vprintf
5562 do :
5563 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5564 if test "x$ac_cv_func_vprintf" = xyes; then :
5565 cat >>confdefs.h <<_ACEOF
5566 #define HAVE_VPRINTF 1
5567 _ACEOF
5568
5569 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5570 if test "x$ac_cv_func__doprnt" = xyes; then :
5571
5572 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5573
5574 fi
5575
5576 fi
5577 done
5578
5579
5580 for ac_func in strerror sleep getpid snprintf
5581 do :
5582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5584 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5585 cat >>confdefs.h <<_ACEOF
5586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5587 _ACEOF
5588
5589 fi
5590 done
5591
5592
5593 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
5594 if test "x$ac_cv_func_mempcpy" = xyes; then :
5595 $as_echo "#define HAVE_MEMPCPY 1" >>confdefs.h
5596
5597 else
5598 case " $LIBOBJS " in
5599 *" mempcpy.$ac_objext "* ) ;;
5600 *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext"
5601 ;;
5602 esac
5603
5604 fi
5605
5606 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
5607 if test "x$ac_cv_func_strndup" = xyes; then :
5608 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
5609
5610 else
5611 case " $LIBOBJS " in
5612 *" strndup.$ac_objext "* ) ;;
5613 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
5614 ;;
5615 esac
5616
5617 fi
5618
5619 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
5620 if test "x$ac_cv_func_strchrnul" = xyes; then :
5621 $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h
5622
5623 else
5624 case " $LIBOBJS " in
5625 *" strchrnul.$ac_objext "* ) ;;
5626 *) LIBOBJS="$LIBOBJS strchrnul.$ac_objext"
5627 ;;
5628 esac
5629
5630 fi
5631
5632 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
5633 if test "x$ac_cv_func_strcasecmp" = xyes; then :
5634 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
5635
5636 else
5637 case " $LIBOBJS " in
5638 *" strcasecmp.$ac_objext "* ) ;;
5639 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
5640 ;;
5641 esac
5642
5643 fi
5644
5645 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
5646 if test "x$ac_cv_func_vsnprintf" = xyes; then :
5647 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
5648
5649 else
5650 case " $LIBOBJS " in
5651 *" vsnprintf.$ac_objext "* ) ;;
5652 *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext"
5653 ;;
5654 esac
5655
5656 fi
5657
5658
5659
5660
5661
5662 # At least on freebsd, putc_unlocked is a macro, so the standard
5663 # AC_CHECK_FUNCS doesn't work well.
5664
5665
5666
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putc_unlocked('x', stdout)" >&5
5668 $as_echo_n "checking for putc_unlocked('x', stdout)... " >&6; }
5669 if ${ac_cv_func_call_putc_unlocked+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <stdio.h>
5675 int
5676 main ()
5677 {
5678 putc_unlocked('x', stdout)
5679 ;
5680 return 0;
5681 }
5682 _ACEOF
5683 if ac_fn_c_try_link "$LINENO"; then :
5684 ac_cv_func_call_putc_unlocked=yes
5685 else
5686 ac_cv_func_call_putc_unlocked=no
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext \
5689 conftest$ac_exeext conftest.$ac_ext
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_call_putc_unlocked" >&5
5692 $as_echo "$ac_cv_func_call_putc_unlocked" >&6; }
5693 if test $ac_cv_func_call_putc_unlocked = yes ; then
5694 cat >>confdefs.h <<_ACEOF
5695 #define HAVE_PUTC_UNLOCKED 1
5696 _ACEOF
5697
5698 else
5699 true
5700 fi
5701
5702
5703
5704
5705 for ac_func in flockfile
5706 do :
5707 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
5708 if test "x$ac_cv_func_flockfile" = xyes; then :
5709 cat >>confdefs.h <<_ACEOF
5710 #define HAVE_FLOCKFILE 1
5711 _ACEOF
5712
5713 fi
5714 done
5715
5716 for ac_func in fputs_unlocked fwrite_unlocked
5717 do :
5718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5719 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5720 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5721 cat >>confdefs.h <<_ACEOF
5722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5723 _ACEOF
5724
5725 fi
5726 done
5727
5728
5729 # Used only by argp-test.c, so don't use AC_REPLACE_FUNCS.
5730 for ac_func in strdup asprintf
5731 do :
5732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5734 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5735 cat >>confdefs.h <<_ACEOF
5736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5737 _ACEOF
5738
5739 fi
5740 done
5741
5742
5743 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
5744 "
5745 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
5746 ac_have_decl=1
5747 else
5748 ac_have_decl=0
5749 fi
5750
5751 cat >>confdefs.h <<_ACEOF
5752 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
5753 _ACEOF
5754 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
5755 "
5756 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
5757 ac_have_decl=1
5758 else
5759 ac_have_decl=0
5760 fi
5761
5762 cat >>confdefs.h <<_ACEOF
5763 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
5764 _ACEOF
5765
5766
5767 # Set these flags *last*, or else the test programs won't compile
5768 if test x$GCC = xyes ; then
5769 # Using -ggdb3 makes (some versions of) Redhat's gcc-2.96 dump core
5770 if "$CC" --version | grep '^2\.96$' 1>/dev/null 2>&1; then
5771 true
5772 else
5773 CFLAGS="$CFLAGS -ggdb3"
5774 fi
5775 CFLAGS="$CFLAGS -Wall -W \
5776 -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
5777 -Waggregate-return \
5778 -Wpointer-arith -Wbad-function-cast -Wnested-externs"
5779 fi
5780
5781 CPPFLAGS="$CPPFLAGS -I$srcdir"
5782
5783 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
5784
5785 cat >confcache <<\_ACEOF
5786 # This file is a shell script that caches the results of configure
5787 # tests run on this system so they can be shared between configure
5788 # scripts and configure runs, see configure's option --config-cache.
5789 # It is not useful on other systems. If it contains results you don't
5790 # want to keep, you may remove or edit it.
5791 #
5792 # config.status only pays attention to the cache file if you give it
5793 # the --recheck option to rerun configure.
5794 #
5795 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5797 # following values.
5798
5799 _ACEOF
5800
5801 # The following way of writing the cache mishandles newlines in values,
5802 # but we know of no workaround that is simple, portable, and efficient.
5803 # So, we kill variables containing newlines.
5804 # Ultrix sh set writes to stderr and can't be redirected directly,
5805 # and sets the high bit in the cache file unless we assign to the vars.
5806 (
5807 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5808 eval ac_val=\$$ac_var
5809 case $ac_val in #(
5810 *${as_nl}*)
5811 case $ac_var in #(
5812 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5814 esac
5815 case $ac_var in #(
5816 _ | IFS | as_nl) ;; #(
5817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5818 *) { eval $ac_var=; unset $ac_var;} ;;
5819 esac ;;
5820 esac
5821 done
5822
5823 (set) 2>&1 |
5824 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5825 *${as_nl}ac_space=\ *)
5826 # `set' does not quote correctly, so add quotes: double-quote
5827 # substitution turns \\\\ into \\, and sed turns \\ into \.
5828 sed -n \
5829 "s/'/'\\\\''/g;
5830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5831 ;; #(
5832 *)
5833 # `set' quotes correctly as required by POSIX, so do not add quotes.
5834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5835 ;;
5836 esac |
5837 sort
5838 ) |
5839 sed '
5840 /^ac_cv_env_/b end
5841 t clear
5842 :clear
5843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5844 t end
5845 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5846 :end' >>confcache
5847 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5848 if test -w "$cache_file"; then
5849 if test "x$cache_file" != "x/dev/null"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5851 $as_echo "$as_me: updating cache $cache_file" >&6;}
5852 if test ! -f "$cache_file" || test -h "$cache_file"; then
5853 cat confcache >"$cache_file"
5854 else
5855 case $cache_file in #(
5856 */* | ?:*)
5857 mv -f confcache "$cache_file"$$ &&
5858 mv -f "$cache_file"$$ "$cache_file" ;; #(
5859 *)
5860 mv -f confcache "$cache_file" ;;
5861 esac
5862 fi
5863 fi
5864 else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5866 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5867 fi
5868 fi
5869 rm -f confcache
5870
5871 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5872 # Let make expand exec_prefix.
5873 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5874
5875 DEFS=-DHAVE_CONFIG_H
5876
5877 ac_libobjs=
5878 ac_ltlibobjs=
5879 U=
5880 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5881 # 1. Remove the extension, and $U if already installed.
5882 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5883 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5884 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5885 # will be set to the directory where LIBOBJS objects are built.
5886 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5887 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5888 done
5889 LIBOBJS=$ac_libobjs
5890
5891 LTLIBOBJS=$ac_ltlibobjs
5892
5893
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5895 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5896 if test -n "$am_sleep_pid"; then
5897 # Hide warnings about reused PIDs.
5898 wait $am_sleep_pid 2>/dev/null
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5901 $as_echo "done" >&6; }
5902 if test -n "$EXEEXT"; then
5903 am__EXEEXT_TRUE=
5904 am__EXEEXT_FALSE='#'
5905 else
5906 am__EXEEXT_TRUE='#'
5907 am__EXEEXT_FALSE=
5908 fi
5909
5910 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5911 as_fn_error $? "conditional \"AMDEP\" was never defined.
5912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5913 fi
5914 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5915 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5917 fi
5918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5919 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5921 fi
5922
5923 : "${CONFIG_STATUS=./config.status}"
5924 ac_write_fail=0
5925 ac_clean_files_save=$ac_clean_files
5926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5928 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5929 as_write_fail=0
5930 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5931 #! $SHELL
5932 # Generated by $as_me.
5933 # Run this file to recreate the current configuration.
5934 # Compiler output produced by configure, useful for debugging
5935 # configure, is in config.log if it exists.
5936
5937 debug=false
5938 ac_cs_recheck=false
5939 ac_cs_silent=false
5940
5941 SHELL=\${CONFIG_SHELL-$SHELL}
5942 export SHELL
5943 _ASEOF
5944 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5945 ## -------------------- ##
5946 ## M4sh Initialization. ##
5947 ## -------------------- ##
5948
5949 # Be more Bourne compatible
5950 DUALCASE=1; export DUALCASE # for MKS sh
5951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5952 emulate sh
5953 NULLCMD=:
5954 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5955 # is contrary to our usage. Disable this feature.
5956 alias -g '${1+"$@"}'='"$@"'
5957 setopt NO_GLOB_SUBST
5958 else
5959 case `(set -o) 2>/dev/null` in #(
5960 *posix*) :
5961 set -o posix ;; #(
5962 *) :
5963 ;;
5964 esac
5965 fi
5966
5967
5968 as_nl='
5969 '
5970 export as_nl
5971 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5972 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5974 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5975 # Prefer a ksh shell builtin over an external printf program on Solaris,
5976 # but without wasting forks for bash or zsh.
5977 if test -z "$BASH_VERSION$ZSH_VERSION" \
5978 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5979 as_echo='print -r --'
5980 as_echo_n='print -rn --'
5981 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5982 as_echo='printf %s\n'
5983 as_echo_n='printf %s'
5984 else
5985 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5986 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5987 as_echo_n='/usr/ucb/echo -n'
5988 else
5989 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5990 as_echo_n_body='eval
5991 arg=$1;
5992 case $arg in #(
5993 *"$as_nl"*)
5994 expr "X$arg" : "X\\(.*\\)$as_nl";
5995 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5996 esac;
5997 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5998 '
5999 export as_echo_n_body
6000 as_echo_n='sh -c $as_echo_n_body as_echo'
6001 fi
6002 export as_echo_body
6003 as_echo='sh -c $as_echo_body as_echo'
6004 fi
6005
6006 # The user is always right.
6007 if test "${PATH_SEPARATOR+set}" != set; then
6008 PATH_SEPARATOR=:
6009 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6010 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6011 PATH_SEPARATOR=';'
6012 }
6013 fi
6014
6015
6016 # IFS
6017 # We need space, tab and new line, in precisely that order. Quoting is
6018 # there to prevent editors from complaining about space-tab.
6019 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6020 # splitting by setting IFS to empty value.)
6021 IFS=" "" $as_nl"
6022
6023 # Find who we are. Look in the path if we contain no directory separator.
6024 as_myself=
6025 case $0 in #((
6026 *[\\/]* ) as_myself=$0 ;;
6027 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6033 done
6034 IFS=$as_save_IFS
6035
6036 ;;
6037 esac
6038 # We did not find ourselves, most probably we were run as `sh COMMAND'
6039 # in which case we are not to be found in the path.
6040 if test "x$as_myself" = x; then
6041 as_myself=$0
6042 fi
6043 if test ! -f "$as_myself"; then
6044 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6045 exit 1
6046 fi
6047
6048 # Unset variables that we do not need and which cause bugs (e.g. in
6049 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6050 # suppresses any "Segmentation fault" message there. '((' could
6051 # trigger a bug in pdksh 5.2.14.
6052 for as_var in BASH_ENV ENV MAIL MAILPATH
6053 do eval test x\${$as_var+set} = xset \
6054 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6055 done
6056 PS1='$ '
6057 PS2='> '
6058 PS4='+ '
6059
6060 # NLS nuisances.
6061 LC_ALL=C
6062 export LC_ALL
6063 LANGUAGE=C
6064 export LANGUAGE
6065
6066 # CDPATH.
6067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6068
6069
6070 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6071 # ----------------------------------------
6072 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6073 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6074 # script with STATUS, using 1 if that was 0.
6075 as_fn_error ()
6076 {
6077 as_status=$1; test $as_status -eq 0 && as_status=1
6078 if test "$4"; then
6079 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6080 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6081 fi
6082 $as_echo "$as_me: error: $2" >&2
6083 as_fn_exit $as_status
6084 } # as_fn_error
6085
6086
6087 # as_fn_set_status STATUS
6088 # -----------------------
6089 # Set $? to STATUS, without forking.
6090 as_fn_set_status ()
6091 {
6092 return $1
6093 } # as_fn_set_status
6094
6095 # as_fn_exit STATUS
6096 # -----------------
6097 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6098 as_fn_exit ()
6099 {
6100 set +e
6101 as_fn_set_status $1
6102 exit $1
6103 } # as_fn_exit
6104
6105 # as_fn_unset VAR
6106 # ---------------
6107 # Portably unset VAR.
6108 as_fn_unset ()
6109 {
6110 { eval $1=; unset $1;}
6111 }
6112 as_unset=as_fn_unset
6113 # as_fn_append VAR VALUE
6114 # ----------------------
6115 # Append the text in VALUE to the end of the definition contained in VAR. Take
6116 # advantage of any shell optimizations that allow amortized linear growth over
6117 # repeated appends, instead of the typical quadratic growth present in naive
6118 # implementations.
6119 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6120 eval 'as_fn_append ()
6121 {
6122 eval $1+=\$2
6123 }'
6124 else
6125 as_fn_append ()
6126 {
6127 eval $1=\$$1\$2
6128 }
6129 fi # as_fn_append
6130
6131 # as_fn_arith ARG...
6132 # ------------------
6133 # Perform arithmetic evaluation on the ARGs, and store the result in the
6134 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6135 # must be portable across $(()) and expr.
6136 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6137 eval 'as_fn_arith ()
6138 {
6139 as_val=$(( $* ))
6140 }'
6141 else
6142 as_fn_arith ()
6143 {
6144 as_val=`expr "$@" || test $? -eq 1`
6145 }
6146 fi # as_fn_arith
6147
6148
6149 if expr a : '\(a\)' >/dev/null 2>&1 &&
6150 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6151 as_expr=expr
6152 else
6153 as_expr=false
6154 fi
6155
6156 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6157 as_basename=basename
6158 else
6159 as_basename=false
6160 fi
6161
6162 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6163 as_dirname=dirname
6164 else
6165 as_dirname=false
6166 fi
6167
6168 as_me=`$as_basename -- "$0" ||
6169 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6170 X"$0" : 'X\(//\)$' \| \
6171 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6172 $as_echo X/"$0" |
6173 sed '/^.*\/\([^/][^/]*\)\/*$/{
6174 s//\1/
6175 q
6176 }
6177 /^X\/\(\/\/\)$/{
6178 s//\1/
6179 q
6180 }
6181 /^X\/\(\/\).*/{
6182 s//\1/
6183 q
6184 }
6185 s/.*/./; q'`
6186
6187 # Avoid depending upon Character Ranges.
6188 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6189 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6190 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6191 as_cr_digits='0123456789'
6192 as_cr_alnum=$as_cr_Letters$as_cr_digits
6193
6194 ECHO_C= ECHO_N= ECHO_T=
6195 case `echo -n x` in #(((((
6196 -n*)
6197 case `echo 'xy\c'` in
6198 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6199 xy) ECHO_C='\c';;
6200 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6201 ECHO_T=' ';;
6202 esac;;
6203 *)
6204 ECHO_N='-n';;
6205 esac
6206
6207 rm -f conf$$ conf$$.exe conf$$.file
6208 if test -d conf$$.dir; then
6209 rm -f conf$$.dir/conf$$.file
6210 else
6211 rm -f conf$$.dir
6212 mkdir conf$$.dir 2>/dev/null
6213 fi
6214 if (echo >conf$$.file) 2>/dev/null; then
6215 if ln -s conf$$.file conf$$ 2>/dev/null; then
6216 as_ln_s='ln -s'
6217 # ... but there are two gotchas:
6218 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6219 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6220 # In both cases, we have to default to `cp -pR'.
6221 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6222 as_ln_s='cp -pR'
6223 elif ln conf$$.file conf$$ 2>/dev/null; then
6224 as_ln_s=ln
6225 else
6226 as_ln_s='cp -pR'
6227 fi
6228 else
6229 as_ln_s='cp -pR'
6230 fi
6231 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6232 rmdir conf$$.dir 2>/dev/null
6233
6234
6235 # as_fn_mkdir_p
6236 # -------------
6237 # Create "$as_dir" as a directory, including parents if necessary.
6238 as_fn_mkdir_p ()
6239 {
6240
6241 case $as_dir in #(
6242 -*) as_dir=./$as_dir;;
6243 esac
6244 test -d "$as_dir" || eval $as_mkdir_p || {
6245 as_dirs=
6246 while :; do
6247 case $as_dir in #(
6248 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6249 *) as_qdir=$as_dir;;
6250 esac
6251 as_dirs="'$as_qdir' $as_dirs"
6252 as_dir=`$as_dirname -- "$as_dir" ||
6253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6254 X"$as_dir" : 'X\(//\)[^/]' \| \
6255 X"$as_dir" : 'X\(//\)$' \| \
6256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6257 $as_echo X"$as_dir" |
6258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6259 s//\1/
6260 q
6261 }
6262 /^X\(\/\/\)[^/].*/{
6263 s//\1/
6264 q
6265 }
6266 /^X\(\/\/\)$/{
6267 s//\1/
6268 q
6269 }
6270 /^X\(\/\).*/{
6271 s//\1/
6272 q
6273 }
6274 s/.*/./; q'`
6275 test -d "$as_dir" && break
6276 done
6277 test -z "$as_dirs" || eval "mkdir $as_dirs"
6278 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6279
6280
6281 } # as_fn_mkdir_p
6282 if mkdir -p . 2>/dev/null; then
6283 as_mkdir_p='mkdir -p "$as_dir"'
6284 else
6285 test -d ./-p && rmdir ./-p
6286 as_mkdir_p=false
6287 fi
6288
6289
6290 # as_fn_executable_p FILE
6291 # -----------------------
6292 # Test if FILE is an executable regular file.
6293 as_fn_executable_p ()
6294 {
6295 test -f "$1" && test -x "$1"
6296 } # as_fn_executable_p
6297 as_test_x='test -x'
6298 as_executable_p=as_fn_executable_p
6299
6300 # Sed expression to map a string onto a valid CPP name.
6301 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6302
6303 # Sed expression to map a string onto a valid variable name.
6304 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6305
6306
6307 exec 6>&1
6308 ## ----------------------------------- ##
6309 ## Main body of $CONFIG_STATUS script. ##
6310 ## ----------------------------------- ##
6311 _ASEOF
6312 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6313
6314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6315 # Save the log message, to keep $0 and so on meaningful, and to
6316 # report actual input values of CONFIG_FILES etc. instead of their
6317 # values after options handling.
6318 ac_log="
6319 This file was extended by argp $as_me standalone-1.3, which was
6320 generated by GNU Autoconf 2.69. Invocation command line was
6321
6322 CONFIG_FILES = $CONFIG_FILES
6323 CONFIG_HEADERS = $CONFIG_HEADERS
6324 CONFIG_LINKS = $CONFIG_LINKS
6325 CONFIG_COMMANDS = $CONFIG_COMMANDS
6326 $ $0 $@
6327
6328 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6329 "
6330
6331 _ACEOF
6332
6333 case $ac_config_files in *"
6334 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6335 esac
6336
6337 case $ac_config_headers in *"
6338 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6339 esac
6340
6341
6342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6343 # Files that config.status was made for.
6344 config_files="$ac_config_files"
6345 config_headers="$ac_config_headers"
6346 config_commands="$ac_config_commands"
6347
6348 _ACEOF
6349
6350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6351 ac_cs_usage="\
6352 \`$as_me' instantiates files and other configuration actions
6353 from templates according to the current configuration. Unless the files
6354 and actions are specified as TAGs, all are instantiated by default.
6355
6356 Usage: $0 [OPTION]... [TAG]...
6357
6358 -h, --help print this help, then exit
6359 -V, --version print version number and configuration settings, then exit
6360 --config print configuration, then exit
6361 -q, --quiet, --silent
6362 do not print progress messages
6363 -d, --debug don't remove temporary files
6364 --recheck update $as_me by reconfiguring in the same conditions
6365 --file=FILE[:TEMPLATE]
6366 instantiate the configuration file FILE
6367 --header=FILE[:TEMPLATE]
6368 instantiate the configuration header FILE
6369
6370 Configuration files:
6371 $config_files
6372
6373 Configuration headers:
6374 $config_headers
6375
6376 Configuration commands:
6377 $config_commands
6378
6379 Report bugs to the package provider."
6380
6381 _ACEOF
6382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6383 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6384 ac_cs_version="\\
6385 argp config.status standalone-1.3
6386 configured by $0, generated by GNU Autoconf 2.69,
6387 with options \\"\$ac_cs_config\\"
6388
6389 Copyright (C) 2012 Free Software Foundation, Inc.
6390 This config.status script is free software; the Free Software Foundation
6391 gives unlimited permission to copy, distribute and modify it."
6392
6393 ac_pwd='$ac_pwd'
6394 srcdir='$srcdir'
6395 INSTALL='$INSTALL'
6396 MKDIR_P='$MKDIR_P'
6397 AWK='$AWK'
6398 test -n "\$AWK" || AWK=awk
6399 _ACEOF
6400
6401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6402 # The default lists apply if the user does not specify any file.
6403 ac_need_defaults=:
6404 while test $# != 0
6405 do
6406 case $1 in
6407 --*=?*)
6408 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6409 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6410 ac_shift=:
6411 ;;
6412 --*=)
6413 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6414 ac_optarg=
6415 ac_shift=:
6416 ;;
6417 *)
6418 ac_option=$1
6419 ac_optarg=$2
6420 ac_shift=shift
6421 ;;
6422 esac
6423
6424 case $ac_option in
6425 # Handling of the options.
6426 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6427 ac_cs_recheck=: ;;
6428 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6429 $as_echo "$ac_cs_version"; exit ;;
6430 --config | --confi | --conf | --con | --co | --c )
6431 $as_echo "$ac_cs_config"; exit ;;
6432 --debug | --debu | --deb | --de | --d | -d )
6433 debug=: ;;
6434 --file | --fil | --fi | --f )
6435 $ac_shift
6436 case $ac_optarg in
6437 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6438 '') as_fn_error $? "missing file argument" ;;
6439 esac
6440 as_fn_append CONFIG_FILES " '$ac_optarg'"
6441 ac_need_defaults=false;;
6442 --header | --heade | --head | --hea )
6443 $ac_shift
6444 case $ac_optarg in
6445 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6446 esac
6447 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6448 ac_need_defaults=false;;
6449 --he | --h)
6450 # Conflict between --help and --header
6451 as_fn_error $? "ambiguous option: \`$1'
6452 Try \`$0 --help' for more information.";;
6453 --help | --hel | -h )
6454 $as_echo "$ac_cs_usage"; exit ;;
6455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6456 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6457 ac_cs_silent=: ;;
6458
6459 # This is an error.
6460 -*) as_fn_error $? "unrecognized option: \`$1'
6461 Try \`$0 --help' for more information." ;;
6462
6463 *) as_fn_append ac_config_targets " $1"
6464 ac_need_defaults=false ;;
6465
6466 esac
6467 shift
6468 done
6469
6470 ac_configure_extra_args=
6471
6472 if $ac_cs_silent; then
6473 exec 6>/dev/null
6474 ac_configure_extra_args="$ac_configure_extra_args --silent"
6475 fi
6476
6477 _ACEOF
6478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6479 if \$ac_cs_recheck; then
6480 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6481 shift
6482 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6483 CONFIG_SHELL='$SHELL'
6484 export CONFIG_SHELL
6485 exec "\$@"
6486 fi
6487
6488 _ACEOF
6489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6490 exec 5>>config.log
6491 {
6492 echo
6493 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6494 ## Running $as_me. ##
6495 _ASBOX
6496 $as_echo "$ac_log"
6497 } >&5
6498
6499 _ACEOF
6500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6501 #
6502 # INIT-COMMANDS
6503 #
6504 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6505
6506 _ACEOF
6507
6508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6509
6510 # Handling of arguments.
6511 for ac_config_target in $ac_config_targets
6512 do
6513 case $ac_config_target in
6514 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6515 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6516 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6517 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
6518
6519 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6520 esac
6521 done
6522
6523
6524 # If the user did not use the arguments to specify the items to instantiate,
6525 # then the envvar interface is used. Set only those that are not.
6526 # We use the long form for the default assignment because of an extremely
6527 # bizarre bug on SunOS 4.1.3.
6528 if $ac_need_defaults; then
6529 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6530 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6531 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6532 fi
6533
6534 # Have a temporary directory for convenience. Make it in the build tree
6535 # simply because there is no reason against having it here, and in addition,
6536 # creating and moving files from /tmp can sometimes cause problems.
6537 # Hook for its removal unless debugging.
6538 # Note that there is a small window in which the directory will not be cleaned:
6539 # after its creation but before its name has been assigned to `$tmp'.
6540 $debug ||
6541 {
6542 tmp= ac_tmp=
6543 trap 'exit_status=$?
6544 : "${ac_tmp:=$tmp}"
6545 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6546 ' 0
6547 trap 'as_fn_exit 1' 1 2 13 15
6548 }
6549 # Create a (secure) tmp directory for tmp files.
6550
6551 {
6552 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6553 test -d "$tmp"
6554 } ||
6555 {
6556 tmp=./conf$$-$RANDOM
6557 (umask 077 && mkdir "$tmp")
6558 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6559 ac_tmp=$tmp
6560
6561 # Set up the scripts for CONFIG_FILES section.
6562 # No need to generate them if there are no CONFIG_FILES.
6563 # This happens for instance with `./config.status config.h'.
6564 if test -n "$CONFIG_FILES"; then
6565
6566
6567 ac_cr=`echo X | tr X '\015'`
6568 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6569 # But we know of no other shell where ac_cr would be empty at this
6570 # point, so we can use a bashism as a fallback.
6571 if test "x$ac_cr" = x; then
6572 eval ac_cr=\$\'\\r\'
6573 fi
6574 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6575 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6576 ac_cs_awk_cr='\\r'
6577 else
6578 ac_cs_awk_cr=$ac_cr
6579 fi
6580
6581 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6582 _ACEOF
6583
6584
6585 {
6586 echo "cat >conf$$subs.awk <<_ACEOF" &&
6587 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6588 echo "_ACEOF"
6589 } >conf$$subs.sh ||
6590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6591 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6592 ac_delim='%!_!# '
6593 for ac_last_try in false false false false false :; do
6594 . ./conf$$subs.sh ||
6595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6596
6597 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6598 if test $ac_delim_n = $ac_delim_num; then
6599 break
6600 elif $ac_last_try; then
6601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6602 else
6603 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6604 fi
6605 done
6606 rm -f conf$$subs.sh
6607
6608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6609 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6610 _ACEOF
6611 sed -n '
6612 h
6613 s/^/S["/; s/!.*/"]=/
6614 p
6615 g
6616 s/^[^!]*!//
6617 :repl
6618 t repl
6619 s/'"$ac_delim"'$//
6620 t delim
6621 :nl
6622 h
6623 s/\(.\{148\}\)..*/\1/
6624 t more1
6625 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6626 p
6627 n
6628 b repl
6629 :more1
6630 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6631 p
6632 g
6633 s/.\{148\}//
6634 t nl
6635 :delim
6636 h
6637 s/\(.\{148\}\)..*/\1/
6638 t more2
6639 s/["\\]/\\&/g; s/^/"/; s/$/"/
6640 p
6641 b
6642 :more2
6643 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6644 p
6645 g
6646 s/.\{148\}//
6647 t delim
6648 ' <conf$$subs.awk | sed '
6649 /^[^""]/{
6650 N
6651 s/\n//
6652 }
6653 ' >>$CONFIG_STATUS || ac_write_fail=1
6654 rm -f conf$$subs.awk
6655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6656 _ACAWK
6657 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6658 for (key in S) S_is_set[key] = 1
6659 FS = ""
6660
6661 }
6662 {
6663 line = $ 0
6664 nfields = split(line, field, "@")
6665 substed = 0
6666 len = length(field[1])
6667 for (i = 2; i < nfields; i++) {
6668 key = field[i]
6669 keylen = length(key)
6670 if (S_is_set[key]) {
6671 value = S[key]
6672 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6673 len += length(value) + length(field[++i])
6674 substed = 1
6675 } else
6676 len += 1 + keylen
6677 }
6678
6679 print line
6680 }
6681
6682 _ACAWK
6683 _ACEOF
6684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6685 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6686 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6687 else
6688 cat
6689 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6690 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6691 _ACEOF
6692
6693 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6694 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6695 # trailing colons and then remove the whole line if VPATH becomes empty
6696 # (actually we leave an empty line to preserve line numbers).
6697 if test "x$srcdir" = x.; then
6698 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6699 h
6700 s///
6701 s/^/:/
6702 s/[ ]*$/:/
6703 s/:\$(srcdir):/:/g
6704 s/:\${srcdir}:/:/g
6705 s/:@srcdir@:/:/g
6706 s/^:*//
6707 s/:*$//
6708 x
6709 s/\(=[ ]*\).*/\1/
6710 G
6711 s/\n//
6712 s/^[^=]*=[ ]*$//
6713 }'
6714 fi
6715
6716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6717 fi # test -n "$CONFIG_FILES"
6718
6719 # Set up the scripts for CONFIG_HEADERS section.
6720 # No need to generate them if there are no CONFIG_HEADERS.
6721 # This happens for instance with `./config.status Makefile'.
6722 if test -n "$CONFIG_HEADERS"; then
6723 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6724 BEGIN {
6725 _ACEOF
6726
6727 # Transform confdefs.h into an awk script `defines.awk', embedded as
6728 # here-document in config.status, that substitutes the proper values into
6729 # config.h.in to produce config.h.
6730
6731 # Create a delimiter string that does not exist in confdefs.h, to ease
6732 # handling of long lines.
6733 ac_delim='%!_!# '
6734 for ac_last_try in false false :; do
6735 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6736 if test -z "$ac_tt"; then
6737 break
6738 elif $ac_last_try; then
6739 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6740 else
6741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6742 fi
6743 done
6744
6745 # For the awk script, D is an array of macro values keyed by name,
6746 # likewise P contains macro parameters if any. Preserve backslash
6747 # newline sequences.
6748
6749 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6750 sed -n '
6751 s/.\{148\}/&'"$ac_delim"'/g
6752 t rset
6753 :rset
6754 s/^[ ]*#[ ]*define[ ][ ]*/ /
6755 t def
6756 d
6757 :def
6758 s/\\$//
6759 t bsnl
6760 s/["\\]/\\&/g
6761 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6762 D["\1"]=" \3"/p
6763 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6764 d
6765 :bsnl
6766 s/["\\]/\\&/g
6767 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6768 D["\1"]=" \3\\\\\\n"\\/p
6769 t cont
6770 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6771 t cont
6772 d
6773 :cont
6774 n
6775 s/.\{148\}/&'"$ac_delim"'/g
6776 t clear
6777 :clear
6778 s/\\$//
6779 t bsnlc
6780 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6781 d
6782 :bsnlc
6783 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6784 b cont
6785 ' <confdefs.h | sed '
6786 s/'"$ac_delim"'/"\\\
6787 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6788
6789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6790 for (key in D) D_is_set[key] = 1
6791 FS = ""
6792 }
6793 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6794 line = \$ 0
6795 split(line, arg, " ")
6796 if (arg[1] == "#") {
6797 defundef = arg[2]
6798 mac1 = arg[3]
6799 } else {
6800 defundef = substr(arg[1], 2)
6801 mac1 = arg[2]
6802 }
6803 split(mac1, mac2, "(") #)
6804 macro = mac2[1]
6805 prefix = substr(line, 1, index(line, defundef) - 1)
6806 if (D_is_set[macro]) {
6807 # Preserve the white space surrounding the "#".
6808 print prefix "define", macro P[macro] D[macro]
6809 next
6810 } else {
6811 # Replace #undef with comments. This is necessary, for example,
6812 # in the case of _POSIX_SOURCE, which is predefined and required
6813 # on some systems where configure will not decide to define it.
6814 if (defundef == "undef") {
6815 print "/*", prefix defundef, macro, "*/"
6816 next
6817 }
6818 }
6819 }
6820 { print }
6821 _ACAWK
6822 _ACEOF
6823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6824 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6825 fi # test -n "$CONFIG_HEADERS"
6826
6827
6828 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6829 shift
6830 for ac_tag
6831 do
6832 case $ac_tag in
6833 :[FHLC]) ac_mode=$ac_tag; continue;;
6834 esac
6835 case $ac_mode$ac_tag in
6836 :[FHL]*:*);;
6837 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6838 :[FH]-) ac_tag=-:-;;
6839 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6840 esac
6841 ac_save_IFS=$IFS
6842 IFS=:
6843 set x $ac_tag
6844 IFS=$ac_save_IFS
6845 shift
6846 ac_file=$1
6847 shift
6848
6849 case $ac_mode in
6850 :L) ac_source=$1;;
6851 :[FH])
6852 ac_file_inputs=
6853 for ac_f
6854 do
6855 case $ac_f in
6856 -) ac_f="$ac_tmp/stdin";;
6857 *) # Look for the file first in the build tree, then in the source tree
6858 # (if the path is not absolute). The absolute path cannot be DOS-style,
6859 # because $ac_f cannot contain `:'.
6860 test -f "$ac_f" ||
6861 case $ac_f in
6862 [\\/$]*) false;;
6863 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6864 esac ||
6865 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6866 esac
6867 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6868 as_fn_append ac_file_inputs " '$ac_f'"
6869 done
6870
6871 # Let's still pretend it is `configure' which instantiates (i.e., don't
6872 # use $as_me), people would be surprised to read:
6873 # /* config.h. Generated by config.status. */
6874 configure_input='Generated from '`
6875 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6876 `' by configure.'
6877 if test x"$ac_file" != x-; then
6878 configure_input="$ac_file. $configure_input"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6880 $as_echo "$as_me: creating $ac_file" >&6;}
6881 fi
6882 # Neutralize special characters interpreted by sed in replacement strings.
6883 case $configure_input in #(
6884 *\&* | *\|* | *\\* )
6885 ac_sed_conf_input=`$as_echo "$configure_input" |
6886 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6887 *) ac_sed_conf_input=$configure_input;;
6888 esac
6889
6890 case $ac_tag in
6891 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6893 esac
6894 ;;
6895 esac
6896
6897 ac_dir=`$as_dirname -- "$ac_file" ||
6898 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6899 X"$ac_file" : 'X\(//\)[^/]' \| \
6900 X"$ac_file" : 'X\(//\)$' \| \
6901 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6902 $as_echo X"$ac_file" |
6903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6904 s//\1/
6905 q
6906 }
6907 /^X\(\/\/\)[^/].*/{
6908 s//\1/
6909 q
6910 }
6911 /^X\(\/\/\)$/{
6912 s//\1/
6913 q
6914 }
6915 /^X\(\/\).*/{
6916 s//\1/
6917 q
6918 }
6919 s/.*/./; q'`
6920 as_dir="$ac_dir"; as_fn_mkdir_p
6921 ac_builddir=.
6922
6923 case "$ac_dir" in
6924 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6925 *)
6926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6927 # A ".." for each directory in $ac_dir_suffix.
6928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6929 case $ac_top_builddir_sub in
6930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6932 esac ;;
6933 esac
6934 ac_abs_top_builddir=$ac_pwd
6935 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6936 # for backward compatibility:
6937 ac_top_builddir=$ac_top_build_prefix
6938
6939 case $srcdir in
6940 .) # We are building in place.
6941 ac_srcdir=.
6942 ac_top_srcdir=$ac_top_builddir_sub
6943 ac_abs_top_srcdir=$ac_pwd ;;
6944 [\\/]* | ?:[\\/]* ) # Absolute name.
6945 ac_srcdir=$srcdir$ac_dir_suffix;
6946 ac_top_srcdir=$srcdir
6947 ac_abs_top_srcdir=$srcdir ;;
6948 *) # Relative name.
6949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6950 ac_top_srcdir=$ac_top_build_prefix$srcdir
6951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6952 esac
6953 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6954
6955
6956 case $ac_mode in
6957 :F)
6958 #
6959 # CONFIG_FILE
6960 #
6961
6962 case $INSTALL in
6963 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6964 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6965 esac
6966 ac_MKDIR_P=$MKDIR_P
6967 case $MKDIR_P in
6968 [\\/$]* | ?:[\\/]* ) ;;
6969 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6970 esac
6971 _ACEOF
6972
6973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6974 # If the template does not know about datarootdir, expand it.
6975 # FIXME: This hack should be removed a few years after 2.60.
6976 ac_datarootdir_hack=; ac_datarootdir_seen=
6977 ac_sed_dataroot='
6978 /datarootdir/ {
6979 p
6980 q
6981 }
6982 /@datadir@/p
6983 /@docdir@/p
6984 /@infodir@/p
6985 /@localedir@/p
6986 /@mandir@/p'
6987 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6988 *datarootdir*) ac_datarootdir_seen=yes;;
6989 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6991 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6992 _ACEOF
6993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6994 ac_datarootdir_hack='
6995 s&@datadir@&$datadir&g
6996 s&@docdir@&$docdir&g
6997 s&@infodir@&$infodir&g
6998 s&@localedir@&$localedir&g
6999 s&@mandir@&$mandir&g
7000 s&\\\${datarootdir}&$datarootdir&g' ;;
7001 esac
7002 _ACEOF
7003
7004 # Neutralize VPATH when `$srcdir' = `.'.
7005 # Shell code in configure.ac might set extrasub.
7006 # FIXME: do we really want to maintain this feature?
7007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7008 ac_sed_extra="$ac_vpsub
7009 $extrasub
7010 _ACEOF
7011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7012 :t
7013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7014 s|@configure_input@|$ac_sed_conf_input|;t t
7015 s&@top_builddir@&$ac_top_builddir_sub&;t t
7016 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7017 s&@srcdir@&$ac_srcdir&;t t
7018 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7019 s&@top_srcdir@&$ac_top_srcdir&;t t
7020 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7021 s&@builddir@&$ac_builddir&;t t
7022 s&@abs_builddir@&$ac_abs_builddir&;t t
7023 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7024 s&@INSTALL@&$ac_INSTALL&;t t
7025 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7026 $ac_datarootdir_hack
7027 "
7028 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7029 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7030
7031 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7032 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7033 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7034 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7036 which seems to be undefined. Please make sure it is defined" >&5
7037 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7038 which seems to be undefined. Please make sure it is defined" >&2;}
7039
7040 rm -f "$ac_tmp/stdin"
7041 case $ac_file in
7042 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7043 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7044 esac \
7045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7046 ;;
7047 :H)
7048 #
7049 # CONFIG_HEADER
7050 #
7051 if test x"$ac_file" != x-; then
7052 {
7053 $as_echo "/* $configure_input */" \
7054 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7055 } >"$ac_tmp/config.h" \
7056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7057 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7059 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7060 else
7061 rm -f "$ac_file"
7062 mv "$ac_tmp/config.h" "$ac_file" \
7063 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7064 fi
7065 else
7066 $as_echo "/* $configure_input */" \
7067 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7068 || as_fn_error $? "could not create -" "$LINENO" 5
7069 fi
7070 # Compute "$ac_file"'s index in $config_headers.
7071 _am_arg="$ac_file"
7072 _am_stamp_count=1
7073 for _am_header in $config_headers :; do
7074 case $_am_header in
7075 $_am_arg | $_am_arg:* )
7076 break ;;
7077 * )
7078 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7079 esac
7080 done
7081 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7082 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7083 X"$_am_arg" : 'X\(//\)[^/]' \| \
7084 X"$_am_arg" : 'X\(//\)$' \| \
7085 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7086 $as_echo X"$_am_arg" |
7087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7088 s//\1/
7089 q
7090 }
7091 /^X\(\/\/\)[^/].*/{
7092 s//\1/
7093 q
7094 }
7095 /^X\(\/\/\)$/{
7096 s//\1/
7097 q
7098 }
7099 /^X\(\/\).*/{
7100 s//\1/
7101 q
7102 }
7103 s/.*/./; q'`/stamp-h$_am_stamp_count
7104 ;;
7105
7106 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7107 $as_echo "$as_me: executing $ac_file commands" >&6;}
7108 ;;
7109 esac
7110
7111
7112 case $ac_file$ac_mode in
7113 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7114 # Older Autoconf quotes --file arguments for eval, but not when files
7115 # are listed without --file. Let's play safe and only enable the eval
7116 # if we detect the quoting.
7117 case $CONFIG_FILES in
7118 *\'*) eval set x "$CONFIG_FILES" ;;
7119 *) set x $CONFIG_FILES ;;
7120 esac
7121 shift
7122 for mf
7123 do
7124 # Strip MF so we end up with the name of the file.
7125 mf=`echo "$mf" | sed -e 's/:.*$//'`
7126 # Check whether this is an Automake generated Makefile or not.
7127 # We used to match only the files named 'Makefile.in', but
7128 # some people rename them; so instead we look at the file content.
7129 # Grep'ing the first line is not enough: some people post-process
7130 # each Makefile.in and add a new line on top of each file to say so.
7131 # Grep'ing the whole file is not good either: AIX grep has a line
7132 # limit of 2048, but all sed's we know have understand at least 4000.
7133 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7134 dirpart=`$as_dirname -- "$mf" ||
7135 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7136 X"$mf" : 'X\(//\)[^/]' \| \
7137 X"$mf" : 'X\(//\)$' \| \
7138 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7139 $as_echo X"$mf" |
7140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7141 s//\1/
7142 q
7143 }
7144 /^X\(\/\/\)[^/].*/{
7145 s//\1/
7146 q
7147 }
7148 /^X\(\/\/\)$/{
7149 s//\1/
7150 q
7151 }
7152 /^X\(\/\).*/{
7153 s//\1/
7154 q
7155 }
7156 s/.*/./; q'`
7157 else
7158 continue
7159 fi
7160 # Extract the definition of DEPDIR, am__include, and am__quote
7161 # from the Makefile without running 'make'.
7162 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7163 test -z "$DEPDIR" && continue
7164 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7165 test -z "$am__include" && continue
7166 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7167 # Find all dependency output files, they are included files with
7168 # $(DEPDIR) in their names. We invoke sed twice because it is the
7169 # simplest approach to changing $(DEPDIR) to its actual value in the
7170 # expansion.
7171 for file in `sed -n "
7172 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7173 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7174 # Make sure the directory exists.
7175 test -f "$dirpart/$file" && continue
7176 fdir=`$as_dirname -- "$file" ||
7177 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7178 X"$file" : 'X\(//\)[^/]' \| \
7179 X"$file" : 'X\(//\)$' \| \
7180 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7181 $as_echo X"$file" |
7182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7183 s//\1/
7184 q
7185 }
7186 /^X\(\/\/\)[^/].*/{
7187 s//\1/
7188 q
7189 }
7190 /^X\(\/\/\)$/{
7191 s//\1/
7192 q
7193 }
7194 /^X\(\/\).*/{
7195 s//\1/
7196 q
7197 }
7198 s/.*/./; q'`
7199 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7200 # echo "creating $dirpart/$file"
7201 echo '# dummy' > "$dirpart/$file"
7202 done
7203 done
7204 }
7205 ;;
7206
7207 esac
7208 done # for ac_tag
7209
7210
7211 as_fn_exit 0
7212 _ACEOF
7213 ac_clean_files=$ac_clean_files_save
7214
7215 test $ac_write_fail = 0 ||
7216 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7217
7218
7219 # configure is writing to config.log, and then calls config.status.
7220 # config.status does its own redirection, appending to config.log.
7221 # Unfortunately, on DOS this fails, as config.log is still kept open
7222 # by configure, so config.status won't be able to write to it; its
7223 # output is simply discarded. So we exec the FD to /dev/null,
7224 # effectively closing config.log, so it can be properly (re)opened and
7225 # appended to by config.status. When coming back to configure, we
7226 # need to make the FD available again.
7227 if test "$no_create" != yes; then
7228 ac_cs_success=:
7229 ac_config_status_args=
7230 test "$silent" = yes &&
7231 ac_config_status_args="$ac_config_status_args --quiet"
7232 exec 5>/dev/null
7233 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7234 exec 5>>config.log
7235 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7236 # would make configure fail if this is the last instruction.
7237 $ac_cs_success || as_fn_exit 1
7238 fi
7239 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7241 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7242 fi
7243