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