Integrate PR 12649's race detector directly in the testsuite machinery
[deliverable/binutils-gdb.git] / gdb / testsuite / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="gdb.base"
555 enable_option_checking=no
556 # Factoring default headers for most tests.
557 ac_includes_default="\
558 #include <stdio.h>
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
561 #endif
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
564 #endif
565 #ifdef STDC_HEADERS
566 # include <stdlib.h>
567 # include <stddef.h>
568 #else
569 # ifdef HAVE_STDLIB_H
570 # include <stdlib.h>
571 # endif
572 #endif
573 #ifdef HAVE_STRING_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
575 # include <memory.h>
576 # endif
577 # include <string.h>
578 #endif
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
581 #endif
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
584 #endif
585 #ifdef HAVE_STDINT_H
586 # include <stdint.h>
587 #endif
588 #ifdef HAVE_UNISTD_H
589 # include <unistd.h>
590 #endif"
591
592 ac_subst_vars='LTLIBOBJS
593 LIBOBJS
594 EXTRA_RULES
595 EGREP
596 GREP
597 CPP
598 OBJEXT
599 EXEEXT
600 ac_ct_CC
601 CPPFLAGS
602 LDFLAGS
603 CFLAGS
604 CC
605 RPATH_ENVVAR
606 subdirs
607 SET_MAKE
608 GMAKE_FALSE
609 GMAKE_TRUE
610 MAKE
611 target_noncanonical
612 target_os
613 target_vendor
614 target_cpu
615 target
616 host_os
617 host_vendor
618 host_cpu
619 host
620 build_os
621 build_vendor
622 build_cpu
623 build
624 target_alias
625 host_alias
626 build_alias
627 LIBS
628 ECHO_T
629 ECHO_N
630 ECHO_C
631 DEFS
632 mandir
633 localedir
634 libdir
635 psdir
636 pdfdir
637 dvidir
638 htmldir
639 infodir
640 docdir
641 oldincludedir
642 includedir
643 localstatedir
644 sharedstatedir
645 sysconfdir
646 datadir
647 datarootdir
648 libexecdir
649 sbindir
650 bindir
651 program_transform_name
652 prefix
653 exec_prefix
654 PACKAGE_URL
655 PACKAGE_BUGREPORT
656 PACKAGE_STRING
657 PACKAGE_VERSION
658 PACKAGE_TARNAME
659 PACKAGE_NAME
660 PATH_SEPARATOR
661 SHELL'
662 ac_subst_files=''
663 ac_user_opts='
664 enable_option_checking
665 enable_gdbtk
666 enable_shared
667 '
668 ac_precious_vars='build_alias
669 host_alias
670 target_alias
671 CC
672 CFLAGS
673 LDFLAGS
674 LIBS
675 CPPFLAGS
676 CPP'
677 ac_subdirs_all='gdb.gdbtk'
678
679 # Initialize some variables set by options.
680 ac_init_help=
681 ac_init_version=false
682 ac_unrecognized_opts=
683 ac_unrecognized_sep=
684 # The variables have the same names as the options, with
685 # dashes changed to underlines.
686 cache_file=/dev/null
687 exec_prefix=NONE
688 no_create=
689 no_recursion=
690 prefix=NONE
691 program_prefix=NONE
692 program_suffix=NONE
693 program_transform_name=s,x,x,
694 silent=
695 site=
696 srcdir=
697 verbose=
698 x_includes=NONE
699 x_libraries=NONE
700
701 # Installation directory options.
702 # These are left unexpanded so users can "make install exec_prefix=/foo"
703 # and all the variables that are supposed to be based on exec_prefix
704 # by default will actually change.
705 # Use braces instead of parens because sh, perl, etc. also accept them.
706 # (The list follows the same order as the GNU Coding Standards.)
707 bindir='${exec_prefix}/bin'
708 sbindir='${exec_prefix}/sbin'
709 libexecdir='${exec_prefix}/libexec'
710 datarootdir='${prefix}/share'
711 datadir='${datarootdir}'
712 sysconfdir='${prefix}/etc'
713 sharedstatedir='${prefix}/com'
714 localstatedir='${prefix}/var'
715 includedir='${prefix}/include'
716 oldincludedir='/usr/include'
717 docdir='${datarootdir}/doc/${PACKAGE}'
718 infodir='${datarootdir}/info'
719 htmldir='${docdir}'
720 dvidir='${docdir}'
721 pdfdir='${docdir}'
722 psdir='${docdir}'
723 libdir='${exec_prefix}/lib'
724 localedir='${datarootdir}/locale'
725 mandir='${datarootdir}/man'
726
727 ac_prev=
728 ac_dashdash=
729 for ac_option
730 do
731 # If the previous option needs an argument, assign it.
732 if test -n "$ac_prev"; then
733 eval $ac_prev=\$ac_option
734 ac_prev=
735 continue
736 fi
737
738 case $ac_option in
739 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
740 *) ac_optarg=yes ;;
741 esac
742
743 # Accept the important Cygnus configure options, so we can diagnose typos.
744
745 case $ac_dashdash$ac_option in
746 --)
747 ac_dashdash=yes ;;
748
749 -bindir | --bindir | --bindi | --bind | --bin | --bi)
750 ac_prev=bindir ;;
751 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
752 bindir=$ac_optarg ;;
753
754 -build | --build | --buil | --bui | --bu)
755 ac_prev=build_alias ;;
756 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
757 build_alias=$ac_optarg ;;
758
759 -cache-file | --cache-file | --cache-fil | --cache-fi \
760 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
761 ac_prev=cache_file ;;
762 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
763 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
764 cache_file=$ac_optarg ;;
765
766 --config-cache | -C)
767 cache_file=config.cache ;;
768
769 -datadir | --datadir | --datadi | --datad)
770 ac_prev=datadir ;;
771 -datadir=* | --datadir=* | --datadi=* | --datad=*)
772 datadir=$ac_optarg ;;
773
774 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
775 | --dataroo | --dataro | --datar)
776 ac_prev=datarootdir ;;
777 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
778 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
779 datarootdir=$ac_optarg ;;
780
781 -disable-* | --disable-*)
782 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
785 as_fn_error "invalid feature name: $ac_useropt"
786 ac_useropt_orig=$ac_useropt
787 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
788 case $ac_user_opts in
789 *"
790 "enable_$ac_useropt"
791 "*) ;;
792 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
793 ac_unrecognized_sep=', ';;
794 esac
795 eval enable_$ac_useropt=no ;;
796
797 -docdir | --docdir | --docdi | --doc | --do)
798 ac_prev=docdir ;;
799 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
800 docdir=$ac_optarg ;;
801
802 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
803 ac_prev=dvidir ;;
804 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
805 dvidir=$ac_optarg ;;
806
807 -enable-* | --enable-*)
808 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
809 # Reject names that are not valid shell variable names.
810 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
811 as_fn_error "invalid feature name: $ac_useropt"
812 ac_useropt_orig=$ac_useropt
813 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
814 case $ac_user_opts in
815 *"
816 "enable_$ac_useropt"
817 "*) ;;
818 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
819 ac_unrecognized_sep=', ';;
820 esac
821 eval enable_$ac_useropt=\$ac_optarg ;;
822
823 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
824 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
825 | --exec | --exe | --ex)
826 ac_prev=exec_prefix ;;
827 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
828 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
829 | --exec=* | --exe=* | --ex=*)
830 exec_prefix=$ac_optarg ;;
831
832 -gas | --gas | --ga | --g)
833 # Obsolete; use --with-gas.
834 with_gas=yes ;;
835
836 -help | --help | --hel | --he | -h)
837 ac_init_help=long ;;
838 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
839 ac_init_help=recursive ;;
840 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
841 ac_init_help=short ;;
842
843 -host | --host | --hos | --ho)
844 ac_prev=host_alias ;;
845 -host=* | --host=* | --hos=* | --ho=*)
846 host_alias=$ac_optarg ;;
847
848 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
849 ac_prev=htmldir ;;
850 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
851 | --ht=*)
852 htmldir=$ac_optarg ;;
853
854 -includedir | --includedir | --includedi | --included | --include \
855 | --includ | --inclu | --incl | --inc)
856 ac_prev=includedir ;;
857 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
858 | --includ=* | --inclu=* | --incl=* | --inc=*)
859 includedir=$ac_optarg ;;
860
861 -infodir | --infodir | --infodi | --infod | --info | --inf)
862 ac_prev=infodir ;;
863 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
864 infodir=$ac_optarg ;;
865
866 -libdir | --libdir | --libdi | --libd)
867 ac_prev=libdir ;;
868 -libdir=* | --libdir=* | --libdi=* | --libd=*)
869 libdir=$ac_optarg ;;
870
871 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
872 | --libexe | --libex | --libe)
873 ac_prev=libexecdir ;;
874 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
875 | --libexe=* | --libex=* | --libe=*)
876 libexecdir=$ac_optarg ;;
877
878 -localedir | --localedir | --localedi | --localed | --locale)
879 ac_prev=localedir ;;
880 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
881 localedir=$ac_optarg ;;
882
883 -localstatedir | --localstatedir | --localstatedi | --localstated \
884 | --localstate | --localstat | --localsta | --localst | --locals)
885 ac_prev=localstatedir ;;
886 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
887 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
888 localstatedir=$ac_optarg ;;
889
890 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
891 ac_prev=mandir ;;
892 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
893 mandir=$ac_optarg ;;
894
895 -nfp | --nfp | --nf)
896 # Obsolete; use --without-fp.
897 with_fp=no ;;
898
899 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
900 | --no-cr | --no-c | -n)
901 no_create=yes ;;
902
903 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
904 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
905 no_recursion=yes ;;
906
907 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
908 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
909 | --oldin | --oldi | --old | --ol | --o)
910 ac_prev=oldincludedir ;;
911 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
912 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
913 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
914 oldincludedir=$ac_optarg ;;
915
916 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
917 ac_prev=prefix ;;
918 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
919 prefix=$ac_optarg ;;
920
921 -program-prefix | --program-prefix | --program-prefi | --program-pref \
922 | --program-pre | --program-pr | --program-p)
923 ac_prev=program_prefix ;;
924 -program-prefix=* | --program-prefix=* | --program-prefi=* \
925 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
926 program_prefix=$ac_optarg ;;
927
928 -program-suffix | --program-suffix | --program-suffi | --program-suff \
929 | --program-suf | --program-su | --program-s)
930 ac_prev=program_suffix ;;
931 -program-suffix=* | --program-suffix=* | --program-suffi=* \
932 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
933 program_suffix=$ac_optarg ;;
934
935 -program-transform-name | --program-transform-name \
936 | --program-transform-nam | --program-transform-na \
937 | --program-transform-n | --program-transform- \
938 | --program-transform | --program-transfor \
939 | --program-transfo | --program-transf \
940 | --program-trans | --program-tran \
941 | --progr-tra | --program-tr | --program-t)
942 ac_prev=program_transform_name ;;
943 -program-transform-name=* | --program-transform-name=* \
944 | --program-transform-nam=* | --program-transform-na=* \
945 | --program-transform-n=* | --program-transform-=* \
946 | --program-transform=* | --program-transfor=* \
947 | --program-transfo=* | --program-transf=* \
948 | --program-trans=* | --program-tran=* \
949 | --progr-tra=* | --program-tr=* | --program-t=*)
950 program_transform_name=$ac_optarg ;;
951
952 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
953 ac_prev=pdfdir ;;
954 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
955 pdfdir=$ac_optarg ;;
956
957 -psdir | --psdir | --psdi | --psd | --ps)
958 ac_prev=psdir ;;
959 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
960 psdir=$ac_optarg ;;
961
962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
963 | -silent | --silent | --silen | --sile | --sil)
964 silent=yes ;;
965
966 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
967 ac_prev=sbindir ;;
968 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
969 | --sbi=* | --sb=*)
970 sbindir=$ac_optarg ;;
971
972 -sharedstatedir | --sharedstatedir | --sharedstatedi \
973 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
974 | --sharedst | --shareds | --shared | --share | --shar \
975 | --sha | --sh)
976 ac_prev=sharedstatedir ;;
977 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
978 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
979 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
980 | --sha=* | --sh=*)
981 sharedstatedir=$ac_optarg ;;
982
983 -site | --site | --sit)
984 ac_prev=site ;;
985 -site=* | --site=* | --sit=*)
986 site=$ac_optarg ;;
987
988 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
989 ac_prev=srcdir ;;
990 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
991 srcdir=$ac_optarg ;;
992
993 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
994 | --syscon | --sysco | --sysc | --sys | --sy)
995 ac_prev=sysconfdir ;;
996 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
997 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
998 sysconfdir=$ac_optarg ;;
999
1000 -target | --target | --targe | --targ | --tar | --ta | --t)
1001 ac_prev=target_alias ;;
1002 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1003 target_alias=$ac_optarg ;;
1004
1005 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1006 verbose=yes ;;
1007
1008 -version | --version | --versio | --versi | --vers | -V)
1009 ac_init_version=: ;;
1010
1011 -with-* | --with-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error "invalid package name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "with_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval with_$ac_useropt=\$ac_optarg ;;
1026
1027 -without-* | --without-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error "invalid package name: $ac_useropt"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1035 *"
1036 "with_$ac_useropt"
1037 "*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval with_$ac_useropt=no ;;
1042
1043 --x)
1044 # Obsolete; use --with-x.
1045 with_x=yes ;;
1046
1047 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1048 | --x-incl | --x-inc | --x-in | --x-i)
1049 ac_prev=x_includes ;;
1050 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1051 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1052 x_includes=$ac_optarg ;;
1053
1054 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1055 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1056 ac_prev=x_libraries ;;
1057 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1058 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1059 x_libraries=$ac_optarg ;;
1060
1061 -*) as_fn_error "unrecognized option: \`$ac_option'
1062 Try \`$0 --help' for more information."
1063 ;;
1064
1065 *=*)
1066 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1067 # Reject names that are not valid shell variable names.
1068 case $ac_envvar in #(
1069 '' | [0-9]* | *[!_$as_cr_alnum]* )
1070 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1071 esac
1072 eval $ac_envvar=\$ac_optarg
1073 export $ac_envvar ;;
1074
1075 *)
1076 # FIXME: should be removed in autoconf 3.0.
1077 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1078 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1080 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1081 ;;
1082
1083 esac
1084 done
1085
1086 if test -n "$ac_prev"; then
1087 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1088 as_fn_error "missing argument to $ac_option"
1089 fi
1090
1091 if test -n "$ac_unrecognized_opts"; then
1092 case $enable_option_checking in
1093 no) ;;
1094 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1095 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1096 esac
1097 fi
1098
1099 # Check all directory arguments for consistency.
1100 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1101 datadir sysconfdir sharedstatedir localstatedir includedir \
1102 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1103 libdir localedir mandir
1104 do
1105 eval ac_val=\$$ac_var
1106 # Remove trailing slashes.
1107 case $ac_val in
1108 */ )
1109 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1110 eval $ac_var=\$ac_val;;
1111 esac
1112 # Be sure to have absolute directory names.
1113 case $ac_val in
1114 [\\/$]* | ?:[\\/]* ) continue;;
1115 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1116 esac
1117 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1118 done
1119
1120 # There might be people who depend on the old broken behavior: `$host'
1121 # used to hold the argument of --host etc.
1122 # FIXME: To remove some day.
1123 build=$build_alias
1124 host=$host_alias
1125 target=$target_alias
1126
1127 # FIXME: To remove some day.
1128 if test "x$host_alias" != x; then
1129 if test "x$build_alias" = x; then
1130 cross_compiling=maybe
1131 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1132 If a cross compiler is detected then cross compile mode will be used." >&2
1133 elif test "x$build_alias" != "x$host_alias"; then
1134 cross_compiling=yes
1135 fi
1136 fi
1137
1138 ac_tool_prefix=
1139 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1140
1141 test "$silent" = yes && exec 6>/dev/null
1142
1143
1144 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1145 ac_ls_di=`ls -di .` &&
1146 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1147 as_fn_error "working directory cannot be determined"
1148 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1149 as_fn_error "pwd does not report name of working directory"
1150
1151
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir=`$as_dirname -- "$as_myself" ||
1157 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$as_myself" : 'X\(//\)[^/]' \| \
1159 X"$as_myself" : 'X\(//\)$' \| \
1160 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1161 $as_echo X"$as_myself" |
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1163 s//\1/
1164 q
1165 }
1166 /^X\(\/\/\)[^/].*/{
1167 s//\1/
1168 q
1169 }
1170 /^X\(\/\/\)$/{
1171 s//\1/
1172 q
1173 }
1174 /^X\(\/\).*/{
1175 s//\1/
1176 q
1177 }
1178 s/.*/./; q'`
1179 srcdir=$ac_confdir
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 srcdir=..
1182 fi
1183 else
1184 ac_srcdir_defaulted=no
1185 fi
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1188 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1189 fi
1190 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191 ac_abs_confdir=`(
1192 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1193 pwd)`
1194 # When building in place, set srcdir=.
1195 if test "$ac_abs_confdir" = "$ac_pwd"; then
1196 srcdir=.
1197 fi
1198 # Remove unnecessary trailing slashes from srcdir.
1199 # Double slashes in file names in object file debugging info
1200 # mess up M-x gdb in Emacs.
1201 case $srcdir in
1202 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1203 esac
1204 for ac_var in $ac_precious_vars; do
1205 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_env_${ac_var}_value=\$${ac_var}
1207 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1209 done
1210
1211 #
1212 # Report the --help message.
1213 #
1214 if test "$ac_init_help" = "long"; then
1215 # Omit some internal or obsolete options to make the list less imposing.
1216 # This message is too long to be a string in the A/UX 3.1 sh.
1217 cat <<_ACEOF
1218 \`configure' configures this package to adapt to many kinds of systems.
1219
1220 Usage: $0 [OPTION]... [VAR=VALUE]...
1221
1222 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1223 VAR=VALUE. See below for descriptions of some of the useful variables.
1224
1225 Defaults for the options are specified in brackets.
1226
1227 Configuration:
1228 -h, --help display this help and exit
1229 --help=short display options specific to this package
1230 --help=recursive display the short help of all the included packages
1231 -V, --version display version information and exit
1232 -q, --quiet, --silent do not print \`checking...' messages
1233 --cache-file=FILE cache test results in FILE [disabled]
1234 -C, --config-cache alias for \`--cache-file=config.cache'
1235 -n, --no-create do not create output files
1236 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1237
1238 Installation directories:
1239 --prefix=PREFIX install architecture-independent files in PREFIX
1240 [$ac_default_prefix]
1241 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1242 [PREFIX]
1243
1244 By default, \`make install' will install all the files in
1245 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1246 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1247 for instance \`--prefix=\$HOME'.
1248
1249 For better control, use the options below.
1250
1251 Fine tuning of the installation directories:
1252 --bindir=DIR user executables [EPREFIX/bin]
1253 --sbindir=DIR system admin executables [EPREFIX/sbin]
1254 --libexecdir=DIR program executables [EPREFIX/libexec]
1255 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1256 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1257 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1258 --libdir=DIR object code libraries [EPREFIX/lib]
1259 --includedir=DIR C header files [PREFIX/include]
1260 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1261 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1262 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1263 --infodir=DIR info documentation [DATAROOTDIR/info]
1264 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1265 --mandir=DIR man documentation [DATAROOTDIR/man]
1266 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1267 --htmldir=DIR html documentation [DOCDIR]
1268 --dvidir=DIR dvi documentation [DOCDIR]
1269 --pdfdir=DIR pdf documentation [DOCDIR]
1270 --psdir=DIR ps documentation [DOCDIR]
1271 _ACEOF
1272
1273 cat <<\_ACEOF
1274
1275 System types:
1276 --build=BUILD configure for building on BUILD [guessed]
1277 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1278 --target=TARGET configure for building compilers for TARGET [HOST]
1279 _ACEOF
1280 fi
1281
1282 if test -n "$ac_init_help"; then
1283
1284 cat <<\_ACEOF
1285
1286 Optional Features:
1287 --disable-option-checking ignore unrecognized --enable/--with options
1288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1290 --enable-gtk enable gdbtk graphical user interface (GUI)
1291 --enable-shared build shared libraries deault=yes
1292
1293 Some influential environment variables:
1294 CC C compiler command
1295 CFLAGS C compiler flags
1296 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1297 nonstandard directory <lib dir>
1298 LIBS libraries to pass to the linker, e.g. -l<library>
1299 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1300 you have headers in a nonstandard directory <include dir>
1301 CPP C preprocessor
1302
1303 Use these variables to override the choices made by `configure' or to help
1304 it to find libraries and programs with nonstandard names/locations.
1305
1306 Report bugs to the package provider.
1307 _ACEOF
1308 ac_status=$?
1309 fi
1310
1311 if test "$ac_init_help" = "recursive"; then
1312 # If there are subdirs, report their specific --help.
1313 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1314 test -d "$ac_dir" ||
1315 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1316 continue
1317 ac_builddir=.
1318
1319 case "$ac_dir" in
1320 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1321 *)
1322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1323 # A ".." for each directory in $ac_dir_suffix.
1324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1325 case $ac_top_builddir_sub in
1326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1328 esac ;;
1329 esac
1330 ac_abs_top_builddir=$ac_pwd
1331 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1332 # for backward compatibility:
1333 ac_top_builddir=$ac_top_build_prefix
1334
1335 case $srcdir in
1336 .) # We are building in place.
1337 ac_srcdir=.
1338 ac_top_srcdir=$ac_top_builddir_sub
1339 ac_abs_top_srcdir=$ac_pwd ;;
1340 [\\/]* | ?:[\\/]* ) # Absolute name.
1341 ac_srcdir=$srcdir$ac_dir_suffix;
1342 ac_top_srcdir=$srcdir
1343 ac_abs_top_srcdir=$srcdir ;;
1344 *) # Relative name.
1345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1346 ac_top_srcdir=$ac_top_build_prefix$srcdir
1347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1348 esac
1349 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1350
1351 cd "$ac_dir" || { ac_status=$?; continue; }
1352 # Check for guested configure.
1353 if test -f "$ac_srcdir/configure.gnu"; then
1354 echo &&
1355 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1356 elif test -f "$ac_srcdir/configure"; then
1357 echo &&
1358 $SHELL "$ac_srcdir/configure" --help=recursive
1359 else
1360 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1361 fi || ac_status=$?
1362 cd "$ac_pwd" || { ac_status=$?; break; }
1363 done
1364 fi
1365
1366 test -n "$ac_init_help" && exit $ac_status
1367 if $ac_init_version; then
1368 cat <<\_ACEOF
1369 configure
1370 generated by GNU Autoconf 2.64
1371
1372 Copyright (C) 2009 Free Software Foundation, Inc.
1373 This configure script is free software; the Free Software Foundation
1374 gives unlimited permission to copy, distribute and modify it.
1375 _ACEOF
1376 exit
1377 fi
1378
1379 ## ------------------------ ##
1380 ## Autoconf initialization. ##
1381 ## ------------------------ ##
1382
1383 # ac_fn_c_try_compile LINENO
1384 # --------------------------
1385 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1386 ac_fn_c_try_compile ()
1387 {
1388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1389 rm -f conftest.$ac_objext
1390 if { { ac_try="$ac_compile"
1391 case "(($ac_try" in
1392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1393 *) ac_try_echo=$ac_try;;
1394 esac
1395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1396 $as_echo "$ac_try_echo"; } >&5
1397 (eval "$ac_compile") 2>conftest.err
1398 ac_status=$?
1399 if test -s conftest.err; then
1400 grep -v '^ *+' conftest.err >conftest.er1
1401 cat conftest.er1 >&5
1402 mv -f conftest.er1 conftest.err
1403 fi
1404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1405 test $ac_status = 0; } && {
1406 test -z "$ac_c_werror_flag" ||
1407 test ! -s conftest.err
1408 } && test -s conftest.$ac_objext; then :
1409 ac_retval=0
1410 else
1411 $as_echo "$as_me: failed program was:" >&5
1412 sed 's/^/| /' conftest.$ac_ext >&5
1413
1414 ac_retval=1
1415 fi
1416 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1417 return $ac_retval
1418
1419 } # ac_fn_c_try_compile
1420
1421 # ac_fn_c_try_cpp LINENO
1422 # ----------------------
1423 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1424 ac_fn_c_try_cpp ()
1425 {
1426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1427 if { { ac_try="$ac_cpp conftest.$ac_ext"
1428 case "(($ac_try" in
1429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1430 *) ac_try_echo=$ac_try;;
1431 esac
1432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1433 $as_echo "$ac_try_echo"; } >&5
1434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1435 ac_status=$?
1436 if test -s conftest.err; then
1437 grep -v '^ *+' conftest.err >conftest.er1
1438 cat conftest.er1 >&5
1439 mv -f conftest.er1 conftest.err
1440 fi
1441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1442 test $ac_status = 0; } >/dev/null && {
1443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1444 test ! -s conftest.err
1445 }; then :
1446 ac_retval=0
1447 else
1448 $as_echo "$as_me: failed program was:" >&5
1449 sed 's/^/| /' conftest.$ac_ext >&5
1450
1451 ac_retval=1
1452 fi
1453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1454 return $ac_retval
1455
1456 } # ac_fn_c_try_cpp
1457
1458 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1459 # -------------------------------------------------------
1460 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1461 # the include files in INCLUDES and setting the cache variable VAR
1462 # accordingly.
1463 ac_fn_c_check_header_mongrel ()
1464 {
1465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1466 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1468 $as_echo_n "checking for $2... " >&6; }
1469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1470 $as_echo_n "(cached) " >&6
1471 fi
1472 eval ac_res=\$$3
1473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1474 $as_echo "$ac_res" >&6; }
1475 else
1476 # Is the header compilable?
1477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1478 $as_echo_n "checking $2 usability... " >&6; }
1479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1480 /* end confdefs.h. */
1481 $4
1482 #include <$2>
1483 _ACEOF
1484 if ac_fn_c_try_compile "$LINENO"; then :
1485 ac_header_compiler=yes
1486 else
1487 ac_header_compiler=no
1488 fi
1489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1491 $as_echo "$ac_header_compiler" >&6; }
1492
1493 # Is the header present?
1494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1495 $as_echo_n "checking $2 presence... " >&6; }
1496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1497 /* end confdefs.h. */
1498 #include <$2>
1499 _ACEOF
1500 if ac_fn_c_try_cpp "$LINENO"; then :
1501 ac_header_preproc=yes
1502 else
1503 ac_header_preproc=no
1504 fi
1505 rm -f conftest.err conftest.$ac_ext
1506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1507 $as_echo "$ac_header_preproc" >&6; }
1508
1509 # So? What about this header?
1510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1511 yes:no: )
1512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1513 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1515 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1516 ;;
1517 no:yes:* )
1518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1519 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1521 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1523 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1525 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1527 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1528 ;;
1529 esac
1530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1531 $as_echo_n "checking for $2... " >&6; }
1532 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1533 $as_echo_n "(cached) " >&6
1534 else
1535 eval "$3=\$ac_header_compiler"
1536 fi
1537 eval ac_res=\$$3
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1539 $as_echo "$ac_res" >&6; }
1540 fi
1541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542
1543 } # ac_fn_c_check_header_mongrel
1544
1545 # ac_fn_c_try_run LINENO
1546 # ----------------------
1547 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1548 # that executables *can* be run.
1549 ac_fn_c_try_run ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 if { { ac_try="$ac_link"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_link") 2>&5
1560 ac_status=$?
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1563 { { case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_try") 2>&5
1570 ac_status=$?
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; }; }; then :
1573 ac_retval=0
1574 else
1575 $as_echo "$as_me: program exited with status $ac_status" >&5
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579 ac_retval=$ac_status
1580 fi
1581 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583 return $ac_retval
1584
1585 } # ac_fn_c_try_run
1586
1587 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1588 # -------------------------------------------------------
1589 # Tests whether HEADER exists and can be compiled using the include files in
1590 # INCLUDES, setting the cache variable VAR accordingly.
1591 ac_fn_c_check_header_compile ()
1592 {
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1595 $as_echo_n "checking for $2... " >&6; }
1596 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1597 $as_echo_n "(cached) " >&6
1598 else
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1601 $4
1602 #include <$2>
1603 _ACEOF
1604 if ac_fn_c_try_compile "$LINENO"; then :
1605 eval "$3=yes"
1606 else
1607 eval "$3=no"
1608 fi
1609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610 fi
1611 eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615
1616 } # ac_fn_c_check_header_compile
1617 cat >config.log <<_ACEOF
1618 This file contains any messages produced by compilers while
1619 running configure, to aid debugging if configure makes a mistake.
1620
1621 It was created by $as_me, which was
1622 generated by GNU Autoconf 2.64. Invocation command line was
1623
1624 $ $0 $@
1625
1626 _ACEOF
1627 exec 5>>config.log
1628 {
1629 cat <<_ASUNAME
1630 ## --------- ##
1631 ## Platform. ##
1632 ## --------- ##
1633
1634 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1635 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1636 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1637 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1638 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1639
1640 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1641 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1642
1643 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1644 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1645 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1646 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1647 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1648 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1649 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1650
1651 _ASUNAME
1652
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 for as_dir in $PATH
1655 do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 $as_echo "PATH: $as_dir"
1659 done
1660 IFS=$as_save_IFS
1661
1662 } >&5
1663
1664 cat >&5 <<_ACEOF
1665
1666
1667 ## ----------- ##
1668 ## Core tests. ##
1669 ## ----------- ##
1670
1671 _ACEOF
1672
1673
1674 # Keep a trace of the command line.
1675 # Strip out --no-create and --no-recursion so they do not pile up.
1676 # Strip out --silent because we don't want to record it for future runs.
1677 # Also quote any args containing shell meta-characters.
1678 # Make two passes to allow for proper duplicate-argument suppression.
1679 ac_configure_args=
1680 ac_configure_args0=
1681 ac_configure_args1=
1682 ac_must_keep_next=false
1683 for ac_pass in 1 2
1684 do
1685 for ac_arg
1686 do
1687 case $ac_arg in
1688 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1690 | -silent | --silent | --silen | --sile | --sil)
1691 continue ;;
1692 *\'*)
1693 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1694 esac
1695 case $ac_pass in
1696 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1697 2)
1698 as_fn_append ac_configure_args1 " '$ac_arg'"
1699 if test $ac_must_keep_next = true; then
1700 ac_must_keep_next=false # Got value, back to normal.
1701 else
1702 case $ac_arg in
1703 *=* | --config-cache | -C | -disable-* | --disable-* \
1704 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1705 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1706 | -with-* | --with-* | -without-* | --without-* | --x)
1707 case "$ac_configure_args0 " in
1708 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1709 esac
1710 ;;
1711 -* ) ac_must_keep_next=true ;;
1712 esac
1713 fi
1714 as_fn_append ac_configure_args " '$ac_arg'"
1715 ;;
1716 esac
1717 done
1718 done
1719 { ac_configure_args0=; unset ac_configure_args0;}
1720 { ac_configure_args1=; unset ac_configure_args1;}
1721
1722 # When interrupted or exit'd, cleanup temporary files, and complete
1723 # config.log. We remove comments because anyway the quotes in there
1724 # would cause problems or look ugly.
1725 # WARNING: Use '\'' to represent an apostrophe within the trap.
1726 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1727 trap 'exit_status=$?
1728 # Save into config.log some information that might help in debugging.
1729 {
1730 echo
1731
1732 cat <<\_ASBOX
1733 ## ---------------- ##
1734 ## Cache variables. ##
1735 ## ---------------- ##
1736 _ASBOX
1737 echo
1738 # The following way of writing the cache mishandles newlines in values,
1739 (
1740 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1741 eval ac_val=\$$ac_var
1742 case $ac_val in #(
1743 *${as_nl}*)
1744 case $ac_var in #(
1745 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1746 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1747 esac
1748 case $ac_var in #(
1749 _ | IFS | as_nl) ;; #(
1750 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1751 *) { eval $ac_var=; unset $ac_var;} ;;
1752 esac ;;
1753 esac
1754 done
1755 (set) 2>&1 |
1756 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1757 *${as_nl}ac_space=\ *)
1758 sed -n \
1759 "s/'\''/'\''\\\\'\'''\''/g;
1760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1761 ;; #(
1762 *)
1763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1764 ;;
1765 esac |
1766 sort
1767 )
1768 echo
1769
1770 cat <<\_ASBOX
1771 ## ----------------- ##
1772 ## Output variables. ##
1773 ## ----------------- ##
1774 _ASBOX
1775 echo
1776 for ac_var in $ac_subst_vars
1777 do
1778 eval ac_val=\$$ac_var
1779 case $ac_val in
1780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781 esac
1782 $as_echo "$ac_var='\''$ac_val'\''"
1783 done | sort
1784 echo
1785
1786 if test -n "$ac_subst_files"; then
1787 cat <<\_ASBOX
1788 ## ------------------- ##
1789 ## File substitutions. ##
1790 ## ------------------- ##
1791 _ASBOX
1792 echo
1793 for ac_var in $ac_subst_files
1794 do
1795 eval ac_val=\$$ac_var
1796 case $ac_val in
1797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1798 esac
1799 $as_echo "$ac_var='\''$ac_val'\''"
1800 done | sort
1801 echo
1802 fi
1803
1804 if test -s confdefs.h; then
1805 cat <<\_ASBOX
1806 ## ----------- ##
1807 ## confdefs.h. ##
1808 ## ----------- ##
1809 _ASBOX
1810 echo
1811 cat confdefs.h
1812 echo
1813 fi
1814 test "$ac_signal" != 0 &&
1815 $as_echo "$as_me: caught signal $ac_signal"
1816 $as_echo "$as_me: exit $exit_status"
1817 } >&5
1818 rm -f core *.core core.conftest.* &&
1819 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1820 exit $exit_status
1821 ' 0
1822 for ac_signal in 1 2 13 15; do
1823 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1824 done
1825 ac_signal=0
1826
1827 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1828 rm -f -r conftest* confdefs.h
1829
1830 $as_echo "/* confdefs.h */" > confdefs.h
1831
1832 # Predefined preprocessor variables.
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_NAME "$PACKAGE_NAME"
1836 _ACEOF
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1840 _ACEOF
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1844 _ACEOF
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define PACKAGE_STRING "$PACKAGE_STRING"
1848 _ACEOF
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852 _ACEOF
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_URL "$PACKAGE_URL"
1856 _ACEOF
1857
1858
1859 # Let the site file select an alternate cache file if it wants to.
1860 # Prefer an explicitly selected file to automatically selected ones.
1861 ac_site_file1=NONE
1862 ac_site_file2=NONE
1863 if test -n "$CONFIG_SITE"; then
1864 ac_site_file1=$CONFIG_SITE
1865 elif test "x$prefix" != xNONE; then
1866 ac_site_file1=$prefix/share/config.site
1867 ac_site_file2=$prefix/etc/config.site
1868 else
1869 ac_site_file1=$ac_default_prefix/share/config.site
1870 ac_site_file2=$ac_default_prefix/etc/config.site
1871 fi
1872 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1873 do
1874 test "x$ac_site_file" = xNONE && continue
1875 if test -r "$ac_site_file"; then
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1877 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1878 sed 's/^/| /' "$ac_site_file" >&5
1879 . "$ac_site_file"
1880 fi
1881 done
1882
1883 if test -r "$cache_file"; then
1884 # Some versions of bash will fail to source /dev/null (special
1885 # files actually), so we avoid doing that.
1886 if test -f "$cache_file"; then
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1888 $as_echo "$as_me: loading cache $cache_file" >&6;}
1889 case $cache_file in
1890 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891 *) . "./$cache_file";;
1892 esac
1893 fi
1894 else
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1896 $as_echo "$as_me: creating cache $cache_file" >&6;}
1897 >$cache_file
1898 fi
1899
1900 # Check that the precious variables saved in the cache have kept the same
1901 # value.
1902 ac_cache_corrupted=false
1903 for ac_var in $ac_precious_vars; do
1904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1905 eval ac_new_set=\$ac_env_${ac_var}_set
1906 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1907 eval ac_new_val=\$ac_env_${ac_var}_value
1908 case $ac_old_set,$ac_new_set in
1909 set,)
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1911 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1912 ac_cache_corrupted=: ;;
1913 ,set)
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1915 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1916 ac_cache_corrupted=: ;;
1917 ,);;
1918 *)
1919 if test "x$ac_old_val" != "x$ac_new_val"; then
1920 # differences in whitespace do not lead to failure.
1921 ac_old_val_w=`echo x $ac_old_val`
1922 ac_new_val_w=`echo x $ac_new_val`
1923 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1925 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1926 ac_cache_corrupted=:
1927 else
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1929 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1930 eval $ac_var=\$ac_old_val
1931 fi
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1933 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1935 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1936 fi;;
1937 esac
1938 # Pass precious variables to config.status.
1939 if test "$ac_new_set" = set; then
1940 case $ac_new_val in
1941 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1942 *) ac_arg=$ac_var=$ac_new_val ;;
1943 esac
1944 case " $ac_configure_args " in
1945 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1946 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1947 esac
1948 fi
1949 done
1950 if $ac_cache_corrupted; then
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1954 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1955 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1956 fi
1957 ## -------------------- ##
1958 ## Main body of script. ##
1959 ## -------------------- ##
1960
1961 ac_ext=c
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966
1967
1968
1969
1970
1971
1972 ac_aux_dir=
1973 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1974 for ac_t in install-sh install.sh shtool; do
1975 if test -f "$ac_dir/$ac_t"; then
1976 ac_aux_dir=$ac_dir
1977 ac_install_sh="$ac_aux_dir/$ac_t -c"
1978 break 2
1979 fi
1980 done
1981 done
1982 if test -z "$ac_aux_dir"; then
1983 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1984 fi
1985
1986 # These three variables are undocumented and unsupported,
1987 # and are intended to be withdrawn in a future Autoconf release.
1988 # They can cause serious problems if a builder's source tree is in a directory
1989 # whose full name contains unusual characters.
1990 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1991 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1992 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1993
1994
1995 # Make sure we can run config.sub.
1996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1997 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1998
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2000 $as_echo_n "checking build system type... " >&6; }
2001 if test "${ac_cv_build+set}" = set; then :
2002 $as_echo_n "(cached) " >&6
2003 else
2004 ac_build_alias=$build_alias
2005 test "x$ac_build_alias" = x &&
2006 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2007 test "x$ac_build_alias" = x &&
2008 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2009 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2010 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2011
2012 fi
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2014 $as_echo "$ac_cv_build" >&6; }
2015 case $ac_cv_build in
2016 *-*-*) ;;
2017 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2018 esac
2019 build=$ac_cv_build
2020 ac_save_IFS=$IFS; IFS='-'
2021 set x $ac_cv_build
2022 shift
2023 build_cpu=$1
2024 build_vendor=$2
2025 shift; shift
2026 # Remember, the first character of IFS is used to create $*,
2027 # except with old shells:
2028 build_os=$*
2029 IFS=$ac_save_IFS
2030 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2031
2032
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2034 $as_echo_n "checking host system type... " >&6; }
2035 if test "${ac_cv_host+set}" = set; then :
2036 $as_echo_n "(cached) " >&6
2037 else
2038 if test "x$host_alias" = x; then
2039 ac_cv_host=$ac_cv_build
2040 else
2041 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2042 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2043 fi
2044
2045 fi
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2047 $as_echo "$ac_cv_host" >&6; }
2048 case $ac_cv_host in
2049 *-*-*) ;;
2050 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2051 esac
2052 host=$ac_cv_host
2053 ac_save_IFS=$IFS; IFS='-'
2054 set x $ac_cv_host
2055 shift
2056 host_cpu=$1
2057 host_vendor=$2
2058 shift; shift
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2061 host_os=$*
2062 IFS=$ac_save_IFS
2063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2064
2065
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2067 $as_echo_n "checking target system type... " >&6; }
2068 if test "${ac_cv_target+set}" = set; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 if test "x$target_alias" = x; then
2072 ac_cv_target=$ac_cv_host
2073 else
2074 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2075 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2076 fi
2077
2078 fi
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2080 $as_echo "$ac_cv_target" >&6; }
2081 case $ac_cv_target in
2082 *-*-*) ;;
2083 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2084 esac
2085 target=$ac_cv_target
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_target
2088 shift
2089 target_cpu=$1
2090 target_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 target_os=$*
2095 IFS=$ac_save_IFS
2096 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2097
2098
2099 # The aliases save the names the user supplied, while $host etc.
2100 # will get canonicalized.
2101 test -n "$target_alias" &&
2102 test "$program_prefix$program_suffix$program_transform_name" = \
2103 NONENONEs,x,x, &&
2104 program_prefix=${target_alias}-
2105
2106 case ${build_alias} in
2107 "") build_noncanonical=${build} ;;
2108 *) build_noncanonical=${build_alias} ;;
2109 esac
2110
2111 case ${host_alias} in
2112 "") host_noncanonical=${build_noncanonical} ;;
2113 *) host_noncanonical=${host_alias} ;;
2114 esac
2115
2116 case ${target_alias} in
2117 "") target_noncanonical=${host_noncanonical} ;;
2118 *) target_noncanonical=${target_alias} ;;
2119 esac
2120
2121
2122
2123
2124 # Check for the 'make' the user wants to use.
2125 for ac_prog in make
2126 do
2127 # Extract the first word of "$ac_prog", so it can be a program name with args.
2128 set dummy $ac_prog; ac_word=$2
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2130 $as_echo_n "checking for $ac_word... " >&6; }
2131 if test "${ac_cv_prog_MAKE+set}" = set; then :
2132 $as_echo_n "(cached) " >&6
2133 else
2134 if test -n "$MAKE"; then
2135 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2144 ac_cv_prog_MAKE="$ac_prog"
2145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2147 fi
2148 done
2149 done
2150 IFS=$as_save_IFS
2151
2152 fi
2153 fi
2154 MAKE=$ac_cv_prog_MAKE
2155 if test -n "$MAKE"; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
2157 $as_echo "$MAKE" >&6; }
2158 else
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2160 $as_echo "no" >&6; }
2161 fi
2162
2163
2164 test -n "$MAKE" && break
2165 done
2166
2167 MAKE_IS_GNU=
2168 case "`$MAKE --version 2>&1 | sed 1q`" in
2169 *GNU*)
2170 MAKE_IS_GNU=yes
2171 ;;
2172 esac
2173
2174
2175 if test "$MAKE_IS_GNU" = yes; then
2176 GMAKE_TRUE=
2177 GMAKE_FALSE='#'
2178 else
2179 GMAKE_TRUE='#'
2180 GMAKE_FALSE=
2181 fi
2182
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2184 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2185 set x ${MAKE-make}
2186 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2187 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 $as_echo_n "(cached) " >&6
2189 else
2190 cat >conftest.make <<\_ACEOF
2191 SHELL = /bin/sh
2192 all:
2193 @echo '@@@%%%=$(MAKE)=@@@%%%'
2194 _ACEOF
2195 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2196 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2197 *@@@%%%=?*=@@@%%%*)
2198 eval ac_cv_prog_make_${ac_make}_set=yes;;
2199 *)
2200 eval ac_cv_prog_make_${ac_make}_set=no;;
2201 esac
2202 rm -f conftest.make
2203 fi
2204 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2206 $as_echo "yes" >&6; }
2207 SET_MAKE=
2208 else
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2210 $as_echo "no" >&6; }
2211 SET_MAKE="MAKE=${MAKE-make}"
2212 fi
2213
2214
2215 # Enable gdbtk.
2216 # Check whether --enable-gdbtk was given.
2217 if test "${enable_gdbtk+set}" = set; then :
2218 enableval=$enable_gdbtk;
2219 else
2220 if test -d $srcdir/../gdbtk && test -d $srcdir/gdb.gdbtk; then
2221 enable_gdbtk=yes
2222 else
2223 enable_gdbtk=no
2224 fi
2225 fi
2226
2227 # We unconditionally disable gdbtk tests on selected platforms.
2228 case $host_os in
2229 go32* | windows*)
2230 enable_gdbtk=no ;;
2231 esac
2232
2233 # Add gdbtk tests when appropriate.
2234 if test $enable_gdbtk = yes; then
2235
2236
2237 subdirs="$subdirs gdb.gdbtk"
2238
2239 fi
2240
2241 # Enable shared libraries.
2242 # Check whether --enable-shared was given.
2243 if test "${enable_shared+set}" = set; then :
2244 enableval=$enable_shared;
2245 else
2246 enable_shared=yes
2247 fi
2248
2249
2250 # If we have shared libraries, try to set RPATH_ENVVAR reasonably,
2251 # such that we can find the shared libraries in the build tree.
2252 if test $enable_shared = no; then
2253 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
2254 # platform.
2255 RPATH_ENVVAR=RPATH_ENVVAR
2256 else
2257 # The variable `LD_LIBRARY_PATH' is used on most platforms.
2258 RPATH_ENVVAR=LD_LIBRARY_PATH
2259 # The following exceptions are taken from Libtool 1.4.3.
2260 case $host_os in
2261 aix*)
2262 if test $host_cpu != ia64; then
2263 RPATH_ENVVAR=LIBPATH
2264 fi ;;
2265 darwin* | rhapsody*)
2266 RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
2267 hpux*)
2268 RPATH_ENVVAR=SHLIB_PATH ;;
2269 esac
2270 fi
2271
2272
2273 ac_ext=c
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278 if test -n "$ac_tool_prefix"; then
2279 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2282 $as_echo_n "checking for $ac_word... " >&6; }
2283 if test "${ac_cv_prog_CC+set}" = set; then :
2284 $as_echo_n "(cached) " >&6
2285 else
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2299 fi
2300 done
2301 done
2302 IFS=$as_save_IFS
2303
2304 fi
2305 fi
2306 CC=$ac_cv_prog_CC
2307 if test -n "$CC"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2309 $as_echo "$CC" >&6; }
2310 else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2312 $as_echo "no" >&6; }
2313 fi
2314
2315
2316 fi
2317 if test -z "$ac_cv_prog_CC"; then
2318 ac_ct_CC=$CC
2319 # Extract the first word of "gcc", so it can be a program name with args.
2320 set dummy gcc; ac_word=$2
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2324 $as_echo_n "(cached) " >&6
2325 else
2326 if test -n "$ac_ct_CC"; then
2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336 ac_cv_prog_ac_ct_CC="gcc"
2337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340 done
2341 done
2342 IFS=$as_save_IFS
2343
2344 fi
2345 fi
2346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2347 if test -n "$ac_ct_CC"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2349 $as_echo "$ac_ct_CC" >&6; }
2350 else
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2352 $as_echo "no" >&6; }
2353 fi
2354
2355 if test "x$ac_ct_CC" = x; then
2356 CC=""
2357 else
2358 case $cross_compiling:$ac_tool_warned in
2359 yes:)
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2362 ac_tool_warned=yes ;;
2363 esac
2364 CC=$ac_ct_CC
2365 fi
2366 else
2367 CC="$ac_cv_prog_CC"
2368 fi
2369
2370 if test -z "$CC"; then
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}cc; ac_word=$2
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if test "${ac_cv_prog_CC+set}" = set; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_CC="${ac_tool_prefix}cc"
2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2392 fi
2393 done
2394 done
2395 IFS=$as_save_IFS
2396
2397 fi
2398 fi
2399 CC=$ac_cv_prog_CC
2400 if test -n "$CC"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2402 $as_echo "$CC" >&6; }
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405 $as_echo "no" >&6; }
2406 fi
2407
2408
2409 fi
2410 fi
2411 if test -z "$CC"; then
2412 # Extract the first word of "cc", so it can be a program name with args.
2413 set dummy cc; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 else
2422 ac_prog_rejected=no
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2431 ac_prog_rejected=yes
2432 continue
2433 fi
2434 ac_cv_prog_CC="cc"
2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2437 fi
2438 done
2439 done
2440 IFS=$as_save_IFS
2441
2442 if test $ac_prog_rejected = yes; then
2443 # We found a bogon in the path, so make sure we never use it.
2444 set dummy $ac_cv_prog_CC
2445 shift
2446 if test $# != 0; then
2447 # We chose a different compiler from the bogus one.
2448 # However, it has the same basename, so the bogon will be chosen
2449 # first if we set CC to just the basename; use the full file name.
2450 shift
2451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2452 fi
2453 fi
2454 fi
2455 fi
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2459 $as_echo "$CC" >&6; }
2460 else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2463 fi
2464
2465
2466 fi
2467 if test -z "$CC"; then
2468 if test -n "$ac_tool_prefix"; then
2469 for ac_prog in cl.exe
2470 do
2471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if test "${ac_cv_prog_CC+set}" = set; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 fi
2497 fi
2498 CC=$ac_cv_prog_CC
2499 if test -n "$CC"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501 $as_echo "$CC" >&6; }
2502 else
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504 $as_echo "no" >&6; }
2505 fi
2506
2507
2508 test -n "$CC" && break
2509 done
2510 fi
2511 if test -z "$CC"; then
2512 ac_ct_CC=$CC
2513 for ac_prog in cl.exe
2514 do
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$ac_ct_CC"; then
2523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532 ac_cv_prog_ac_ct_CC="$ac_prog"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2545 $as_echo "$ac_ct_CC" >&6; }
2546 else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551
2552 test -n "$ac_ct_CC" && break
2553 done
2554
2555 if test "x$ac_ct_CC" = x; then
2556 CC=""
2557 else
2558 case $cross_compiling:$ac_tool_warned in
2559 yes:)
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564 CC=$ac_ct_CC
2565 fi
2566 fi
2567
2568 fi
2569
2570
2571 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 as_fn_error "no acceptable C compiler found in \$PATH
2574 See \`config.log' for more details." "$LINENO" 5; }
2575
2576 # Provide some information about the compiler.
2577 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2578 set X $ac_compile
2579 ac_compiler=$2
2580 for ac_option in --version -v -V -qversion; do
2581 { { ac_try="$ac_compiler $ac_option >&5"
2582 case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585 esac
2586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2587 $as_echo "$ac_try_echo"; } >&5
2588 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2589 ac_status=$?
2590 if test -s conftest.err; then
2591 sed '10a\
2592 ... rest of stderr output deleted ...
2593 10q' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2595 rm -f conftest.er1 conftest.err
2596 fi
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; }
2599 done
2600
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2603
2604 int
2605 main ()
2606 {
2607
2608 ;
2609 return 0;
2610 }
2611 _ACEOF
2612 ac_clean_files_save=$ac_clean_files
2613 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2614 # Try to create an executable without -o first, disregard a.out.
2615 # It will help us diagnose broken compilers, and finding out an intuition
2616 # of exeext.
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2618 $as_echo_n "checking for C compiler default output file name... " >&6; }
2619 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2620
2621 # The possible output files:
2622 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2623
2624 ac_rmfiles=
2625 for ac_file in $ac_files
2626 do
2627 case $ac_file in
2628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2629 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2630 esac
2631 done
2632 rm -f $ac_rmfiles
2633
2634 if { { ac_try="$ac_link_default"
2635 case "(($ac_try" in
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2638 esac
2639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2640 $as_echo "$ac_try_echo"; } >&5
2641 (eval "$ac_link_default") 2>&5
2642 ac_status=$?
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; }; then :
2645 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2646 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2647 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2648 # so that the user can short-circuit this test for compilers unknown to
2649 # Autoconf.
2650 for ac_file in $ac_files ''
2651 do
2652 test -f "$ac_file" || continue
2653 case $ac_file in
2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2655 ;;
2656 [ab].out )
2657 # We found the default executable, but exeext='' is most
2658 # certainly right.
2659 break;;
2660 *.* )
2661 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2662 then :; else
2663 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2664 fi
2665 # We set ac_cv_exeext here because the later test for it is not
2666 # safe: cross compilers may not add the suffix if given an `-o'
2667 # argument, so we may need to know it at that point already.
2668 # Even if this section looks crufty: it has the advantage of
2669 # actually working.
2670 break;;
2671 * )
2672 break;;
2673 esac
2674 done
2675 test "$ac_cv_exeext" = no && ac_cv_exeext=
2676
2677 else
2678 ac_file=''
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2681 $as_echo "$ac_file" >&6; }
2682 if test -z "$ac_file"; then :
2683 $as_echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 { as_fn_set_status 77
2689 as_fn_error "C compiler cannot create executables
2690 See \`config.log' for more details." "$LINENO" 5; }; }
2691 fi
2692 ac_exeext=$ac_cv_exeext
2693
2694 # Check that the compiler produces executables we can run. If not, either
2695 # the compiler is broken, or we cross compile.
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2697 $as_echo_n "checking whether the C compiler works... " >&6; }
2698 # If not cross compiling, check that we can run a simple program.
2699 if test "$cross_compiling" != yes; then
2700 if { ac_try='./$ac_file'
2701 { { case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704 esac
2705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2706 $as_echo "$ac_try_echo"; } >&5
2707 (eval "$ac_try") 2>&5
2708 ac_status=$?
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; }; }; then
2711 cross_compiling=no
2712 else
2713 if test "$cross_compiling" = maybe; then
2714 cross_compiling=yes
2715 else
2716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718 as_fn_error "cannot run C compiled programs.
2719 If you meant to cross compile, use \`--host'.
2720 See \`config.log' for more details." "$LINENO" 5; }
2721 fi
2722 fi
2723 fi
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2725 $as_echo "yes" >&6; }
2726
2727 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2728 ac_clean_files=$ac_clean_files_save
2729 # Check that the compiler produces executables we can run. If not, either
2730 # the compiler is broken, or we cross compile.
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2732 $as_echo_n "checking whether we are cross compiling... " >&6; }
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2734 $as_echo "$cross_compiling" >&6; }
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2737 $as_echo_n "checking for suffix of executables... " >&6; }
2738 if { { ac_try="$ac_link"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744 $as_echo "$ac_try_echo"; } >&5
2745 (eval "$ac_link") 2>&5
2746 ac_status=$?
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }; then :
2749 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2750 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2751 # work properly (i.e., refer to `conftest.exe'), while it won't with
2752 # `rm'.
2753 for ac_file in conftest.exe conftest conftest.*; do
2754 test -f "$ac_file" || continue
2755 case $ac_file in
2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758 break;;
2759 * ) break;;
2760 esac
2761 done
2762 else
2763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765 as_fn_error "cannot compute suffix of executables: cannot compile and link
2766 See \`config.log' for more details." "$LINENO" 5; }
2767 fi
2768 rm -f conftest$ac_cv_exeext
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2770 $as_echo "$ac_cv_exeext" >&6; }
2771
2772 rm -f conftest.$ac_ext
2773 EXEEXT=$ac_cv_exeext
2774 ac_exeext=$EXEEXT
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2776 $as_echo_n "checking for suffix of object files... " >&6; }
2777 if test "${ac_cv_objext+set}" = set; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781 /* end confdefs.h. */
2782
2783 int
2784 main ()
2785 {
2786
2787 ;
2788 return 0;
2789 }
2790 _ACEOF
2791 rm -f conftest.o conftest.obj
2792 if { { ac_try="$ac_compile"
2793 case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796 esac
2797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2798 $as_echo "$ac_try_echo"; } >&5
2799 (eval "$ac_compile") 2>&5
2800 ac_status=$?
2801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2802 test $ac_status = 0; }; then :
2803 for ac_file in conftest.o conftest.obj conftest.*; do
2804 test -f "$ac_file" || continue;
2805 case $ac_file in
2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2808 break;;
2809 esac
2810 done
2811 else
2812 $as_echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817 as_fn_error "cannot compute suffix of object files: cannot compile
2818 See \`config.log' for more details." "$LINENO" 5; }
2819 fi
2820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2821 fi
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2823 $as_echo "$ac_cv_objext" >&6; }
2824 OBJEXT=$ac_cv_objext
2825 ac_objext=$OBJEXT
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2827 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2828 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h. */
2833
2834 int
2835 main ()
2836 {
2837 #ifndef __GNUC__
2838 choke me
2839 #endif
2840
2841 ;
2842 return 0;
2843 }
2844 _ACEOF
2845 if ac_fn_c_try_compile "$LINENO"; then :
2846 ac_compiler_gnu=yes
2847 else
2848 ac_compiler_gnu=no
2849 fi
2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2852
2853 fi
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2855 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2856 if test $ac_compiler_gnu = yes; then
2857 GCC=yes
2858 else
2859 GCC=
2860 fi
2861 ac_test_CFLAGS=${CFLAGS+set}
2862 ac_save_CFLAGS=$CFLAGS
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2864 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2865 if test "${ac_cv_prog_cc_g+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 ac_save_c_werror_flag=$ac_c_werror_flag
2869 ac_c_werror_flag=yes
2870 ac_cv_prog_cc_g=no
2871 CFLAGS="-g"
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2874
2875 int
2876 main ()
2877 {
2878
2879 ;
2880 return 0;
2881 }
2882 _ACEOF
2883 if ac_fn_c_try_compile "$LINENO"; then :
2884 ac_cv_prog_cc_g=yes
2885 else
2886 CFLAGS=""
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h. */
2889
2890 int
2891 main ()
2892 {
2893
2894 ;
2895 return 0;
2896 }
2897 _ACEOF
2898 if ac_fn_c_try_compile "$LINENO"; then :
2899
2900 else
2901 ac_c_werror_flag=$ac_save_c_werror_flag
2902 CFLAGS="-g"
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904 /* end confdefs.h. */
2905
2906 int
2907 main ()
2908 {
2909
2910 ;
2911 return 0;
2912 }
2913 _ACEOF
2914 if ac_fn_c_try_compile "$LINENO"; then :
2915 ac_cv_prog_cc_g=yes
2916 fi
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 fi
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 fi
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ac_c_werror_flag=$ac_save_c_werror_flag
2923 fi
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2925 $as_echo "$ac_cv_prog_cc_g" >&6; }
2926 if test "$ac_test_CFLAGS" = set; then
2927 CFLAGS=$ac_save_CFLAGS
2928 elif test $ac_cv_prog_cc_g = yes; then
2929 if test "$GCC" = yes; then
2930 CFLAGS="-g -O2"
2931 else
2932 CFLAGS="-g"
2933 fi
2934 else
2935 if test "$GCC" = yes; then
2936 CFLAGS="-O2"
2937 else
2938 CFLAGS=
2939 fi
2940 fi
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2942 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2943 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2944 $as_echo_n "(cached) " >&6
2945 else
2946 ac_cv_prog_cc_c89=no
2947 ac_save_CC=$CC
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2950 #include <stdarg.h>
2951 #include <stdio.h>
2952 #include <sys/types.h>
2953 #include <sys/stat.h>
2954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2955 struct buf { int x; };
2956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2957 static char *e (p, i)
2958 char **p;
2959 int i;
2960 {
2961 return p[i];
2962 }
2963 static char *f (char * (*g) (char **, int), char **p, ...)
2964 {
2965 char *s;
2966 va_list v;
2967 va_start (v,p);
2968 s = g (p, va_arg (v,int));
2969 va_end (v);
2970 return s;
2971 }
2972
2973 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2974 function prototypes and stuff, but not '\xHH' hex character constants.
2975 These don't provoke an error unfortunately, instead are silently treated
2976 as 'x'. The following induces an error, until -std is added to get
2977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2978 array size at least. It's necessary to write '\x00'==0 to get something
2979 that's true only with -std. */
2980 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2981
2982 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2983 inside strings and character constants. */
2984 #define FOO(x) 'x'
2985 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2986
2987 int test (int i, double x);
2988 struct s1 {int (*f) (int a);};
2989 struct s2 {int (*f) (double a);};
2990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991 int argc;
2992 char **argv;
2993 int
2994 main ()
2995 {
2996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2997 ;
2998 return 0;
2999 }
3000 _ACEOF
3001 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3003 do
3004 CC="$ac_save_CC $ac_arg"
3005 if ac_fn_c_try_compile "$LINENO"; then :
3006 ac_cv_prog_cc_c89=$ac_arg
3007 fi
3008 rm -f core conftest.err conftest.$ac_objext
3009 test "x$ac_cv_prog_cc_c89" != "xno" && break
3010 done
3011 rm -f conftest.$ac_ext
3012 CC=$ac_save_CC
3013
3014 fi
3015 # AC_CACHE_VAL
3016 case "x$ac_cv_prog_cc_c89" in
3017 x)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3019 $as_echo "none needed" >&6; } ;;
3020 xno)
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3022 $as_echo "unsupported" >&6; } ;;
3023 *)
3024 CC="$CC $ac_cv_prog_cc_c89"
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3026 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3027 esac
3028 if test "x$ac_cv_prog_cc_c89" != xno; then :
3029
3030 fi
3031
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038
3039 ac_ext=c
3040 ac_cpp='$CPP $CPPFLAGS'
3041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3045 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3046 # On Suns, sometimes $CPP names a directory.
3047 if test -n "$CPP" && test -d "$CPP"; then
3048 CPP=
3049 fi
3050 if test -z "$CPP"; then
3051 if test "${ac_cv_prog_CPP+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 # Double quotes because CPP needs to be expanded
3055 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3056 do
3057 ac_preproc_ok=false
3058 for ac_c_preproc_warn_flag in '' yes
3059 do
3060 # Use a header file that comes with gcc, so configuring glibc
3061 # with a fresh cross-compiler works.
3062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3063 # <limits.h> exists even on freestanding compilers.
3064 # On the NeXT, cc -E runs the code through the compiler's parser,
3065 # not just through cpp. "Syntax error" is here to catch this case.
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3068 #ifdef __STDC__
3069 # include <limits.h>
3070 #else
3071 # include <assert.h>
3072 #endif
3073 Syntax error
3074 _ACEOF
3075 if ac_fn_c_try_cpp "$LINENO"; then :
3076
3077 else
3078 # Broken: fails on valid input.
3079 continue
3080 fi
3081 rm -f conftest.err conftest.$ac_ext
3082
3083 # OK, works on sane cases. Now check whether nonexistent headers
3084 # can be detected and how.
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3087 #include <ac_nonexistent.h>
3088 _ACEOF
3089 if ac_fn_c_try_cpp "$LINENO"; then :
3090 # Broken: success on invalid input.
3091 continue
3092 else
3093 # Passes both tests.
3094 ac_preproc_ok=:
3095 break
3096 fi
3097 rm -f conftest.err conftest.$ac_ext
3098
3099 done
3100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3101 rm -f conftest.err conftest.$ac_ext
3102 if $ac_preproc_ok; then :
3103 break
3104 fi
3105
3106 done
3107 ac_cv_prog_CPP=$CPP
3108
3109 fi
3110 CPP=$ac_cv_prog_CPP
3111 else
3112 ac_cv_prog_CPP=$CPP
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3115 $as_echo "$CPP" >&6; }
3116 ac_preproc_ok=false
3117 for ac_c_preproc_warn_flag in '' yes
3118 do
3119 # Use a header file that comes with gcc, so configuring glibc
3120 # with a fresh cross-compiler works.
3121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3122 # <limits.h> exists even on freestanding compilers.
3123 # On the NeXT, cc -E runs the code through the compiler's parser,
3124 # not just through cpp. "Syntax error" is here to catch this case.
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3127 #ifdef __STDC__
3128 # include <limits.h>
3129 #else
3130 # include <assert.h>
3131 #endif
3132 Syntax error
3133 _ACEOF
3134 if ac_fn_c_try_cpp "$LINENO"; then :
3135
3136 else
3137 # Broken: fails on valid input.
3138 continue
3139 fi
3140 rm -f conftest.err conftest.$ac_ext
3141
3142 # OK, works on sane cases. Now check whether nonexistent headers
3143 # can be detected and how.
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3146 #include <ac_nonexistent.h>
3147 _ACEOF
3148 if ac_fn_c_try_cpp "$LINENO"; then :
3149 # Broken: success on invalid input.
3150 continue
3151 else
3152 # Passes both tests.
3153 ac_preproc_ok=:
3154 break
3155 fi
3156 rm -f conftest.err conftest.$ac_ext
3157
3158 done
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then :
3162
3163 else
3164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." "$LINENO" 5; }
3168 fi
3169
3170 ac_ext=c
3171 ac_cpp='$CPP $CPPFLAGS'
3172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175
3176
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3178 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3179 if test "${ac_cv_path_GREP+set}" = set; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 if test -z "$GREP"; then
3183 ac_path_GREP_found=false
3184 # Loop through the user's path and test for each of PROGNAME-LIST
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3187 do
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_prog in grep ggrep; do
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3193 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3194 # Check for GNU ac_path_GREP and select it if it is found.
3195 # Check for GNU $ac_path_GREP
3196 case `"$ac_path_GREP" --version 2>&1` in
3197 *GNU*)
3198 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3199 *)
3200 ac_count=0
3201 $as_echo_n 0123456789 >"conftest.in"
3202 while :
3203 do
3204 cat "conftest.in" "conftest.in" >"conftest.tmp"
3205 mv "conftest.tmp" "conftest.in"
3206 cp "conftest.in" "conftest.nl"
3207 $as_echo 'GREP' >> "conftest.nl"
3208 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3210 as_fn_arith $ac_count + 1 && ac_count=$as_val
3211 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3212 # Best one so far, save it but keep looking for a better one
3213 ac_cv_path_GREP="$ac_path_GREP"
3214 ac_path_GREP_max=$ac_count
3215 fi
3216 # 10*(2^10) chars as input seems more than enough
3217 test $ac_count -gt 10 && break
3218 done
3219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3220 esac
3221
3222 $ac_path_GREP_found && break 3
3223 done
3224 done
3225 done
3226 IFS=$as_save_IFS
3227 if test -z "$ac_cv_path_GREP"; then
3228 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3229 fi
3230 else
3231 ac_cv_path_GREP=$GREP
3232 fi
3233
3234 fi
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3236 $as_echo "$ac_cv_path_GREP" >&6; }
3237 GREP="$ac_cv_path_GREP"
3238
3239
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3241 $as_echo_n "checking for egrep... " >&6; }
3242 if test "${ac_cv_path_EGREP+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3246 then ac_cv_path_EGREP="$GREP -E"
3247 else
3248 if test -z "$EGREP"; then
3249 ac_path_EGREP_found=false
3250 # Loop through the user's path and test for each of PROGNAME-LIST
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3253 do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_prog in egrep; do
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3259 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3260 # Check for GNU ac_path_EGREP and select it if it is found.
3261 # Check for GNU $ac_path_EGREP
3262 case `"$ac_path_EGREP" --version 2>&1` in
3263 *GNU*)
3264 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3265 *)
3266 ac_count=0
3267 $as_echo_n 0123456789 >"conftest.in"
3268 while :
3269 do
3270 cat "conftest.in" "conftest.in" >"conftest.tmp"
3271 mv "conftest.tmp" "conftest.in"
3272 cp "conftest.in" "conftest.nl"
3273 $as_echo 'EGREP' >> "conftest.nl"
3274 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3276 as_fn_arith $ac_count + 1 && ac_count=$as_val
3277 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3278 # Best one so far, save it but keep looking for a better one
3279 ac_cv_path_EGREP="$ac_path_EGREP"
3280 ac_path_EGREP_max=$ac_count
3281 fi
3282 # 10*(2^10) chars as input seems more than enough
3283 test $ac_count -gt 10 && break
3284 done
3285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3286 esac
3287
3288 $ac_path_EGREP_found && break 3
3289 done
3290 done
3291 done
3292 IFS=$as_save_IFS
3293 if test -z "$ac_cv_path_EGREP"; then
3294 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3295 fi
3296 else
3297 ac_cv_path_EGREP=$EGREP
3298 fi
3299
3300 fi
3301 fi
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3303 $as_echo "$ac_cv_path_EGREP" >&6; }
3304 EGREP="$ac_cv_path_EGREP"
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3308 $as_echo_n "checking for ANSI C header files... " >&6; }
3309 if test "${ac_cv_header_stdc+set}" = set; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3314 #include <stdlib.h>
3315 #include <stdarg.h>
3316 #include <string.h>
3317 #include <float.h>
3318
3319 int
3320 main ()
3321 {
3322
3323 ;
3324 return 0;
3325 }
3326 _ACEOF
3327 if ac_fn_c_try_compile "$LINENO"; then :
3328 ac_cv_header_stdc=yes
3329 else
3330 ac_cv_header_stdc=no
3331 fi
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333
3334 if test $ac_cv_header_stdc = yes; then
3335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338 #include <string.h>
3339
3340 _ACEOF
3341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3342 $EGREP "memchr" >/dev/null 2>&1; then :
3343
3344 else
3345 ac_cv_header_stdc=no
3346 fi
3347 rm -f conftest*
3348
3349 fi
3350
3351 if test $ac_cv_header_stdc = yes; then
3352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355 #include <stdlib.h>
3356
3357 _ACEOF
3358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3359 $EGREP "free" >/dev/null 2>&1; then :
3360
3361 else
3362 ac_cv_header_stdc=no
3363 fi
3364 rm -f conftest*
3365
3366 fi
3367
3368 if test $ac_cv_header_stdc = yes; then
3369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3370 if test "$cross_compiling" = yes; then :
3371 :
3372 else
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375 #include <ctype.h>
3376 #include <stdlib.h>
3377 #if ((' ' & 0x0FF) == 0x020)
3378 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3379 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3380 #else
3381 # define ISLOWER(c) \
3382 (('a' <= (c) && (c) <= 'i') \
3383 || ('j' <= (c) && (c) <= 'r') \
3384 || ('s' <= (c) && (c) <= 'z'))
3385 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3386 #endif
3387
3388 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3389 int
3390 main ()
3391 {
3392 int i;
3393 for (i = 0; i < 256; i++)
3394 if (XOR (islower (i), ISLOWER (i))
3395 || toupper (i) != TOUPPER (i))
3396 return 2;
3397 return 0;
3398 }
3399 _ACEOF
3400 if ac_fn_c_try_run "$LINENO"; then :
3401
3402 else
3403 ac_cv_header_stdc=no
3404 fi
3405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3406 conftest.$ac_objext conftest.beam conftest.$ac_ext
3407 fi
3408
3409 fi
3410 fi
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3412 $as_echo "$ac_cv_header_stdc" >&6; }
3413 if test $ac_cv_header_stdc = yes; then
3414
3415 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3416
3417 fi
3418
3419 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3420 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3421 inttypes.h stdint.h unistd.h
3422 do :
3423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3424 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3425 "
3426 eval as_val=\$$as_ac_Header
3427 if test "x$as_val" = x""yes; then :
3428 cat >>confdefs.h <<_ACEOF
3429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3430 _ACEOF
3431
3432 fi
3433
3434 done
3435
3436
3437 for ac_header in pthread.h
3438 do :
3439 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
3440 if test "x$ac_cv_header_pthread_h" = x""yes; then :
3441 cat >>confdefs.h <<_ACEOF
3442 #define HAVE_PTHREAD_H 1
3443 _ACEOF
3444
3445 fi
3446
3447 done
3448
3449
3450
3451
3452 if test "${build}" = "${host}" -a "${host}" = "${target}"; then
3453 case "${host}" in
3454 *gnu*)
3455 EXTRA_RULES=read1
3456 ;;
3457 esac
3458 fi
3459
3460
3461 ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.dlang/Makefile gdb.fortran/Makefile gdb.gdb/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile gdb.hp/gdb.defects/Makefile gdb.guile/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile"
3462
3463 cat >confcache <<\_ACEOF
3464 # This file is a shell script that caches the results of configure
3465 # tests run on this system so they can be shared between configure
3466 # scripts and configure runs, see configure's option --config-cache.
3467 # It is not useful on other systems. If it contains results you don't
3468 # want to keep, you may remove or edit it.
3469 #
3470 # config.status only pays attention to the cache file if you give it
3471 # the --recheck option to rerun configure.
3472 #
3473 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3474 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3475 # following values.
3476
3477 _ACEOF
3478
3479 # The following way of writing the cache mishandles newlines in values,
3480 # but we know of no workaround that is simple, portable, and efficient.
3481 # So, we kill variables containing newlines.
3482 # Ultrix sh set writes to stderr and can't be redirected directly,
3483 # and sets the high bit in the cache file unless we assign to the vars.
3484 (
3485 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3486 eval ac_val=\$$ac_var
3487 case $ac_val in #(
3488 *${as_nl}*)
3489 case $ac_var in #(
3490 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3491 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3492 esac
3493 case $ac_var in #(
3494 _ | IFS | as_nl) ;; #(
3495 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3496 *) { eval $ac_var=; unset $ac_var;} ;;
3497 esac ;;
3498 esac
3499 done
3500
3501 (set) 2>&1 |
3502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3503 *${as_nl}ac_space=\ *)
3504 # `set' does not quote correctly, so add quotes: double-quote
3505 # substitution turns \\\\ into \\, and sed turns \\ into \.
3506 sed -n \
3507 "s/'/'\\\\''/g;
3508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3509 ;; #(
3510 *)
3511 # `set' quotes correctly as required by POSIX, so do not add quotes.
3512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3513 ;;
3514 esac |
3515 sort
3516 ) |
3517 sed '
3518 /^ac_cv_env_/b end
3519 t clear
3520 :clear
3521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3522 t end
3523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3524 :end' >>confcache
3525 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3526 if test -w "$cache_file"; then
3527 test "x$cache_file" != "x/dev/null" &&
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3529 $as_echo "$as_me: updating cache $cache_file" >&6;}
3530 cat confcache >$cache_file
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3533 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3534 fi
3535 fi
3536 rm -f confcache
3537
3538 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3539 # Let make expand exec_prefix.
3540 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3541
3542 # Transform confdefs.h into DEFS.
3543 # Protect against shell expansion while executing Makefile rules.
3544 # Protect against Makefile macro expansion.
3545 #
3546 # If the first sed substitution is executed (which looks for macros that
3547 # take arguments), then branch to the quote section. Otherwise,
3548 # look for a macro that doesn't take arguments.
3549 ac_script='
3550 :mline
3551 /\\$/{
3552 N
3553 s,\\\n,,
3554 b mline
3555 }
3556 t clear
3557 :clear
3558 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
3559 t quote
3560 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
3561 t quote
3562 b any
3563 :quote
3564 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3565 s/\[/\\&/g
3566 s/\]/\\&/g
3567 s/\$/$$/g
3568 H
3569 :any
3570 ${
3571 g
3572 s/^\n//
3573 s/\n/ /g
3574 p
3575 }
3576 '
3577 DEFS=`sed -n "$ac_script" confdefs.h`
3578
3579
3580 ac_libobjs=
3581 ac_ltlibobjs=
3582 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3583 # 1. Remove the extension, and $U if already installed.
3584 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3585 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3586 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3587 # will be set to the directory where LIBOBJS objects are built.
3588 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3589 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3590 done
3591 LIBOBJS=$ac_libobjs
3592
3593 LTLIBOBJS=$ac_ltlibobjs
3594
3595
3596 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
3597 as_fn_error "conditional \"GMAKE\" was never defined.
3598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3599 fi
3600
3601 : ${CONFIG_STATUS=./config.status}
3602 ac_write_fail=0
3603 ac_clean_files_save=$ac_clean_files
3604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3606 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3607 as_write_fail=0
3608 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3609 #! $SHELL
3610 # Generated by $as_me.
3611 # Run this file to recreate the current configuration.
3612 # Compiler output produced by configure, useful for debugging
3613 # configure, is in config.log if it exists.
3614
3615 debug=false
3616 ac_cs_recheck=false
3617 ac_cs_silent=false
3618
3619 SHELL=\${CONFIG_SHELL-$SHELL}
3620 export SHELL
3621 _ASEOF
3622 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3623 ## -------------------- ##
3624 ## M4sh Initialization. ##
3625 ## -------------------- ##
3626
3627 # Be more Bourne compatible
3628 DUALCASE=1; export DUALCASE # for MKS sh
3629 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3630 emulate sh
3631 NULLCMD=:
3632 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3633 # is contrary to our usage. Disable this feature.
3634 alias -g '${1+"$@"}'='"$@"'
3635 setopt NO_GLOB_SUBST
3636 else
3637 case `(set -o) 2>/dev/null` in #(
3638 *posix*) :
3639 set -o posix ;; #(
3640 *) :
3641 ;;
3642 esac
3643 fi
3644
3645
3646 as_nl='
3647 '
3648 export as_nl
3649 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3650 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3652 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3653 # Prefer a ksh shell builtin over an external printf program on Solaris,
3654 # but without wasting forks for bash or zsh.
3655 if test -z "$BASH_VERSION$ZSH_VERSION" \
3656 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3657 as_echo='print -r --'
3658 as_echo_n='print -rn --'
3659 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3660 as_echo='printf %s\n'
3661 as_echo_n='printf %s'
3662 else
3663 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3664 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3665 as_echo_n='/usr/ucb/echo -n'
3666 else
3667 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3668 as_echo_n_body='eval
3669 arg=$1;
3670 case $arg in #(
3671 *"$as_nl"*)
3672 expr "X$arg" : "X\\(.*\\)$as_nl";
3673 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3674 esac;
3675 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3676 '
3677 export as_echo_n_body
3678 as_echo_n='sh -c $as_echo_n_body as_echo'
3679 fi
3680 export as_echo_body
3681 as_echo='sh -c $as_echo_body as_echo'
3682 fi
3683
3684 # The user is always right.
3685 if test "${PATH_SEPARATOR+set}" != set; then
3686 PATH_SEPARATOR=:
3687 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3688 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3689 PATH_SEPARATOR=';'
3690 }
3691 fi
3692
3693
3694 # IFS
3695 # We need space, tab and new line, in precisely that order. Quoting is
3696 # there to prevent editors from complaining about space-tab.
3697 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3698 # splitting by setting IFS to empty value.)
3699 IFS=" "" $as_nl"
3700
3701 # Find who we are. Look in the path if we contain no directory separator.
3702 case $0 in #((
3703 *[\\/]* ) as_myself=$0 ;;
3704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3710 done
3711 IFS=$as_save_IFS
3712
3713 ;;
3714 esac
3715 # We did not find ourselves, most probably we were run as `sh COMMAND'
3716 # in which case we are not to be found in the path.
3717 if test "x$as_myself" = x; then
3718 as_myself=$0
3719 fi
3720 if test ! -f "$as_myself"; then
3721 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3722 exit 1
3723 fi
3724
3725 # Unset variables that we do not need and which cause bugs (e.g. in
3726 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3727 # suppresses any "Segmentation fault" message there. '((' could
3728 # trigger a bug in pdksh 5.2.14.
3729 for as_var in BASH_ENV ENV MAIL MAILPATH
3730 do eval test x\${$as_var+set} = xset \
3731 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3732 done
3733 PS1='$ '
3734 PS2='> '
3735 PS4='+ '
3736
3737 # NLS nuisances.
3738 LC_ALL=C
3739 export LC_ALL
3740 LANGUAGE=C
3741 export LANGUAGE
3742
3743 # CDPATH.
3744 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3745
3746
3747 # as_fn_error ERROR [LINENO LOG_FD]
3748 # ---------------------------------
3749 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3750 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3751 # script with status $?, using 1 if that was 0.
3752 as_fn_error ()
3753 {
3754 as_status=$?; test $as_status -eq 0 && as_status=1
3755 if test "$3"; then
3756 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3757 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
3758 fi
3759 $as_echo "$as_me: error: $1" >&2
3760 as_fn_exit $as_status
3761 } # as_fn_error
3762
3763
3764 # as_fn_set_status STATUS
3765 # -----------------------
3766 # Set $? to STATUS, without forking.
3767 as_fn_set_status ()
3768 {
3769 return $1
3770 } # as_fn_set_status
3771
3772 # as_fn_exit STATUS
3773 # -----------------
3774 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3775 as_fn_exit ()
3776 {
3777 set +e
3778 as_fn_set_status $1
3779 exit $1
3780 } # as_fn_exit
3781
3782 # as_fn_unset VAR
3783 # ---------------
3784 # Portably unset VAR.
3785 as_fn_unset ()
3786 {
3787 { eval $1=; unset $1;}
3788 }
3789 as_unset=as_fn_unset
3790 # as_fn_append VAR VALUE
3791 # ----------------------
3792 # Append the text in VALUE to the end of the definition contained in VAR. Take
3793 # advantage of any shell optimizations that allow amortized linear growth over
3794 # repeated appends, instead of the typical quadratic growth present in naive
3795 # implementations.
3796 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3797 eval 'as_fn_append ()
3798 {
3799 eval $1+=\$2
3800 }'
3801 else
3802 as_fn_append ()
3803 {
3804 eval $1=\$$1\$2
3805 }
3806 fi # as_fn_append
3807
3808 # as_fn_arith ARG...
3809 # ------------------
3810 # Perform arithmetic evaluation on the ARGs, and store the result in the
3811 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3812 # must be portable across $(()) and expr.
3813 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3814 eval 'as_fn_arith ()
3815 {
3816 as_val=$(( $* ))
3817 }'
3818 else
3819 as_fn_arith ()
3820 {
3821 as_val=`expr "$@" || test $? -eq 1`
3822 }
3823 fi # as_fn_arith
3824
3825
3826 if expr a : '\(a\)' >/dev/null 2>&1 &&
3827 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3828 as_expr=expr
3829 else
3830 as_expr=false
3831 fi
3832
3833 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3834 as_basename=basename
3835 else
3836 as_basename=false
3837 fi
3838
3839 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3840 as_dirname=dirname
3841 else
3842 as_dirname=false
3843 fi
3844
3845 as_me=`$as_basename -- "$0" ||
3846 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3847 X"$0" : 'X\(//\)$' \| \
3848 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3849 $as_echo X/"$0" |
3850 sed '/^.*\/\([^/][^/]*\)\/*$/{
3851 s//\1/
3852 q
3853 }
3854 /^X\/\(\/\/\)$/{
3855 s//\1/
3856 q
3857 }
3858 /^X\/\(\/\).*/{
3859 s//\1/
3860 q
3861 }
3862 s/.*/./; q'`
3863
3864 # Avoid depending upon Character Ranges.
3865 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3866 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3867 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3868 as_cr_digits='0123456789'
3869 as_cr_alnum=$as_cr_Letters$as_cr_digits
3870
3871 ECHO_C= ECHO_N= ECHO_T=
3872 case `echo -n x` in #(((((
3873 -n*)
3874 case `echo 'xy\c'` in
3875 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3876 xy) ECHO_C='\c';;
3877 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3878 ECHO_T=' ';;
3879 esac;;
3880 *)
3881 ECHO_N='-n';;
3882 esac
3883
3884 rm -f conf$$ conf$$.exe conf$$.file
3885 if test -d conf$$.dir; then
3886 rm -f conf$$.dir/conf$$.file
3887 else
3888 rm -f conf$$.dir
3889 mkdir conf$$.dir 2>/dev/null
3890 fi
3891 if (echo >conf$$.file) 2>/dev/null; then
3892 if ln -s conf$$.file conf$$ 2>/dev/null; then
3893 as_ln_s='ln -s'
3894 # ... but there are two gotchas:
3895 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3896 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3897 # In both cases, we have to default to `cp -p'.
3898 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3899 as_ln_s='cp -p'
3900 elif ln conf$$.file conf$$ 2>/dev/null; then
3901 as_ln_s=ln
3902 else
3903 as_ln_s='cp -p'
3904 fi
3905 else
3906 as_ln_s='cp -p'
3907 fi
3908 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3909 rmdir conf$$.dir 2>/dev/null
3910
3911
3912 # as_fn_mkdir_p
3913 # -------------
3914 # Create "$as_dir" as a directory, including parents if necessary.
3915 as_fn_mkdir_p ()
3916 {
3917
3918 case $as_dir in #(
3919 -*) as_dir=./$as_dir;;
3920 esac
3921 test -d "$as_dir" || eval $as_mkdir_p || {
3922 as_dirs=
3923 while :; do
3924 case $as_dir in #(
3925 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3926 *) as_qdir=$as_dir;;
3927 esac
3928 as_dirs="'$as_qdir' $as_dirs"
3929 as_dir=`$as_dirname -- "$as_dir" ||
3930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3931 X"$as_dir" : 'X\(//\)[^/]' \| \
3932 X"$as_dir" : 'X\(//\)$' \| \
3933 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3934 $as_echo X"$as_dir" |
3935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3936 s//\1/
3937 q
3938 }
3939 /^X\(\/\/\)[^/].*/{
3940 s//\1/
3941 q
3942 }
3943 /^X\(\/\/\)$/{
3944 s//\1/
3945 q
3946 }
3947 /^X\(\/\).*/{
3948 s//\1/
3949 q
3950 }
3951 s/.*/./; q'`
3952 test -d "$as_dir" && break
3953 done
3954 test -z "$as_dirs" || eval "mkdir $as_dirs"
3955 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
3956
3957
3958 } # as_fn_mkdir_p
3959 if mkdir -p . 2>/dev/null; then
3960 as_mkdir_p='mkdir -p "$as_dir"'
3961 else
3962 test -d ./-p && rmdir ./-p
3963 as_mkdir_p=false
3964 fi
3965
3966 if test -x / >/dev/null 2>&1; then
3967 as_test_x='test -x'
3968 else
3969 if ls -dL / >/dev/null 2>&1; then
3970 as_ls_L_option=L
3971 else
3972 as_ls_L_option=
3973 fi
3974 as_test_x='
3975 eval sh -c '\''
3976 if test -d "$1"; then
3977 test -d "$1/.";
3978 else
3979 case $1 in #(
3980 -*)set "./$1";;
3981 esac;
3982 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3983 ???[sx]*):;;*)false;;esac;fi
3984 '\'' sh
3985 '
3986 fi
3987 as_executable_p=$as_test_x
3988
3989 # Sed expression to map a string onto a valid CPP name.
3990 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3991
3992 # Sed expression to map a string onto a valid variable name.
3993 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3994
3995
3996 exec 6>&1
3997 ## ----------------------------------- ##
3998 ## Main body of $CONFIG_STATUS script. ##
3999 ## ----------------------------------- ##
4000 _ASEOF
4001 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4002
4003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4004 # Save the log message, to keep $0 and so on meaningful, and to
4005 # report actual input values of CONFIG_FILES etc. instead of their
4006 # values after options handling.
4007 ac_log="
4008 This file was extended by $as_me, which was
4009 generated by GNU Autoconf 2.64. Invocation command line was
4010
4011 CONFIG_FILES = $CONFIG_FILES
4012 CONFIG_HEADERS = $CONFIG_HEADERS
4013 CONFIG_LINKS = $CONFIG_LINKS
4014 CONFIG_COMMANDS = $CONFIG_COMMANDS
4015 $ $0 $@
4016
4017 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4018 "
4019
4020 _ACEOF
4021
4022 case $ac_config_files in *"
4023 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4024 esac
4025
4026
4027
4028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4029 # Files that config.status was made for.
4030 config_files="$ac_config_files"
4031
4032 _ACEOF
4033
4034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4035 ac_cs_usage="\
4036 \`$as_me' instantiates files and other configuration actions
4037 from templates according to the current configuration. Unless the files
4038 and actions are specified as TAGs, all are instantiated by default.
4039
4040 Usage: $0 [OPTION]... [TAG]...
4041
4042 -h, --help print this help, then exit
4043 -V, --version print version number and configuration settings, then exit
4044 -q, --quiet, --silent
4045 do not print progress messages
4046 -d, --debug don't remove temporary files
4047 --recheck update $as_me by reconfiguring in the same conditions
4048 --file=FILE[:TEMPLATE]
4049 instantiate the configuration file FILE
4050
4051 Configuration files:
4052 $config_files
4053
4054 Report bugs to the package provider."
4055
4056 _ACEOF
4057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4058 ac_cs_version="\\
4059 config.status
4060 configured by $0, generated by GNU Autoconf 2.64,
4061 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4062
4063 Copyright (C) 2009 Free Software Foundation, Inc.
4064 This config.status script is free software; the Free Software Foundation
4065 gives unlimited permission to copy, distribute and modify it."
4066
4067 ac_pwd='$ac_pwd'
4068 srcdir='$srcdir'
4069 test -n "\$AWK" || AWK=awk
4070 _ACEOF
4071
4072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4073 # The default lists apply if the user does not specify any file.
4074 ac_need_defaults=:
4075 while test $# != 0
4076 do
4077 case $1 in
4078 --*=*)
4079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4081 ac_shift=:
4082 ;;
4083 *)
4084 ac_option=$1
4085 ac_optarg=$2
4086 ac_shift=shift
4087 ;;
4088 esac
4089
4090 case $ac_option in
4091 # Handling of the options.
4092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4093 ac_cs_recheck=: ;;
4094 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4095 $as_echo "$ac_cs_version"; exit ;;
4096 --debug | --debu | --deb | --de | --d | -d )
4097 debug=: ;;
4098 --file | --fil | --fi | --f )
4099 $ac_shift
4100 case $ac_optarg in
4101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4102 esac
4103 as_fn_append CONFIG_FILES " '$ac_optarg'"
4104 ac_need_defaults=false;;
4105 --he | --h | --help | --hel | -h )
4106 $as_echo "$ac_cs_usage"; exit ;;
4107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4108 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4109 ac_cs_silent=: ;;
4110
4111 # This is an error.
4112 -*) as_fn_error "unrecognized option: \`$1'
4113 Try \`$0 --help' for more information." ;;
4114
4115 *) as_fn_append ac_config_targets " $1"
4116 ac_need_defaults=false ;;
4117
4118 esac
4119 shift
4120 done
4121
4122 ac_configure_extra_args=
4123
4124 if $ac_cs_silent; then
4125 exec 6>/dev/null
4126 ac_configure_extra_args="$ac_configure_extra_args --silent"
4127 fi
4128
4129 _ACEOF
4130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4131 if \$ac_cs_recheck; then
4132 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4133 shift
4134 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4135 CONFIG_SHELL='$SHELL'
4136 export CONFIG_SHELL
4137 exec "\$@"
4138 fi
4139
4140 _ACEOF
4141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4142 exec 5>>config.log
4143 {
4144 echo
4145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4146 ## Running $as_me. ##
4147 _ASBOX
4148 $as_echo "$ac_log"
4149 } >&5
4150
4151 _ACEOF
4152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4153 _ACEOF
4154
4155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4156
4157 # Handling of arguments.
4158 for ac_config_target in $ac_config_targets
4159 do
4160 case $ac_config_target in
4161 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4162 "gdb.ada/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.ada/Makefile" ;;
4163 "gdb.arch/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.arch/Makefile" ;;
4164 "gdb.asm/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.asm/Makefile" ;;
4165 "gdb.base/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.base/Makefile" ;;
4166 "gdb.btrace/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.btrace/Makefile" ;;
4167 "gdb.cell/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.cell/Makefile" ;;
4168 "gdb.cp/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.cp/Makefile" ;;
4169 "gdb.disasm/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.disasm/Makefile" ;;
4170 "gdb.dwarf2/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.dwarf2/Makefile" ;;
4171 "gdb.dlang/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.dlang/Makefile" ;;
4172 "gdb.fortran/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.fortran/Makefile" ;;
4173 "gdb.gdb/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.gdb/Makefile" ;;
4174 "gdb.go/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.go/Makefile" ;;
4175 "gdb.server/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.server/Makefile" ;;
4176 "gdb.java/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.java/Makefile" ;;
4177 "gdb.hp/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/Makefile" ;;
4178 "gdb.hp/gdb.objdbg/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.objdbg/Makefile" ;;
4179 "gdb.hp/gdb.base-hp/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.base-hp/Makefile" ;;
4180 "gdb.hp/gdb.aCC/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.aCC/Makefile" ;;
4181 "gdb.hp/gdb.compat/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.compat/Makefile" ;;
4182 "gdb.hp/gdb.defects/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.hp/gdb.defects/Makefile" ;;
4183 "gdb.guile/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.guile/Makefile" ;;
4184 "gdb.linespec/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.linespec/Makefile" ;;
4185 "gdb.mi/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.mi/Makefile" ;;
4186 "gdb.modula2/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.modula2/Makefile" ;;
4187 "gdb.multi/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.multi/Makefile" ;;
4188 "gdb.objc/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.objc/Makefile" ;;
4189 "gdb.opencl/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opencl/Makefile" ;;
4190 "gdb.opt/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opt/Makefile" ;;
4191 "gdb.pascal/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.pascal/Makefile" ;;
4192 "gdb.perf/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.perf/Makefile" ;;
4193 "gdb.python/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.python/Makefile" ;;
4194 "gdb.reverse/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.reverse/Makefile" ;;
4195 "gdb.stabs/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.stabs/Makefile" ;;
4196 "gdb.threads/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.threads/Makefile" ;;
4197 "gdb.trace/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.trace/Makefile" ;;
4198 "gdb.xml/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.xml/Makefile" ;;
4199
4200 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4201 esac
4202 done
4203
4204
4205 # If the user did not use the arguments to specify the items to instantiate,
4206 # then the envvar interface is used. Set only those that are not.
4207 # We use the long form for the default assignment because of an extremely
4208 # bizarre bug on SunOS 4.1.3.
4209 if $ac_need_defaults; then
4210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4211 fi
4212
4213 # Have a temporary directory for convenience. Make it in the build tree
4214 # simply because there is no reason against having it here, and in addition,
4215 # creating and moving files from /tmp can sometimes cause problems.
4216 # Hook for its removal unless debugging.
4217 # Note that there is a small window in which the directory will not be cleaned:
4218 # after its creation but before its name has been assigned to `$tmp'.
4219 $debug ||
4220 {
4221 tmp=
4222 trap 'exit_status=$?
4223 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4224 ' 0
4225 trap 'as_fn_exit 1' 1 2 13 15
4226 }
4227 # Create a (secure) tmp directory for tmp files.
4228
4229 {
4230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4231 test -n "$tmp" && test -d "$tmp"
4232 } ||
4233 {
4234 tmp=./conf$$-$RANDOM
4235 (umask 077 && mkdir "$tmp")
4236 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
4237
4238 # Set up the scripts for CONFIG_FILES section.
4239 # No need to generate them if there are no CONFIG_FILES.
4240 # This happens for instance with `./config.status config.h'.
4241 if test -n "$CONFIG_FILES"; then
4242
4243
4244 ac_cr=`echo X | tr X '\015'`
4245 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4246 # But we know of no other shell where ac_cr would be empty at this
4247 # point, so we can use a bashism as a fallback.
4248 if test "x$ac_cr" = x; then
4249 eval ac_cr=\$\'\\r\'
4250 fi
4251 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4252 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4253 ac_cs_awk_cr='\r'
4254 else
4255 ac_cs_awk_cr=$ac_cr
4256 fi
4257
4258 echo 'BEGIN {' >"$tmp/subs1.awk" &&
4259 _ACEOF
4260
4261
4262 {
4263 echo "cat >conf$$subs.awk <<_ACEOF" &&
4264 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4265 echo "_ACEOF"
4266 } >conf$$subs.sh ||
4267 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4268 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4269 ac_delim='%!_!# '
4270 for ac_last_try in false false false false false :; do
4271 . ./conf$$subs.sh ||
4272 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4273
4274 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4275 if test $ac_delim_n = $ac_delim_num; then
4276 break
4277 elif $ac_last_try; then
4278 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4279 else
4280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4281 fi
4282 done
4283 rm -f conf$$subs.sh
4284
4285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4286 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4287 _ACEOF
4288 sed -n '
4289 h
4290 s/^/S["/; s/!.*/"]=/
4291 p
4292 g
4293 s/^[^!]*!//
4294 :repl
4295 t repl
4296 s/'"$ac_delim"'$//
4297 t delim
4298 :nl
4299 h
4300 s/\(.\{148\}\).*/\1/
4301 t more1
4302 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4303 p
4304 n
4305 b repl
4306 :more1
4307 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4308 p
4309 g
4310 s/.\{148\}//
4311 t nl
4312 :delim
4313 h
4314 s/\(.\{148\}\).*/\1/
4315 t more2
4316 s/["\\]/\\&/g; s/^/"/; s/$/"/
4317 p
4318 b
4319 :more2
4320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4321 p
4322 g
4323 s/.\{148\}//
4324 t delim
4325 ' <conf$$subs.awk | sed '
4326 /^[^""]/{
4327 N
4328 s/\n//
4329 }
4330 ' >>$CONFIG_STATUS || ac_write_fail=1
4331 rm -f conf$$subs.awk
4332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4333 _ACAWK
4334 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4335 for (key in S) S_is_set[key] = 1
4336 FS = "\a"
4337
4338 }
4339 {
4340 line = $ 0
4341 nfields = split(line, field, "@")
4342 substed = 0
4343 len = length(field[1])
4344 for (i = 2; i < nfields; i++) {
4345 key = field[i]
4346 keylen = length(key)
4347 if (S_is_set[key]) {
4348 value = S[key]
4349 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4350 len += length(value) + length(field[++i])
4351 substed = 1
4352 } else
4353 len += 1 + keylen
4354 }
4355
4356 print line
4357 }
4358
4359 _ACAWK
4360 _ACEOF
4361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4362 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4363 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4364 else
4365 cat
4366 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4367 || as_fn_error "could not setup config files machinery" "$LINENO" 5
4368 _ACEOF
4369
4370 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4371 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4372 # trailing colons and then remove the whole line if VPATH becomes empty
4373 # (actually we leave an empty line to preserve line numbers).
4374 if test "x$srcdir" = x.; then
4375 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4376 s/:*\$(srcdir):*/:/
4377 s/:*\${srcdir}:*/:/
4378 s/:*@srcdir@:*/:/
4379 s/^\([^=]*=[ ]*\):*/\1/
4380 s/:*$//
4381 s/^[^=]*=[ ]*$//
4382 }'
4383 fi
4384
4385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4386 fi # test -n "$CONFIG_FILES"
4387
4388
4389 eval set X " :F $CONFIG_FILES "
4390 shift
4391 for ac_tag
4392 do
4393 case $ac_tag in
4394 :[FHLC]) ac_mode=$ac_tag; continue;;
4395 esac
4396 case $ac_mode$ac_tag in
4397 :[FHL]*:*);;
4398 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4399 :[FH]-) ac_tag=-:-;;
4400 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4401 esac
4402 ac_save_IFS=$IFS
4403 IFS=:
4404 set x $ac_tag
4405 IFS=$ac_save_IFS
4406 shift
4407 ac_file=$1
4408 shift
4409
4410 case $ac_mode in
4411 :L) ac_source=$1;;
4412 :[FH])
4413 ac_file_inputs=
4414 for ac_f
4415 do
4416 case $ac_f in
4417 -) ac_f="$tmp/stdin";;
4418 *) # Look for the file first in the build tree, then in the source tree
4419 # (if the path is not absolute). The absolute path cannot be DOS-style,
4420 # because $ac_f cannot contain `:'.
4421 test -f "$ac_f" ||
4422 case $ac_f in
4423 [\\/$]*) false;;
4424 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4425 esac ||
4426 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4427 esac
4428 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4429 as_fn_append ac_file_inputs " '$ac_f'"
4430 done
4431
4432 # Let's still pretend it is `configure' which instantiates (i.e., don't
4433 # use $as_me), people would be surprised to read:
4434 # /* config.h. Generated by config.status. */
4435 configure_input='Generated from '`
4436 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4437 `' by configure.'
4438 if test x"$ac_file" != x-; then
4439 configure_input="$ac_file. $configure_input"
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4441 $as_echo "$as_me: creating $ac_file" >&6;}
4442 fi
4443 # Neutralize special characters interpreted by sed in replacement strings.
4444 case $configure_input in #(
4445 *\&* | *\|* | *\\* )
4446 ac_sed_conf_input=`$as_echo "$configure_input" |
4447 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4448 *) ac_sed_conf_input=$configure_input;;
4449 esac
4450
4451 case $ac_tag in
4452 *:-:* | *:-) cat >"$tmp/stdin" \
4453 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4454 esac
4455 ;;
4456 esac
4457
4458 ac_dir=`$as_dirname -- "$ac_file" ||
4459 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4460 X"$ac_file" : 'X\(//\)[^/]' \| \
4461 X"$ac_file" : 'X\(//\)$' \| \
4462 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4463 $as_echo X"$ac_file" |
4464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4465 s//\1/
4466 q
4467 }
4468 /^X\(\/\/\)[^/].*/{
4469 s//\1/
4470 q
4471 }
4472 /^X\(\/\/\)$/{
4473 s//\1/
4474 q
4475 }
4476 /^X\(\/\).*/{
4477 s//\1/
4478 q
4479 }
4480 s/.*/./; q'`
4481 as_dir="$ac_dir"; as_fn_mkdir_p
4482 ac_builddir=.
4483
4484 case "$ac_dir" in
4485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4486 *)
4487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4488 # A ".." for each directory in $ac_dir_suffix.
4489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4490 case $ac_top_builddir_sub in
4491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4493 esac ;;
4494 esac
4495 ac_abs_top_builddir=$ac_pwd
4496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4497 # for backward compatibility:
4498 ac_top_builddir=$ac_top_build_prefix
4499
4500 case $srcdir in
4501 .) # We are building in place.
4502 ac_srcdir=.
4503 ac_top_srcdir=$ac_top_builddir_sub
4504 ac_abs_top_srcdir=$ac_pwd ;;
4505 [\\/]* | ?:[\\/]* ) # Absolute name.
4506 ac_srcdir=$srcdir$ac_dir_suffix;
4507 ac_top_srcdir=$srcdir
4508 ac_abs_top_srcdir=$srcdir ;;
4509 *) # Relative name.
4510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4511 ac_top_srcdir=$ac_top_build_prefix$srcdir
4512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4513 esac
4514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4515
4516
4517 case $ac_mode in
4518 :F)
4519 #
4520 # CONFIG_FILE
4521 #
4522
4523 _ACEOF
4524
4525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4526 # If the template does not know about datarootdir, expand it.
4527 # FIXME: This hack should be removed a few years after 2.60.
4528 ac_datarootdir_hack=; ac_datarootdir_seen=
4529 ac_sed_dataroot='
4530 /datarootdir/ {
4531 p
4532 q
4533 }
4534 /@datadir@/p
4535 /@docdir@/p
4536 /@infodir@/p
4537 /@localedir@/p
4538 /@mandir@/p'
4539 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4540 *datarootdir*) ac_datarootdir_seen=yes;;
4541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4543 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4544 _ACEOF
4545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4546 ac_datarootdir_hack='
4547 s&@datadir@&$datadir&g
4548 s&@docdir@&$docdir&g
4549 s&@infodir@&$infodir&g
4550 s&@localedir@&$localedir&g
4551 s&@mandir@&$mandir&g
4552 s&\\\${datarootdir}&$datarootdir&g' ;;
4553 esac
4554 _ACEOF
4555
4556 # Neutralize VPATH when `$srcdir' = `.'.
4557 # Shell code in configure.ac might set extrasub.
4558 # FIXME: do we really want to maintain this feature?
4559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4560 ac_sed_extra="$ac_vpsub
4561 $extrasub
4562 _ACEOF
4563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4564 :t
4565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4566 s|@configure_input@|$ac_sed_conf_input|;t t
4567 s&@top_builddir@&$ac_top_builddir_sub&;t t
4568 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4569 s&@srcdir@&$ac_srcdir&;t t
4570 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4571 s&@top_srcdir@&$ac_top_srcdir&;t t
4572 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4573 s&@builddir@&$ac_builddir&;t t
4574 s&@abs_builddir@&$ac_abs_builddir&;t t
4575 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4576 $ac_datarootdir_hack
4577 "
4578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4579 || as_fn_error "could not create $ac_file" "$LINENO" 5
4580
4581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4582 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4585 which seems to be undefined. Please make sure it is defined." >&5
4586 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4587 which seems to be undefined. Please make sure it is defined." >&2;}
4588
4589 rm -f "$tmp/stdin"
4590 case $ac_file in
4591 -) cat "$tmp/out" && rm -f "$tmp/out";;
4592 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4593 esac \
4594 || as_fn_error "could not create $ac_file" "$LINENO" 5
4595 ;;
4596
4597
4598
4599 esac
4600
4601 done # for ac_tag
4602
4603
4604 as_fn_exit 0
4605 _ACEOF
4606 ac_clean_files=$ac_clean_files_save
4607
4608 test $ac_write_fail = 0 ||
4609 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
4610
4611
4612 # configure is writing to config.log, and then calls config.status.
4613 # config.status does its own redirection, appending to config.log.
4614 # Unfortunately, on DOS this fails, as config.log is still kept open
4615 # by configure, so config.status won't be able to write to it; its
4616 # output is simply discarded. So we exec the FD to /dev/null,
4617 # effectively closing config.log, so it can be properly (re)opened and
4618 # appended to by config.status. When coming back to configure, we
4619 # need to make the FD available again.
4620 if test "$no_create" != yes; then
4621 ac_cs_success=:
4622 ac_config_status_args=
4623 test "$silent" = yes &&
4624 ac_config_status_args="$ac_config_status_args --quiet"
4625 exec 5>/dev/null
4626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4627 exec 5>>config.log
4628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4629 # would make configure fail if this is the last instruction.
4630 $ac_cs_success || as_fn_exit $?
4631 fi
4632
4633 #
4634 # CONFIG_SUBDIRS section.
4635 #
4636 if test "$no_recursion" != yes; then
4637
4638 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4639 # so they do not pile up.
4640 ac_sub_configure_args=
4641 ac_prev=
4642 eval "set x $ac_configure_args"
4643 shift
4644 for ac_arg
4645 do
4646 if test -n "$ac_prev"; then
4647 ac_prev=
4648 continue
4649 fi
4650 case $ac_arg in
4651 -cache-file | --cache-file | --cache-fil | --cache-fi \
4652 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4653 ac_prev=cache_file ;;
4654 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4655 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4656 | --c=*)
4657 ;;
4658 --config-cache | -C)
4659 ;;
4660 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4661 ac_prev=srcdir ;;
4662 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4663 ;;
4664 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4665 ac_prev=prefix ;;
4666 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4667 ;;
4668 --disable-option-checking)
4669 ;;
4670 *)
4671 case $ac_arg in
4672 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4673 esac
4674 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4675 esac
4676 done
4677
4678 # Always prepend --prefix to ensure using the same prefix
4679 # in subdir configurations.
4680 ac_arg="--prefix=$prefix"
4681 case $ac_arg in
4682 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4683 esac
4684 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4685
4686 # Pass --silent
4687 if test "$silent" = yes; then
4688 ac_sub_configure_args="--silent $ac_sub_configure_args"
4689 fi
4690
4691 # Always prepend --disable-option-checking to silence warnings, since
4692 # different subdirs can have different --enable and --with options.
4693 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4694
4695 ac_popdir=`pwd`
4696 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
4697
4698 # Do not complain, so a configure script can configure whichever
4699 # parts of a large source tree are present.
4700 test -d "$srcdir/$ac_dir" || continue
4701
4702 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4704 $as_echo "$ac_msg" >&6
4705 as_dir="$ac_dir"; as_fn_mkdir_p
4706 ac_builddir=.
4707
4708 case "$ac_dir" in
4709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4710 *)
4711 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4712 # A ".." for each directory in $ac_dir_suffix.
4713 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4714 case $ac_top_builddir_sub in
4715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4717 esac ;;
4718 esac
4719 ac_abs_top_builddir=$ac_pwd
4720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4721 # for backward compatibility:
4722 ac_top_builddir=$ac_top_build_prefix
4723
4724 case $srcdir in
4725 .) # We are building in place.
4726 ac_srcdir=.
4727 ac_top_srcdir=$ac_top_builddir_sub
4728 ac_abs_top_srcdir=$ac_pwd ;;
4729 [\\/]* | ?:[\\/]* ) # Absolute name.
4730 ac_srcdir=$srcdir$ac_dir_suffix;
4731 ac_top_srcdir=$srcdir
4732 ac_abs_top_srcdir=$srcdir ;;
4733 *) # Relative name.
4734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4735 ac_top_srcdir=$ac_top_build_prefix$srcdir
4736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4737 esac
4738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4739
4740
4741 cd "$ac_dir"
4742
4743 # Check for guested configure; otherwise get Cygnus style configure.
4744 if test -f "$ac_srcdir/configure.gnu"; then
4745 ac_sub_configure=$ac_srcdir/configure.gnu
4746 elif test -f "$ac_srcdir/configure"; then
4747 ac_sub_configure=$ac_srcdir/configure
4748 elif test -f "$ac_srcdir/configure.in"; then
4749 # This should be Cygnus configure.
4750 ac_sub_configure=$ac_aux_dir/configure
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
4753 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
4754 ac_sub_configure=
4755 fi
4756
4757 # The recursion is here.
4758 if test -n "$ac_sub_configure"; then
4759 # Make the cache file name correct relative to the subdirectory.
4760 case $cache_file in
4761 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4762 *) # Relative name.
4763 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4764 esac
4765
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4767 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4768 # The eval makes quoting arguments work.
4769 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4770 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4771 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4772 fi
4773
4774 cd "$ac_popdir"
4775 done
4776 fi
4777 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4779 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4780 fi
4781
This page took 0.140174 seconds and 5 git commands to generate.