"Fossies" - the Fresh Open Source Software Archive 
Member "which-2.21/configure" (20 Mar 2015, 188625 Bytes) of package /linux/privat/which-2.21.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "configure":
2.20_vs_2.21.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for which 2.21.
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 bug-autoconf@gnu.org 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='which'
579 PACKAGE_TARNAME='which'
580 PACKAGE_VERSION='2.21'
581 PACKAGE_STRING='which 2.21'
582 PACKAGE_BUGREPORT=''
583 PACKAGE_URL=''
584
585 ac_unique_file="which.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 RANLIB
627 AR
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 ACLOCAL_CWFLAGS
649 MAINT
650 MAINTAINER_MODE_FALSE
651 MAINTAINER_MODE_TRUE
652 AM_BACKSLASH
653 AM_DEFAULT_VERBOSITY
654 AM_DEFAULT_V
655 AM_V
656 am__untar
657 am__tar
658 AMTAR
659 am__leading_dot
660 SET_MAKE
661 AWK
662 mkdir_p
663 MKDIR_P
664 INSTALL_STRIP_PROGRAM
665 STRIP
666 install_sh
667 MAKEINFO
668 AUTOHEADER
669 AUTOMAKE
670 AUTOCONF
671 ACLOCAL
672 VERSION
673 PACKAGE
674 CYGPATH_W
675 am__isrc
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 target_alias
680 host_alias
681 build_alias
682 LIBS
683 ECHO_T
684 ECHO_N
685 ECHO_C
686 DEFS
687 mandir
688 localedir
689 libdir
690 psdir
691 pdfdir
692 dvidir
693 htmldir
694 infodir
695 docdir
696 oldincludedir
697 includedir
698 localstatedir
699 sharedstatedir
700 sysconfdir
701 datadir
702 datarootdir
703 libexecdir
704 sbindir
705 bindir
706 program_transform_name
707 prefix
708 exec_prefix
709 PACKAGE_URL
710 PACKAGE_BUGREPORT
711 PACKAGE_STRING
712 PACKAGE_VERSION
713 PACKAGE_TARNAME
714 PACKAGE_NAME
715 PATH_SEPARATOR
716 SHELL'
717 ac_subst_files=''
718 ac_user_opts='
719 enable_option_checking
720 enable_silent_rules
721 enable_maintainer_mode
722 enable_iberty
723 enable_dependency_tracking
724 '
725 ac_precious_vars='build_alias
726 host_alias
727 target_alias
728 CC
729 CFLAGS
730 LDFLAGS
731 LIBS
732 CPPFLAGS
733 CPP'
734
735
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 ac_unrecognized_opts=
740 ac_unrecognized_sep=
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
757
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
783
784 ac_prev=
785 ac_dashdash=
786 for ac_option
787 do
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
793 fi
794
795 case $ac_option in
796 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *=) ac_optarg= ;;
798 *) ac_optarg=yes ;;
799 esac
800
801 # Accept the important Cygnus configure options, so we can diagnose typos.
802
803 case $ac_dashdash$ac_option in
804 --)
805 ac_dashdash=yes ;;
806
807 -bindir | --bindir | --bindi | --bind | --bin | --bi)
808 ac_prev=bindir ;;
809 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810 bindir=$ac_optarg ;;
811
812 -build | --build | --buil | --bui | --bu)
813 ac_prev=build_alias ;;
814 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815 build_alias=$ac_optarg ;;
816
817 -cache-file | --cache-file | --cache-fil | --cache-fi \
818 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819 ac_prev=cache_file ;;
820 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822 cache_file=$ac_optarg ;;
823
824 --config-cache | -C)
825 cache_file=config.cache ;;
826
827 -datadir | --datadir | --datadi | --datad)
828 ac_prev=datadir ;;
829 -datadir=* | --datadir=* | --datadi=* | --datad=*)
830 datadir=$ac_optarg ;;
831
832 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
833 | --dataroo | --dataro | --datar)
834 ac_prev=datarootdir ;;
835 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
836 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
837 datarootdir=$ac_optarg ;;
838
839 -disable-* | --disable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 as_fn_error $? "invalid feature name: $ac_useropt"
844 ac_useropt_orig=$ac_useropt
845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
846 case $ac_user_opts in
847 *"
848 "enable_$ac_useropt"
849 "*) ;;
850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
851 ac_unrecognized_sep=', ';;
852 esac
853 eval enable_$ac_useropt=no ;;
854
855 -docdir | --docdir | --docdi | --doc | --do)
856 ac_prev=docdir ;;
857 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
858 docdir=$ac_optarg ;;
859
860 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
861 ac_prev=dvidir ;;
862 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
863 dvidir=$ac_optarg ;;
864
865 -enable-* | --enable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error $? "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=\$ac_optarg ;;
880
881 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883 | --exec | --exe | --ex)
884 ac_prev=exec_prefix ;;
885 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887 | --exec=* | --exe=* | --ex=*)
888 exec_prefix=$ac_optarg ;;
889
890 -gas | --gas | --ga | --g)
891 # Obsolete; use --with-gas.
892 with_gas=yes ;;
893
894 -help | --help | --hel | --he | -h)
895 ac_init_help=long ;;
896 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897 ac_init_help=recursive ;;
898 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899 ac_init_help=short ;;
900
901 -host | --host | --hos | --ho)
902 ac_prev=host_alias ;;
903 -host=* | --host=* | --hos=* | --ho=*)
904 host_alias=$ac_optarg ;;
905
906 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
907 ac_prev=htmldir ;;
908 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
909 | --ht=*)
910 htmldir=$ac_optarg ;;
911
912 -includedir | --includedir | --includedi | --included | --include \
913 | --includ | --inclu | --incl | --inc)
914 ac_prev=includedir ;;
915 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916 | --includ=* | --inclu=* | --incl=* | --inc=*)
917 includedir=$ac_optarg ;;
918
919 -infodir | --infodir | --infodi | --infod | --info | --inf)
920 ac_prev=infodir ;;
921 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922 infodir=$ac_optarg ;;
923
924 -libdir | --libdir | --libdi | --libd)
925 ac_prev=libdir ;;
926 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 libdir=$ac_optarg ;;
928
929 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930 | --libexe | --libex | --libe)
931 ac_prev=libexecdir ;;
932 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933 | --libexe=* | --libex=* | --libe=*)
934 libexecdir=$ac_optarg ;;
935
936 -localedir | --localedir | --localedi | --localed | --locale)
937 ac_prev=localedir ;;
938 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
939 localedir=$ac_optarg ;;
940
941 -localstatedir | --localstatedir | --localstatedi | --localstated \
942 | --localstate | --localstat | --localsta | --localst | --locals)
943 ac_prev=localstatedir ;;
944 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
945 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946 localstatedir=$ac_optarg ;;
947
948 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949 ac_prev=mandir ;;
950 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951 mandir=$ac_optarg ;;
952
953 -nfp | --nfp | --nf)
954 # Obsolete; use --without-fp.
955 with_fp=no ;;
956
957 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958 | --no-cr | --no-c | -n)
959 no_create=yes ;;
960
961 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 no_recursion=yes ;;
964
965 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967 | --oldin | --oldi | --old | --ol | --o)
968 ac_prev=oldincludedir ;;
969 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972 oldincludedir=$ac_optarg ;;
973
974 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975 ac_prev=prefix ;;
976 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 prefix=$ac_optarg ;;
978
979 -program-prefix | --program-prefix | --program-prefi | --program-pref \
980 | --program-pre | --program-pr | --program-p)
981 ac_prev=program_prefix ;;
982 -program-prefix=* | --program-prefix=* | --program-prefi=* \
983 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984 program_prefix=$ac_optarg ;;
985
986 -program-suffix | --program-suffix | --program-suffi | --program-suff \
987 | --program-suf | --program-su | --program-s)
988 ac_prev=program_suffix ;;
989 -program-suffix=* | --program-suffix=* | --program-suffi=* \
990 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991 program_suffix=$ac_optarg ;;
992
993 -program-transform-name | --program-transform-name \
994 | --program-transform-nam | --program-transform-na \
995 | --program-transform-n | --program-transform- \
996 | --program-transform | --program-transfor \
997 | --program-transfo | --program-transf \
998 | --program-trans | --program-tran \
999 | --progr-tra | --program-tr | --program-t)
1000 ac_prev=program_transform_name ;;
1001 -program-transform-name=* | --program-transform-name=* \
1002 | --program-transform-nam=* | --program-transform-na=* \
1003 | --program-transform-n=* | --program-transform-=* \
1004 | --program-transform=* | --program-transfor=* \
1005 | --program-transfo=* | --program-transf=* \
1006 | --program-trans=* | --program-tran=* \
1007 | --progr-tra=* | --program-tr=* | --program-t=*)
1008 program_transform_name=$ac_optarg ;;
1009
1010 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1011 ac_prev=pdfdir ;;
1012 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1013 pdfdir=$ac_optarg ;;
1014
1015 -psdir | --psdir | --psdi | --psd | --ps)
1016 ac_prev=psdir ;;
1017 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 psdir=$ac_optarg ;;
1019
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 silent=yes ;;
1023
1024 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025 ac_prev=sbindir ;;
1026 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027 | --sbi=* | --sb=*)
1028 sbindir=$ac_optarg ;;
1029
1030 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032 | --sharedst | --shareds | --shared | --share | --shar \
1033 | --sha | --sh)
1034 ac_prev=sharedstatedir ;;
1035 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038 | --sha=* | --sh=*)
1039 sharedstatedir=$ac_optarg ;;
1040
1041 -site | --site | --sit)
1042 ac_prev=site ;;
1043 -site=* | --site=* | --sit=*)
1044 site=$ac_optarg ;;
1045
1046 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047 ac_prev=srcdir ;;
1048 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049 srcdir=$ac_optarg ;;
1050
1051 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052 | --syscon | --sysco | --sysc | --sys | --sy)
1053 ac_prev=sysconfdir ;;
1054 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056 sysconfdir=$ac_optarg ;;
1057
1058 -target | --target | --targe | --targ | --tar | --ta | --t)
1059 ac_prev=target_alias ;;
1060 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061 target_alias=$ac_optarg ;;
1062
1063 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064 verbose=yes ;;
1065
1066 -version | --version | --versio | --versi | --vers | -V)
1067 ac_init_version=: ;;
1068
1069 -with-* | --with-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid package name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1077 *"
1078 "with_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval with_$ac_useropt=\$ac_optarg ;;
1084
1085 -without-* | --without-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error $? "invalid package name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1093 *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval with_$ac_useropt=no ;;
1100
1101 --x)
1102 # Obsolete; use --with-x.
1103 with_x=yes ;;
1104
1105 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1106 | --x-incl | --x-inc | --x-in | --x-i)
1107 ac_prev=x_includes ;;
1108 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1109 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1110 x_includes=$ac_optarg ;;
1111
1112 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1113 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1114 ac_prev=x_libraries ;;
1115 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1116 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1117 x_libraries=$ac_optarg ;;
1118
1119 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1120 Try \`$0 --help' for more information"
1121 ;;
1122
1123 *=*)
1124 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1125 # Reject names that are not valid shell variable names.
1126 case $ac_envvar in #(
1127 '' | [0-9]* | *[!_$as_cr_alnum]* )
1128 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1129 esac
1130 eval $ac_envvar=\$ac_optarg
1131 export $ac_envvar ;;
1132
1133 *)
1134 # FIXME: should be removed in autoconf 3.0.
1135 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1136 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1137 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1138 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1139 ;;
1140
1141 esac
1142 done
1143
1144 if test -n "$ac_prev"; then
1145 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1146 as_fn_error $? "missing argument to $ac_option"
1147 fi
1148
1149 if test -n "$ac_unrecognized_opts"; then
1150 case $enable_option_checking in
1151 no) ;;
1152 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1153 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1154 esac
1155 fi
1156
1157 # Check all directory arguments for consistency.
1158 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1159 datadir sysconfdir sharedstatedir localstatedir includedir \
1160 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1161 libdir localedir mandir
1162 do
1163 eval ac_val=\$$ac_var
1164 # Remove trailing slashes.
1165 case $ac_val in
1166 */ )
1167 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1168 eval $ac_var=\$ac_val;;
1169 esac
1170 # Be sure to have absolute directory names.
1171 case $ac_val in
1172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 esac
1175 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1176 done
1177
1178 # There might be people who depend on the old broken behavior: `$host'
1179 # used to hold the argument of --host etc.
1180 # FIXME: To remove some day.
1181 build=$build_alias
1182 host=$host_alias
1183 target=$target_alias
1184
1185 # FIXME: To remove some day.
1186 if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 elif test "x$build_alias" != "x$host_alias"; then
1190 cross_compiling=yes
1191 fi
1192 fi
1193
1194 ac_tool_prefix=
1195 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1196
1197 test "$silent" = yes && exec 6>/dev/null
1198
1199
1200 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1201 ac_ls_di=`ls -di .` &&
1202 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1203 as_fn_error $? "working directory cannot be determined"
1204 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1205 as_fn_error $? "pwd does not report name of working directory"
1206
1207
1208 # Find the source files, if location was not specified.
1209 if test -z "$srcdir"; then
1210 ac_srcdir_defaulted=yes
1211 # Try the directory containing this script, then the parent directory.
1212 ac_confdir=`$as_dirname -- "$as_myself" ||
1213 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1214 X"$as_myself" : 'X\(//\)[^/]' \| \
1215 X"$as_myself" : 'X\(//\)$' \| \
1216 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1217 $as_echo X"$as_myself" |
1218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1219 s//\1/
1220 q
1221 }
1222 /^X\(\/\/\)[^/].*/{
1223 s//\1/
1224 q
1225 }
1226 /^X\(\/\/\)$/{
1227 s//\1/
1228 q
1229 }
1230 /^X\(\/\).*/{
1231 s//\1/
1232 q
1233 }
1234 s/.*/./; q'`
1235 srcdir=$ac_confdir
1236 if test ! -r "$srcdir/$ac_unique_file"; then
1237 srcdir=..
1238 fi
1239 else
1240 ac_srcdir_defaulted=no
1241 fi
1242 if test ! -r "$srcdir/$ac_unique_file"; then
1243 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1244 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1245 fi
1246 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1247 ac_abs_confdir=`(
1248 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1249 pwd)`
1250 # When building in place, set srcdir=.
1251 if test "$ac_abs_confdir" = "$ac_pwd"; then
1252 srcdir=.
1253 fi
1254 # Remove unnecessary trailing slashes from srcdir.
1255 # Double slashes in file names in object file debugging info
1256 # mess up M-x gdb in Emacs.
1257 case $srcdir in
1258 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1259 esac
1260 for ac_var in $ac_precious_vars; do
1261 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1262 eval ac_env_${ac_var}_value=\$${ac_var}
1263 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1264 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1265 done
1266
1267 #
1268 # Report the --help message.
1269 #
1270 if test "$ac_init_help" = "long"; then
1271 # Omit some internal or obsolete options to make the list less imposing.
1272 # This message is too long to be a string in the A/UX 3.1 sh.
1273 cat <<_ACEOF
1274 \`configure' configures which 2.21 to adapt to many kinds of systems.
1275
1276 Usage: $0 [OPTION]... [VAR=VALUE]...
1277
1278 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1279 VAR=VALUE. See below for descriptions of some of the useful variables.
1280
1281 Defaults for the options are specified in brackets.
1282
1283 Configuration:
1284 -h, --help display this help and exit
1285 --help=short display options specific to this package
1286 --help=recursive display the short help of all the included packages
1287 -V, --version display version information and exit
1288 -q, --quiet, --silent do not print \`checking ...' messages
1289 --cache-file=FILE cache test results in FILE [disabled]
1290 -C, --config-cache alias for \`--cache-file=config.cache'
1291 -n, --no-create do not create output files
1292 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1293
1294 Installation directories:
1295 --prefix=PREFIX install architecture-independent files in PREFIX
1296 [$ac_default_prefix]
1297 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1298 [PREFIX]
1299
1300 By default, \`make install' will install all the files in
1301 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1302 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1303 for instance \`--prefix=\$HOME'.
1304
1305 For better control, use the options below.
1306
1307 Fine tuning of the installation directories:
1308 --bindir=DIR user executables [EPREFIX/bin]
1309 --sbindir=DIR system admin executables [EPREFIX/sbin]
1310 --libexecdir=DIR program executables [EPREFIX/libexec]
1311 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1312 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1313 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1314 --libdir=DIR object code libraries [EPREFIX/lib]
1315 --includedir=DIR C header files [PREFIX/include]
1316 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1317 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1318 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1319 --infodir=DIR info documentation [DATAROOTDIR/info]
1320 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1321 --mandir=DIR man documentation [DATAROOTDIR/man]
1322 --docdir=DIR documentation root [DATAROOTDIR/doc/which]
1323 --htmldir=DIR html documentation [DOCDIR]
1324 --dvidir=DIR dvi documentation [DOCDIR]
1325 --pdfdir=DIR pdf documentation [DOCDIR]
1326 --psdir=DIR ps documentation [DOCDIR]
1327 _ACEOF
1328
1329 cat <<\_ACEOF
1330
1331 Program names:
1332 --program-prefix=PREFIX prepend PREFIX to installed program names
1333 --program-suffix=SUFFIX append SUFFIX to installed program names
1334 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1335 _ACEOF
1336 fi
1337
1338 if test -n "$ac_init_help"; then
1339 case $ac_init_help in
1340 short | recursive ) echo "Configuration of which 2.21:";;
1341 esac
1342 cat <<\_ACEOF
1343
1344 Optional Features:
1345 --disable-option-checking ignore unrecognized --enable/--with options
1346 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1347 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1348 --enable-silent-rules less verbose build output (undo: "make V=1")
1349 --disable-silent-rules verbose build output (undo: "make V=0")
1350 --enable-maintainer-mode
1351 enable make rules and dependencies not useful (and
1352 sometimes confusing) to the casual installer
1353 --disable-iberty do not try to find and use the iberty library
1354 --enable-dependency-tracking
1355 do not reject slow dependency extractors
1356 --disable-dependency-tracking
1357 speeds up one-time build
1358
1359 Some influential environment variables:
1360 CC C compiler command
1361 CFLAGS C compiler flags
1362 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1363 nonstandard directory <lib dir>
1364 LIBS libraries to pass to the linker, e.g. -l<library>
1365 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1366 you have headers in a nonstandard directory <include dir>
1367 CPP C preprocessor
1368
1369 Use these variables to override the choices made by `configure' or to help
1370 it to find libraries and programs with nonstandard names/locations.
1371
1372 Report bugs to the package provider.
1373 _ACEOF
1374 ac_status=$?
1375 fi
1376
1377 if test "$ac_init_help" = "recursive"; then
1378 # If there are subdirs, report their specific --help.
1379 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1380 test -d "$ac_dir" ||
1381 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1382 continue
1383 ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
1388 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1400
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 which configure 2.21
1436 generated by GNU Autoconf 2.69
1437
1438 Copyright (C) 2012 Free Software Foundation, Inc.
1439 This configure script is free software; the Free Software Foundation
1440 gives unlimited permission to copy, distribute and modify it.
1441 _ACEOF
1442 exit
1443 fi
1444
1445 ## ------------------------ ##
1446 ## Autoconf initialization. ##
1447 ## ------------------------ ##
1448
1449 # ac_fn_c_try_compile LINENO
1450 # --------------------------
1451 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1452 ac_fn_c_try_compile ()
1453 {
1454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1455 rm -f conftest.$ac_objext
1456 if { { ac_try="$ac_compile"
1457 case "(($ac_try" in
1458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1459 *) ac_try_echo=$ac_try;;
1460 esac
1461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1462 $as_echo "$ac_try_echo"; } >&5
1463 (eval "$ac_compile") 2>conftest.err
1464 ac_status=$?
1465 if test -s conftest.err; then
1466 grep -v '^ *+' conftest.err >conftest.er1
1467 cat conftest.er1 >&5
1468 mv -f conftest.er1 conftest.err
1469 fi
1470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1471 test $ac_status = 0; } && {
1472 test -z "$ac_c_werror_flag" ||
1473 test ! -s conftest.err
1474 } && test -s conftest.$ac_objext; then :
1475 ac_retval=0
1476 else
1477 $as_echo "$as_me: failed program was:" >&5
1478 sed 's/^/| /' conftest.$ac_ext >&5
1479
1480 ac_retval=1
1481 fi
1482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1483 as_fn_set_status $ac_retval
1484
1485 } # ac_fn_c_try_compile
1486
1487 # ac_fn_c_try_cpp LINENO
1488 # ----------------------
1489 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1490 ac_fn_c_try_cpp ()
1491 {
1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493 if { { ac_try="$ac_cpp conftest.$ac_ext"
1494 case "(($ac_try" in
1495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1496 *) ac_try_echo=$ac_try;;
1497 esac
1498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1499 $as_echo "$ac_try_echo"; } >&5
1500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1501 ac_status=$?
1502 if test -s conftest.err; then
1503 grep -v '^ *+' conftest.err >conftest.er1
1504 cat conftest.er1 >&5
1505 mv -f conftest.er1 conftest.err
1506 fi
1507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } > conftest.i && {
1509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1510 test ! -s conftest.err
1511 }; then :
1512 ac_retval=0
1513 else
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1516
1517 ac_retval=1
1518 fi
1519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1520 as_fn_set_status $ac_retval
1521
1522 } # ac_fn_c_try_cpp
1523
1524 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1525 # -------------------------------------------------------
1526 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1527 # the include files in INCLUDES and setting the cache variable VAR
1528 # accordingly.
1529 ac_fn_c_check_header_mongrel ()
1530 {
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 if eval \${$3+:} false; then :
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1534 $as_echo_n "checking for $2... " >&6; }
1535 if eval \${$3+:} false; then :
1536 $as_echo_n "(cached) " >&6
1537 fi
1538 eval ac_res=\$$3
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1540 $as_echo "$ac_res" >&6; }
1541 else
1542 # Is the header compilable?
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1544 $as_echo_n "checking $2 usability... " >&6; }
1545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1546 /* end confdefs.h. */
1547 $4
1548 #include <$2>
1549 _ACEOF
1550 if ac_fn_c_try_compile "$LINENO"; then :
1551 ac_header_compiler=yes
1552 else
1553 ac_header_compiler=no
1554 fi
1555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1557 $as_echo "$ac_header_compiler" >&6; }
1558
1559 # Is the header present?
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1561 $as_echo_n "checking $2 presence... " >&6; }
1562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1563 /* end confdefs.h. */
1564 #include <$2>
1565 _ACEOF
1566 if ac_fn_c_try_cpp "$LINENO"; then :
1567 ac_header_preproc=yes
1568 else
1569 ac_header_preproc=no
1570 fi
1571 rm -f conftest.err conftest.i conftest.$ac_ext
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1573 $as_echo "$ac_header_preproc" >&6; }
1574
1575 # So? What about this header?
1576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1577 yes:no: )
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1579 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1581 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1582 ;;
1583 no:yes:* )
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1585 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1587 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1589 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1591 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1593 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1594 ;;
1595 esac
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597 $as_echo_n "checking for $2... " >&6; }
1598 if eval \${$3+:} false; then :
1599 $as_echo_n "(cached) " >&6
1600 else
1601 eval "$3=\$ac_header_compiler"
1602 fi
1603 eval ac_res=\$$3
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606 fi
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608
1609 } # ac_fn_c_check_header_mongrel
1610
1611 # ac_fn_c_try_run LINENO
1612 # ----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1614 # that executables *can* be run.
1615 ac_fn_c_try_run ()
1616 {
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_link"
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_link") 2>&5
1626 ac_status=$?
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1629 { { case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_try") 2>&5
1636 ac_status=$?
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; }; }; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: program exited with status $ac_status" >&5
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=$ac_status
1646 fi
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_run
1652
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 eval "$3=yes"
1672 else
1673 eval "$3=no"
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 fi
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
1682 } # ac_fn_c_check_header_compile
1683
1684 # ac_fn_c_try_link LINENO
1685 # -----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_link ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext conftest$ac_exeext
1691 if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest$ac_exeext && {
1710 test "$cross_compiling" = yes ||
1711 test -x conftest$ac_exeext
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722 # interfere with the next link command; also delete a directory that is
1723 # left behind by Apple's compiler. We do this before executing the actions.
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_link
1729
1730 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1731 # -------------------------------------------
1732 # Tests whether TYPE exists after having included INCLUDES, setting cache
1733 # variable VAR accordingly.
1734 ac_fn_c_check_type ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 eval "$3=no"
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1745 $4
1746 int
1747 main ()
1748 {
1749 if (sizeof ($2))
1750 return 0;
1751 ;
1752 return 0;
1753 }
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1758 $4
1759 int
1760 main ()
1761 {
1762 if (sizeof (($2)))
1763 return 0;
1764 ;
1765 return 0;
1766 }
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769
1770 else
1771 eval "$3=yes"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 fi
1777 eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782 } # ac_fn_c_check_type
1783
1784 # ac_fn_c_check_func LINENO FUNC VAR
1785 # ----------------------------------
1786 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1787 ac_fn_c_check_func ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1794 else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1799 #define $2 innocuous_$2
1800
1801 /* System header to define __stub macros and hopefully few prototypes,
1802 which can conflict with char $2 (); below.
1803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1804 <limits.h> exists even on freestanding compilers. */
1805
1806 #ifdef __STDC__
1807 # include <limits.h>
1808 #else
1809 # include <assert.h>
1810 #endif
1811
1812 #undef $2
1813
1814 /* Override any GCC internal prototype to avoid an error.
1815 Use char because int might match the return type of a GCC
1816 builtin and then its argument prototype would still apply. */
1817 #ifdef __cplusplus
1818 extern "C"
1819 #endif
1820 char $2 ();
1821 /* The GNU C library defines this for functions which it implements
1822 to always fail with ENOSYS. Some functions are actually named
1823 something starting with __ and the normal name is an alias. */
1824 #if defined __stub_$2 || defined __stub___$2
1825 choke me
1826 #endif
1827
1828 int
1829 main ()
1830 {
1831 return $2 ();
1832 ;
1833 return 0;
1834 }
1835 _ACEOF
1836 if ac_fn_c_try_link "$LINENO"; then :
1837 eval "$3=yes"
1838 else
1839 eval "$3=no"
1840 fi
1841 rm -f core conftest.err conftest.$ac_objext \
1842 conftest$ac_exeext conftest.$ac_ext
1843 fi
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848
1849 } # ac_fn_c_check_func
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1853
1854 It was created by which $as_me 2.21, which was
1855 generated by GNU Autoconf 2.69. Invocation command line was
1856
1857 $ $0 $@
1858
1859 _ACEOF
1860 exec 5>>config.log
1861 {
1862 cat <<_ASUNAME
1863 ## --------- ##
1864 ## Platform. ##
1865 ## --------- ##
1866
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1875
1876 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1877 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1880 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1881 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1882 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1883
1884 _ASUNAME
1885
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1888 do
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 $as_echo "PATH: $as_dir"
1892 done
1893 IFS=$as_save_IFS
1894
1895 } >&5
1896
1897 cat >&5 <<_ACEOF
1898
1899
1900 ## ----------- ##
1901 ## Core tests. ##
1902 ## ----------- ##
1903
1904 _ACEOF
1905
1906
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1912 ac_configure_args=
1913 ac_configure_args0=
1914 ac_configure_args1=
1915 ac_must_keep_next=false
1916 for ac_pass in 1 2
1917 do
1918 for ac_arg
1919 do
1920 case $ac_arg in
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1924 continue ;;
1925 *\'*)
1926 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 esac
1928 case $ac_pass in
1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1930 2)
1931 as_fn_append ac_configure_args1 " '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1934 else
1935 case $ac_arg in
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1942 esac
1943 ;;
1944 -* ) ac_must_keep_next=true ;;
1945 esac
1946 fi
1947 as_fn_append ac_configure_args " '$ac_arg'"
1948 ;;
1949 esac
1950 done
1951 done
1952 { ac_configure_args0=; unset ac_configure_args0;}
1953 { ac_configure_args1=; unset ac_configure_args1;}
1954
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log. We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961 # Save into config.log some information that might help in debugging.
1962 {
1963 echo
1964
1965 $as_echo "## ---------------- ##
1966 ## Cache variables. ##
1967 ## ---------------- ##"
1968 echo
1969 # The following way of writing the cache mishandles newlines in values,
1970 (
1971 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1972 eval ac_val=\$$ac_var
1973 case $ac_val in #(
1974 *${as_nl}*)
1975 case $ac_var in #(
1976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1978 esac
1979 case $ac_var in #(
1980 _ | IFS | as_nl) ;; #(
1981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1982 *) { eval $ac_var=; unset $ac_var;} ;;
1983 esac ;;
1984 esac
1985 done
1986 (set) 2>&1 |
1987 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1988 *${as_nl}ac_space=\ *)
1989 sed -n \
1990 "s/'\''/'\''\\\\'\'''\''/g;
1991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1992 ;; #(
1993 *)
1994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995 ;;
1996 esac |
1997 sort
1998 )
1999 echo
2000
2001 $as_echo "## ----------------- ##
2002 ## Output variables. ##
2003 ## ----------------- ##"
2004 echo
2005 for ac_var in $ac_subst_vars
2006 do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in
2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 esac
2011 $as_echo "$ac_var='\''$ac_val'\''"
2012 done | sort
2013 echo
2014
2015 if test -n "$ac_subst_files"; then
2016 $as_echo "## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##"
2019 echo
2020 for ac_var in $ac_subst_files
2021 do
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 $as_echo "$ac_var='\''$ac_val'\''"
2027 done | sort
2028 echo
2029 fi
2030
2031 if test -s confdefs.h; then
2032 $as_echo "## ----------- ##
2033 ## confdefs.h. ##
2034 ## ----------- ##"
2035 echo
2036 cat confdefs.h
2037 echo
2038 fi
2039 test "$ac_signal" != 0 &&
2040 $as_echo "$as_me: caught signal $ac_signal"
2041 $as_echo "$as_me: exit $exit_status"
2042 } >&5
2043 rm -f core *.core core.conftest.* &&
2044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2045 exit $exit_status
2046 ' 0
2047 for ac_signal in 1 2 13 15; do
2048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2049 done
2050 ac_signal=0
2051
2052 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2053 rm -f -r conftest* confdefs.h
2054
2055 $as_echo "/* confdefs.h */" > confdefs.h
2056
2057 # Predefined preprocessor variables.
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_NAME "$PACKAGE_NAME"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2065 _ACEOF
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2069 _ACEOF
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_STRING "$PACKAGE_STRING"
2073 _ACEOF
2074
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2077 _ACEOF
2078
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_URL "$PACKAGE_URL"
2081 _ACEOF
2082
2083
2084 # Let the site file select an alternate cache file if it wants to.
2085 # Prefer an explicitly selected file to automatically selected ones.
2086 ac_site_file1=NONE
2087 ac_site_file2=NONE
2088 if test -n "$CONFIG_SITE"; then
2089 # We do not want a PATH search for config.site.
2090 case $CONFIG_SITE in #((
2091 -*) ac_site_file1=./$CONFIG_SITE;;
2092 */*) ac_site_file1=$CONFIG_SITE;;
2093 *) ac_site_file1=./$CONFIG_SITE;;
2094 esac
2095 elif test "x$prefix" != xNONE; then
2096 ac_site_file1=$prefix/share/config.site
2097 ac_site_file2=$prefix/etc/config.site
2098 else
2099 ac_site_file1=$ac_default_prefix/share/config.site
2100 ac_site_file2=$ac_default_prefix/etc/config.site
2101 fi
2102 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2103 do
2104 test "x$ac_site_file" = xNONE && continue
2105 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2107 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2108 sed 's/^/| /' "$ac_site_file" >&5
2109 . "$ac_site_file" \
2110 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2112 as_fn_error $? "failed to load site script $ac_site_file
2113 See \`config.log' for more details" "$LINENO" 5; }
2114 fi
2115 done
2116
2117 if test -r "$cache_file"; then
2118 # Some versions of bash will fail to source /dev/null (special files
2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2122 $as_echo "$as_me: loading cache $cache_file" >&6;}
2123 case $cache_file in
2124 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2125 *) . "./$cache_file";;
2126 esac
2127 fi
2128 else
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2130 $as_echo "$as_me: creating cache $cache_file" >&6;}
2131 >$cache_file
2132 fi
2133
2134 # Check that the precious variables saved in the cache have kept the same
2135 # value.
2136 ac_cache_corrupted=false
2137 for ac_var in $ac_precious_vars; do
2138 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2139 eval ac_new_set=\$ac_env_${ac_var}_set
2140 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2141 eval ac_new_val=\$ac_env_${ac_var}_value
2142 case $ac_old_set,$ac_new_set in
2143 set,)
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2145 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2146 ac_cache_corrupted=: ;;
2147 ,set)
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2149 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2150 ac_cache_corrupted=: ;;
2151 ,);;
2152 *)
2153 if test "x$ac_old_val" != "x$ac_new_val"; then
2154 # differences in whitespace do not lead to failure.
2155 ac_old_val_w=`echo x $ac_old_val`
2156 ac_new_val_w=`echo x $ac_new_val`
2157 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2159 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2160 ac_cache_corrupted=:
2161 else
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2163 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2164 eval $ac_var=\$ac_old_val
2165 fi
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2167 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2169 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2170 fi;;
2171 esac
2172 # Pass precious variables to config.status.
2173 if test "$ac_new_set" = set; then
2174 case $ac_new_val in
2175 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 *) ac_arg=$ac_var=$ac_new_val ;;
2177 esac
2178 case " $ac_configure_args " in
2179 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2180 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2181 esac
2182 fi
2183 done
2184 if $ac_cache_corrupted; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2188 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2189 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2190 fi
2191 ## -------------------- ##
2192 ## Main body of script. ##
2193 ## -------------------- ##
2194
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200
2201
2202
2203 am__api_version='1.14'
2204
2205 ac_aux_dir=
2206 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2207 if test -f "$ac_dir/install-sh"; then
2208 ac_aux_dir=$ac_dir
2209 ac_install_sh="$ac_aux_dir/install-sh -c"
2210 break
2211 elif test -f "$ac_dir/install.sh"; then
2212 ac_aux_dir=$ac_dir
2213 ac_install_sh="$ac_aux_dir/install.sh -c"
2214 break
2215 elif test -f "$ac_dir/shtool"; then
2216 ac_aux_dir=$ac_dir
2217 ac_install_sh="$ac_aux_dir/shtool install -c"
2218 break
2219 fi
2220 done
2221 if test -z "$ac_aux_dir"; then
2222 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2223 fi
2224
2225 # These three variables are undocumented and unsupported,
2226 # and are intended to be withdrawn in a future Autoconf release.
2227 # They can cause serious problems if a builder's source tree is in a directory
2228 # whose full name contains unusual characters.
2229 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2230 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2231 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2232
2233
2234 # Find a good install program. We prefer a C program (faster),
2235 # so one script is as good as another. But avoid the broken or
2236 # incompatible versions:
2237 # SysV /etc/install, /usr/sbin/install
2238 # SunOS /usr/etc/install
2239 # IRIX /sbin/install
2240 # AIX /bin/install
2241 # AmigaOS /C/install, which installs bootblocks on floppy discs
2242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2245 # OS/2's system install, which has a completely different semantic
2246 # ./install, which can be erroneously created by make from ./install.sh.
2247 # Reject install programs that cannot install multiple files.
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2249 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2250 if test -z "$INSTALL"; then
2251 if ${ac_cv_path_install+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 # Account for people who put trailing slashes in PATH elements.
2260 case $as_dir/ in #((
2261 ./ | .// | /[cC]/* | \
2262 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2263 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2264 /usr/ucb/* ) ;;
2265 *)
2266 # OSF1 and SCO ODT 3.0 have their own names for install.
2267 # Don't use installbsd from OSF since it installs stuff as root
2268 # by default.
2269 for ac_prog in ginstall scoinst install; do
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2272 if test $ac_prog = install &&
2273 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2274 # AIX install. It has an incompatible calling convention.
2275 :
2276 elif test $ac_prog = install &&
2277 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278 # program-specific install script used by HP pwplus--don't use.
2279 :
2280 else
2281 rm -rf conftest.one conftest.two conftest.dir
2282 echo one > conftest.one
2283 echo two > conftest.two
2284 mkdir conftest.dir
2285 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2286 test -s conftest.one && test -s conftest.two &&
2287 test -s conftest.dir/conftest.one &&
2288 test -s conftest.dir/conftest.two
2289 then
2290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2291 break 3
2292 fi
2293 fi
2294 fi
2295 done
2296 done
2297 ;;
2298 esac
2299
2300 done
2301 IFS=$as_save_IFS
2302
2303 rm -rf conftest.one conftest.two conftest.dir
2304
2305 fi
2306 if test "${ac_cv_path_install+set}" = set; then
2307 INSTALL=$ac_cv_path_install
2308 else
2309 # As a last resort, use the slow shell script. Don't cache a
2310 # value for INSTALL within a source directory, because that will
2311 # break other packages using the cache if that directory is
2312 # removed, or if the value is a relative name.
2313 INSTALL=$ac_install_sh
2314 fi
2315 fi
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2317 $as_echo "$INSTALL" >&6; }
2318
2319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2320 # It thinks the first close brace ends the variable substitution.
2321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2322
2323 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2324
2325 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2326
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2328 $as_echo_n "checking whether build environment is sane... " >&6; }
2329 # Reject unsafe characters in $srcdir or the absolute working directory
2330 # name. Accept space and tab only in the latter.
2331 am_lf='
2332 '
2333 case `pwd` in
2334 *[\\\"\#\$\&\'\`$am_lf]*)
2335 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2336 esac
2337 case $srcdir in
2338 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2339 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2340 esac
2341
2342 # Do 'set' in a subshell so we don't clobber the current shell's
2343 # arguments. Must try -L first in case configure is actually a
2344 # symlink; some systems play weird games with the mod time of symlinks
2345 # (eg FreeBSD returns the mod time of the symlink's containing
2346 # directory).
2347 if (
2348 am_has_slept=no
2349 for am_try in 1 2; do
2350 echo "timestamp, slept: $am_has_slept" > conftest.file
2351 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2352 if test "$*" = "X"; then
2353 # -L didn't work.
2354 set X `ls -t "$srcdir/configure" conftest.file`
2355 fi
2356 if test "$*" != "X $srcdir/configure conftest.file" \
2357 && test "$*" != "X conftest.file $srcdir/configure"; then
2358
2359 # If neither matched, then we have a broken ls. This can happen
2360 # if, for instance, CONFIG_SHELL is bash and it inherits a
2361 # broken ls alias from the environment. This has actually
2362 # happened. Such a system could not be considered "sane".
2363 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2364 alias in your environment" "$LINENO" 5
2365 fi
2366 if test "$2" = conftest.file || test $am_try -eq 2; then
2367 break
2368 fi
2369 # Just in case.
2370 sleep 1
2371 am_has_slept=yes
2372 done
2373 test "$2" = conftest.file
2374 )
2375 then
2376 # Ok.
2377 :
2378 else
2379 as_fn_error $? "newly created file is older than distributed files!
2380 Check your system clock" "$LINENO" 5
2381 fi
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2383 $as_echo "yes" >&6; }
2384 # If we didn't sleep, we still need to ensure time stamps of config.status and
2385 # generated files are strictly newer.
2386 am_sleep_pid=
2387 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2388 ( sleep 1 ) &
2389 am_sleep_pid=$!
2390 fi
2391
2392 rm -f conftest.file
2393
2394 test "$program_prefix" != NONE &&
2395 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2396 # Use a double $ so make ignores it.
2397 test "$program_suffix" != NONE &&
2398 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2399 # Double any \ or $.
2400 # By default was `s,x,x', remove it if useless.
2401 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2402 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2403
2404 # Expand $ac_aux_dir to an absolute path.
2405 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2406
2407 if test x"${MISSING+set}" != xset; then
2408 case $am_aux_dir in
2409 *\ * | *\ *)
2410 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2411 *)
2412 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2413 esac
2414 fi
2415 # Use eval to expand $SHELL
2416 if eval "$MISSING --is-lightweight"; then
2417 am_missing_run="$MISSING "
2418 else
2419 am_missing_run=
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2421 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2422 fi
2423
2424 if test x"${install_sh}" != xset; then
2425 case $am_aux_dir in
2426 *\ * | *\ *)
2427 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2428 *)
2429 install_sh="\${SHELL} $am_aux_dir/install-sh"
2430 esac
2431 fi
2432
2433 # Installed binaries are usually stripped using 'strip' when the user
2434 # run "make install-strip". However 'strip' might not be the right
2435 # tool to use in cross-compilation environments, therefore Automake
2436 # will honor the 'STRIP' environment variable to overrule this program.
2437 if test "$cross_compiling" != no; then
2438 if test -n "$ac_tool_prefix"; then
2439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2440 set dummy ${ac_tool_prefix}strip; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_STRIP+:} false; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 if test -n "$STRIP"; then
2447 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2459 fi
2460 done
2461 done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 STRIP=$ac_cv_prog_STRIP
2467 if test -n "$STRIP"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2469 $as_echo "$STRIP" >&6; }
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2473 fi
2474
2475
2476 fi
2477 if test -z "$ac_cv_prog_STRIP"; then
2478 ac_ct_STRIP=$STRIP
2479 # Extract the first word of "strip", so it can be a program name with args.
2480 set dummy strip; ac_word=$2
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 if test -n "$ac_ct_STRIP"; then
2487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_ac_ct_STRIP="strip"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2499 fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2507 if test -n "$ac_ct_STRIP"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2509 $as_echo "$ac_ct_STRIP" >&6; }
2510 else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512 $as_echo "no" >&6; }
2513 fi
2514
2515 if test "x$ac_ct_STRIP" = x; then
2516 STRIP=":"
2517 else
2518 case $cross_compiling:$ac_tool_warned in
2519 yes:)
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524 STRIP=$ac_ct_STRIP
2525 fi
2526 else
2527 STRIP="$ac_cv_prog_STRIP"
2528 fi
2529
2530 fi
2531 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2532
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2534 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2535 if test -z "$MKDIR_P"; then
2536 if ${ac_cv_path_mkdir+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2541 do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_prog in mkdir gmkdir; do
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2547 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2548 'mkdir (GNU coreutils) '* | \
2549 'mkdir (coreutils) '* | \
2550 'mkdir (fileutils) '4.1*)
2551 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2552 break 3;;
2553 esac
2554 done
2555 done
2556 done
2557 IFS=$as_save_IFS
2558
2559 fi
2560
2561 test -d ./--version && rmdir ./--version
2562 if test "${ac_cv_path_mkdir+set}" = set; then
2563 MKDIR_P="$ac_cv_path_mkdir -p"
2564 else
2565 # As a last resort, use the slow shell script. Don't cache a
2566 # value for MKDIR_P within a source directory, because that will
2567 # break other packages using the cache if that directory is
2568 # removed, or if the value is a relative name.
2569 MKDIR_P="$ac_install_sh -d"
2570 fi
2571 fi
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2573 $as_echo "$MKDIR_P" >&6; }
2574
2575 for ac_prog in gawk mawk nawk awk
2576 do
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580 $as_echo_n "checking for $ac_word... " >&6; }
2581 if ${ac_cv_prog_AWK+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test -n "$AWK"; then
2585 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 ac_cv_prog_AWK="$ac_prog"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 break 2
2597 fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 fi
2603 fi
2604 AWK=$ac_cv_prog_AWK
2605 if test -n "$AWK"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2607 $as_echo "$AWK" >&6; }
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610 $as_echo "no" >&6; }
2611 fi
2612
2613
2614 test -n "$AWK" && break
2615 done
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2618 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2619 set x ${MAKE-make}
2620 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2621 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 cat >conftest.make <<\_ACEOF
2625 SHELL = /bin/sh
2626 all:
2627 @echo '@@@%%%=$(MAKE)=@@@%%%'
2628 _ACEOF
2629 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2630 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2631 *@@@%%%=?*=@@@%%%*)
2632 eval ac_cv_prog_make_${ac_make}_set=yes;;
2633 *)
2634 eval ac_cv_prog_make_${ac_make}_set=no;;
2635 esac
2636 rm -f conftest.make
2637 fi
2638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2640 $as_echo "yes" >&6; }
2641 SET_MAKE=
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 SET_MAKE="MAKE=${MAKE-make}"
2646 fi
2647
2648 rm -rf .tst 2>/dev/null
2649 mkdir .tst 2>/dev/null
2650 if test -d .tst; then
2651 am__leading_dot=.
2652 else
2653 am__leading_dot=_
2654 fi
2655 rmdir .tst 2>/dev/null
2656
2657 # Check whether --enable-silent-rules was given.
2658 if test "${enable_silent_rules+set}" = set; then :
2659 enableval=$enable_silent_rules;
2660 fi
2661
2662 case $enable_silent_rules in # (((
2663 yes) AM_DEFAULT_VERBOSITY=0;;
2664 no) AM_DEFAULT_VERBOSITY=1;;
2665 *) AM_DEFAULT_VERBOSITY=1;;
2666 esac
2667 am_make=${MAKE-make}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2669 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2670 if ${am_cv_make_support_nested_variables+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 if $as_echo 'TRUE=$(BAR$(V))
2674 BAR0=false
2675 BAR1=true
2676 V=1
2677 am__doit:
2678 @$(TRUE)
2679 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2680 am_cv_make_support_nested_variables=yes
2681 else
2682 am_cv_make_support_nested_variables=no
2683 fi
2684 fi
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2686 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2687 if test $am_cv_make_support_nested_variables = yes; then
2688 AM_V='$(V)'
2689 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2690 else
2691 AM_V=$AM_DEFAULT_VERBOSITY
2692 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2693 fi
2694 AM_BACKSLASH='\'
2695
2696 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2697 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2698 # is not polluted with repeated "-I."
2699 am__isrc=' -I$(srcdir)'
2700 # test to see if srcdir already configured
2701 if test -f $srcdir/config.status; then
2702 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2703 fi
2704 fi
2705
2706 # test whether we have cygpath
2707 if test -z "$CYGPATH_W"; then
2708 if (cygpath --version) >/dev/null 2>/dev/null; then
2709 CYGPATH_W='cygpath -w'
2710 else
2711 CYGPATH_W=echo
2712 fi
2713 fi
2714
2715
2716 # Define the identity of the package.
2717 PACKAGE='which'
2718 VERSION='2.21'
2719
2720
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE "$PACKAGE"
2723 _ACEOF
2724
2725
2726 cat >>confdefs.h <<_ACEOF
2727 #define VERSION "$VERSION"
2728 _ACEOF
2729
2730 # Some tools Automake needs.
2731
2732 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2733
2734
2735 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2736
2737
2738 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2739
2740
2741 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2742
2743
2744 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2745
2746 # For better backward compatibility. To be removed once Automake 1.9.x
2747 # dies out for good. For more background, see:
2748 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2749 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2750 mkdir_p='$(MKDIR_P)'
2751
2752 # We need awk for the "check" target. The system "awk" is bad on
2753 # some platforms.
2754 # Always define AMTAR for backward compatibility. Yes, it's still used
2755 # in the wild :-( We should find a proper way to deprecate it ...
2756 AMTAR='$${TAR-tar}'
2757
2758
2759 # We'll loop over all known methods to create a tar archive until one works.
2760 _am_tools='gnutar pax cpio none'
2761
2762 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2763
2764
2765
2766
2767
2768
2769 # POSIX will say in a future version that running "rm -f" with no argument
2770 # is OK; and we want to be able to make that assumption in our Makefile
2771 # recipes. So use an aggressive probe to check that the usage we want is
2772 # actually supported "in the wild" to an acceptable degree.
2773 # See automake bug#10828.
2774 # To make any issue more visible, cause the running configure to be aborted
2775 # by default if the 'rm' program in use doesn't match our expectations; the
2776 # user can still override this though.
2777 if rm -f && rm -fr && rm -rf; then : OK; else
2778 cat >&2 <<'END'
2779 Oops!
2780
2781 Your 'rm' program seems unable to run without file operands specified
2782 on the command line, even when the '-f' option is present. This is contrary
2783 to the behaviour of most rm programs out there, and not conforming with
2784 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2785
2786 Please tell bug-automake@gnu.org about your system, including the value
2787 of your $PATH and any error possibly output before this message. This
2788 can help us improve future automake versions.
2789
2790 END
2791 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2792 echo 'Configuration will proceed anyway, since you have set the' >&2
2793 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2794 echo >&2
2795 else
2796 cat >&2 <<'END'
2797 Aborting the configuration process, to ensure you take notice of the issue.
2798
2799 You can download and install GNU coreutils to get an 'rm' implementation
2800 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2801
2802 If you want to complete the configuration process using your problematic
2803 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2804 to "yes", and re-run configure.
2805
2806 END
2807 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2808 fi
2809 fi
2810
2811 ac_config_headers="$ac_config_headers config.h"
2812
2813
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2815 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2816 # Check whether --enable-maintainer-mode was given.
2817 if test "${enable_maintainer_mode+set}" = set; then :
2818 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2819 else
2820 USE_MAINTAINER_MODE=no
2821 fi
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2824 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2825 if test $USE_MAINTAINER_MODE = yes; then
2826 MAINTAINER_MODE_TRUE=
2827 MAINTAINER_MODE_FALSE='#'
2828 else
2829 MAINTAINER_MODE_TRUE='#'
2830 MAINTAINER_MODE_FALSE=
2831 fi
2832
2833 MAINT=$MAINTAINER_MODE_TRUE
2834
2835
2836
2837 minver=
2838 test -n "$minver" || minver=0
2839 if test 20140831 -lt $minver; then
2840 as_fn_error $? "cwautomacros version $minver or later is required." "$LINENO" 5
2841 fi
2842
2843 ACLOCAL_CWFLAGS="-I ${CWAUTOMACROSPREFIX-/usr}/share/cwautomacros/m4"
2844 if test -d $ac_confdir/libtoolm4; then
2845 ACLOCAL_CWFLAGS="$ACLOCAL_CWFLAGS -I `cd $ac_confdir; pwd`/libtoolm4"
2846 fi
2847
2848
2849
2850 which_cv_iberty=yes
2851 # Check whether --enable-iberty was given.
2852 if test "${enable_iberty+set}" = set; then :
2853 enableval=$enable_iberty; which_cv_iberty=$enableval
2854 fi
2855
2856
2857 ac_ext=c
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2866 $as_echo_n "checking for $ac_word... " >&6; }
2867 if ${ac_cv_prog_CC+:} false; then :
2868 $as_echo_n "(cached) " >&6
2869 else
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 break 2
2883 fi
2884 done
2885 done
2886 IFS=$as_save_IFS
2887
2888 fi
2889 fi
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893 $as_echo "$CC" >&6; }
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2897 fi
2898
2899
2900 fi
2901 if test -z "$ac_cv_prog_CC"; then
2902 ac_ct_CC=$CC
2903 # Extract the first word of "gcc", so it can be a program name with args.
2904 set dummy gcc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_ac_ct_CC="gcc"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2931 if test -n "$ac_ct_CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2933 $as_echo "$ac_ct_CC" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939 if test "x$ac_ct_CC" = x; then
2940 CC=""
2941 else
2942 case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2947 esac
2948 CC=$ac_ct_CC
2949 fi
2950 else
2951 CC="$ac_cv_prog_CC"
2952 fi
2953
2954 if test -z "$CC"; then
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}cc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2962 else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_CC="${ac_tool_prefix}cc"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 CC=$ac_cv_prog_CC
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2987 else
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 fi
2994 fi
2995 if test -z "$CC"; then
2996 # Extract the first word of "cc", so it can be a program name with args.
2997 set dummy cc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 ac_prog_rejected=no
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3015 ac_prog_rejected=yes
3016 continue
3017 fi
3018 ac_cv_prog_CC="cc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 if test $ac_prog_rejected = yes; then
3027 # We found a bogon in the path, so make sure we never use it.
3028 set dummy $ac_cv_prog_CC
3029 shift
3030 if test $# != 0; then
3031 # We chose a different compiler from the bogus one.
3032 # However, it has the same basename, so the bogon will be chosen
3033 # first if we set CC to just the basename; use the full file name.
3034 shift
3035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3036 fi
3037 fi
3038 fi
3039 fi
3040 CC=$ac_cv_prog_CC
3041 if test -n "$CC"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050 fi
3051 if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 for ac_prog in cl.exe
3054 do
3055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3075 fi
3076 done
3077 done
3078 IFS=$as_save_IFS
3079
3080 fi
3081 fi
3082 CC=$ac_cv_prog_CC
3083 if test -n "$CC"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3086 else
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 fi
3090
3091
3092 test -n "$CC" && break
3093 done
3094 fi
3095 if test -z "$CC"; then
3096 ac_ct_CC=$CC
3097 for ac_prog in cl.exe
3098 do
3099 # Extract the first word of "$ac_prog", so it can be a program name with args.
3100 set dummy $ac_prog; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if test -n "$ac_ct_CC"; then
3107 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_ac_ct_CC="$ac_prog"
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127 if test -n "$ac_ct_CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3129 $as_echo "$ac_ct_CC" >&6; }
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3134
3135
3136 test -n "$ac_ct_CC" && break
3137 done
3138
3139 if test "x$ac_ct_CC" = x; then
3140 CC=""
3141 else
3142 case $cross_compiling:$ac_tool_warned in
3143 yes:)
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3146 ac_tool_warned=yes ;;
3147 esac
3148 CC=$ac_ct_CC
3149 fi
3150 fi
3151
3152 fi
3153
3154
3155 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "no acceptable C compiler found in \$PATH
3158 See \`config.log' for more details" "$LINENO" 5; }
3159
3160 # Provide some information about the compiler.
3161 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3162 set X $ac_compile
3163 ac_compiler=$2
3164 for ac_option in --version -v -V -qversion; do
3165 { { ac_try="$ac_compiler $ac_option >&5"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3173 ac_status=$?
3174 if test -s conftest.err; then
3175 sed '10a\
3176 ... rest of stderr output deleted ...
3177 10q' conftest.err >conftest.er1
3178 cat conftest.er1 >&5
3179 fi
3180 rm -f conftest.er1 conftest.err
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }
3183 done
3184
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3187
3188 int
3189 main ()
3190 {
3191
3192 ;
3193 return 0;
3194 }
3195 _ACEOF
3196 ac_clean_files_save=$ac_clean_files
3197 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3198 # Try to create an executable without -o first, disregard a.out.
3199 # It will help us diagnose broken compilers, and finding out an intuition
3200 # of exeext.
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3202 $as_echo_n "checking whether the C compiler works... " >&6; }
3203 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3204
3205 # The possible output files:
3206 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3207
3208 ac_rmfiles=
3209 for ac_file in $ac_files
3210 do
3211 case $ac_file in
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3214 esac
3215 done
3216 rm -f $ac_rmfiles
3217
3218 if { { ac_try="$ac_link_default"
3219 case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link_default") 2>&5
3226 ac_status=$?
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3230 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3231 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3232 # so that the user can short-circuit this test for compilers unknown to
3233 # Autoconf.
3234 for ac_file in $ac_files ''
3235 do
3236 test -f "$ac_file" || continue
3237 case $ac_file in
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3239 ;;
3240 [ab].out )
3241 # We found the default executable, but exeext='' is most
3242 # certainly right.
3243 break;;
3244 *.* )
3245 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3246 then :; else
3247 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248 fi
3249 # We set ac_cv_exeext here because the later test for it is not
3250 # safe: cross compilers may not add the suffix if given an `-o'
3251 # argument, so we may need to know it at that point already.
3252 # Even if this section looks crufty: it has the advantage of
3253 # actually working.
3254 break;;
3255 * )
3256 break;;
3257 esac
3258 done
3259 test "$ac_cv_exeext" = no && ac_cv_exeext=
3260
3261 else
3262 ac_file=''
3263 fi
3264 if test -z "$ac_file"; then :
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 $as_echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3269
3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 as_fn_error 77 "C compiler cannot create executables
3273 See \`config.log' for more details" "$LINENO" 5; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3277 fi
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3279 $as_echo_n "checking for C compiler default output file name... " >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3281 $as_echo "$ac_file" >&6; }
3282 ac_exeext=$ac_cv_exeext
3283
3284 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3285 ac_clean_files=$ac_clean_files_save
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3287 $as_echo_n "checking for suffix of executables... " >&6; }
3288 if { { ac_try="$ac_link"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_link") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3302 # `rm'.
3303 for ac_file in conftest.exe conftest conftest.*; do
3304 test -f "$ac_file" || continue
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 break;;
3309 * ) break;;
3310 esac
3311 done
3312 else
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3316 See \`config.log' for more details" "$LINENO" 5; }
3317 fi
3318 rm -f conftest conftest$ac_cv_exeext
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3320 $as_echo "$ac_cv_exeext" >&6; }
3321
3322 rm -f conftest.$ac_ext
3323 EXEEXT=$ac_cv_exeext
3324 ac_exeext=$EXEEXT
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3327 #include <stdio.h>
3328 int
3329 main ()
3330 {
3331 FILE *f = fopen ("conftest.out", "w");
3332 return ferror (f) || fclose (f) != 0;
3333
3334 ;
3335 return 0;
3336 }
3337 _ACEOF
3338 ac_clean_files="$ac_clean_files conftest.out"
3339 # Check that the compiler produces executables we can run. If not, either
3340 # the compiler is broken, or we cross compile.
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3342 $as_echo_n "checking whether we are cross compiling... " >&6; }
3343 if test "$cross_compiling" != yes; then
3344 { { ac_try="$ac_link"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350 $as_echo "$ac_try_echo"; } >&5
3351 (eval "$ac_link") 2>&5
3352 ac_status=$?
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }
3355 if { ac_try='./conftest$ac_cv_exeext'
3356 { { case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_try") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; }; then
3366 cross_compiling=no
3367 else
3368 if test "$cross_compiling" = maybe; then
3369 cross_compiling=yes
3370 else
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot run C compiled programs.
3374 If you meant to cross compile, use \`--host'.
3375 See \`config.log' for more details" "$LINENO" 5; }
3376 fi
3377 fi
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3380 $as_echo "$cross_compiling" >&6; }
3381
3382 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3383 ac_clean_files=$ac_clean_files_save
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3385 $as_echo_n "checking for suffix of object files... " >&6; }
3386 if ${ac_cv_objext+:} false; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3391
3392 int
3393 main ()
3394 {
3395
3396 ;
3397 return 0;
3398 }
3399 _ACEOF
3400 rm -f conftest.o conftest.obj
3401 if { { ac_try="$ac_compile"
3402 case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_compile") 2>&5
3409 ac_status=$?
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; then :
3412 for ac_file in conftest.o conftest.obj conftest.*; do
3413 test -f "$ac_file" || continue;
3414 case $ac_file in
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3416 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3417 break;;
3418 esac
3419 done
3420 else
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3426 as_fn_error $? "cannot compute suffix of object files: cannot compile
3427 See \`config.log' for more details" "$LINENO" 5; }
3428 fi
3429 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3432 $as_echo "$ac_cv_objext" >&6; }
3433 OBJEXT=$ac_cv_objext
3434 ac_objext=$OBJEXT
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3436 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3437 if ${ac_cv_c_compiler_gnu+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442
3443 int
3444 main ()
3445 {
3446 #ifndef __GNUC__
3447 choke me
3448 #endif
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 if ac_fn_c_try_compile "$LINENO"; then :
3455 ac_compiler_gnu=yes
3456 else
3457 ac_compiler_gnu=no
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3461
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3464 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3465 if test $ac_compiler_gnu = yes; then
3466 GCC=yes
3467 else
3468 GCC=
3469 fi
3470 ac_test_CFLAGS=${CFLAGS+set}
3471 ac_save_CFLAGS=$CFLAGS
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3473 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3474 if ${ac_cv_prog_cc_g+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 ac_save_c_werror_flag=$ac_c_werror_flag
3478 ac_c_werror_flag=yes
3479 ac_cv_prog_cc_g=no
3480 CFLAGS="-g"
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483
3484 int
3485 main ()
3486 {
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_cv_prog_cc_g=yes
3494 else
3495 CFLAGS=""
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3498
3499 int
3500 main ()
3501 {
3502
3503 ;
3504 return 0;
3505 }
3506 _ACEOF
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508
3509 else
3510 ac_c_werror_flag=$ac_save_c_werror_flag
3511 CFLAGS="-g"
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514
3515 int
3516 main ()
3517 {
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_cv_prog_cc_g=yes
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 fi
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_c_werror_flag=$ac_save_c_werror_flag
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3534 $as_echo "$ac_cv_prog_cc_g" >&6; }
3535 if test "$ac_test_CFLAGS" = set; then
3536 CFLAGS=$ac_save_CFLAGS
3537 elif test $ac_cv_prog_cc_g = yes; then
3538 if test "$GCC" = yes; then
3539 CFLAGS="-g -O2"
3540 else
3541 CFLAGS="-g"
3542 fi
3543 else
3544 if test "$GCC" = yes; then
3545 CFLAGS="-O2"
3546 else
3547 CFLAGS=
3548 fi
3549 fi
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3551 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3552 if ${ac_cv_prog_cc_c89+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 ac_cv_prog_cc_c89=no
3556 ac_save_CC=$CC
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559 #include <stdarg.h>
3560 #include <stdio.h>
3561 struct stat;
3562 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3563 struct buf { int x; };
3564 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3565 static char *e (p, i)
3566 char **p;
3567 int i;
3568 {
3569 return p[i];
3570 }
3571 static char *f (char * (*g) (char **, int), char **p, ...)
3572 {
3573 char *s;
3574 va_list v;
3575 va_start (v,p);
3576 s = g (p, va_arg (v,int));
3577 va_end (v);
3578 return s;
3579 }
3580
3581 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3582 function prototypes and stuff, but not '\xHH' hex character constants.
3583 These don't provoke an error unfortunately, instead are silently treated
3584 as 'x'. The following induces an error, until -std is added to get
3585 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3586 array size at least. It's necessary to write '\x00'==0 to get something
3587 that's true only with -std. */
3588 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3589
3590 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3591 inside strings and character constants. */
3592 #define FOO(x) 'x'
3593 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3594
3595 int test (int i, double x);
3596 struct s1 {int (*f) (int a);};
3597 struct s2 {int (*f) (double a);};
3598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3599 int argc;
3600 char **argv;
3601 int
3602 main ()
3603 {
3604 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3610 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3611 do
3612 CC="$ac_save_CC $ac_arg"
3613 if ac_fn_c_try_compile "$LINENO"; then :
3614 ac_cv_prog_cc_c89=$ac_arg
3615 fi
3616 rm -f core conftest.err conftest.$ac_objext
3617 test "x$ac_cv_prog_cc_c89" != "xno" && break
3618 done
3619 rm -f conftest.$ac_ext
3620 CC=$ac_save_CC
3621
3622 fi
3623 # AC_CACHE_VAL
3624 case "x$ac_cv_prog_cc_c89" in
3625 x)
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3627 $as_echo "none needed" >&6; } ;;
3628 xno)
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3630 $as_echo "unsupported" >&6; } ;;
3631 *)
3632 CC="$CC $ac_cv_prog_cc_c89"
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3634 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3635 esac
3636 if test "x$ac_cv_prog_cc_c89" != xno; then :
3637
3638 fi
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3652 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3653 if ${am_cv_prog_cc_c_o+:} false; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 # Make sure it works both with $CC and with simple cc.
3668 # Following AC_PROG_CC_C_O, we do the test twice because some
3669 # compilers refuse to overwrite an existing .o file with -o,
3670 # though they will create one.
3671 am_cv_prog_cc_c_o=yes
3672 for am_i in 1 2; do
3673 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3674 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } \
3678 && test -f conftest2.$ac_objext; then
3679 : OK
3680 else
3681 am_cv_prog_cc_c_o=no
3682 break
3683 fi
3684 done
3685 rm -f core conftest*
3686 unset am_i
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3689 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3690 if test "$am_cv_prog_cc_c_o" != yes; then
3691 # Losing compiler, so override with the script.
3692 # FIXME: It is wrong to rewrite CC.
3693 # But if we don't then we get into trouble of one sort or another.
3694 # A longer-term fix would be to have automake use am__CC in this case,
3695 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3696 CC="$am_aux_dir/compile $CC"
3697 fi
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704 DEPDIR="${am__leading_dot}deps"
3705
3706 ac_config_commands="$ac_config_commands depfiles"
3707
3708
3709 am_make=${MAKE-make}
3710 cat > confinc << 'END'
3711 am__doit:
3712 @echo this is the am__doit target
3713 .PHONY: am__doit
3714 END
3715 # If we don't find an include directive, just comment out the code.
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3717 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3718 am__include="#"
3719 am__quote=
3720 _am_result=none
3721 # First try GNU make style include.
3722 echo "include confinc" > confmf
3723 # Ignore all kinds of additional output from 'make'.
3724 case `$am_make -s -f confmf 2> /dev/null` in #(
3725 *the\ am__doit\ target*)
3726 am__include=include
3727 am__quote=
3728 _am_result=GNU
3729 ;;
3730 esac
3731 # Now try BSD make style include.
3732 if test "$am__include" = "#"; then
3733 echo '.include "confinc"' > confmf
3734 case `$am_make -s -f confmf 2> /dev/null` in #(
3735 *the\ am__doit\ target*)
3736 am__include=.include
3737 am__quote="\""
3738 _am_result=BSD
3739 ;;
3740 esac
3741 fi
3742
3743
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3745 $as_echo "$_am_result" >&6; }
3746 rm -f confinc confmf
3747
3748 # Check whether --enable-dependency-tracking was given.
3749 if test "${enable_dependency_tracking+set}" = set; then :
3750 enableval=$enable_dependency_tracking;
3751 fi
3752
3753 if test "x$enable_dependency_tracking" != xno; then
3754 am_depcomp="$ac_aux_dir/depcomp"
3755 AMDEPBACKSLASH='\'
3756 am__nodep='_no'
3757 fi
3758 if test "x$enable_dependency_tracking" != xno; then
3759 AMDEP_TRUE=
3760 AMDEP_FALSE='#'
3761 else
3762 AMDEP_TRUE='#'
3763 AMDEP_FALSE=
3764 fi
3765
3766
3767
3768 depcc="$CC" am_compiler_list=
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3771 $as_echo_n "checking dependency style of $depcc... " >&6; }
3772 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3776 # We make a subdir and do the tests there. Otherwise we can end up
3777 # making bogus files that we don't know about and never remove. For
3778 # instance it was reported that on HP-UX the gcc test will end up
3779 # making a dummy file named 'D' -- because '-MD' means "put the output
3780 # in D".
3781 rm -rf conftest.dir
3782 mkdir conftest.dir
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3786 cd conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3792 # directory.
3793 mkdir sub
3794
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3798 fi
3799 am__universal=false
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 esac
3803
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3808 #
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3812 : > sub/conftest.c
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3816 # Solaris 10 /bin/sh.
3817 echo '/* dummy */' > sub/conftst$i.h
3818 done
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3820
3821 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle '-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs.
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
3827 case $depmode in
3828 gcc)
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3831 ;;
3832 nosideeffect)
3833 # After this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested.
3835 if test "x$enable_dependency_tracking" = xyes; then
3836 continue
3837 else
3838 break
3839 fi
3840 ;;
3841 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3842 # This compiler won't grok '-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3846 am__minus_obj=
3847 ;;
3848 none) break ;;
3849 esac
3850 if depmode=$depmode \
3851 source=sub/conftest.c object=$am__obj \
3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854 >/dev/null 2>conftest.err &&
3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3869 break
3870 fi
3871 fi
3872 done
3873
3874 cd ..
3875 rm -rf conftest.dir
3876 else
3877 am_cv_CC_dependencies_compiler_type=none
3878 fi
3879
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3884
3885 if
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 am__fastdepCC_TRUE=
3889 am__fastdepCC_FALSE='#'
3890 else
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
3893 fi
3894
3895
3896
3897 ac_ext=c
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902
3903
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3910 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3911 # On Suns, sometimes $CPP names a directory.
3912 if test -n "$CPP" && test -d "$CPP"; then
3913 CPP=
3914 fi
3915 if test -z "$CPP"; then
3916 if ${ac_cv_prog_CPP+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 # Double quotes because CPP needs to be expanded
3920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3921 do
3922 ac_preproc_ok=false
3923 for ac_c_preproc_warn_flag in '' yes
3924 do
3925 # Use a header file that comes with gcc, so configuring glibc
3926 # with a fresh cross-compiler works.
3927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3928 # <limits.h> exists even on freestanding compilers.
3929 # On the NeXT, cc -E runs the code through the compiler's parser,
3930 # not just through cpp. "Syntax error" is here to catch this case.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #ifdef __STDC__
3934 # include <limits.h>
3935 #else
3936 # include <assert.h>
3937 #endif
3938 Syntax error
3939 _ACEOF
3940 if ac_fn_c_try_cpp "$LINENO"; then :
3941
3942 else
3943 # Broken: fails on valid input.
3944 continue
3945 fi
3946 rm -f conftest.err conftest.i conftest.$ac_ext
3947
3948 # OK, works on sane cases. Now check whether nonexistent headers
3949 # can be detected and how.
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952 #include <ac_nonexistent.h>
3953 _ACEOF
3954 if ac_fn_c_try_cpp "$LINENO"; then :
3955 # Broken: success on invalid input.
3956 continue
3957 else
3958 # Passes both tests.
3959 ac_preproc_ok=:
3960 break
3961 fi
3962 rm -f conftest.err conftest.i conftest.$ac_ext
3963
3964 done
3965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3966 rm -f conftest.i conftest.err conftest.$ac_ext
3967 if $ac_preproc_ok; then :
3968 break
3969 fi
3970
3971 done
3972 ac_cv_prog_CPP=$CPP
3973
3974 fi
3975 CPP=$ac_cv_prog_CPP
3976 else
3977 ac_cv_prog_CPP=$CPP
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3980 $as_echo "$CPP" >&6; }
3981 ac_preproc_ok=false
3982 for ac_c_preproc_warn_flag in '' yes
3983 do
3984 # Use a header file that comes with gcc, so configuring glibc
3985 # with a fresh cross-compiler works.
3986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3987 # <limits.h> exists even on freestanding compilers.
3988 # On the NeXT, cc -E runs the code through the compiler's parser,
3989 # not just through cpp. "Syntax error" is here to catch this case.
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #ifdef __STDC__
3993 # include <limits.h>
3994 #else
3995 # include <assert.h>
3996 #endif
3997 Syntax error
3998 _ACEOF
3999 if ac_fn_c_try_cpp "$LINENO"; then :
4000
4001 else
4002 # Broken: fails on valid input.
4003 continue
4004 fi
4005 rm -f conftest.err conftest.i conftest.$ac_ext
4006
4007 # OK, works on sane cases. Now check whether nonexistent headers
4008 # can be detected and how.
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011 #include <ac_nonexistent.h>
4012 _ACEOF
4013 if ac_fn_c_try_cpp "$LINENO"; then :
4014 # Broken: success on invalid input.
4015 continue
4016 else
4017 # Passes both tests.
4018 ac_preproc_ok=:
4019 break
4020 fi
4021 rm -f conftest.err conftest.i conftest.$ac_ext
4022
4023 done
4024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4025 rm -f conftest.i conftest.err conftest.$ac_ext
4026 if $ac_preproc_ok; then :
4027
4028 else
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4032 See \`config.log' for more details" "$LINENO" 5; }
4033 fi
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040
4041
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4043 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4044 if ${ac_cv_path_GREP+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 if test -z "$GREP"; then
4048 ac_path_GREP_found=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_prog in grep ggrep; do
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4058 as_fn_executable_p "$ac_path_GREP" || continue
4059 # Check for GNU ac_path_GREP and select it if it is found.
4060 # Check for GNU $ac_path_GREP
4061 case `"$ac_path_GREP" --version 2>&1` in
4062 *GNU*)
4063 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4064 *)
4065 ac_count=0
4066 $as_echo_n 0123456789 >"conftest.in"
4067 while :
4068 do
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo 'GREP' >> "conftest.nl"
4073 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075 as_fn_arith $ac_count + 1 && ac_count=$as_val
4076 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_GREP="$ac_path_GREP"
4079 ac_path_GREP_max=$ac_count
4080 fi
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 esac
4086
4087 $ac_path_GREP_found && break 3
4088 done
4089 done
4090 done
4091 IFS=$as_save_IFS
4092 if test -z "$ac_cv_path_GREP"; then
4093 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4094 fi
4095 else
4096 ac_cv_path_GREP=$GREP
4097 fi
4098
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4101 $as_echo "$ac_cv_path_GREP" >&6; }
4102 GREP="$ac_cv_path_GREP"
4103
4104
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4106 $as_echo_n "checking for egrep... " >&6; }
4107 if ${ac_cv_path_EGREP+:} false; then :
4108 $as_echo_n "(cached) " >&6
4109 else
4110 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4111 then ac_cv_path_EGREP="$GREP -E"
4112 else
4113 if test -z "$EGREP"; then
4114 ac_path_EGREP_found=false
4115 # Loop through the user's path and test for each of PROGNAME-LIST
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4118 do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_prog in egrep; do
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4124 as_fn_executable_p "$ac_path_EGREP" || continue
4125 # Check for GNU ac_path_EGREP and select it if it is found.
4126 # Check for GNU $ac_path_EGREP
4127 case `"$ac_path_EGREP" --version 2>&1` in
4128 *GNU*)
4129 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4130 *)
4131 ac_count=0
4132 $as_echo_n 0123456789 >"conftest.in"
4133 while :
4134 do
4135 cat "conftest.in" "conftest.in" >"conftest.tmp"
4136 mv "conftest.tmp" "conftest.in"
4137 cp "conftest.in" "conftest.nl"
4138 $as_echo 'EGREP' >> "conftest.nl"
4139 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4141 as_fn_arith $ac_count + 1 && ac_count=$as_val
4142 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4143 # Best one so far, save it but keep looking for a better one
4144 ac_cv_path_EGREP="$ac_path_EGREP"
4145 ac_path_EGREP_max=$ac_count
4146 fi
4147 # 10*(2^10) chars as input seems more than enough
4148 test $ac_count -gt 10 && break
4149 done
4150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4151 esac
4152
4153 $ac_path_EGREP_found && break 3
4154 done
4155 done
4156 done
4157 IFS=$as_save_IFS
4158 if test -z "$ac_cv_path_EGREP"; then
4159 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4160 fi
4161 else
4162 ac_cv_path_EGREP=$EGREP
4163 fi
4164
4165 fi
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4168 $as_echo "$ac_cv_path_EGREP" >&6; }
4169 EGREP="$ac_cv_path_EGREP"
4170
4171
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4173 $as_echo_n "checking for ANSI C header files... " >&6; }
4174 if ${ac_cv_header_stdc+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179 #include <stdlib.h>
4180 #include <stdarg.h>
4181 #include <string.h>
4182 #include <float.h>
4183
4184 int
4185 main ()
4186 {
4187
4188 ;
4189 return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_cv_header_stdc=yes
4194 else
4195 ac_cv_header_stdc=no
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198
4199 if test $ac_cv_header_stdc = yes; then
4200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #include <string.h>
4204
4205 _ACEOF
4206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 $EGREP "memchr" >/dev/null 2>&1; then :
4208
4209 else
4210 ac_cv_header_stdc=no
4211 fi
4212 rm -f conftest*
4213
4214 fi
4215
4216 if test $ac_cv_header_stdc = yes; then
4217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <stdlib.h>
4221
4222 _ACEOF
4223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4224 $EGREP "free" >/dev/null 2>&1; then :
4225
4226 else
4227 ac_cv_header_stdc=no
4228 fi
4229 rm -f conftest*
4230
4231 fi
4232
4233 if test $ac_cv_header_stdc = yes; then
4234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4235 if test "$cross_compiling" = yes; then :
4236 :
4237 else
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #include <ctype.h>
4241 #include <stdlib.h>
4242 #if ((' ' & 0x0FF) == 0x020)
4243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4245 #else
4246 # define ISLOWER(c) \
4247 (('a' <= (c) && (c) <= 'i') \
4248 || ('j' <= (c) && (c) <= 'r') \
4249 || ('s' <= (c) && (c) <= 'z'))
4250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4251 #endif
4252
4253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4254 int
4255 main ()
4256 {
4257 int i;
4258 for (i = 0; i < 256; i++)
4259 if (XOR (islower (i), ISLOWER (i))
4260 || toupper (i) != TOUPPER (i))
4261 return 2;
4262 return 0;
4263 }
4264 _ACEOF
4265 if ac_fn_c_try_run "$LINENO"; then :
4266
4267 else
4268 ac_cv_header_stdc=no
4269 fi
4270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4271 conftest.$ac_objext conftest.beam conftest.$ac_ext
4272 fi
4273
4274 fi
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4277 $as_echo "$ac_cv_header_stdc" >&6; }
4278 if test $ac_cv_header_stdc = yes; then
4279
4280 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4281
4282 fi
4283
4284 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4285 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4286 inttypes.h stdint.h unistd.h
4287 do :
4288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4289 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4290 "
4291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4292 cat >>confdefs.h <<_ACEOF
4293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4294 _ACEOF
4295
4296 fi
4297
4298 done
4299
4300
4301
4302 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4303 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4304 MINIX=yes
4305 else
4306 MINIX=
4307 fi
4308
4309
4310 if test "$MINIX" = yes; then
4311
4312 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4313
4314
4315 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4316
4317
4318 $as_echo "#define _MINIX 1" >>confdefs.h
4319
4320 fi
4321
4322
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4324 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4325 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330
4331 # define __EXTENSIONS__ 1
4332 $ac_includes_default
4333 int
4334 main ()
4335 {
4336
4337 ;
4338 return 0;
4339 }
4340 _ACEOF
4341 if ac_fn_c_try_compile "$LINENO"; then :
4342 ac_cv_safe_to_define___extensions__=yes
4343 else
4344 ac_cv_safe_to_define___extensions__=no
4345 fi
4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4349 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4350 test $ac_cv_safe_to_define___extensions__ = yes &&
4351 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4352
4353 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4354
4355 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4356
4357 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4358
4359 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4360
4361
4362
4363
4364 if test "$which_cv_iberty" = yes ; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmalloc in libiberty.a" >&5
4366 $as_echo_n "checking for xmalloc in libiberty.a... " >&6; }
4367 ac_lib_var=`echo libiberty.a'_'xmalloc | sed 'y%./+-%__p_%'`
4368 if eval \${ac_cv_lib_static_$ac_lib_var+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if test -r /etc/ld.so.conf ; then
4372 ld_so_paths="/lib /usr/lib `cat /etc/ld.so.conf`"
4373 else
4374 ld_so_paths="/lib /usr/lib"
4375 fi
4376 for path in $ld_so_paths; do
4377 ac_save_LIBS="$LIBS"
4378 LIBS="$path/libiberty.a $LIBS"
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381 /* Override any gcc2 internal prototype to avoid an error. */
4382 /* We use char because int might match the return type of a gcc2
4383 builtin and then its argument prototype would still apply. */
4384 char xmalloc();
4385
4386 int
4387 main ()
4388 {
4389 xmalloc()
4390 ;
4391 return 0;
4392 }
4393 _ACEOF
4394 if ac_fn_c_try_link "$LINENO"; then :
4395 eval "ac_cv_lib_static_$ac_lib_var=$path/libiberty.a"
4396 else
4397 eval "ac_cv_lib_static_$ac_lib_var=no"
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext \
4400 conftest$ac_exeext conftest.$ac_ext
4401 LIBS="$ac_save_LIBS"
4402 if eval "test \"`echo '$ac_cv_lib_static_'$ac_lib_var`\" != no"; then
4403 break
4404 fi
4405 done
4406
4407 fi
4408 eval result=\"`echo '$ac_cv_lib_static_'$ac_lib_var`\"
4409 if test "$result" != no; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
4411 $as_echo "$result" >&6; }
4412 ac_tr_lib=HAVE_`echo libiberty.a | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4413 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4414
4415 cat >>confdefs.h <<_ACEOF
4416 #define $ac_tr_lib 1
4417 _ACEOF
4418
4419 LIBS="$result $LIBS"
4420
4421 else
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4424 fi
4425
4426 fi
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4429 $as_echo_n "checking for ANSI C header files... " >&6; }
4430 if ${ac_cv_header_stdc+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 #include <stdlib.h>
4436 #include <stdarg.h>
4437 #include <string.h>
4438 #include <float.h>
4439
4440 int
4441 main ()
4442 {
4443
4444 ;
4445 return 0;
4446 }
4447 _ACEOF
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449 ac_cv_header_stdc=yes
4450 else
4451 ac_cv_header_stdc=no
4452 fi
4453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454
4455 if test $ac_cv_header_stdc = yes; then
4456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <string.h>
4460
4461 _ACEOF
4462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4463 $EGREP "memchr" >/dev/null 2>&1; then :
4464
4465 else
4466 ac_cv_header_stdc=no
4467 fi
4468 rm -f conftest*
4469
4470 fi
4471
4472 if test $ac_cv_header_stdc = yes; then
4473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <stdlib.h>
4477
4478 _ACEOF
4479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4480 $EGREP "free" >/dev/null 2>&1; then :
4481
4482 else
4483 ac_cv_header_stdc=no
4484 fi
4485 rm -f conftest*
4486
4487 fi
4488
4489 if test $ac_cv_header_stdc = yes; then
4490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4491 if test "$cross_compiling" = yes; then :
4492 :
4493 else
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <ctype.h>
4497 #include <stdlib.h>
4498 #if ((' ' & 0x0FF) == 0x020)
4499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4501 #else
4502 # define ISLOWER(c) \
4503 (('a' <= (c) && (c) <= 'i') \
4504 || ('j' <= (c) && (c) <= 'r') \
4505 || ('s' <= (c) && (c) <= 'z'))
4506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4507 #endif
4508
4509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4510 int
4511 main ()
4512 {
4513 int i;
4514 for (i = 0; i < 256; i++)
4515 if (XOR (islower (i), ISLOWER (i))
4516 || toupper (i) != TOUPPER (i))
4517 return 2;
4518 return 0;
4519 }
4520 _ACEOF
4521 if ac_fn_c_try_run "$LINENO"; then :
4522
4523 else
4524 ac_cv_header_stdc=no
4525 fi
4526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4527 conftest.$ac_objext conftest.beam conftest.$ac_ext
4528 fi
4529
4530 fi
4531 fi
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4533 $as_echo "$ac_cv_header_stdc" >&6; }
4534 if test $ac_cv_header_stdc = yes; then
4535
4536 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4537
4538 fi
4539
4540 for ac_header in unistd.h string.h libiberty.h
4541 do :
4542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4543 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4544 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4545 cat >>confdefs.h <<_ACEOF
4546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4547 _ACEOF
4548
4549 fi
4550
4551 done
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
4554 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
4555 if ${ac_cv_header_stat_broken+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #include <sys/types.h>
4561 #include <sys/stat.h>
4562
4563 #if defined S_ISBLK && defined S_IFDIR
4564 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
4565 #endif
4566
4567 #if defined S_ISBLK && defined S_IFCHR
4568 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
4569 #endif
4570
4571 #if defined S_ISLNK && defined S_IFREG
4572 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
4573 #endif
4574
4575 #if defined S_ISSOCK && defined S_IFREG
4576 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
4577 #endif
4578
4579 _ACEOF
4580 if ac_fn_c_try_compile "$LINENO"; then :
4581 ac_cv_header_stat_broken=no
4582 else
4583 ac_cv_header_stat_broken=yes
4584 fi
4585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
4588 $as_echo "$ac_cv_header_stat_broken" >&6; }
4589 if test $ac_cv_header_stat_broken = yes; then
4590
4591 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
4592
4593 fi
4594
4595
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4597 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4598 if ${ac_cv_c_const+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4603
4604 int
4605 main ()
4606 {
4607
4608 #ifndef __cplusplus
4609 /* Ultrix mips cc rejects this sort of thing. */
4610 typedef int charset[2];
4611 const charset cs = { 0, 0 };
4612 /* SunOS 4.1.1 cc rejects this. */
4613 char const *const *pcpcc;
4614 char **ppc;
4615 /* NEC SVR4.0.2 mips cc rejects this. */
4616 struct point {int x, y;};
4617 static struct point const zero = {0,0};
4618 /* AIX XL C 1.02.0.0 rejects this.
4619 It does not let you subtract one const X* pointer from another in
4620 an arm of an if-expression whose if-part is not a constant
4621 expression */
4622 const char *g = "string";
4623 pcpcc = &g + (g ? g-g : 0);
4624 /* HPUX 7.0 cc rejects these. */
4625 ++pcpcc;
4626 ppc = (char**) pcpcc;
4627 pcpcc = (char const *const *) ppc;
4628 { /* SCO 3.2v4 cc rejects this sort of thing. */
4629 char tx;
4630 char *t = &tx;
4631 char const *s = 0 ? (char *) 0 : (char const *) 0;
4632
4633 *t++ = 0;
4634 if (s) return 0;
4635 }
4636 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4637 int x[] = {25, 17};
4638 const int *foo = &x[0];
4639 ++foo;
4640 }
4641 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4642 typedef const int *iptr;
4643 iptr p = 0;
4644 ++p;
4645 }
4646 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4647 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4648 struct s { int j; const int *ap[3]; } bx;
4649 struct s *b = &bx; b->j = 5;
4650 }
4651 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4652 const int foo = 10;
4653 if (!foo) return 0;
4654 }
4655 return !cs[0] && !zero.x;
4656 #endif
4657
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_cv_c_const=yes
4664 else
4665 ac_cv_c_const=no
4666 fi
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4670 $as_echo "$ac_cv_c_const" >&6; }
4671 if test $ac_cv_c_const = no; then
4672
4673 $as_echo "#define const /**/" >>confdefs.h
4674
4675 fi
4676
4677 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4678 if test "x$ac_cv_type_size_t" = xyes; then :
4679
4680 else
4681
4682 cat >>confdefs.h <<_ACEOF
4683 #define size_t unsigned int
4684 _ACEOF
4685
4686 fi
4687
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4690 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4691 if ${ac_cv_type_uid_t+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 #include <sys/types.h>
4697
4698 _ACEOF
4699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4700 $EGREP "uid_t" >/dev/null 2>&1; then :
4701 ac_cv_type_uid_t=yes
4702 else
4703 ac_cv_type_uid_t=no
4704 fi
4705 rm -f conftest*
4706
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4709 $as_echo "$ac_cv_type_uid_t" >&6; }
4710 if test $ac_cv_type_uid_t = no; then
4711
4712 $as_echo "#define uid_t int" >>confdefs.h
4713
4714
4715 $as_echo "#define gid_t int" >>confdefs.h
4716
4717 fi
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
4720 $as_echo_n "checking type of array argument to getgroups... " >&6; }
4721 if ${ac_cv_type_getgroups+:} false; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 if test "$cross_compiling" = yes; then :
4725 ac_cv_type_getgroups=cross
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 /* Thanks to Mike Rendell for this test. */
4730 $ac_includes_default
4731 #define NGID 256
4732 #undef MAX
4733 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4734
4735 int
4736 main ()
4737 {
4738 gid_t gidset[NGID];
4739 int i, n;
4740 union { gid_t gval; long int lval; } val;
4741
4742 val.lval = -1;
4743 for (i = 0; i < NGID; i++)
4744 gidset[i] = val.gval;
4745 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4746 gidset);
4747 /* Exit non-zero if getgroups seems to require an array of ints. This
4748 happens when gid_t is short int but getgroups modifies an array
4749 of ints. */
4750 return n > 0 && gidset[n] != val.gval;
4751 }
4752 _ACEOF
4753 if ac_fn_c_try_run "$LINENO"; then :
4754 ac_cv_type_getgroups=gid_t
4755 else
4756 ac_cv_type_getgroups=int
4757 fi
4758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4759 conftest.$ac_objext conftest.beam conftest.$ac_ext
4760 fi
4761
4762 if test $ac_cv_type_getgroups = cross; then
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 #include <unistd.h>
4766
4767 _ACEOF
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
4770 ac_cv_type_getgroups=gid_t
4771 else
4772 ac_cv_type_getgroups=int
4773 fi
4774 rm -f conftest*
4775
4776 fi
4777 fi
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
4779 $as_echo "$ac_cv_type_getgroups" >&6; }
4780
4781 cat >>confdefs.h <<_ACEOF
4782 #define GETGROUPS_T $ac_cv_type_getgroups
4783 _ACEOF
4784
4785
4786 for ac_func in strchr memcpy getopt_long getcwd getwd sysconf getgroups eaccess
4787 do :
4788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4789 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4790 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4791 cat >>confdefs.h <<_ACEOF
4792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4793 _ACEOF
4794
4795 fi
4796 done
4797
4798
4799 if test "$ac_cv_lib_static_libiberty_a_xmalloc" = no \
4800 -o "$which_cv_iberty" = no ; then
4801
4802 $as_echo "#define NEED_XMALLOC 1" >>confdefs.h
4803
4804 fi
4805
4806 # Extract the first word of "ar", so it can be a program name with args.
4807 set dummy ar; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if ${ac_cv_prog_AR+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 if test -n "$AR"; then
4814 ac_cv_prog_AR="$AR" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823 ac_cv_prog_AR="ar"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4832 fi
4833 fi
4834 AR=$ac_cv_prog_AR
4835 if test -n "$AR"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4837 $as_echo "$AR" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842
4843
4844 if test -n "$ac_tool_prefix"; then
4845 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4846 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if ${ac_cv_prog_RANLIB+:} false; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$RANLIB"; then
4853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4865 fi
4866 done
4867 done
4868 IFS=$as_save_IFS
4869
4870 fi
4871 fi
4872 RANLIB=$ac_cv_prog_RANLIB
4873 if test -n "$RANLIB"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4875 $as_echo "$RANLIB" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4879 fi
4880
4881
4882 fi
4883 if test -z "$ac_cv_prog_RANLIB"; then
4884 ac_ct_RANLIB=$RANLIB
4885 # Extract the first word of "ranlib", so it can be a program name with args.
4886 set dummy ranlib; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -n "$ac_ct_RANLIB"; then
4893 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_ac_ct_RANLIB="ranlib"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4905 fi
4906 done
4907 done
4908 IFS=$as_save_IFS
4909
4910 fi
4911 fi
4912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4913 if test -n "$ac_ct_RANLIB"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4915 $as_echo "$ac_ct_RANLIB" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4919 fi
4920
4921 if test "x$ac_ct_RANLIB" = x; then
4922 RANLIB=":"
4923 else
4924 case $cross_compiling:$ac_tool_warned in
4925 yes:)
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4928 ac_tool_warned=yes ;;
4929 esac
4930 RANLIB=$ac_ct_RANLIB
4931 fi
4932 else
4933 RANLIB="$ac_cv_prog_RANLIB"
4934 fi
4935
4936 for ac_header in stdlib.h memory.h pwd.h strings.h
4937 do :
4938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4939 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4941 cat >>confdefs.h <<_ACEOF
4942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943 _ACEOF
4944
4945 fi
4946
4947 done
4948
4949 for ac_func in getpwent getpwnam getpwuid
4950 do :
4951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4952 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4953 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4954 cat >>confdefs.h <<_ACEOF
4955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4956 _ACEOF
4957
4958 fi
4959 done
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether programs are able to redeclare getpw functions" >&5
4962 $as_echo_n "checking whether programs are able to redeclare getpw functions... " >&6; }
4963 if ${bash_cv_can_redecl_getpw+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4968 #include <sys/types.h>
4969 #include <pwd.h>
4970 extern struct passwd *getpwent();
4971 extern struct passwd *getpwuid();
4972 extern struct passwd *getpwnam();
4973 int
4974 main ()
4975 {
4976 struct passwd *z; z = getpwent(); z = getpwuid(0); z = getpwnam("root");
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 bash_cv_can_redecl_getpw=yes
4983 else
4984 bash_cv_can_redecl_getpw=no
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 fi
4988
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_can_redecl_getpw" >&5
4990 $as_echo "$bash_cv_can_redecl_getpw" >&6; }
4991 if test $bash_cv_can_redecl_getpw = no; then
4992
4993 $as_echo "#define HAVE_GETPW_DECLS 1" >>confdefs.h
4994
4995 fi
4996
4997
4998 ac_config_files="$ac_config_files Makefile maintMakefile tilde/Makefile"
4999
5000 cat >confcache <<\_ACEOF
5001 # This file is a shell script that caches the results of configure
5002 # tests run on this system so they can be shared between configure
5003 # scripts and configure runs, see configure's option --config-cache.
5004 # It is not useful on other systems. If it contains results you don't
5005 # want to keep, you may remove or edit it.
5006 #
5007 # config.status only pays attention to the cache file if you give it
5008 # the --recheck option to rerun configure.
5009 #
5010 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5011 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5012 # following values.
5013
5014 _ACEOF
5015
5016 # The following way of writing the cache mishandles newlines in values,
5017 # but we know of no workaround that is simple, portable, and efficient.
5018 # So, we kill variables containing newlines.
5019 # Ultrix sh set writes to stderr and can't be redirected directly,
5020 # and sets the high bit in the cache file unless we assign to the vars.
5021 (
5022 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5023 eval ac_val=\$$ac_var
5024 case $ac_val in #(
5025 *${as_nl}*)
5026 case $ac_var in #(
5027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5029 esac
5030 case $ac_var in #(
5031 _ | IFS | as_nl) ;; #(
5032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5033 *) { eval $ac_var=; unset $ac_var;} ;;
5034 esac ;;
5035 esac
5036 done
5037
5038 (set) 2>&1 |
5039 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5040 *${as_nl}ac_space=\ *)
5041 # `set' does not quote correctly, so add quotes: double-quote
5042 # substitution turns \\\\ into \\, and sed turns \\ into \.
5043 sed -n \
5044 "s/'/'\\\\''/g;
5045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5046 ;; #(
5047 *)
5048 # `set' quotes correctly as required by POSIX, so do not add quotes.
5049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5050 ;;
5051 esac |
5052 sort
5053 ) |
5054 sed '
5055 /^ac_cv_env_/b end
5056 t clear
5057 :clear
5058 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5059 t end
5060 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5061 :end' >>confcache
5062 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5063 if test -w "$cache_file"; then
5064 if test "x$cache_file" != "x/dev/null"; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5066 $as_echo "$as_me: updating cache $cache_file" >&6;}
5067 if test ! -f "$cache_file" || test -h "$cache_file"; then
5068 cat confcache >"$cache_file"
5069 else
5070 case $cache_file in #(
5071 */* | ?:*)
5072 mv -f confcache "$cache_file"$$ &&
5073 mv -f "$cache_file"$$ "$cache_file" ;; #(
5074 *)
5075 mv -f confcache "$cache_file" ;;
5076 esac
5077 fi
5078 fi
5079 else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5081 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5082 fi
5083 fi
5084 rm -f confcache
5085
5086 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5087 # Let make expand exec_prefix.
5088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5089
5090 DEFS=-DHAVE_CONFIG_H
5091
5092 ac_libobjs=
5093 ac_ltlibobjs=
5094 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5095 # 1. Remove the extension, and $U if already installed.
5096 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5097 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5098 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5099 # will be set to the directory where LIBOBJS objects are built.
5100 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5101 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5102 done
5103 LIBOBJS=$ac_libobjs
5104
5105 LTLIBOBJS=$ac_ltlibobjs
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
5109 $as_echo_n "checking that generated files are newer than configure... " >&6; }
5110 if test -n "$am_sleep_pid"; then
5111 # Hide warnings about reused PIDs.
5112 wait $am_sleep_pid 2>/dev/null
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5115 $as_echo "done" >&6; }
5116 if test -n "$EXEEXT"; then
5117 am__EXEEXT_TRUE=
5118 am__EXEEXT_FALSE='#'
5119 else
5120 am__EXEEXT_TRUE='#'
5121 am__EXEEXT_FALSE=
5122 fi
5123
5124 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5125 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5127 fi
5128 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5129 as_fn_error $? "conditional \"AMDEP\" was never defined.
5130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5131 fi
5132 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5133 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5135 fi
5136
5137 : "${CONFIG_STATUS=./config.status}"
5138 ac_write_fail=0
5139 ac_clean_files_save=$ac_clean_files
5140 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5142 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5143 as_write_fail=0
5144 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5145 #! $SHELL
5146 # Generated by $as_me.
5147 # Run this file to recreate the current configuration.
5148 # Compiler output produced by configure, useful for debugging
5149 # configure, is in config.log if it exists.
5150
5151 debug=false
5152 ac_cs_recheck=false
5153 ac_cs_silent=false
5154
5155 SHELL=\${CONFIG_SHELL-$SHELL}
5156 export SHELL
5157 _ASEOF
5158 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5159 ## -------------------- ##
5160 ## M4sh Initialization. ##
5161 ## -------------------- ##
5162
5163 # Be more Bourne compatible
5164 DUALCASE=1; export DUALCASE # for MKS sh
5165 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5166 emulate sh
5167 NULLCMD=:
5168 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5169 # is contrary to our usage. Disable this feature.
5170 alias -g '${1+"$@"}'='"$@"'
5171 setopt NO_GLOB_SUBST
5172 else
5173 case `(set -o) 2>/dev/null` in #(
5174 *posix*) :
5175 set -o posix ;; #(
5176 *) :
5177 ;;
5178 esac
5179 fi
5180
5181
5182 as_nl='
5183 '
5184 export as_nl
5185 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5186 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5187 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5188 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5189 # Prefer a ksh shell builtin over an external printf program on Solaris,
5190 # but without wasting forks for bash or zsh.
5191 if test -z "$BASH_VERSION$ZSH_VERSION" \
5192 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5193 as_echo='print -r --'
5194 as_echo_n='print -rn --'
5195 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5196 as_echo='printf %s\n'
5197 as_echo_n='printf %s'
5198 else
5199 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5200 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5201 as_echo_n='/usr/ucb/echo -n'
5202 else
5203 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5204 as_echo_n_body='eval
5205 arg=$1;
5206 case $arg in #(
5207 *"$as_nl"*)
5208 expr "X$arg" : "X\\(.*\\)$as_nl";
5209 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5210 esac;
5211 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5212 '
5213 export as_echo_n_body
5214 as_echo_n='sh -c $as_echo_n_body as_echo'
5215 fi
5216 export as_echo_body
5217 as_echo='sh -c $as_echo_body as_echo'
5218 fi
5219
5220 # The user is always right.
5221 if test "${PATH_SEPARATOR+set}" != set; then
5222 PATH_SEPARATOR=:
5223 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5224 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5225 PATH_SEPARATOR=';'
5226 }
5227 fi
5228
5229
5230 # IFS
5231 # We need space, tab and new line, in precisely that order. Quoting is
5232 # there to prevent editors from complaining about space-tab.
5233 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5234 # splitting by setting IFS to empty value.)
5235 IFS=" "" $as_nl"
5236
5237 # Find who we are. Look in the path if we contain no directory separator.
5238 as_myself=
5239 case $0 in #((
5240 *[\\/]* ) as_myself=$0 ;;
5241 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5243 do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5247 done
5248 IFS=$as_save_IFS
5249
5250 ;;
5251 esac
5252 # We did not find ourselves, most probably we were run as `sh COMMAND'
5253 # in which case we are not to be found in the path.
5254 if test "x$as_myself" = x; then
5255 as_myself=$0
5256 fi
5257 if test ! -f "$as_myself"; then
5258 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5259 exit 1
5260 fi
5261
5262 # Unset variables that we do not need and which cause bugs (e.g. in
5263 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5264 # suppresses any "Segmentation fault" message there. '((' could
5265 # trigger a bug in pdksh 5.2.14.
5266 for as_var in BASH_ENV ENV MAIL MAILPATH
5267 do eval test x\${$as_var+set} = xset \
5268 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5269 done
5270 PS1='$ '
5271 PS2='> '
5272 PS4='+ '
5273
5274 # NLS nuisances.
5275 LC_ALL=C
5276 export LC_ALL
5277 LANGUAGE=C
5278 export LANGUAGE
5279
5280 # CDPATH.
5281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5282
5283
5284 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5285 # ----------------------------------------
5286 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5287 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5288 # script with STATUS, using 1 if that was 0.
5289 as_fn_error ()
5290 {
5291 as_status=$1; test $as_status -eq 0 && as_status=1
5292 if test "$4"; then
5293 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5294 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5295 fi
5296 $as_echo "$as_me: error: $2" >&2
5297 as_fn_exit $as_status
5298 } # as_fn_error
5299
5300
5301 # as_fn_set_status STATUS
5302 # -----------------------
5303 # Set $? to STATUS, without forking.
5304 as_fn_set_status ()
5305 {
5306 return $1
5307 } # as_fn_set_status
5308
5309 # as_fn_exit STATUS
5310 # -----------------
5311 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5312 as_fn_exit ()
5313 {
5314 set +e
5315 as_fn_set_status $1
5316 exit $1
5317 } # as_fn_exit
5318
5319 # as_fn_unset VAR
5320 # ---------------
5321 # Portably unset VAR.
5322 as_fn_unset ()
5323 {
5324 { eval $1=; unset $1;}
5325 }
5326 as_unset=as_fn_unset
5327 # as_fn_append VAR VALUE
5328 # ----------------------
5329 # Append the text in VALUE to the end of the definition contained in VAR. Take
5330 # advantage of any shell optimizations that allow amortized linear growth over
5331 # repeated appends, instead of the typical quadratic growth present in naive
5332 # implementations.
5333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5334 eval 'as_fn_append ()
5335 {
5336 eval $1+=\$2
5337 }'
5338 else
5339 as_fn_append ()
5340 {
5341 eval $1=\$$1\$2
5342 }
5343 fi # as_fn_append
5344
5345 # as_fn_arith ARG...
5346 # ------------------
5347 # Perform arithmetic evaluation on the ARGs, and store the result in the
5348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5349 # must be portable across $(()) and expr.
5350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5351 eval 'as_fn_arith ()
5352 {
5353 as_val=$(( $* ))
5354 }'
5355 else
5356 as_fn_arith ()
5357 {
5358 as_val=`expr "$@" || test $? -eq 1`
5359 }
5360 fi # as_fn_arith
5361
5362
5363 if expr a : '\(a\)' >/dev/null 2>&1 &&
5364 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5365 as_expr=expr
5366 else
5367 as_expr=false
5368 fi
5369
5370 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5371 as_basename=basename
5372 else
5373 as_basename=false
5374 fi
5375
5376 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5377 as_dirname=dirname
5378 else
5379 as_dirname=false
5380 fi
5381
5382 as_me=`$as_basename -- "$0" ||
5383 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5384 X"$0" : 'X\(//\)$' \| \
5385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5386 $as_echo X/"$0" |
5387 sed '/^.*\/\([^/][^/]*\)\/*$/{
5388 s//\1/
5389 q
5390 }
5391 /^X\/\(\/\/\)$/{
5392 s//\1/
5393 q
5394 }
5395 /^X\/\(\/\).*/{
5396 s//\1/
5397 q
5398 }
5399 s/.*/./; q'`
5400
5401 # Avoid depending upon Character Ranges.
5402 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5403 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5404 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5405 as_cr_digits='0123456789'
5406 as_cr_alnum=$as_cr_Letters$as_cr_digits
5407
5408 ECHO_C= ECHO_N= ECHO_T=
5409 case `echo -n x` in #(((((
5410 -n*)
5411 case `echo 'xy\c'` in
5412 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5413 xy) ECHO_C='\c';;
5414 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5415 ECHO_T=' ';;
5416 esac;;
5417 *)
5418 ECHO_N='-n';;
5419 esac
5420
5421 rm -f conf$$ conf$$.exe conf$$.file
5422 if test -d conf$$.dir