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