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