* linux-low.c (linux_stabilize_threads): Wrap debug output in a
[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 ac_config_libobj_dir=../gnulib
556 # Factoring default headers for most tests.
557 ac_includes_default="\
558 #include <stdio.h>
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
561 #endif
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
564 #endif
565 #ifdef STDC_HEADERS
566 # include <stdlib.h>
567 # include <stddef.h>
568 #else
569 # ifdef HAVE_STDLIB_H
570 # include <stdlib.h>
571 # endif
572 #endif
573 #ifdef HAVE_STRING_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
575 # include <memory.h>
576 # endif
577 # include <string.h>
578 #endif
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
581 #endif
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
584 #endif
585 #ifdef HAVE_STDINT_H
586 # include <stdint.h>
587 #endif
588 #ifdef HAVE_UNISTD_H
589 # include <unistd.h>
590 #endif"
591
592 ac_subst_vars='LTLIBOBJS
593 extra_libraries
594 IPA_DEPFILES
595 srv_xmlfiles
596 srv_xmlbuiltin
597 USE_THREAD_DB
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 LIBOBJS
609 INSTALL_DATA
610 INSTALL_SCRIPT
611 INSTALL_PROGRAM
612 target_os
613 target_vendor
614 target_cpu
615 target
616 host_os
617 host_vendor
618 host_cpu
619 host
620 build_os
621 build_vendor
622 build_cpu
623 build
624 EGREP
625 GREP
626 CPP
627 OBJEXT
628 EXEEXT
629 ac_ct_CC
630 CPPFLAGS
631 LDFLAGS
632 CFLAGS
633 CC
634 target_alias
635 host_alias
636 build_alias
637 LIBS
638 ECHO_T
639 ECHO_N
640 ECHO_C
641 DEFS
642 mandir
643 localedir
644 libdir
645 psdir
646 pdfdir
647 dvidir
648 htmldir
649 infodir
650 docdir
651 oldincludedir
652 includedir
653 localstatedir
654 sharedstatedir
655 sysconfdir
656 datadir
657 datarootdir
658 libexecdir
659 sbindir
660 bindir
661 program_transform_name
662 prefix
663 exec_prefix
664 PACKAGE_URL
665 PACKAGE_BUGREPORT
666 PACKAGE_STRING
667 PACKAGE_VERSION
668 PACKAGE_TARNAME
669 PACKAGE_NAME
670 PATH_SEPARATOR
671 SHELL'
672 ac_subst_files=''
673 ac_user_opts='
674 enable_option_checking
675 with_ust
676 with_ust_include
677 with_ust_lib
678 enable_werror
679 with_pkgversion
680 with_bugurl
681 with_libthread_db
682 '
683 ac_precious_vars='build_alias
684 host_alias
685 target_alias
686 CC
687 CFLAGS
688 LDFLAGS
689 LIBS
690 CPPFLAGS
691 CPP'
692
693
694 # Initialize some variables set by options.
695 ac_init_help=
696 ac_init_version=false
697 ac_unrecognized_opts=
698 ac_unrecognized_sep=
699 # The variables have the same names as the options, with
700 # dashes changed to underlines.
701 cache_file=/dev/null
702 exec_prefix=NONE
703 no_create=
704 no_recursion=
705 prefix=NONE
706 program_prefix=NONE
707 program_suffix=NONE
708 program_transform_name=s,x,x,
709 silent=
710 site=
711 srcdir=
712 verbose=
713 x_includes=NONE
714 x_libraries=NONE
715
716 # Installation directory options.
717 # These are left unexpanded so users can "make install exec_prefix=/foo"
718 # and all the variables that are supposed to be based on exec_prefix
719 # by default will actually change.
720 # Use braces instead of parens because sh, perl, etc. also accept them.
721 # (The list follows the same order as the GNU Coding Standards.)
722 bindir='${exec_prefix}/bin'
723 sbindir='${exec_prefix}/sbin'
724 libexecdir='${exec_prefix}/libexec'
725 datarootdir='${prefix}/share'
726 datadir='${datarootdir}'
727 sysconfdir='${prefix}/etc'
728 sharedstatedir='${prefix}/com'
729 localstatedir='${prefix}/var'
730 includedir='${prefix}/include'
731 oldincludedir='/usr/include'
732 docdir='${datarootdir}/doc/${PACKAGE}'
733 infodir='${datarootdir}/info'
734 htmldir='${docdir}'
735 dvidir='${docdir}'
736 pdfdir='${docdir}'
737 psdir='${docdir}'
738 libdir='${exec_prefix}/lib'
739 localedir='${datarootdir}/locale'
740 mandir='${datarootdir}/man'
741
742 ac_prev=
743 ac_dashdash=
744 for ac_option
745 do
746 # If the previous option needs an argument, assign it.
747 if test -n "$ac_prev"; then
748 eval $ac_prev=\$ac_option
749 ac_prev=
750 continue
751 fi
752
753 case $ac_option in
754 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
755 *) ac_optarg=yes ;;
756 esac
757
758 # Accept the important Cygnus configure options, so we can diagnose typos.
759
760 case $ac_dashdash$ac_option in
761 --)
762 ac_dashdash=yes ;;
763
764 -bindir | --bindir | --bindi | --bind | --bin | --bi)
765 ac_prev=bindir ;;
766 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
767 bindir=$ac_optarg ;;
768
769 -build | --build | --buil | --bui | --bu)
770 ac_prev=build_alias ;;
771 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
772 build_alias=$ac_optarg ;;
773
774 -cache-file | --cache-file | --cache-fil | --cache-fi \
775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
776 ac_prev=cache_file ;;
777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
779 cache_file=$ac_optarg ;;
780
781 --config-cache | -C)
782 cache_file=config.cache ;;
783
784 -datadir | --datadir | --datadi | --datad)
785 ac_prev=datadir ;;
786 -datadir=* | --datadir=* | --datadi=* | --datad=*)
787 datadir=$ac_optarg ;;
788
789 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
790 | --dataroo | --dataro | --datar)
791 ac_prev=datarootdir ;;
792 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
793 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
794 datarootdir=$ac_optarg ;;
795
796 -disable-* | --disable-*)
797 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
800 as_fn_error "invalid feature name: $ac_useropt"
801 ac_useropt_orig=$ac_useropt
802 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
803 case $ac_user_opts in
804 *"
805 "enable_$ac_useropt"
806 "*) ;;
807 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
808 ac_unrecognized_sep=', ';;
809 esac
810 eval enable_$ac_useropt=no ;;
811
812 -docdir | --docdir | --docdi | --doc | --do)
813 ac_prev=docdir ;;
814 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
815 docdir=$ac_optarg ;;
816
817 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
818 ac_prev=dvidir ;;
819 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
820 dvidir=$ac_optarg ;;
821
822 -enable-* | --enable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
830 *"
831 "enable_$ac_useropt"
832 "*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=\$ac_optarg ;;
837
838 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
839 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
840 | --exec | --exe | --ex)
841 ac_prev=exec_prefix ;;
842 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
843 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
844 | --exec=* | --exe=* | --ex=*)
845 exec_prefix=$ac_optarg ;;
846
847 -gas | --gas | --ga | --g)
848 # Obsolete; use --with-gas.
849 with_gas=yes ;;
850
851 -help | --help | --hel | --he | -h)
852 ac_init_help=long ;;
853 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
854 ac_init_help=recursive ;;
855 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
856 ac_init_help=short ;;
857
858 -host | --host | --hos | --ho)
859 ac_prev=host_alias ;;
860 -host=* | --host=* | --hos=* | --ho=*)
861 host_alias=$ac_optarg ;;
862
863 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
864 ac_prev=htmldir ;;
865 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
866 | --ht=*)
867 htmldir=$ac_optarg ;;
868
869 -includedir | --includedir | --includedi | --included | --include \
870 | --includ | --inclu | --incl | --inc)
871 ac_prev=includedir ;;
872 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
873 | --includ=* | --inclu=* | --incl=* | --inc=*)
874 includedir=$ac_optarg ;;
875
876 -infodir | --infodir | --infodi | --infod | --info | --inf)
877 ac_prev=infodir ;;
878 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
879 infodir=$ac_optarg ;;
880
881 -libdir | --libdir | --libdi | --libd)
882 ac_prev=libdir ;;
883 -libdir=* | --libdir=* | --libdi=* | --libd=*)
884 libdir=$ac_optarg ;;
885
886 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
887 | --libexe | --libex | --libe)
888 ac_prev=libexecdir ;;
889 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
890 | --libexe=* | --libex=* | --libe=*)
891 libexecdir=$ac_optarg ;;
892
893 -localedir | --localedir | --localedi | --localed | --locale)
894 ac_prev=localedir ;;
895 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
896 localedir=$ac_optarg ;;
897
898 -localstatedir | --localstatedir | --localstatedi | --localstated \
899 | --localstate | --localstat | --localsta | --localst | --locals)
900 ac_prev=localstatedir ;;
901 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
902 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
903 localstatedir=$ac_optarg ;;
904
905 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
906 ac_prev=mandir ;;
907 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
908 mandir=$ac_optarg ;;
909
910 -nfp | --nfp | --nf)
911 # Obsolete; use --without-fp.
912 with_fp=no ;;
913
914 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
915 | --no-cr | --no-c | -n)
916 no_create=yes ;;
917
918 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
919 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920 no_recursion=yes ;;
921
922 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
923 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
924 | --oldin | --oldi | --old | --ol | --o)
925 ac_prev=oldincludedir ;;
926 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
927 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
928 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
929 oldincludedir=$ac_optarg ;;
930
931 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
932 ac_prev=prefix ;;
933 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934 prefix=$ac_optarg ;;
935
936 -program-prefix | --program-prefix | --program-prefi | --program-pref \
937 | --program-pre | --program-pr | --program-p)
938 ac_prev=program_prefix ;;
939 -program-prefix=* | --program-prefix=* | --program-prefi=* \
940 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
941 program_prefix=$ac_optarg ;;
942
943 -program-suffix | --program-suffix | --program-suffi | --program-suff \
944 | --program-suf | --program-su | --program-s)
945 ac_prev=program_suffix ;;
946 -program-suffix=* | --program-suffix=* | --program-suffi=* \
947 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
948 program_suffix=$ac_optarg ;;
949
950 -program-transform-name | --program-transform-name \
951 | --program-transform-nam | --program-transform-na \
952 | --program-transform-n | --program-transform- \
953 | --program-transform | --program-transfor \
954 | --program-transfo | --program-transf \
955 | --program-trans | --program-tran \
956 | --progr-tra | --program-tr | --program-t)
957 ac_prev=program_transform_name ;;
958 -program-transform-name=* | --program-transform-name=* \
959 | --program-transform-nam=* | --program-transform-na=* \
960 | --program-transform-n=* | --program-transform-=* \
961 | --program-transform=* | --program-transfor=* \
962 | --program-transfo=* | --program-transf=* \
963 | --program-trans=* | --program-tran=* \
964 | --progr-tra=* | --program-tr=* | --program-t=*)
965 program_transform_name=$ac_optarg ;;
966
967 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
968 ac_prev=pdfdir ;;
969 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970 pdfdir=$ac_optarg ;;
971
972 -psdir | --psdir | --psdi | --psd | --ps)
973 ac_prev=psdir ;;
974 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975 psdir=$ac_optarg ;;
976
977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
978 | -silent | --silent | --silen | --sile | --sil)
979 silent=yes ;;
980
981 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
982 ac_prev=sbindir ;;
983 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
984 | --sbi=* | --sb=*)
985 sbindir=$ac_optarg ;;
986
987 -sharedstatedir | --sharedstatedir | --sharedstatedi \
988 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
989 | --sharedst | --shareds | --shared | --share | --shar \
990 | --sha | --sh)
991 ac_prev=sharedstatedir ;;
992 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
993 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
994 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
995 | --sha=* | --sh=*)
996 sharedstatedir=$ac_optarg ;;
997
998 -site | --site | --sit)
999 ac_prev=site ;;
1000 -site=* | --site=* | --sit=*)
1001 site=$ac_optarg ;;
1002
1003 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1004 ac_prev=srcdir ;;
1005 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1006 srcdir=$ac_optarg ;;
1007
1008 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1009 | --syscon | --sysco | --sysc | --sys | --sy)
1010 ac_prev=sysconfdir ;;
1011 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1012 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1013 sysconfdir=$ac_optarg ;;
1014
1015 -target | --target | --targe | --targ | --tar | --ta | --t)
1016 ac_prev=target_alias ;;
1017 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1018 target_alias=$ac_optarg ;;
1019
1020 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1021 verbose=yes ;;
1022
1023 -version | --version | --versio | --versi | --vers | -V)
1024 ac_init_version=: ;;
1025
1026 -with-* | --with-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error "invalid package name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035 "with_$ac_useropt"
1036 "*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval with_$ac_useropt=\$ac_optarg ;;
1041
1042 -without-* | --without-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error "invalid package name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1050 *"
1051 "with_$ac_useropt"
1052 "*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval with_$ac_useropt=no ;;
1057
1058 --x)
1059 # Obsolete; use --with-x.
1060 with_x=yes ;;
1061
1062 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063 | --x-incl | --x-inc | --x-in | --x-i)
1064 ac_prev=x_includes ;;
1065 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1067 x_includes=$ac_optarg ;;
1068
1069 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071 ac_prev=x_libraries ;;
1072 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1074 x_libraries=$ac_optarg ;;
1075
1076 -*) as_fn_error "unrecognized option: \`$ac_option'
1077 Try \`$0 --help' for more information."
1078 ;;
1079
1080 *=*)
1081 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1082 # Reject names that are not valid shell variable names.
1083 case $ac_envvar in #(
1084 '' | [0-9]* | *[!_$as_cr_alnum]* )
1085 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1086 esac
1087 eval $ac_envvar=\$ac_optarg
1088 export $ac_envvar ;;
1089
1090 *)
1091 # FIXME: should be removed in autoconf 3.0.
1092 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1093 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1095 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1096 ;;
1097
1098 esac
1099 done
1100
1101 if test -n "$ac_prev"; then
1102 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1103 as_fn_error "missing argument to $ac_option"
1104 fi
1105
1106 if test -n "$ac_unrecognized_opts"; then
1107 case $enable_option_checking in
1108 no) ;;
1109 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1110 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1111 esac
1112 fi
1113
1114 # Check all directory arguments for consistency.
1115 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116 datadir sysconfdir sharedstatedir localstatedir includedir \
1117 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118 libdir localedir mandir
1119 do
1120 eval ac_val=\$$ac_var
1121 # Remove trailing slashes.
1122 case $ac_val in
1123 */ )
1124 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1125 eval $ac_var=\$ac_val;;
1126 esac
1127 # Be sure to have absolute directory names.
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1133 done
1134
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1138 build=$build_alias
1139 host=$host_alias
1140 target=$target_alias
1141
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x; then
1144 if test "x$build_alias" = x; then
1145 cross_compiling=maybe
1146 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1149 cross_compiling=yes
1150 fi
1151 fi
1152
1153 ac_tool_prefix=
1154 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155
1156 test "$silent" = yes && exec 6>/dev/null
1157
1158
1159 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di=`ls -di .` &&
1161 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162 as_fn_error "working directory cannot be determined"
1163 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164 as_fn_error "pwd does not report name of working directory"
1165
1166
1167 # Find the source files, if location was not specified.
1168 if test -z "$srcdir"; then
1169 ac_srcdir_defaulted=yes
1170 # Try the directory containing this script, then the parent directory.
1171 ac_confdir=`$as_dirname -- "$as_myself" ||
1172 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173 X"$as_myself" : 'X\(//\)[^/]' \| \
1174 X"$as_myself" : 'X\(//\)$' \| \
1175 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1176 $as_echo X"$as_myself" |
1177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\/\)[^/].*/{
1182 s//\1/
1183 q
1184 }
1185 /^X\(\/\/\)$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\).*/{
1190 s//\1/
1191 q
1192 }
1193 s/.*/./; q'`
1194 srcdir=$ac_confdir
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196 srcdir=..
1197 fi
1198 else
1199 ac_srcdir_defaulted=no
1200 fi
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1204 fi
1205 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1206 ac_abs_confdir=`(
1207 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1208 pwd)`
1209 # When building in place, set srcdir=.
1210 if test "$ac_abs_confdir" = "$ac_pwd"; then
1211 srcdir=.
1212 fi
1213 # Remove unnecessary trailing slashes from srcdir.
1214 # Double slashes in file names in object file debugging info
1215 # mess up M-x gdb in Emacs.
1216 case $srcdir in
1217 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1218 esac
1219 for ac_var in $ac_precious_vars; do
1220 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1221 eval ac_env_${ac_var}_value=\$${ac_var}
1222 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1224 done
1225
1226 #
1227 # Report the --help message.
1228 #
1229 if test "$ac_init_help" = "long"; then
1230 # Omit some internal or obsolete options to make the list less imposing.
1231 # This message is too long to be a string in the A/UX 3.1 sh.
1232 cat <<_ACEOF
1233 \`configure' configures this package to adapt to many kinds of systems.
1234
1235 Usage: $0 [OPTION]... [VAR=VALUE]...
1236
1237 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1238 VAR=VALUE. See below for descriptions of some of the useful variables.
1239
1240 Defaults for the options are specified in brackets.
1241
1242 Configuration:
1243 -h, --help display this help and exit
1244 --help=short display options specific to this package
1245 --help=recursive display the short help of all the included packages
1246 -V, --version display version information and exit
1247 -q, --quiet, --silent do not print \`checking...' messages
1248 --cache-file=FILE cache test results in FILE [disabled]
1249 -C, --config-cache alias for \`--cache-file=config.cache'
1250 -n, --no-create do not create output files
1251 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1252
1253 Installation directories:
1254 --prefix=PREFIX install architecture-independent files in PREFIX
1255 [$ac_default_prefix]
1256 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1257 [PREFIX]
1258
1259 By default, \`make install' will install all the files in
1260 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1261 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1262 for instance \`--prefix=\$HOME'.
1263
1264 For better control, use the options below.
1265
1266 Fine tuning of the installation directories:
1267 --bindir=DIR user executables [EPREFIX/bin]
1268 --sbindir=DIR system admin executables [EPREFIX/sbin]
1269 --libexecdir=DIR program executables [EPREFIX/libexec]
1270 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1271 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1272 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1273 --libdir=DIR object code libraries [EPREFIX/lib]
1274 --includedir=DIR C header files [PREFIX/include]
1275 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1276 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1277 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1278 --infodir=DIR info documentation [DATAROOTDIR/info]
1279 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1280 --mandir=DIR man documentation [DATAROOTDIR/man]
1281 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1282 --htmldir=DIR html documentation [DOCDIR]
1283 --dvidir=DIR dvi documentation [DOCDIR]
1284 --pdfdir=DIR pdf documentation [DOCDIR]
1285 --psdir=DIR ps documentation [DOCDIR]
1286 _ACEOF
1287
1288 cat <<\_ACEOF
1289
1290 Program names:
1291 --program-prefix=PREFIX prepend PREFIX to installed program names
1292 --program-suffix=SUFFIX append SUFFIX to installed program names
1293 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1294
1295 System types:
1296 --build=BUILD configure for building on BUILD [guessed]
1297 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1298 --target=TARGET configure for building compilers for TARGET [HOST]
1299 _ACEOF
1300 fi
1301
1302 if test -n "$ac_init_help"; then
1303
1304 cat <<\_ACEOF
1305
1306 Optional Features:
1307 --disable-option-checking ignore unrecognized --enable/--with options
1308 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1309 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1310 --enable-werror treat compile warnings as errors
1311
1312 Optional Packages:
1313 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1314 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1315 --with-ust=PATH Specify prefix directory for the installed UST package
1316 Equivalent to --with-ust-include=PATH/include
1317 plus --with-ust-lib=PATH/lib
1318 --with-ust-include=PATH Specify directory for installed UST include files
1319 --with-ust-lib=PATH Specify the directory for the installed UST library
1320 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1321 --with-bugurl=URL Direct users to URL to report a bug
1322 --with-libthread-db=PATH
1323 use given libthread_db directly
1324
1325 Some influential environment variables:
1326 CC C compiler command
1327 CFLAGS C compiler flags
1328 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1329 nonstandard directory <lib dir>
1330 LIBS libraries to pass to the linker, e.g. -l<library>
1331 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1332 you have headers in a nonstandard directory <include dir>
1333 CPP C preprocessor
1334
1335 Use these variables to override the choices made by `configure' or to help
1336 it to find libraries and programs with nonstandard names/locations.
1337
1338 Report bugs to the package provider.
1339 _ACEOF
1340 ac_status=$?
1341 fi
1342
1343 if test "$ac_init_help" = "recursive"; then
1344 # If there are subdirs, report their specific --help.
1345 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346 test -d "$ac_dir" ||
1347 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1348 continue
1349 ac_builddir=.
1350
1351 case "$ac_dir" in
1352 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 *)
1354 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1355 # A ".." for each directory in $ac_dir_suffix.
1356 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1357 case $ac_top_builddir_sub in
1358 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1360 esac ;;
1361 esac
1362 ac_abs_top_builddir=$ac_pwd
1363 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1364 # for backward compatibility:
1365 ac_top_builddir=$ac_top_build_prefix
1366
1367 case $srcdir in
1368 .) # We are building in place.
1369 ac_srcdir=.
1370 ac_top_srcdir=$ac_top_builddir_sub
1371 ac_abs_top_srcdir=$ac_pwd ;;
1372 [\\/]* | ?:[\\/]* ) # Absolute name.
1373 ac_srcdir=$srcdir$ac_dir_suffix;
1374 ac_top_srcdir=$srcdir
1375 ac_abs_top_srcdir=$srcdir ;;
1376 *) # Relative name.
1377 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378 ac_top_srcdir=$ac_top_build_prefix$srcdir
1379 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380 esac
1381 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382
1383 cd "$ac_dir" || { ac_status=$?; continue; }
1384 # Check for guested configure.
1385 if test -f "$ac_srcdir/configure.gnu"; then
1386 echo &&
1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388 elif test -f "$ac_srcdir/configure"; then
1389 echo &&
1390 $SHELL "$ac_srcdir/configure" --help=recursive
1391 else
1392 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 fi || ac_status=$?
1394 cd "$ac_pwd" || { ac_status=$?; break; }
1395 done
1396 fi
1397
1398 test -n "$ac_init_help" && exit $ac_status
1399 if $ac_init_version; then
1400 cat <<\_ACEOF
1401 configure
1402 generated by GNU Autoconf 2.64
1403
1404 Copyright (C) 2009 Free Software Foundation, Inc.
1405 This configure script is free software; the Free Software Foundation
1406 gives unlimited permission to copy, distribute and modify it.
1407 _ACEOF
1408 exit
1409 fi
1410
1411 ## ------------------------ ##
1412 ## Autoconf initialization. ##
1413 ## ------------------------ ##
1414
1415 # ac_fn_c_try_compile LINENO
1416 # --------------------------
1417 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1418 ac_fn_c_try_compile ()
1419 {
1420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1421 rm -f conftest.$ac_objext
1422 if { { ac_try="$ac_compile"
1423 case "(($ac_try" in
1424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1425 *) ac_try_echo=$ac_try;;
1426 esac
1427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1428 $as_echo "$ac_try_echo"; } >&5
1429 (eval "$ac_compile") 2>conftest.err
1430 ac_status=$?
1431 if test -s conftest.err; then
1432 grep -v '^ *+' conftest.err >conftest.er1
1433 cat conftest.er1 >&5
1434 mv -f conftest.er1 conftest.err
1435 fi
1436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1437 test $ac_status = 0; } && {
1438 test -z "$ac_c_werror_flag" ||
1439 test ! -s conftest.err
1440 } && test -s conftest.$ac_objext; then :
1441 ac_retval=0
1442 else
1443 $as_echo "$as_me: failed program was:" >&5
1444 sed 's/^/| /' conftest.$ac_ext >&5
1445
1446 ac_retval=1
1447 fi
1448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1449 return $ac_retval
1450
1451 } # ac_fn_c_try_compile
1452
1453 # ac_fn_c_try_cpp LINENO
1454 # ----------------------
1455 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1456 ac_fn_c_try_cpp ()
1457 {
1458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1459 if { { ac_try="$ac_cpp conftest.$ac_ext"
1460 case "(($ac_try" in
1461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1462 *) ac_try_echo=$ac_try;;
1463 esac
1464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465 $as_echo "$ac_try_echo"; } >&5
1466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1467 ac_status=$?
1468 if test -s conftest.err; then
1469 grep -v '^ *+' conftest.err >conftest.er1
1470 cat conftest.er1 >&5
1471 mv -f conftest.er1 conftest.err
1472 fi
1473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474 test $ac_status = 0; } >/dev/null && {
1475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1476 test ! -s conftest.err
1477 }; then :
1478 ac_retval=0
1479 else
1480 $as_echo "$as_me: failed program was:" >&5
1481 sed 's/^/| /' conftest.$ac_ext >&5
1482
1483 ac_retval=1
1484 fi
1485 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1486 return $ac_retval
1487
1488 } # ac_fn_c_try_cpp
1489
1490 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1491 # -------------------------------------------------------
1492 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1493 # the include files in INCLUDES and setting the cache variable VAR
1494 # accordingly.
1495 ac_fn_c_check_header_mongrel ()
1496 {
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1500 $as_echo_n "checking for $2... " >&6; }
1501 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1502 $as_echo_n "(cached) " >&6
1503 fi
1504 eval ac_res=\$$3
1505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1506 $as_echo "$ac_res" >&6; }
1507 else
1508 # Is the header compilable?
1509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1510 $as_echo_n "checking $2 usability... " >&6; }
1511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1512 /* end confdefs.h. */
1513 $4
1514 #include <$2>
1515 _ACEOF
1516 if ac_fn_c_try_compile "$LINENO"; then :
1517 ac_header_compiler=yes
1518 else
1519 ac_header_compiler=no
1520 fi
1521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1523 $as_echo "$ac_header_compiler" >&6; }
1524
1525 # Is the header present?
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1527 $as_echo_n "checking $2 presence... " >&6; }
1528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1529 /* end confdefs.h. */
1530 #include <$2>
1531 _ACEOF
1532 if ac_fn_c_try_cpp "$LINENO"; then :
1533 ac_header_preproc=yes
1534 else
1535 ac_header_preproc=no
1536 fi
1537 rm -f conftest.err conftest.$ac_ext
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1539 $as_echo "$ac_header_preproc" >&6; }
1540
1541 # So? What about this header?
1542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1543 yes:no: )
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1545 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1547 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1548 ;;
1549 no:yes:* )
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1551 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1553 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1555 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1557 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1559 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1560 ;;
1561 esac
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563 $as_echo_n "checking for $2... " >&6; }
1564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1565 $as_echo_n "(cached) " >&6
1566 else
1567 eval "$3=\$ac_header_compiler"
1568 fi
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 fi
1573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1574
1575 } # ac_fn_c_check_header_mongrel
1576
1577 # ac_fn_c_try_run LINENO
1578 # ----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1580 # that executables *can* be run.
1581 ac_fn_c_try_run ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_link"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>&5
1592 ac_status=$?
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1595 { { case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_try") 2>&5
1602 ac_status=$?
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; }; }; then :
1605 ac_retval=0
1606 else
1607 $as_echo "$as_me: program exited with status $ac_status" >&5
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=$ac_status
1612 fi
1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 return $ac_retval
1616
1617 } # ac_fn_c_try_run
1618
1619 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1620 # -------------------------------------------------------
1621 # Tests whether HEADER exists and can be compiled using the include files in
1622 # INCLUDES, setting the cache variable VAR accordingly.
1623 ac_fn_c_check_header_compile ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1629 $as_echo_n "(cached) " >&6
1630 else
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1633 $4
1634 #include <$2>
1635 _ACEOF
1636 if ac_fn_c_try_compile "$LINENO"; then :
1637 eval "$3=yes"
1638 else
1639 eval "$3=no"
1640 fi
1641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642 fi
1643 eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647
1648 } # ac_fn_c_check_header_compile
1649
1650 # ac_fn_c_try_link LINENO
1651 # -----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_link ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 rm -f conftest.$ac_objext conftest$ac_exeext
1657 if { { ac_try="$ac_link"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest$ac_exeext && {
1676 test "$cross_compiling" = yes ||
1677 $as_test_x conftest$ac_exeext
1678 }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685 fi
1686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688 # interfere with the next link command; also delete a directory that is
1689 # left behind by Apple's compiler. We do this before executing the actions.
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 return $ac_retval
1693
1694 } # ac_fn_c_try_link
1695
1696 # ac_fn_c_check_func LINENO FUNC VAR
1697 # ----------------------------------
1698 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1699 ac_fn_c_check_func ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1705 $as_echo_n "(cached) " >&6
1706 else
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1711 #define $2 innocuous_$2
1712
1713 /* System header to define __stub macros and hopefully few prototypes,
1714 which can conflict with char $2 (); below.
1715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1716 <limits.h> exists even on freestanding compilers. */
1717
1718 #ifdef __STDC__
1719 # include <limits.h>
1720 #else
1721 # include <assert.h>
1722 #endif
1723
1724 #undef $2
1725
1726 /* Override any GCC internal prototype to avoid an error.
1727 Use char because int might match the return type of a GCC
1728 builtin and then its argument prototype would still apply. */
1729 #ifdef __cplusplus
1730 extern "C"
1731 #endif
1732 char $2 ();
1733 /* The GNU C library defines this for functions which it implements
1734 to always fail with ENOSYS. Some functions are actually named
1735 something starting with __ and the normal name is an alias. */
1736 #if defined __stub_$2 || defined __stub___$2
1737 choke me
1738 #endif
1739
1740 int
1741 main ()
1742 {
1743 return $2 ();
1744 ;
1745 return 0;
1746 }
1747 _ACEOF
1748 if ac_fn_c_try_link "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1752 fi
1753 rm -f core conftest.err conftest.$ac_objext \
1754 conftest$ac_exeext conftest.$ac_ext
1755 fi
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760
1761 } # ac_fn_c_check_func
1762
1763 # ac_fn_c_check_decl LINENO SYMBOL VAR
1764 # ------------------------------------
1765 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1766 ac_fn_c_check_decl ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 as_decl_name=`echo $2|sed 's/ *(.*//'`
1770 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1772 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 $4
1779 int
1780 main ()
1781 {
1782 #ifndef $as_decl_name
1783 #ifdef __cplusplus
1784 (void) $as_decl_use;
1785 #else
1786 (void) $as_decl_name;
1787 #endif
1788 #endif
1789
1790 ;
1791 return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796 else
1797 eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805
1806 } # ac_fn_c_check_decl
1807
1808 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1809 # -------------------------------------------
1810 # Tests whether TYPE exists after having included INCLUDES, setting cache
1811 # variable VAR accordingly.
1812 ac_fn_c_check_type ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 eval "$3=no"
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 $4
1824 int
1825 main ()
1826 {
1827 if (sizeof ($2))
1828 return 0;
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 $4
1837 int
1838 main ()
1839 {
1840 if (sizeof (($2)))
1841 return 0;
1842 ;
1843 return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847
1848 else
1849 eval "$3=yes"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859
1860 } # ac_fn_c_check_type
1861 cat >config.log <<_ACEOF
1862 This file contains any messages produced by compilers while
1863 running configure, to aid debugging if configure makes a mistake.
1864
1865 It was created by $as_me, which was
1866 generated by GNU Autoconf 2.64. Invocation command line was
1867
1868 $ $0 $@
1869
1870 _ACEOF
1871 exec 5>>config.log
1872 {
1873 cat <<_ASUNAME
1874 ## --------- ##
1875 ## Platform. ##
1876 ## --------- ##
1877
1878 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1879 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1880 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1881 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1882 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883
1884 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1885 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886
1887 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1888 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1889 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1890 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1891 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1892 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1893 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1894
1895 _ASUNAME
1896
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 $as_echo "PATH: $as_dir"
1903 done
1904 IFS=$as_save_IFS
1905
1906 } >&5
1907
1908 cat >&5 <<_ACEOF
1909
1910
1911 ## ----------- ##
1912 ## Core tests. ##
1913 ## ----------- ##
1914
1915 _ACEOF
1916
1917
1918 # Keep a trace of the command line.
1919 # Strip out --no-create and --no-recursion so they do not pile up.
1920 # Strip out --silent because we don't want to record it for future runs.
1921 # Also quote any args containing shell meta-characters.
1922 # Make two passes to allow for proper duplicate-argument suppression.
1923 ac_configure_args=
1924 ac_configure_args0=
1925 ac_configure_args1=
1926 ac_must_keep_next=false
1927 for ac_pass in 1 2
1928 do
1929 for ac_arg
1930 do
1931 case $ac_arg in
1932 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1933 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1934 | -silent | --silent | --silen | --sile | --sil)
1935 continue ;;
1936 *\'*)
1937 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1938 esac
1939 case $ac_pass in
1940 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1941 2)
1942 as_fn_append ac_configure_args1 " '$ac_arg'"
1943 if test $ac_must_keep_next = true; then
1944 ac_must_keep_next=false # Got value, back to normal.
1945 else
1946 case $ac_arg in
1947 *=* | --config-cache | -C | -disable-* | --disable-* \
1948 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1949 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1950 | -with-* | --with-* | -without-* | --without-* | --x)
1951 case "$ac_configure_args0 " in
1952 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1953 esac
1954 ;;
1955 -* ) ac_must_keep_next=true ;;
1956 esac
1957 fi
1958 as_fn_append ac_configure_args " '$ac_arg'"
1959 ;;
1960 esac
1961 done
1962 done
1963 { ac_configure_args0=; unset ac_configure_args0;}
1964 { ac_configure_args1=; unset ac_configure_args1;}
1965
1966 # When interrupted or exit'd, cleanup temporary files, and complete
1967 # config.log. We remove comments because anyway the quotes in there
1968 # would cause problems or look ugly.
1969 # WARNING: Use '\'' to represent an apostrophe within the trap.
1970 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1971 trap 'exit_status=$?
1972 # Save into config.log some information that might help in debugging.
1973 {
1974 echo
1975
1976 cat <<\_ASBOX
1977 ## ---------------- ##
1978 ## Cache variables. ##
1979 ## ---------------- ##
1980 _ASBOX
1981 echo
1982 # The following way of writing the cache mishandles newlines in values,
1983 (
1984 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in #(
1987 *${as_nl}*)
1988 case $ac_var in #(
1989 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991 esac
1992 case $ac_var in #(
1993 _ | IFS | as_nl) ;; #(
1994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995 *) { eval $ac_var=; unset $ac_var;} ;;
1996 esac ;;
1997 esac
1998 done
1999 (set) 2>&1 |
2000 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001 *${as_nl}ac_space=\ *)
2002 sed -n \
2003 "s/'\''/'\''\\\\'\'''\''/g;
2004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 ;; #(
2006 *)
2007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2008 ;;
2009 esac |
2010 sort
2011 )
2012 echo
2013
2014 cat <<\_ASBOX
2015 ## ----------------- ##
2016 ## Output variables. ##
2017 ## ----------------- ##
2018 _ASBOX
2019 echo
2020 for ac_var in $ac_subst_vars
2021 do
2022 eval ac_val=\$$ac_var
2023 case $ac_val in
2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025 esac
2026 $as_echo "$ac_var='\''$ac_val'\''"
2027 done | sort
2028 echo
2029
2030 if test -n "$ac_subst_files"; then
2031 cat <<\_ASBOX
2032 ## ------------------- ##
2033 ## File substitutions. ##
2034 ## ------------------- ##
2035 _ASBOX
2036 echo
2037 for ac_var in $ac_subst_files
2038 do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2046 fi
2047
2048 if test -s confdefs.h; then
2049 cat <<\_ASBOX
2050 ## ----------- ##
2051 ## confdefs.h. ##
2052 ## ----------- ##
2053 _ASBOX
2054 echo
2055 cat confdefs.h
2056 echo
2057 fi
2058 test "$ac_signal" != 0 &&
2059 $as_echo "$as_me: caught signal $ac_signal"
2060 $as_echo "$as_me: exit $exit_status"
2061 } >&5
2062 rm -f core *.core core.conftest.* &&
2063 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064 exit $exit_status
2065 ' 0
2066 for ac_signal in 1 2 13 15; do
2067 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2068 done
2069 ac_signal=0
2070
2071 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2072 rm -f -r conftest* confdefs.h
2073
2074 $as_echo "/* confdefs.h */" > confdefs.h
2075
2076 # Predefined preprocessor variables.
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_NAME "$PACKAGE_NAME"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2088 _ACEOF
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_STRING "$PACKAGE_STRING"
2092 _ACEOF
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2096 _ACEOF
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_URL "$PACKAGE_URL"
2100 _ACEOF
2101
2102
2103 # Let the site file select an alternate cache file if it wants to.
2104 # Prefer an explicitly selected file to automatically selected ones.
2105 ac_site_file1=NONE
2106 ac_site_file2=NONE
2107 if test -n "$CONFIG_SITE"; then
2108 ac_site_file1=$CONFIG_SITE
2109 elif test "x$prefix" != xNONE; then
2110 ac_site_file1=$prefix/share/config.site
2111 ac_site_file2=$prefix/etc/config.site
2112 else
2113 ac_site_file1=$ac_default_prefix/share/config.site
2114 ac_site_file2=$ac_default_prefix/etc/config.site
2115 fi
2116 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117 do
2118 test "x$ac_site_file" = xNONE && continue
2119 if test -r "$ac_site_file"; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2121 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2122 sed 's/^/| /' "$ac_site_file" >&5
2123 . "$ac_site_file"
2124 fi
2125 done
2126
2127 if test -r "$cache_file"; then
2128 # Some versions of bash will fail to source /dev/null (special
2129 # files actually), so we avoid doing that.
2130 if test -f "$cache_file"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132 $as_echo "$as_me: loading cache $cache_file" >&6;}
2133 case $cache_file in
2134 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135 *) . "./$cache_file";;
2136 esac
2137 fi
2138 else
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140 $as_echo "$as_me: creating cache $cache_file" >&6;}
2141 >$cache_file
2142 fi
2143
2144 # Check that the precious variables saved in the cache have kept the same
2145 # value.
2146 ac_cache_corrupted=false
2147 for ac_var in $ac_precious_vars; do
2148 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149 eval ac_new_set=\$ac_env_${ac_var}_set
2150 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151 eval ac_new_val=\$ac_env_${ac_var}_value
2152 case $ac_old_set,$ac_new_set in
2153 set,)
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156 ac_cache_corrupted=: ;;
2157 ,set)
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160 ac_cache_corrupted=: ;;
2161 ,);;
2162 *)
2163 if test "x$ac_old_val" != "x$ac_new_val"; then
2164 # differences in whitespace do not lead to failure.
2165 ac_old_val_w=`echo x $ac_old_val`
2166 ac_new_val_w=`echo x $ac_new_val`
2167 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2169 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170 ac_cache_corrupted=:
2171 else
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174 eval $ac_var=\$ac_old_val
2175 fi
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2177 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2179 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2180 fi;;
2181 esac
2182 # Pass precious variables to config.status.
2183 if test "$ac_new_set" = set; then
2184 case $ac_new_val in
2185 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2186 *) ac_arg=$ac_var=$ac_new_val ;;
2187 esac
2188 case " $ac_configure_args " in
2189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2190 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2191 esac
2192 fi
2193 done
2194 if $ac_cache_corrupted; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2198 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2200 fi
2201 ## -------------------- ##
2202 ## Main body of script. ##
2203 ## -------------------- ##
2204
2205 ac_ext=c
2206 ac_cpp='$CPP $CPPFLAGS'
2207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210
2211
2212
2213
2214
2215 ac_config_headers="$ac_config_headers config.h:config.in"
2216
2217
2218
2219 ac_ext=c
2220 ac_cpp='$CPP $CPPFLAGS'
2221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224 if test -n "$ac_tool_prefix"; then
2225 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2226 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2228 $as_echo_n "checking for $ac_word... " >&6; }
2229 if test "${ac_cv_prog_CC+set}" = set; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2245 fi
2246 done
2247 done
2248 IFS=$as_save_IFS
2249
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2255 $as_echo "$CC" >&6; }
2256 else
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2258 $as_echo "no" >&6; }
2259 fi
2260
2261
2262 fi
2263 if test -z "$ac_cv_prog_CC"; then
2264 ac_ct_CC=$CC
2265 # Extract the first word of "gcc", so it can be a program name with args.
2266 set dummy gcc; ac_word=$2
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2268 $as_echo_n "checking for $ac_word... " >&6; }
2269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2270 $as_echo_n "(cached) " >&6
2271 else
2272 if test -n "$ac_ct_CC"; then
2273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2282 ac_cv_prog_ac_ct_CC="gcc"
2283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2285 fi
2286 done
2287 done
2288 IFS=$as_save_IFS
2289
2290 fi
2291 fi
2292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2293 if test -n "$ac_ct_CC"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2295 $as_echo "$ac_ct_CC" >&6; }
2296 else
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2298 $as_echo "no" >&6; }
2299 fi
2300
2301 if test "x$ac_ct_CC" = x; then
2302 CC=""
2303 else
2304 case $cross_compiling:$ac_tool_warned in
2305 yes:)
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2308 ac_tool_warned=yes ;;
2309 esac
2310 CC=$ac_ct_CC
2311 fi
2312 else
2313 CC="$ac_cv_prog_CC"
2314 fi
2315
2316 if test -z "$CC"; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}cc; ac_word=$2
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if test "${ac_cv_prog_CC+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 if test -n "$CC"; then
2326 ac_cv_prog_CC="$CC" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_CC="${ac_tool_prefix}cc"
2336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2338 fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 CC=$ac_cv_prog_CC
2346 if test -n "$CC"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2348 $as_echo "$CC" >&6; }
2349 else
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2351 $as_echo "no" >&6; }
2352 fi
2353
2354
2355 fi
2356 fi
2357 if test -z "$CC"; then
2358 # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc; ac_word=$2
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2361 $as_echo_n "checking for $ac_word... " >&6; }
2362 if test "${ac_cv_prog_CC+set}" = set; then :
2363 $as_echo_n "(cached) " >&6
2364 else
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368 ac_prog_rejected=no
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377 ac_prog_rejected=yes
2378 continue
2379 fi
2380 ac_cv_prog_CC="cc"
2381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2383 fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 if test $ac_prog_rejected = yes; then
2389 # We found a bogon in the path, so make sure we never use it.
2390 set dummy $ac_cv_prog_CC
2391 shift
2392 if test $# != 0; then
2393 # We chose a different compiler from the bogus one.
2394 # However, it has the same basename, so the bogon will be chosen
2395 # first if we set CC to just the basename; use the full file name.
2396 shift
2397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2398 fi
2399 fi
2400 fi
2401 fi
2402 CC=$ac_cv_prog_CC
2403 if test -n "$CC"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2405 $as_echo "$CC" >&6; }
2406 else
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408 $as_echo "no" >&6; }
2409 fi
2410
2411
2412 fi
2413 if test -z "$CC"; then
2414 if test -n "$ac_tool_prefix"; then
2415 for ac_prog in cl.exe
2416 do
2417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2420 $as_echo_n "checking for $ac_word... " >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2426 else
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 for as_dir in $PATH
2429 do
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2437 fi
2438 done
2439 done
2440 IFS=$as_save_IFS
2441
2442 fi
2443 fi
2444 CC=$ac_cv_prog_CC
2445 if test -n "$CC"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2447 $as_echo "$CC" >&6; }
2448 else
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2450 $as_echo "no" >&6; }
2451 fi
2452
2453
2454 test -n "$CC" && break
2455 done
2456 fi
2457 if test -z "$CC"; then
2458 ac_ct_CC=$CC
2459 for ac_prog in cl.exe
2460 do
2461 # Extract the first word of "$ac_prog", so it can be a program name with args.
2462 set dummy $ac_prog; ac_word=$2
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2464 $as_echo_n "checking for $ac_word... " >&6; }
2465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 if test -n "$ac_ct_CC"; then
2469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_ac_ct_CC="$ac_prog"
2479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 break 2
2481 fi
2482 done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2489 if test -n "$ac_ct_CC"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2491 $as_echo "$ac_ct_CC" >&6; }
2492 else
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494 $as_echo "no" >&6; }
2495 fi
2496
2497
2498 test -n "$ac_ct_CC" && break
2499 done
2500
2501 if test "x$ac_ct_CC" = x; then
2502 CC=""
2503 else
2504 case $cross_compiling:$ac_tool_warned in
2505 yes:)
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2508 ac_tool_warned=yes ;;
2509 esac
2510 CC=$ac_ct_CC
2511 fi
2512 fi
2513
2514 fi
2515
2516
2517 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 as_fn_error "no acceptable C compiler found in \$PATH
2520 See \`config.log' for more details." "$LINENO" 5; }
2521
2522 # Provide some information about the compiler.
2523 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2524 set X $ac_compile
2525 ac_compiler=$2
2526 for ac_option in --version -v -V -qversion; do
2527 { { ac_try="$ac_compiler $ac_option >&5"
2528 case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531 esac
2532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2533 $as_echo "$ac_try_echo"; } >&5
2534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2535 ac_status=$?
2536 if test -s conftest.err; then
2537 sed '10a\
2538 ... rest of stderr output deleted ...
2539 10q' conftest.err >conftest.er1
2540 cat conftest.er1 >&5
2541 rm -f conftest.er1 conftest.err
2542 fi
2543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544 test $ac_status = 0; }
2545 done
2546
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2549
2550 int
2551 main ()
2552 {
2553
2554 ;
2555 return 0;
2556 }
2557 _ACEOF
2558 ac_clean_files_save=$ac_clean_files
2559 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2560 # Try to create an executable without -o first, disregard a.out.
2561 # It will help us diagnose broken compilers, and finding out an intuition
2562 # of exeext.
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2564 $as_echo_n "checking for C compiler default output file name... " >&6; }
2565 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2566
2567 # The possible output files:
2568 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2569
2570 ac_rmfiles=
2571 for ac_file in $ac_files
2572 do
2573 case $ac_file in
2574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2575 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2576 esac
2577 done
2578 rm -f $ac_rmfiles
2579
2580 if { { ac_try="$ac_link_default"
2581 case "(($ac_try" in
2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583 *) ac_try_echo=$ac_try;;
2584 esac
2585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2586 $as_echo "$ac_try_echo"; } >&5
2587 (eval "$ac_link_default") 2>&5
2588 ac_status=$?
2589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2590 test $ac_status = 0; }; then :
2591 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2592 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2593 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2594 # so that the user can short-circuit this test for compilers unknown to
2595 # Autoconf.
2596 for ac_file in $ac_files ''
2597 do
2598 test -f "$ac_file" || continue
2599 case $ac_file in
2600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2601 ;;
2602 [ab].out )
2603 # We found the default executable, but exeext='' is most
2604 # certainly right.
2605 break;;
2606 *.* )
2607 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2608 then :; else
2609 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2610 fi
2611 # We set ac_cv_exeext here because the later test for it is not
2612 # safe: cross compilers may not add the suffix if given an `-o'
2613 # argument, so we may need to know it at that point already.
2614 # Even if this section looks crufty: it has the advantage of
2615 # actually working.
2616 break;;
2617 * )
2618 break;;
2619 esac
2620 done
2621 test "$ac_cv_exeext" = no && ac_cv_exeext=
2622
2623 else
2624 ac_file=''
2625 fi
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2627 $as_echo "$ac_file" >&6; }
2628 if test -z "$ac_file"; then :
2629 $as_echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 { as_fn_set_status 77
2635 as_fn_error "C compiler cannot create executables
2636 See \`config.log' for more details." "$LINENO" 5; }; }
2637 fi
2638 ac_exeext=$ac_cv_exeext
2639
2640 # Check that the compiler produces executables we can run. If not, either
2641 # the compiler is broken, or we cross compile.
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2643 $as_echo_n "checking whether the C compiler works... " >&6; }
2644 # If not cross compiling, check that we can run a simple program.
2645 if test "$cross_compiling" != yes; then
2646 if { ac_try='./$ac_file'
2647 { { case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2650 esac
2651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652 $as_echo "$ac_try_echo"; } >&5
2653 (eval "$ac_try") 2>&5
2654 ac_status=$?
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; }; }; then
2657 cross_compiling=no
2658 else
2659 if test "$cross_compiling" = maybe; then
2660 cross_compiling=yes
2661 else
2662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 as_fn_error "cannot run C compiled programs.
2665 If you meant to cross compile, use \`--host'.
2666 See \`config.log' for more details." "$LINENO" 5; }
2667 fi
2668 fi
2669 fi
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671 $as_echo "yes" >&6; }
2672
2673 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2674 ac_clean_files=$ac_clean_files_save
2675 # Check that the compiler produces executables we can run. If not, either
2676 # the compiler is broken, or we cross compile.
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2678 $as_echo_n "checking whether we are cross compiling... " >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2680 $as_echo "$cross_compiling" >&6; }
2681
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2683 $as_echo_n "checking for suffix of executables... " >&6; }
2684 if { { ac_try="$ac_link"
2685 case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688 esac
2689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2690 $as_echo "$ac_try_echo"; } >&5
2691 (eval "$ac_link") 2>&5
2692 ac_status=$?
2693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2694 test $ac_status = 0; }; then :
2695 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2696 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2697 # work properly (i.e., refer to `conftest.exe'), while it won't with
2698 # `rm'.
2699 for ac_file in conftest.exe conftest conftest.*; do
2700 test -f "$ac_file" || continue
2701 case $ac_file in
2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2703 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2704 break;;
2705 * ) break;;
2706 esac
2707 done
2708 else
2709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2711 as_fn_error "cannot compute suffix of executables: cannot compile and link
2712 See \`config.log' for more details." "$LINENO" 5; }
2713 fi
2714 rm -f conftest$ac_cv_exeext
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2716 $as_echo "$ac_cv_exeext" >&6; }
2717
2718 rm -f conftest.$ac_ext
2719 EXEEXT=$ac_cv_exeext
2720 ac_exeext=$EXEEXT
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2722 $as_echo_n "checking for suffix of object files... " >&6; }
2723 if test "${ac_cv_objext+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2728
2729 int
2730 main ()
2731 {
2732
2733 ;
2734 return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.o conftest.obj
2738 if { { ac_try="$ac_compile"
2739 case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742 esac
2743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2744 $as_echo "$ac_try_echo"; } >&5
2745 (eval "$ac_compile") 2>&5
2746 ac_status=$?
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }; then :
2749 for ac_file in conftest.o conftest.obj conftest.*; do
2750 test -f "$ac_file" || continue;
2751 case $ac_file in
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2753 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2754 break;;
2755 esac
2756 done
2757 else
2758 $as_echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 as_fn_error "cannot compute suffix of object files: cannot compile
2764 See \`config.log' for more details." "$LINENO" 5; }
2765 fi
2766 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2767 fi
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2769 $as_echo "$ac_cv_objext" >&6; }
2770 OBJEXT=$ac_cv_objext
2771 ac_objext=$OBJEXT
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2773 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2774 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2779
2780 int
2781 main ()
2782 {
2783 #ifndef __GNUC__
2784 choke me
2785 #endif
2786
2787 ;
2788 return 0;
2789 }
2790 _ACEOF
2791 if ac_fn_c_try_compile "$LINENO"; then :
2792 ac_compiler_gnu=yes
2793 else
2794 ac_compiler_gnu=no
2795 fi
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2798
2799 fi
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2801 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2802 if test $ac_compiler_gnu = yes; then
2803 GCC=yes
2804 else
2805 GCC=
2806 fi
2807 ac_test_CFLAGS=${CFLAGS+set}
2808 ac_save_CFLAGS=$CFLAGS
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2810 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2811 if test "${ac_cv_prog_cc_g+set}" = set; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 ac_save_c_werror_flag=$ac_c_werror_flag
2815 ac_c_werror_flag=yes
2816 ac_cv_prog_cc_g=no
2817 CFLAGS="-g"
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h. */
2820
2821 int
2822 main ()
2823 {
2824
2825 ;
2826 return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 ac_cv_prog_cc_g=yes
2831 else
2832 CFLAGS=""
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2835
2836 int
2837 main ()
2838 {
2839
2840 ;
2841 return 0;
2842 }
2843 _ACEOF
2844 if ac_fn_c_try_compile "$LINENO"; then :
2845
2846 else
2847 ac_c_werror_flag=$ac_save_c_werror_flag
2848 CFLAGS="-g"
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2851
2852 int
2853 main ()
2854 {
2855
2856 ;
2857 return 0;
2858 }
2859 _ACEOF
2860 if ac_fn_c_try_compile "$LINENO"; then :
2861 ac_cv_prog_cc_g=yes
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 fi
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 fi
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 ac_c_werror_flag=$ac_save_c_werror_flag
2869 fi
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2871 $as_echo "$ac_cv_prog_cc_g" >&6; }
2872 if test "$ac_test_CFLAGS" = set; then
2873 CFLAGS=$ac_save_CFLAGS
2874 elif test $ac_cv_prog_cc_g = yes; then
2875 if test "$GCC" = yes; then
2876 CFLAGS="-g -O2"
2877 else
2878 CFLAGS="-g"
2879 fi
2880 else
2881 if test "$GCC" = yes; then
2882 CFLAGS="-O2"
2883 else
2884 CFLAGS=
2885 fi
2886 fi
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2889 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 ac_cv_prog_cc_c89=no
2893 ac_save_CC=$CC
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2896 #include <stdarg.h>
2897 #include <stdio.h>
2898 #include <sys/types.h>
2899 #include <sys/stat.h>
2900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2901 struct buf { int x; };
2902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2903 static char *e (p, i)
2904 char **p;
2905 int i;
2906 {
2907 return p[i];
2908 }
2909 static char *f (char * (*g) (char **, int), char **p, ...)
2910 {
2911 char *s;
2912 va_list v;
2913 va_start (v,p);
2914 s = g (p, va_arg (v,int));
2915 va_end (v);
2916 return s;
2917 }
2918
2919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2920 function prototypes and stuff, but not '\xHH' hex character constants.
2921 These don't provoke an error unfortunately, instead are silently treated
2922 as 'x'. The following induces an error, until -std is added to get
2923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2924 array size at least. It's necessary to write '\x00'==0 to get something
2925 that's true only with -std. */
2926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2927
2928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2929 inside strings and character constants. */
2930 #define FOO(x) 'x'
2931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2932
2933 int test (int i, double x);
2934 struct s1 {int (*f) (int a);};
2935 struct s2 {int (*f) (double a);};
2936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2937 int argc;
2938 char **argv;
2939 int
2940 main ()
2941 {
2942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2943 ;
2944 return 0;
2945 }
2946 _ACEOF
2947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2949 do
2950 CC="$ac_save_CC $ac_arg"
2951 if ac_fn_c_try_compile "$LINENO"; then :
2952 ac_cv_prog_cc_c89=$ac_arg
2953 fi
2954 rm -f core conftest.err conftest.$ac_objext
2955 test "x$ac_cv_prog_cc_c89" != "xno" && break
2956 done
2957 rm -f conftest.$ac_ext
2958 CC=$ac_save_CC
2959
2960 fi
2961 # AC_CACHE_VAL
2962 case "x$ac_cv_prog_cc_c89" in
2963 x)
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2965 $as_echo "none needed" >&6; } ;;
2966 xno)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2968 $as_echo "unsupported" >&6; } ;;
2969 *)
2970 CC="$CC $ac_cv_prog_cc_c89"
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2973 esac
2974 if test "x$ac_cv_prog_cc_c89" != xno; then :
2975
2976 fi
2977
2978 ac_ext=c
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983
2984
2985 ac_ext=c
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2991 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2992 # On Suns, sometimes $CPP names a directory.
2993 if test -n "$CPP" && test -d "$CPP"; then
2994 CPP=
2995 fi
2996 if test -z "$CPP"; then
2997 if test "${ac_cv_prog_CPP+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 # Double quotes because CPP needs to be expanded
3001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3002 do
3003 ac_preproc_ok=false
3004 for ac_c_preproc_warn_flag in '' yes
3005 do
3006 # Use a header file that comes with gcc, so configuring glibc
3007 # with a fresh cross-compiler works.
3008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009 # <limits.h> exists even on freestanding compilers.
3010 # On the NeXT, cc -E runs the code through the compiler's parser,
3011 # not just through cpp. "Syntax error" is here to catch this case.
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013 /* end confdefs.h. */
3014 #ifdef __STDC__
3015 # include <limits.h>
3016 #else
3017 # include <assert.h>
3018 #endif
3019 Syntax error
3020 _ACEOF
3021 if ac_fn_c_try_cpp "$LINENO"; then :
3022
3023 else
3024 # Broken: fails on valid input.
3025 continue
3026 fi
3027 rm -f conftest.err conftest.$ac_ext
3028
3029 # OK, works on sane cases. Now check whether nonexistent headers
3030 # can be detected and how.
3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032 /* end confdefs.h. */
3033 #include <ac_nonexistent.h>
3034 _ACEOF
3035 if ac_fn_c_try_cpp "$LINENO"; then :
3036 # Broken: success on invalid input.
3037 continue
3038 else
3039 # Passes both tests.
3040 ac_preproc_ok=:
3041 break
3042 fi
3043 rm -f conftest.err conftest.$ac_ext
3044
3045 done
3046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3047 rm -f conftest.err conftest.$ac_ext
3048 if $ac_preproc_ok; then :
3049 break
3050 fi
3051
3052 done
3053 ac_cv_prog_CPP=$CPP
3054
3055 fi
3056 CPP=$ac_cv_prog_CPP
3057 else
3058 ac_cv_prog_CPP=$CPP
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3061 $as_echo "$CPP" >&6; }
3062 ac_preproc_ok=false
3063 for ac_c_preproc_warn_flag in '' yes
3064 do
3065 # Use a header file that comes with gcc, so configuring glibc
3066 # with a fresh cross-compiler works.
3067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3068 # <limits.h> exists even on freestanding compilers.
3069 # On the NeXT, cc -E runs the code through the compiler's parser,
3070 # not just through cpp. "Syntax error" is here to catch this case.
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3073 #ifdef __STDC__
3074 # include <limits.h>
3075 #else
3076 # include <assert.h>
3077 #endif
3078 Syntax error
3079 _ACEOF
3080 if ac_fn_c_try_cpp "$LINENO"; then :
3081
3082 else
3083 # Broken: fails on valid input.
3084 continue
3085 fi
3086 rm -f conftest.err conftest.$ac_ext
3087
3088 # OK, works on sane cases. Now check whether nonexistent headers
3089 # can be detected and how.
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if ac_fn_c_try_cpp "$LINENO"; then :
3095 # Broken: success on invalid input.
3096 continue
3097 else
3098 # Passes both tests.
3099 ac_preproc_ok=:
3100 break
3101 fi
3102 rm -f conftest.err conftest.$ac_ext
3103
3104 done
3105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3106 rm -f conftest.err conftest.$ac_ext
3107 if $ac_preproc_ok; then :
3108
3109 else
3110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3113 See \`config.log' for more details." "$LINENO" 5; }
3114 fi
3115
3116 ac_ext=c
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121
3122
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3124 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3125 if test "${ac_cv_path_GREP+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -z "$GREP"; then
3129 ac_path_GREP_found=false
3130 # Loop through the user's path and test for each of PROGNAME-LIST
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_prog in grep ggrep; do
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3139 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3140 # Check for GNU ac_path_GREP and select it if it is found.
3141 # Check for GNU $ac_path_GREP
3142 case `"$ac_path_GREP" --version 2>&1` in
3143 *GNU*)
3144 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3145 *)
3146 ac_count=0
3147 $as_echo_n 0123456789 >"conftest.in"
3148 while :
3149 do
3150 cat "conftest.in" "conftest.in" >"conftest.tmp"
3151 mv "conftest.tmp" "conftest.in"
3152 cp "conftest.in" "conftest.nl"
3153 $as_echo 'GREP' >> "conftest.nl"
3154 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3156 as_fn_arith $ac_count + 1 && ac_count=$as_val
3157 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3158 # Best one so far, save it but keep looking for a better one
3159 ac_cv_path_GREP="$ac_path_GREP"
3160 ac_path_GREP_max=$ac_count
3161 fi
3162 # 10*(2^10) chars as input seems more than enough
3163 test $ac_count -gt 10 && break
3164 done
3165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3166 esac
3167
3168 $ac_path_GREP_found && break 3
3169 done
3170 done
3171 done
3172 IFS=$as_save_IFS
3173 if test -z "$ac_cv_path_GREP"; then
3174 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3175 fi
3176 else
3177 ac_cv_path_GREP=$GREP
3178 fi
3179
3180 fi
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3182 $as_echo "$ac_cv_path_GREP" >&6; }
3183 GREP="$ac_cv_path_GREP"
3184
3185
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3187 $as_echo_n "checking for egrep... " >&6; }
3188 if test "${ac_cv_path_EGREP+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3192 then ac_cv_path_EGREP="$GREP -E"
3193 else
3194 if test -z "$EGREP"; then
3195 ac_path_EGREP_found=false
3196 # Loop through the user's path and test for each of PROGNAME-LIST
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3199 do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_prog in egrep; do
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3205 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3206 # Check for GNU ac_path_EGREP and select it if it is found.
3207 # Check for GNU $ac_path_EGREP
3208 case `"$ac_path_EGREP" --version 2>&1` in
3209 *GNU*)
3210 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3211 *)
3212 ac_count=0
3213 $as_echo_n 0123456789 >"conftest.in"
3214 while :
3215 do
3216 cat "conftest.in" "conftest.in" >"conftest.tmp"
3217 mv "conftest.tmp" "conftest.in"
3218 cp "conftest.in" "conftest.nl"
3219 $as_echo 'EGREP' >> "conftest.nl"
3220 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3222 as_fn_arith $ac_count + 1 && ac_count=$as_val
3223 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3224 # Best one so far, save it but keep looking for a better one
3225 ac_cv_path_EGREP="$ac_path_EGREP"
3226 ac_path_EGREP_max=$ac_count
3227 fi
3228 # 10*(2^10) chars as input seems more than enough
3229 test $ac_count -gt 10 && break
3230 done
3231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3232 esac
3233
3234 $ac_path_EGREP_found && break 3
3235 done
3236 done
3237 done
3238 IFS=$as_save_IFS
3239 if test -z "$ac_cv_path_EGREP"; then
3240 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3241 fi
3242 else
3243 ac_cv_path_EGREP=$EGREP
3244 fi
3245
3246 fi
3247 fi
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3249 $as_echo "$ac_cv_path_EGREP" >&6; }
3250 EGREP="$ac_cv_path_EGREP"
3251
3252
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3254 $as_echo_n "checking for ANSI C header files... " >&6; }
3255 if test "${ac_cv_header_stdc+set}" = set; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3260 #include <stdlib.h>
3261 #include <stdarg.h>
3262 #include <string.h>
3263 #include <float.h>
3264
3265 int
3266 main ()
3267 {
3268
3269 ;
3270 return 0;
3271 }
3272 _ACEOF
3273 if ac_fn_c_try_compile "$LINENO"; then :
3274 ac_cv_header_stdc=yes
3275 else
3276 ac_cv_header_stdc=no
3277 fi
3278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3279
3280 if test $ac_cv_header_stdc = yes; then
3281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3284 #include <string.h>
3285
3286 _ACEOF
3287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3288 $EGREP "memchr" >/dev/null 2>&1; then :
3289
3290 else
3291 ac_cv_header_stdc=no
3292 fi
3293 rm -f conftest*
3294
3295 fi
3296
3297 if test $ac_cv_header_stdc = yes; then
3298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3301 #include <stdlib.h>
3302
3303 _ACEOF
3304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3305 $EGREP "free" >/dev/null 2>&1; then :
3306
3307 else
3308 ac_cv_header_stdc=no
3309 fi
3310 rm -f conftest*
3311
3312 fi
3313
3314 if test $ac_cv_header_stdc = yes; then
3315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3316 if test "$cross_compiling" = yes; then :
3317 :
3318 else
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3321 #include <ctype.h>
3322 #include <stdlib.h>
3323 #if ((' ' & 0x0FF) == 0x020)
3324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3326 #else
3327 # define ISLOWER(c) \
3328 (('a' <= (c) && (c) <= 'i') \
3329 || ('j' <= (c) && (c) <= 'r') \
3330 || ('s' <= (c) && (c) <= 'z'))
3331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3332 #endif
3333
3334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3335 int
3336 main ()
3337 {
3338 int i;
3339 for (i = 0; i < 256; i++)
3340 if (XOR (islower (i), ISLOWER (i))
3341 || toupper (i) != TOUPPER (i))
3342 return 2;
3343 return 0;
3344 }
3345 _ACEOF
3346 if ac_fn_c_try_run "$LINENO"; then :
3347
3348 else
3349 ac_cv_header_stdc=no
3350 fi
3351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3352 conftest.$ac_objext conftest.beam conftest.$ac_ext
3353 fi
3354
3355 fi
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3358 $as_echo "$ac_cv_header_stdc" >&6; }
3359 if test $ac_cv_header_stdc = yes; then
3360
3361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3362
3363 fi
3364
3365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3367 inttypes.h stdint.h unistd.h
3368 do :
3369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3371 "
3372 eval as_val=\$$as_ac_Header
3373 if test "x$as_val" = x""yes; then :
3374 cat >>confdefs.h <<_ACEOF
3375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3376 _ACEOF
3377
3378 fi
3379
3380 done
3381
3382
3383
3384 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3385 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3386 MINIX=yes
3387 else
3388 MINIX=
3389 fi
3390
3391
3392 if test "$MINIX" = yes; then
3393
3394 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3395
3396
3397 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3398
3399
3400 $as_echo "#define _MINIX 1" >>confdefs.h
3401
3402 fi
3403
3404
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3406 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3407 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3412
3413 # define __EXTENSIONS__ 1
3414 $ac_includes_default
3415 int
3416 main ()
3417 {
3418
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_safe_to_define___extensions__=yes
3425 else
3426 ac_cv_safe_to_define___extensions__=no
3427 fi
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3431 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3432 test $ac_cv_safe_to_define___extensions__ = yes &&
3433 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3434
3435 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3436
3437 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3438
3439 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3440
3441 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3442
3443
3444
3445
3446 ac_aux_dir=
3447 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3448 for ac_t in install-sh install.sh shtool; do
3449 if test -f "$ac_dir/$ac_t"; then
3450 ac_aux_dir=$ac_dir
3451 ac_install_sh="$ac_aux_dir/$ac_t -c"
3452 break 2
3453 fi
3454 done
3455 done
3456 if test -z "$ac_aux_dir"; then
3457 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3458 fi
3459
3460 # These three variables are undocumented and unsupported,
3461 # and are intended to be withdrawn in a future Autoconf release.
3462 # They can cause serious problems if a builder's source tree is in a directory
3463 # whose full name contains unusual characters.
3464 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3465 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3466 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3467
3468
3469 # Make sure we can run config.sub.
3470 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3471 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3472
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3474 $as_echo_n "checking build system type... " >&6; }
3475 if test "${ac_cv_build+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 ac_build_alias=$build_alias
3479 test "x$ac_build_alias" = x &&
3480 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3481 test "x$ac_build_alias" = x &&
3482 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3483 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3484 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3485
3486 fi
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3488 $as_echo "$ac_cv_build" >&6; }
3489 case $ac_cv_build in
3490 *-*-*) ;;
3491 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3492 esac
3493 build=$ac_cv_build
3494 ac_save_IFS=$IFS; IFS='-'
3495 set x $ac_cv_build
3496 shift
3497 build_cpu=$1
3498 build_vendor=$2
3499 shift; shift
3500 # Remember, the first character of IFS is used to create $*,
3501 # except with old shells:
3502 build_os=$*
3503 IFS=$ac_save_IFS
3504 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3505
3506
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3508 $as_echo_n "checking host system type... " >&6; }
3509 if test "${ac_cv_host+set}" = set; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test "x$host_alias" = x; then
3513 ac_cv_host=$ac_cv_build
3514 else
3515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3516 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3517 fi
3518
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3521 $as_echo "$ac_cv_host" >&6; }
3522 case $ac_cv_host in
3523 *-*-*) ;;
3524 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3525 esac
3526 host=$ac_cv_host
3527 ac_save_IFS=$IFS; IFS='-'
3528 set x $ac_cv_host
3529 shift
3530 host_cpu=$1
3531 host_vendor=$2
3532 shift; shift
3533 # Remember, the first character of IFS is used to create $*,
3534 # except with old shells:
3535 host_os=$*
3536 IFS=$ac_save_IFS
3537 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3538
3539
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3541 $as_echo_n "checking target system type... " >&6; }
3542 if test "${ac_cv_target+set}" = set; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test "x$target_alias" = x; then
3546 ac_cv_target=$ac_cv_host
3547 else
3548 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3549 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3550 fi
3551
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3554 $as_echo "$ac_cv_target" >&6; }
3555 case $ac_cv_target in
3556 *-*-*) ;;
3557 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3558 esac
3559 target=$ac_cv_target
3560 ac_save_IFS=$IFS; IFS='-'
3561 set x $ac_cv_target
3562 shift
3563 target_cpu=$1
3564 target_vendor=$2
3565 shift; shift
3566 # Remember, the first character of IFS is used to create $*,
3567 # except with old shells:
3568 target_os=$*
3569 IFS=$ac_save_IFS
3570 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3571
3572
3573 # The aliases save the names the user supplied, while $host etc.
3574 # will get canonicalized.
3575 test -n "$target_alias" &&
3576 test "$program_prefix$program_suffix$program_transform_name" = \
3577 NONENONEs,x,x, &&
3578 program_prefix=${target_alias}-
3579
3580
3581 # Find a good install program. We prefer a C program (faster),
3582 # so one script is as good as another. But avoid the broken or
3583 # incompatible versions:
3584 # SysV /etc/install, /usr/sbin/install
3585 # SunOS /usr/etc/install
3586 # IRIX /sbin/install
3587 # AIX /bin/install
3588 # AmigaOS /C/install, which installs bootblocks on floppy discs
3589 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3592 # OS/2's system install, which has a completely different semantic
3593 # ./install, which can be erroneously created by make from ./install.sh.
3594 # Reject install programs that cannot install multiple files.
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3596 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3597 if test -z "$INSTALL"; then
3598 if test "${ac_cv_path_install+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 # Account for people who put trailing slashes in PATH elements.
3607 case $as_dir/ in #((
3608 ./ | .// | /[cC]/* | \
3609 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3610 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3611 /usr/ucb/* ) ;;
3612 *)
3613 # OSF1 and SCO ODT 3.0 have their own names for install.
3614 # Don't use installbsd from OSF since it installs stuff as root
3615 # by default.
3616 for ac_prog in ginstall scoinst install; do
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3619 if test $ac_prog = install &&
3620 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3621 # AIX install. It has an incompatible calling convention.
3622 :
3623 elif test $ac_prog = install &&
3624 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3625 # program-specific install script used by HP pwplus--don't use.
3626 :
3627 else
3628 rm -rf conftest.one conftest.two conftest.dir
3629 echo one > conftest.one
3630 echo two > conftest.two
3631 mkdir conftest.dir
3632 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3633 test -s conftest.one && test -s conftest.two &&
3634 test -s conftest.dir/conftest.one &&
3635 test -s conftest.dir/conftest.two
3636 then
3637 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3638 break 3
3639 fi
3640 fi
3641 fi
3642 done
3643 done
3644 ;;
3645 esac
3646
3647 done
3648 IFS=$as_save_IFS
3649
3650 rm -rf conftest.one conftest.two conftest.dir
3651
3652 fi
3653 if test "${ac_cv_path_install+set}" = set; then
3654 INSTALL=$ac_cv_path_install
3655 else
3656 # As a last resort, use the slow shell script. Don't cache a
3657 # value for INSTALL within a source directory, because that will
3658 # break other packages using the cache if that directory is
3659 # removed, or if the value is a relative name.
3660 INSTALL=$ac_install_sh
3661 fi
3662 fi
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3664 $as_echo "$INSTALL" >&6; }
3665
3666 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3667 # It thinks the first close brace ends the variable substitution.
3668 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3669
3670 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3671
3672 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3673
3674
3675 test "$program_prefix" != NONE &&
3676 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3677 # Use a double $ so make ignores it.
3678 test "$program_suffix" != NONE &&
3679 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3680 # Double any \ or $.
3681 # By default was `s,x,x', remove it if useless.
3682 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3683 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3684
3685
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3687 $as_echo_n "checking for ANSI C header files... " >&6; }
3688 if test "${ac_cv_header_stdc+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693 #include <stdlib.h>
3694 #include <stdarg.h>
3695 #include <string.h>
3696 #include <float.h>
3697
3698 int
3699 main ()
3700 {
3701
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_header_stdc=yes
3708 else
3709 ac_cv_header_stdc=no
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712
3713 if test $ac_cv_header_stdc = yes; then
3714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717 #include <string.h>
3718
3719 _ACEOF
3720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3721 $EGREP "memchr" >/dev/null 2>&1; then :
3722
3723 else
3724 ac_cv_header_stdc=no
3725 fi
3726 rm -f conftest*
3727
3728 fi
3729
3730 if test $ac_cv_header_stdc = yes; then
3731 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 #include <stdlib.h>
3735
3736 _ACEOF
3737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3738 $EGREP "free" >/dev/null 2>&1; then :
3739
3740 else
3741 ac_cv_header_stdc=no
3742 fi
3743 rm -f conftest*
3744
3745 fi
3746
3747 if test $ac_cv_header_stdc = yes; then
3748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3749 if test "$cross_compiling" = yes; then :
3750 :
3751 else
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754 #include <ctype.h>
3755 #include <stdlib.h>
3756 #if ((' ' & 0x0FF) == 0x020)
3757 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3758 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3759 #else
3760 # define ISLOWER(c) \
3761 (('a' <= (c) && (c) <= 'i') \
3762 || ('j' <= (c) && (c) <= 'r') \
3763 || ('s' <= (c) && (c) <= 'z'))
3764 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3765 #endif
3766
3767 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3768 int
3769 main ()
3770 {
3771 int i;
3772 for (i = 0; i < 256; i++)
3773 if (XOR (islower (i), ISLOWER (i))
3774 || toupper (i) != TOUPPER (i))
3775 return 2;
3776 return 0;
3777 }
3778 _ACEOF
3779 if ac_fn_c_try_run "$LINENO"; then :
3780
3781 else
3782 ac_cv_header_stdc=no
3783 fi
3784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3785 conftest.$ac_objext conftest.beam conftest.$ac_ext
3786 fi
3787
3788 fi
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3791 $as_echo "$ac_cv_header_stdc" >&6; }
3792 if test $ac_cv_header_stdc = yes; then
3793
3794 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3795
3796 fi
3797
3798
3799 for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h
3800 do :
3801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3802 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3803 eval as_val=\$$as_ac_Header
3804 if test "x$as_val" = x""yes; then :
3805 cat >>confdefs.h <<_ACEOF
3806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3807 _ACEOF
3808
3809 fi
3810
3811 done
3812
3813 for ac_func in pread pwrite pread64
3814 do :
3815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3817 eval as_val=\$$as_ac_var
3818 if test "x$as_val" = x""yes; then :
3819 cat >>confdefs.h <<_ACEOF
3820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3821 _ACEOF
3822
3823 fi
3824 done
3825
3826 for ac_func in memmem
3827 do :
3828 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
3829 if test "x$ac_cv_func_memmem" = x""yes; then :
3830 cat >>confdefs.h <<_ACEOF
3831 #define HAVE_MEMMEM 1
3832 _ACEOF
3833
3834 else
3835 case " $LIBOBJS " in
3836 *" $ac_func.$ac_objext "* ) ;;
3837 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
3838 ;;
3839 esac
3840
3841 fi
3842 done
3843
3844
3845
3846 # Check for UST
3847 ustlibs=""
3848 ustinc=""
3849
3850
3851 # Check whether --with-ust was given.
3852 if test "${with_ust+set}" = set; then :
3853 withval=$with_ust;
3854 fi
3855
3856
3857 # Check whether --with-ust_include was given.
3858 if test "${with_ust_include+set}" = set; then :
3859 withval=$with_ust_include;
3860 fi
3861
3862
3863 # Check whether --with-ust_lib was given.
3864 if test "${with_ust_lib+set}" = set; then :
3865 withval=$with_ust_lib;
3866 fi
3867
3868
3869 case $with_ust in
3870 no)
3871 ustlibs=
3872 ustinc=
3873 ;;
3874 "" | yes)
3875 ustlibs=" -lust "
3876 ustinc=""
3877 ;;
3878 *)
3879 ustlibs="-L$with_ust/lib -lust"
3880 ustinc="-I$with_ust/include "
3881 ;;
3882 esac
3883 if test "x$with_ust_include" != x; then
3884 ustinc="-I$with_ust_include "
3885 fi
3886 if test "x$with_ust_lib" != x; then
3887 ustlibs="-L$with_ust_lib -lust"
3888 fi
3889
3890 if test "x$with_ust" != "xno"; then
3891 saved_CFLAGS="$CFLAGS"
3892 CFLAGS="$CFLAGS $ustinc"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
3894 $as_echo_n "checking for ust... " >&6; }
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897
3898 #define CONFIG_UST_GDB_INTEGRATION
3899 #include <ust/ust.h>
3900
3901 int
3902 main ()
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3911 $as_echo "yes" >&6; };
3912 $as_echo "#define HAVE_UST 1" >>confdefs.h
3913
3914 else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }; ustlibs= ; ustinc=
3917 fi
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 CFLAGS="$saved_CFLAGS"
3920 fi
3921
3922 # Flags needed for UST
3923
3924
3925
3926 # Check whether --enable-werror was given.
3927 if test "${enable_werror+set}" = set; then :
3928 enableval=$enable_werror; case "${enableval}" in
3929 yes | y) ERROR_ON_WARNING="yes" ;;
3930 no | n) ERROR_ON_WARNING="no" ;;
3931 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
3932 esac
3933 fi
3934
3935
3936 # Enable -Werror by default when using gcc
3937 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
3938 ERROR_ON_WARNING=yes
3939 fi
3940
3941 WERROR_CFLAGS=""
3942 if test "${ERROR_ON_WARNING}" = yes ; then
3943 WERROR_CFLAGS="-Werror"
3944 fi
3945
3946 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
3947 -Wformat-nonliteral -Wno-char-subscripts"
3948
3949 WARN_CFLAGS=""
3950 if test "x$GCC" = xyes
3951 then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
3953 $as_echo_n "checking compiler warning flags... " >&6; }
3954 # Separate out the -Werror flag as some files just cannot be
3955 # compiled with it enabled.
3956 for w in ${build_warnings}; do
3957 case $w in
3958 -Werr*) WERROR_CFLAGS=-Werror ;;
3959 *) # Check that GCC accepts it
3960 saved_CFLAGS="$CFLAGS"
3961 CFLAGS="$CFLAGS $w"
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964
3965 int
3966 main ()
3967 {
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974 WARN_CFLAGS="${WARN_CFLAGS} $w"
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 CFLAGS="$saved_CFLAGS"
3978 esac
3979 done
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
3981 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
3982 fi
3983
3984
3985
3986 old_LIBS="$LIBS"
3987 LIBS="$LIBS -ldl"
3988 for ac_func in dladdr
3989 do :
3990 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
3991 if test "x$ac_cv_func_dladdr" = x""yes; then :
3992 cat >>confdefs.h <<_ACEOF
3993 #define HAVE_DLADDR 1
3994 _ACEOF
3995
3996 fi
3997 done
3998
3999 LIBS="$old_LIBS"
4000
4001 have_errno=no
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4003 $as_echo_n "checking for errno... " >&6; }
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4006
4007 #if HAVE_ERRNO_H
4008 #include <errno.h>
4009 #endif
4010 int
4011 main ()
4012 {
4013 static int x; x = errno;
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_link "$LINENO"; then :
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
4020 $as_echo "yes - in errno.h" >&6; };
4021 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4022 have_errno=yes
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
4026 if test $have_errno = no; then
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029
4030 #if HAVE_ERRNO_H
4031 #include <errno.h>
4032 #endif
4033 int
4034 main ()
4035 {
4036 extern int errno; static int x; x = errno;
4037 ;
4038 return 0;
4039 }
4040 _ACEOF
4041 if ac_fn_c_try_link "$LINENO"; then :
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
4043 $as_echo "yes - must define" >&6; };
4044 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4045
4046 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
4047
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext \
4053 conftest$ac_exeext conftest.$ac_ext
4054 fi
4055
4056 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
4057 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
4058 ac_have_decl=1
4059 else
4060 ac_have_decl=0
4061 fi
4062
4063 cat >>confdefs.h <<_ACEOF
4064 #define HAVE_DECL_STRERROR $ac_have_decl
4065 _ACEOF
4066 ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
4067 if test "x$ac_cv_have_decl_perror" = x""yes; then :
4068 ac_have_decl=1
4069 else
4070 ac_have_decl=0
4071 fi
4072
4073 cat >>confdefs.h <<_ACEOF
4074 #define HAVE_DECL_PERROR $ac_have_decl
4075 _ACEOF
4076 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4077 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
4078 ac_have_decl=1
4079 else
4080 ac_have_decl=0
4081 fi
4082
4083 cat >>confdefs.h <<_ACEOF
4084 #define HAVE_DECL_MEMMEM $ac_have_decl
4085 _ACEOF
4086
4087
4088 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
4089 #include <sys/socket.h>
4090
4091 "
4092 if test "x$ac_cv_type_socklen_t" = x""yes; then :
4093
4094 cat >>confdefs.h <<_ACEOF
4095 #define HAVE_SOCKLEN_T 1
4096 _ACEOF
4097
4098
4099 fi
4100
4101
4102
4103
4104 # Check whether --with-pkgversion was given.
4105 if test "${with_pkgversion+set}" = set; then :
4106 withval=$with_pkgversion; case "$withval" in
4107 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
4108 no) PKGVERSION= ;;
4109 *) PKGVERSION="($withval) " ;;
4110 esac
4111 else
4112 PKGVERSION="(GDB) "
4113
4114 fi
4115
4116
4117
4118
4119
4120 # Check whether --with-bugurl was given.
4121 if test "${with_bugurl+set}" = set; then :
4122 withval=$with_bugurl; case "$withval" in
4123 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4124 no) BUGURL=
4125 ;;
4126 *) BUGURL="$withval"
4127 ;;
4128 esac
4129 else
4130 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4131
4132 fi
4133
4134 case ${BUGURL} in
4135 "")
4136 REPORT_BUGS_TO=
4137 REPORT_BUGS_TEXI=
4138 ;;
4139 *)
4140 REPORT_BUGS_TO="<$BUGURL>"
4141 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4142 ;;
4143 esac;
4144
4145
4146
4147
4148 cat >>confdefs.h <<_ACEOF
4149 #define PKGVERSION "$PKGVERSION"
4150 _ACEOF
4151
4152
4153 cat >>confdefs.h <<_ACEOF
4154 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4155 _ACEOF
4156
4157
4158 # Check for various supplementary target information (beyond the
4159 # triplet) which might affect the choices in configure.srv.
4160 case "${target}" in
4161 i[34567]86-*-linux*)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
4163 $as_echo_n "checking if building for x86-64... " >&6; }
4164 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 save_CPPFLAGS="$CPPFLAGS"
4168 CPPFLAGS="$CPPFLAGS $CFLAGS"
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171
4172 #if __x86_64__
4173 got it
4174 #endif
4175
4176 _ACEOF
4177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4178 $EGREP "got it" >/dev/null 2>&1; then :
4179 gdb_cv_i386_is_x86_64=yes
4180 else
4181 gdb_cv_i386_is_x86_64=no
4182 fi
4183 rm -f conftest*
4184
4185 CPPFLAGS="$save_CPPFLAGS"
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
4188 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
4189 ;;
4190 m68k-*-*)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
4192 $as_echo_n "checking if building for Coldfire... " >&6; }
4193 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 save_CPPFLAGS="$CPPFLAGS"
4197 CPPFLAGS="$CPPFLAGS $CFLAGS"
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4200
4201 #ifdef __mcoldfire__
4202 got it
4203 #endif
4204
4205 _ACEOF
4206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4207 $EGREP "got it" >/dev/null 2>&1; then :
4208 gdb_cv_m68k_is_coldfire=yes
4209 else
4210 gdb_cv_m68k_is_coldfire=no
4211 fi
4212 rm -f conftest*
4213
4214 CPPFLAGS="$save_CPPFLAGS"
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
4217 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
4218 ;;
4219 esac
4220
4221 . ${srcdir}/configure.srv
4222
4223 if test "${srv_mingwce}" = "yes"; then
4224 LIBS="$LIBS -lws2"
4225 elif test "${srv_mingw}" = "yes"; then
4226 LIBS="$LIBS -lws2_32"
4227 elif test "${srv_qnx}" = "yes"; then
4228 LIBS="$LIBS -lsocket"
4229 fi
4230
4231 if test "${srv_mingw}" = "yes"; then
4232
4233 $as_echo "#define USE_WIN32API 1" >>confdefs.h
4234
4235 fi
4236
4237 if test "${srv_linux_usrregs}" = "yes"; then
4238
4239 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
4240
4241 fi
4242
4243 if test "${srv_linux_regsets}" = "yes"; then
4244
4245 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
4249 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
4250 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #include <sys/ptrace.h>
4256 int
4257 main ()
4258 {
4259 PTRACE_GETREGS;
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265 gdbsrv_cv_have_ptrace_getregs=yes
4266 else
4267 gdbsrv_cv_have_ptrace_getregs=no
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 fi
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
4273 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
4274 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
4275
4276 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
4277
4278 fi
4279
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
4281 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
4282 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 #include <sys/ptrace.h>
4288 int
4289 main ()
4290 {
4291 PTRACE_GETFPXREGS;
4292 ;
4293 return 0;
4294 }
4295 _ACEOF
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297 gdbsrv_cv_have_ptrace_getfpxregs=yes
4298 else
4299 gdbsrv_cv_have_ptrace_getfpxregs=no
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 fi
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
4305 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
4306 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
4307
4308 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
4309
4310 fi
4311 fi
4312
4313 if test "$ac_cv_header_sys_procfs_h" = yes; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
4315 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
4316 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321
4322 #define _SYSCALL32
4323 /* Needed for new procfs interface on sparc-solaris. */
4324 #define _STRUCTURED_PROC 1
4325 #include <sys/procfs.h>
4326 int
4327 main ()
4328 {
4329 lwpid_t avar
4330 ;
4331 return 0;
4332 }
4333 _ACEOF
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4336 else
4337 bfd_cv_have_sys_procfs_type_lwpid_t=no
4338
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 fi
4342
4343 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4344
4345 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
4346
4347 fi
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4349 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
4350
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
4352 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
4353 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4358
4359 #define _SYSCALL32
4360 /* Needed for new procfs interface on sparc-solaris. */
4361 #define _STRUCTURED_PROC 1
4362 #include <sys/procfs.h>
4363 int
4364 main ()
4365 {
4366 psaddr_t avar
4367 ;
4368 return 0;
4369 }
4370 _ACEOF
4371 if ac_fn_c_try_compile "$LINENO"; then :
4372 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4373 else
4374 bfd_cv_have_sys_procfs_type_psaddr_t=no
4375
4376 fi
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 fi
4379
4380 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4381
4382 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
4383
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4386 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
4387
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
4389 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
4390 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395
4396 #define _SYSCALL32
4397 /* Needed for new procfs interface on sparc-solaris. */
4398 #define _STRUCTURED_PROC 1
4399 #include <sys/procfs.h>
4400 int
4401 main ()
4402 {
4403 prgregset_t avar
4404 ;
4405 return 0;
4406 }
4407 _ACEOF
4408 if ac_fn_c_try_compile "$LINENO"; then :
4409 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4410 else
4411 bfd_cv_have_sys_procfs_type_prgregset_t=no
4412
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 fi
4416
4417 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4418
4419 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
4420
4421 fi
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4423 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
4426 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
4427 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4432
4433 #define _SYSCALL32
4434 /* Needed for new procfs interface on sparc-solaris. */
4435 #define _STRUCTURED_PROC 1
4436 #include <sys/procfs.h>
4437 int
4438 main ()
4439 {
4440 elf_fpregset_t avar
4441 ;
4442 return 0;
4443 }
4444 _ACEOF
4445 if ac_fn_c_try_compile "$LINENO"; then :
4446 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
4447 else
4448 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
4449
4450 fi
4451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452 fi
4453
4454 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
4455
4456 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
4457
4458 fi
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4460 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
4461
4462 fi
4463
4464 old_LIBS="$LIBS"
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4466 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 ac_check_lib_save_LIBS=$LIBS
4471 LIBS="-ldl $LIBS"
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474
4475 /* Override any GCC internal prototype to avoid an error.
4476 Use char because int might match the return type of a GCC
4477 builtin and then its argument prototype would still apply. */
4478 #ifdef __cplusplus
4479 extern "C"
4480 #endif
4481 char dlopen ();
4482 int
4483 main ()
4484 {
4485 return dlopen ();
4486 ;
4487 return 0;
4488 }
4489 _ACEOF
4490 if ac_fn_c_try_link "$LINENO"; then :
4491 ac_cv_lib_dl_dlopen=yes
4492 else
4493 ac_cv_lib_dl_dlopen=no
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext conftest.$ac_ext
4497 LIBS=$ac_check_lib_save_LIBS
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4500 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4501 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
4502 cat >>confdefs.h <<_ACEOF
4503 #define HAVE_LIBDL 1
4504 _ACEOF
4505
4506 LIBS="-ldl $LIBS"
4507
4508 fi
4509
4510 LIBS="$old_LIBS"
4511
4512 srv_thread_depfiles=
4513 srv_libs=
4514 USE_THREAD_DB=
4515
4516 if test "$srv_linux_thread_db" = "yes"; then
4517 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
4518 srv_libs="-ldl"
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
4520 $as_echo_n "checking for the dynamic export flag... " >&6; }
4521 old_LDFLAGS="$LDFLAGS"
4522 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
4523 # supported there.
4524 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
4525 LDFLAGS="$LDFLAGS $RDYNAMIC"
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528
4529 int
4530 main ()
4531 {
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_link "$LINENO"; then :
4538 found="-Wl,--dynamic-list"
4539 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
4540 else
4541 RDYNAMIC="-rdynamic"
4542 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545
4546 int
4547 main ()
4548 {
4549
4550 ;
4551 return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_link "$LINENO"; then :
4555 found="-rdynamic"
4556 else
4557 found="no"
4558 RDYNAMIC=""
4559 fi
4560 rm -f core conftest.err conftest.$ac_objext \
4561 conftest$ac_exeext conftest.$ac_ext
4562 fi
4563 rm -f core conftest.err conftest.$ac_objext \
4564 conftest$ac_exeext conftest.$ac_ext
4565
4566 LDFLAGS="$old_LDFLAGS"
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
4568 $as_echo "$found" >&6; }
4569 else
4570 srv_libs="-lthread_db"
4571 fi
4572
4573 srv_thread_depfiles="thread-db.o proc-service.o"
4574 USE_THREAD_DB="-DUSE_THREAD_DB"
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
4576 $as_echo_n "checking for TD_VERSION... " >&6; }
4577 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582 #include <thread_db.h>
4583 int
4584 main ()
4585 {
4586 TD_VERSION;
4587 ;
4588 return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_c_try_compile "$LINENO"; then :
4592 gdbsrv_cv_have_td_version=yes
4593 else
4594 gdbsrv_cv_have_td_version=no
4595 fi
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
4599 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
4600 if test $gdbsrv_cv_have_td_version = yes; then
4601
4602 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
4603
4604 fi
4605 fi
4606
4607
4608 # Check whether --with-libthread-db was given.
4609 if test "${with_libthread_db+set}" = set; then :
4610 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
4611 srv_libs="$srv_libthread_db_path"
4612
4613 fi
4614
4615
4616 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
4617
4618 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
4619
4620 fi
4621
4622 if test "$srv_xmlfiles" != ""; then
4623 srv_xmlbuiltin="xml-builtin.o"
4624
4625 $as_echo "#define USE_XML 1" >>confdefs.h
4626
4627
4628 tmp_xmlfiles=$srv_xmlfiles
4629 srv_xmlfiles=""
4630 for f in $tmp_xmlfiles; do
4631 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
4632 done
4633 fi
4634
4635 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
4636 GDBSERVER_LIBS="$srv_libs"
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
4639 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
4640 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4646
4647 int
4648 main ()
4649 {
4650 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
4651 ;
4652 return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_link "$LINENO"; then :
4656 gdbsrv_cv_have_sync_builtins=yes
4657 else
4658 gdbsrv_cv_have_sync_builtins=no
4659 fi
4660 rm -f core conftest.err conftest.$ac_objext \
4661 conftest$ac_exeext conftest.$ac_ext
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
4664 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
4665 if test $gdbsrv_cv_have_sync_builtins = yes; then
4666
4667 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
4668
4669 fi
4670
4671 saved_cflags="$CFLAGS"
4672 CFLAGS="$CFLAGS -fvisibility=hidden"
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675
4676 int
4677 main ()
4678 {
4679
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 gdbsrv_cv_have_visibility_hidden=yes
4686 else
4687 gdbsrv_cv_have_visibility_hidden=no
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 CFLAGS="$saved_cflags"
4691
4692 IPA_DEPFILES=""
4693
4694 # Rather than allowing to build a broken IPA, we simply disable it if
4695 # we don't find a compiler supporting all the features we need.
4696 if test "$ipa_obj" != "" \
4697 -a "$gdbsrv_cv_have_sync_builtins" = yes \
4698 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
4699 IPA_DEPFILES="$ipa_obj"
4700 extra_libraries="libinproctrace.so"
4701 fi
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711 ac_config_files="$ac_config_files Makefile"
4712
4713 ac_config_commands="$ac_config_commands default"
4714
4715 cat >confcache <<\_ACEOF
4716 # This file is a shell script that caches the results of configure
4717 # tests run on this system so they can be shared between configure
4718 # scripts and configure runs, see configure's option --config-cache.
4719 # It is not useful on other systems. If it contains results you don't
4720 # want to keep, you may remove or edit it.
4721 #
4722 # config.status only pays attention to the cache file if you give it
4723 # the --recheck option to rerun configure.
4724 #
4725 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4726 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4727 # following values.
4728
4729 _ACEOF
4730
4731 # The following way of writing the cache mishandles newlines in values,
4732 # but we know of no workaround that is simple, portable, and efficient.
4733 # So, we kill variables containing newlines.
4734 # Ultrix sh set writes to stderr and can't be redirected directly,
4735 # and sets the high bit in the cache file unless we assign to the vars.
4736 (
4737 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4738 eval ac_val=\$$ac_var
4739 case $ac_val in #(
4740 *${as_nl}*)
4741 case $ac_var in #(
4742 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4744 esac
4745 case $ac_var in #(
4746 _ | IFS | as_nl) ;; #(
4747 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4748 *) { eval $ac_var=; unset $ac_var;} ;;
4749 esac ;;
4750 esac
4751 done
4752
4753 (set) 2>&1 |
4754 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4755 *${as_nl}ac_space=\ *)
4756 # `set' does not quote correctly, so add quotes: double-quote
4757 # substitution turns \\\\ into \\, and sed turns \\ into \.
4758 sed -n \
4759 "s/'/'\\\\''/g;
4760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4761 ;; #(
4762 *)
4763 # `set' quotes correctly as required by POSIX, so do not add quotes.
4764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4765 ;;
4766 esac |
4767 sort
4768 ) |
4769 sed '
4770 /^ac_cv_env_/b end
4771 t clear
4772 :clear
4773 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4774 t end
4775 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4776 :end' >>confcache
4777 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4778 if test -w "$cache_file"; then
4779 test "x$cache_file" != "x/dev/null" &&
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4781 $as_echo "$as_me: updating cache $cache_file" >&6;}
4782 cat confcache >$cache_file
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4785 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4786 fi
4787 fi
4788 rm -f confcache
4789
4790 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4791 # Let make expand exec_prefix.
4792 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4793
4794 DEFS=-DHAVE_CONFIG_H
4795
4796 ac_libobjs=
4797 ac_ltlibobjs=
4798 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4799 # 1. Remove the extension, and $U if already installed.
4800 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4801 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4803 # will be set to the directory where LIBOBJS objects are built.
4804 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4805 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4806 done
4807 LIBOBJS=$ac_libobjs
4808
4809 LTLIBOBJS=$ac_ltlibobjs
4810
4811
4812
4813 : ${CONFIG_STATUS=./config.status}
4814 ac_write_fail=0
4815 ac_clean_files_save=$ac_clean_files
4816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4819 as_write_fail=0
4820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4821 #! $SHELL
4822 # Generated by $as_me.
4823 # Run this file to recreate the current configuration.
4824 # Compiler output produced by configure, useful for debugging
4825 # configure, is in config.log if it exists.
4826
4827 debug=false
4828 ac_cs_recheck=false
4829 ac_cs_silent=false
4830
4831 SHELL=\${CONFIG_SHELL-$SHELL}
4832 export SHELL
4833 _ASEOF
4834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4835 ## -------------------- ##
4836 ## M4sh Initialization. ##
4837 ## -------------------- ##
4838
4839 # Be more Bourne compatible
4840 DUALCASE=1; export DUALCASE # for MKS sh
4841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4842 emulate sh
4843 NULLCMD=:
4844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4845 # is contrary to our usage. Disable this feature.
4846 alias -g '${1+"$@"}'='"$@"'
4847 setopt NO_GLOB_SUBST
4848 else
4849 case `(set -o) 2>/dev/null` in #(
4850 *posix*) :
4851 set -o posix ;; #(
4852 *) :
4853 ;;
4854 esac
4855 fi
4856
4857
4858 as_nl='
4859 '
4860 export as_nl
4861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4865 # Prefer a ksh shell builtin over an external printf program on Solaris,
4866 # but without wasting forks for bash or zsh.
4867 if test -z "$BASH_VERSION$ZSH_VERSION" \
4868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4869 as_echo='print -r --'
4870 as_echo_n='print -rn --'
4871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4872 as_echo='printf %s\n'
4873 as_echo_n='printf %s'
4874 else
4875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4877 as_echo_n='/usr/ucb/echo -n'
4878 else
4879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4880 as_echo_n_body='eval
4881 arg=$1;
4882 case $arg in #(
4883 *"$as_nl"*)
4884 expr "X$arg" : "X\\(.*\\)$as_nl";
4885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4886 esac;
4887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4888 '
4889 export as_echo_n_body
4890 as_echo_n='sh -c $as_echo_n_body as_echo'
4891 fi
4892 export as_echo_body
4893 as_echo='sh -c $as_echo_body as_echo'
4894 fi
4895
4896 # The user is always right.
4897 if test "${PATH_SEPARATOR+set}" != set; then
4898 PATH_SEPARATOR=:
4899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4901 PATH_SEPARATOR=';'
4902 }
4903 fi
4904
4905
4906 # IFS
4907 # We need space, tab and new line, in precisely that order. Quoting is
4908 # there to prevent editors from complaining about space-tab.
4909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4910 # splitting by setting IFS to empty value.)
4911 IFS=" "" $as_nl"
4912
4913 # Find who we are. Look in the path if we contain no directory separator.
4914 case $0 in #((
4915 *[\\/]* ) as_myself=$0 ;;
4916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4922 done
4923 IFS=$as_save_IFS
4924
4925 ;;
4926 esac
4927 # We did not find ourselves, most probably we were run as `sh COMMAND'
4928 # in which case we are not to be found in the path.
4929 if test "x$as_myself" = x; then
4930 as_myself=$0
4931 fi
4932 if test ! -f "$as_myself"; then
4933 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4934 exit 1
4935 fi
4936
4937 # Unset variables that we do not need and which cause bugs (e.g. in
4938 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4939 # suppresses any "Segmentation fault" message there. '((' could
4940 # trigger a bug in pdksh 5.2.14.
4941 for as_var in BASH_ENV ENV MAIL MAILPATH
4942 do eval test x\${$as_var+set} = xset \
4943 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4944 done
4945 PS1='$ '
4946 PS2='> '
4947 PS4='+ '
4948
4949 # NLS nuisances.
4950 LC_ALL=C
4951 export LC_ALL
4952 LANGUAGE=C
4953 export LANGUAGE
4954
4955 # CDPATH.
4956 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4957
4958
4959 # as_fn_error ERROR [LINENO LOG_FD]
4960 # ---------------------------------
4961 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4962 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4963 # script with status $?, using 1 if that was 0.
4964 as_fn_error ()
4965 {
4966 as_status=$?; test $as_status -eq 0 && as_status=1
4967 if test "$3"; then
4968 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4969 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4970 fi
4971 $as_echo "$as_me: error: $1" >&2
4972 as_fn_exit $as_status
4973 } # as_fn_error
4974
4975
4976 # as_fn_set_status STATUS
4977 # -----------------------
4978 # Set $? to STATUS, without forking.
4979 as_fn_set_status ()
4980 {
4981 return $1
4982 } # as_fn_set_status
4983
4984 # as_fn_exit STATUS
4985 # -----------------
4986 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4987 as_fn_exit ()
4988 {
4989 set +e
4990 as_fn_set_status $1
4991 exit $1
4992 } # as_fn_exit
4993
4994 # as_fn_unset VAR
4995 # ---------------
4996 # Portably unset VAR.
4997 as_fn_unset ()
4998 {
4999 { eval $1=; unset $1;}
5000 }
5001 as_unset=as_fn_unset
5002 # as_fn_append VAR VALUE
5003 # ----------------------
5004 # Append the text in VALUE to the end of the definition contained in VAR. Take
5005 # advantage of any shell optimizations that allow amortized linear growth over
5006 # repeated appends, instead of the typical quadratic growth present in naive
5007 # implementations.
5008 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5009 eval 'as_fn_append ()
5010 {
5011 eval $1+=\$2
5012 }'
5013 else
5014 as_fn_append ()
5015 {
5016 eval $1=\$$1\$2
5017 }
5018 fi # as_fn_append
5019
5020 # as_fn_arith ARG...
5021 # ------------------
5022 # Perform arithmetic evaluation on the ARGs, and store the result in the
5023 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5024 # must be portable across $(()) and expr.
5025 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5026 eval 'as_fn_arith ()
5027 {
5028 as_val=$(( $* ))
5029 }'
5030 else
5031 as_fn_arith ()
5032 {
5033 as_val=`expr "$@" || test $? -eq 1`
5034 }
5035 fi # as_fn_arith
5036
5037
5038 if expr a : '\(a\)' >/dev/null 2>&1 &&
5039 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5040 as_expr=expr
5041 else
5042 as_expr=false
5043 fi
5044
5045 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5046 as_basename=basename
5047 else
5048 as_basename=false
5049 fi
5050
5051 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5052 as_dirname=dirname
5053 else
5054 as_dirname=false
5055 fi
5056
5057 as_me=`$as_basename -- "$0" ||
5058 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5059 X"$0" : 'X\(//\)$' \| \
5060 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5061 $as_echo X/"$0" |
5062 sed '/^.*\/\([^/][^/]*\)\/*$/{
5063 s//\1/
5064 q
5065 }
5066 /^X\/\(\/\/\)$/{
5067 s//\1/
5068 q
5069 }
5070 /^X\/\(\/\).*/{
5071 s//\1/
5072 q
5073 }
5074 s/.*/./; q'`
5075
5076 # Avoid depending upon Character Ranges.
5077 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5078 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5079 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5080 as_cr_digits='0123456789'
5081 as_cr_alnum=$as_cr_Letters$as_cr_digits
5082
5083 ECHO_C= ECHO_N= ECHO_T=
5084 case `echo -n x` in #(((((
5085 -n*)
5086 case `echo 'xy\c'` in
5087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5088 xy) ECHO_C='\c';;
5089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5090 ECHO_T=' ';;
5091 esac;;
5092 *)
5093 ECHO_N='-n';;
5094 esac
5095
5096 rm -f conf$$ conf$$.exe conf$$.file
5097 if test -d conf$$.dir; then
5098 rm -f conf$$.dir/conf$$.file
5099 else
5100 rm -f conf$$.dir
5101 mkdir conf$$.dir 2>/dev/null
5102 fi
5103 if (echo >conf$$.file) 2>/dev/null; then
5104 if ln -s conf$$.file conf$$ 2>/dev/null; then
5105 as_ln_s='ln -s'
5106 # ... but there are two gotchas:
5107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5109 # In both cases, we have to default to `cp -p'.
5110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5111 as_ln_s='cp -p'
5112 elif ln conf$$.file conf$$ 2>/dev/null; then
5113 as_ln_s=ln
5114 else
5115 as_ln_s='cp -p'
5116 fi
5117 else
5118 as_ln_s='cp -p'
5119 fi
5120 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5121 rmdir conf$$.dir 2>/dev/null
5122
5123
5124 # as_fn_mkdir_p
5125 # -------------
5126 # Create "$as_dir" as a directory, including parents if necessary.
5127 as_fn_mkdir_p ()
5128 {
5129
5130 case $as_dir in #(
5131 -*) as_dir=./$as_dir;;
5132 esac
5133 test -d "$as_dir" || eval $as_mkdir_p || {
5134 as_dirs=
5135 while :; do
5136 case $as_dir in #(
5137 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5138 *) as_qdir=$as_dir;;
5139 esac
5140 as_dirs="'$as_qdir' $as_dirs"
5141 as_dir=`$as_dirname -- "$as_dir" ||
5142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5143 X"$as_dir" : 'X\(//\)[^/]' \| \
5144 X"$as_dir" : 'X\(//\)$' \| \
5145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5146 $as_echo X"$as_dir" |
5147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5148 s//\1/
5149 q
5150 }
5151 /^X\(\/\/\)[^/].*/{
5152 s//\1/
5153 q
5154 }
5155 /^X\(\/\/\)$/{
5156 s//\1/
5157 q
5158 }
5159 /^X\(\/\).*/{
5160 s//\1/
5161 q
5162 }
5163 s/.*/./; q'`
5164 test -d "$as_dir" && break
5165 done
5166 test -z "$as_dirs" || eval "mkdir $as_dirs"
5167 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5168
5169
5170 } # as_fn_mkdir_p
5171 if mkdir -p . 2>/dev/null; then
5172 as_mkdir_p='mkdir -p "$as_dir"'
5173 else
5174 test -d ./-p && rmdir ./-p
5175 as_mkdir_p=false
5176 fi
5177
5178 if test -x / >/dev/null 2>&1; then
5179 as_test_x='test -x'
5180 else
5181 if ls -dL / >/dev/null 2>&1; then
5182 as_ls_L_option=L
5183 else
5184 as_ls_L_option=
5185 fi
5186 as_test_x='
5187 eval sh -c '\''
5188 if test -d "$1"; then
5189 test -d "$1/.";
5190 else
5191 case $1 in #(
5192 -*)set "./$1";;
5193 esac;
5194 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5195 ???[sx]*):;;*)false;;esac;fi
5196 '\'' sh
5197 '
5198 fi
5199 as_executable_p=$as_test_x
5200
5201 # Sed expression to map a string onto a valid CPP name.
5202 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5203
5204 # Sed expression to map a string onto a valid variable name.
5205 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5206
5207
5208 exec 6>&1
5209 ## ----------------------------------- ##
5210 ## Main body of $CONFIG_STATUS script. ##
5211 ## ----------------------------------- ##
5212 _ASEOF
5213 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5214
5215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5216 # Save the log message, to keep $0 and so on meaningful, and to
5217 # report actual input values of CONFIG_FILES etc. instead of their
5218 # values after options handling.
5219 ac_log="
5220 This file was extended by $as_me, which was
5221 generated by GNU Autoconf 2.64. Invocation command line was
5222
5223 CONFIG_FILES = $CONFIG_FILES
5224 CONFIG_HEADERS = $CONFIG_HEADERS
5225 CONFIG_LINKS = $CONFIG_LINKS
5226 CONFIG_COMMANDS = $CONFIG_COMMANDS
5227 $ $0 $@
5228
5229 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5230 "
5231
5232 _ACEOF
5233
5234 case $ac_config_files in *"
5235 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5236 esac
5237
5238 case $ac_config_headers in *"
5239 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5240 esac
5241
5242
5243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5244 # Files that config.status was made for.
5245 config_files="$ac_config_files"
5246 config_headers="$ac_config_headers"
5247 config_commands="$ac_config_commands"
5248
5249 _ACEOF
5250
5251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5252 ac_cs_usage="\
5253 \`$as_me' instantiates files and other configuration actions
5254 from templates according to the current configuration. Unless the files
5255 and actions are specified as TAGs, all are instantiated by default.
5256
5257 Usage: $0 [OPTION]... [TAG]...
5258
5259 -h, --help print this help, then exit
5260 -V, --version print version number and configuration settings, then exit
5261 -q, --quiet, --silent
5262 do not print progress messages
5263 -d, --debug don't remove temporary files
5264 --recheck update $as_me by reconfiguring in the same conditions
5265 --file=FILE[:TEMPLATE]
5266 instantiate the configuration file FILE
5267 --header=FILE[:TEMPLATE]
5268 instantiate the configuration header FILE
5269
5270 Configuration files:
5271 $config_files
5272
5273 Configuration headers:
5274 $config_headers
5275
5276 Configuration commands:
5277 $config_commands
5278
5279 Report bugs to the package provider."
5280
5281 _ACEOF
5282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5283 ac_cs_version="\\
5284 config.status
5285 configured by $0, generated by GNU Autoconf 2.64,
5286 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5287
5288 Copyright (C) 2009 Free Software Foundation, Inc.
5289 This config.status script is free software; the Free Software Foundation
5290 gives unlimited permission to copy, distribute and modify it."
5291
5292 ac_pwd='$ac_pwd'
5293 srcdir='$srcdir'
5294 INSTALL='$INSTALL'
5295 test -n "\$AWK" || AWK=awk
5296 _ACEOF
5297
5298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5299 # The default lists apply if the user does not specify any file.
5300 ac_need_defaults=:
5301 while test $# != 0
5302 do
5303 case $1 in
5304 --*=*)
5305 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5306 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5307 ac_shift=:
5308 ;;
5309 *)
5310 ac_option=$1
5311 ac_optarg=$2
5312 ac_shift=shift
5313 ;;
5314 esac
5315
5316 case $ac_option in
5317 # Handling of the options.
5318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5319 ac_cs_recheck=: ;;
5320 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5321 $as_echo "$ac_cs_version"; exit ;;
5322 --debug | --debu | --deb | --de | --d | -d )
5323 debug=: ;;
5324 --file | --fil | --fi | --f )
5325 $ac_shift
5326 case $ac_optarg in
5327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5328 esac
5329 as_fn_append CONFIG_FILES " '$ac_optarg'"
5330 ac_need_defaults=false;;
5331 --header | --heade | --head | --hea )
5332 $ac_shift
5333 case $ac_optarg in
5334 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5335 esac
5336 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5337 ac_need_defaults=false;;
5338 --he | --h)
5339 # Conflict between --help and --header
5340 as_fn_error "ambiguous option: \`$1'
5341 Try \`$0 --help' for more information.";;
5342 --help | --hel | -h )
5343 $as_echo "$ac_cs_usage"; exit ;;
5344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5346 ac_cs_silent=: ;;
5347
5348 # This is an error.
5349 -*) as_fn_error "unrecognized option: \`$1'
5350 Try \`$0 --help' for more information." ;;
5351
5352 *) as_fn_append ac_config_targets " $1"
5353 ac_need_defaults=false ;;
5354
5355 esac
5356 shift
5357 done
5358
5359 ac_configure_extra_args=
5360
5361 if $ac_cs_silent; then
5362 exec 6>/dev/null
5363 ac_configure_extra_args="$ac_configure_extra_args --silent"
5364 fi
5365
5366 _ACEOF
5367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5368 if \$ac_cs_recheck; then
5369 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5370 shift
5371 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5372 CONFIG_SHELL='$SHELL'
5373 export CONFIG_SHELL
5374 exec "\$@"
5375 fi
5376
5377 _ACEOF
5378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5379 exec 5>>config.log
5380 {
5381 echo
5382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5383 ## Running $as_me. ##
5384 _ASBOX
5385 $as_echo "$ac_log"
5386 } >&5
5387
5388 _ACEOF
5389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5390 _ACEOF
5391
5392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5393
5394 # Handling of arguments.
5395 for ac_config_target in $ac_config_targets
5396 do
5397 case $ac_config_target in
5398 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5399 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5400 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5401
5402 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5403 esac
5404 done
5405
5406
5407 # If the user did not use the arguments to specify the items to instantiate,
5408 # then the envvar interface is used. Set only those that are not.
5409 # We use the long form for the default assignment because of an extremely
5410 # bizarre bug on SunOS 4.1.3.
5411 if $ac_need_defaults; then
5412 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5413 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5414 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5415 fi
5416
5417 # Have a temporary directory for convenience. Make it in the build tree
5418 # simply because there is no reason against having it here, and in addition,
5419 # creating and moving files from /tmp can sometimes cause problems.
5420 # Hook for its removal unless debugging.
5421 # Note that there is a small window in which the directory will not be cleaned:
5422 # after its creation but before its name has been assigned to `$tmp'.
5423 $debug ||
5424 {
5425 tmp=
5426 trap 'exit_status=$?
5427 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5428 ' 0
5429 trap 'as_fn_exit 1' 1 2 13 15
5430 }
5431 # Create a (secure) tmp directory for tmp files.
5432
5433 {
5434 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5435 test -n "$tmp" && test -d "$tmp"
5436 } ||
5437 {
5438 tmp=./conf$$-$RANDOM
5439 (umask 077 && mkdir "$tmp")
5440 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5441
5442 # Set up the scripts for CONFIG_FILES section.
5443 # No need to generate them if there are no CONFIG_FILES.
5444 # This happens for instance with `./config.status config.h'.
5445 if test -n "$CONFIG_FILES"; then
5446
5447
5448 ac_cr=`echo X | tr X '\015'`
5449 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5450 # But we know of no other shell where ac_cr would be empty at this
5451 # point, so we can use a bashism as a fallback.
5452 if test "x$ac_cr" = x; then
5453 eval ac_cr=\$\'\\r\'
5454 fi
5455 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5456 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5457 ac_cs_awk_cr='\r'
5458 else
5459 ac_cs_awk_cr=$ac_cr
5460 fi
5461
5462 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5463 _ACEOF
5464
5465
5466 {
5467 echo "cat >conf$$subs.awk <<_ACEOF" &&
5468 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5469 echo "_ACEOF"
5470 } >conf$$subs.sh ||
5471 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5472 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5473 ac_delim='%!_!# '
5474 for ac_last_try in false false false false false :; do
5475 . ./conf$$subs.sh ||
5476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5477
5478 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5479 if test $ac_delim_n = $ac_delim_num; then
5480 break
5481 elif $ac_last_try; then
5482 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5483 else
5484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5485 fi
5486 done
5487 rm -f conf$$subs.sh
5488
5489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5490 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5491 _ACEOF
5492 sed -n '
5493 h
5494 s/^/S["/; s/!.*/"]=/
5495 p
5496 g
5497 s/^[^!]*!//
5498 :repl
5499 t repl
5500 s/'"$ac_delim"'$//
5501 t delim
5502 :nl
5503 h
5504 s/\(.\{148\}\).*/\1/
5505 t more1
5506 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5507 p
5508 n
5509 b repl
5510 :more1
5511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5512 p
5513 g
5514 s/.\{148\}//
5515 t nl
5516 :delim
5517 h
5518 s/\(.\{148\}\).*/\1/
5519 t more2
5520 s/["\\]/\\&/g; s/^/"/; s/$/"/
5521 p
5522 b
5523 :more2
5524 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5525 p
5526 g
5527 s/.\{148\}//
5528 t delim
5529 ' <conf$$subs.awk | sed '
5530 /^[^""]/{
5531 N
5532 s/\n//
5533 }
5534 ' >>$CONFIG_STATUS || ac_write_fail=1
5535 rm -f conf$$subs.awk
5536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5537 _ACAWK
5538 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5539 for (key in S) S_is_set[key] = 1
5540 FS = "\a"
5541
5542 }
5543 {
5544 line = $ 0
5545 nfields = split(line, field, "@")
5546 substed = 0
5547 len = length(field[1])
5548 for (i = 2; i < nfields; i++) {
5549 key = field[i]
5550 keylen = length(key)
5551 if (S_is_set[key]) {
5552 value = S[key]
5553 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5554 len += length(value) + length(field[++i])
5555 substed = 1
5556 } else
5557 len += 1 + keylen
5558 }
5559
5560 print line
5561 }
5562
5563 _ACAWK
5564 _ACEOF
5565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5566 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5567 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5568 else
5569 cat
5570 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5571 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5572 _ACEOF
5573
5574 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5575 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5576 # trailing colons and then remove the whole line if VPATH becomes empty
5577 # (actually we leave an empty line to preserve line numbers).
5578 if test "x$srcdir" = x.; then
5579 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5580 s/:*\$(srcdir):*/:/
5581 s/:*\${srcdir}:*/:/
5582 s/:*@srcdir@:*/:/
5583 s/^\([^=]*=[ ]*\):*/\1/
5584 s/:*$//
5585 s/^[^=]*=[ ]*$//
5586 }'
5587 fi
5588
5589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5590 fi # test -n "$CONFIG_FILES"
5591
5592 # Set up the scripts for CONFIG_HEADERS section.
5593 # No need to generate them if there are no CONFIG_HEADERS.
5594 # This happens for instance with `./config.status Makefile'.
5595 if test -n "$CONFIG_HEADERS"; then
5596 cat >"$tmp/defines.awk" <<\_ACAWK ||
5597 BEGIN {
5598 _ACEOF
5599
5600 # Transform confdefs.h into an awk script `defines.awk', embedded as
5601 # here-document in config.status, that substitutes the proper values into
5602 # config.h.in to produce config.h.
5603
5604 # Create a delimiter string that does not exist in confdefs.h, to ease
5605 # handling of long lines.
5606 ac_delim='%!_!# '
5607 for ac_last_try in false false :; do
5608 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5609 if test -z "$ac_t"; then
5610 break
5611 elif $ac_last_try; then
5612 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5613 else
5614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5615 fi
5616 done
5617
5618 # For the awk script, D is an array of macro values keyed by name,
5619 # likewise P contains macro parameters if any. Preserve backslash
5620 # newline sequences.
5621
5622 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5623 sed -n '
5624 s/.\{148\}/&'"$ac_delim"'/g
5625 t rset
5626 :rset
5627 s/^[ ]*#[ ]*define[ ][ ]*/ /
5628 t def
5629 d
5630 :def
5631 s/\\$//
5632 t bsnl
5633 s/["\\]/\\&/g
5634 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5635 D["\1"]=" \3"/p
5636 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5637 d
5638 :bsnl
5639 s/["\\]/\\&/g
5640 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5641 D["\1"]=" \3\\\\\\n"\\/p
5642 t cont
5643 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5644 t cont
5645 d
5646 :cont
5647 n
5648 s/.\{148\}/&'"$ac_delim"'/g
5649 t clear
5650 :clear
5651 s/\\$//
5652 t bsnlc
5653 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5654 d
5655 :bsnlc
5656 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5657 b cont
5658 ' <confdefs.h | sed '
5659 s/'"$ac_delim"'/"\\\
5660 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5661
5662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5663 for (key in D) D_is_set[key] = 1
5664 FS = "\a"
5665 }
5666 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5667 line = \$ 0
5668 split(line, arg, " ")
5669 if (arg[1] == "#") {
5670 defundef = arg[2]
5671 mac1 = arg[3]
5672 } else {
5673 defundef = substr(arg[1], 2)
5674 mac1 = arg[2]
5675 }
5676 split(mac1, mac2, "(") #)
5677 macro = mac2[1]
5678 prefix = substr(line, 1, index(line, defundef) - 1)
5679 if (D_is_set[macro]) {
5680 # Preserve the white space surrounding the "#".
5681 print prefix "define", macro P[macro] D[macro]
5682 next
5683 } else {
5684 # Replace #undef with comments. This is necessary, for example,
5685 # in the case of _POSIX_SOURCE, which is predefined and required
5686 # on some systems where configure will not decide to define it.
5687 if (defundef == "undef") {
5688 print "/*", prefix defundef, macro, "*/"
5689 next
5690 }
5691 }
5692 }
5693 { print }
5694 _ACAWK
5695 _ACEOF
5696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5697 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5698 fi # test -n "$CONFIG_HEADERS"
5699
5700
5701 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5702 shift
5703 for ac_tag
5704 do
5705 case $ac_tag in
5706 :[FHLC]) ac_mode=$ac_tag; continue;;
5707 esac
5708 case $ac_mode$ac_tag in
5709 :[FHL]*:*);;
5710 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5711 :[FH]-) ac_tag=-:-;;
5712 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5713 esac
5714 ac_save_IFS=$IFS
5715 IFS=:
5716 set x $ac_tag
5717 IFS=$ac_save_IFS
5718 shift
5719 ac_file=$1
5720 shift
5721
5722 case $ac_mode in
5723 :L) ac_source=$1;;
5724 :[FH])
5725 ac_file_inputs=
5726 for ac_f
5727 do
5728 case $ac_f in
5729 -) ac_f="$tmp/stdin";;
5730 *) # Look for the file first in the build tree, then in the source tree
5731 # (if the path is not absolute). The absolute path cannot be DOS-style,
5732 # because $ac_f cannot contain `:'.
5733 test -f "$ac_f" ||
5734 case $ac_f in
5735 [\\/$]*) false;;
5736 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5737 esac ||
5738 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5739 esac
5740 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5741 as_fn_append ac_file_inputs " '$ac_f'"
5742 done
5743
5744 # Let's still pretend it is `configure' which instantiates (i.e., don't
5745 # use $as_me), people would be surprised to read:
5746 # /* config.h. Generated by config.status. */
5747 configure_input='Generated from '`
5748 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5749 `' by configure.'
5750 if test x"$ac_file" != x-; then
5751 configure_input="$ac_file. $configure_input"
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5753 $as_echo "$as_me: creating $ac_file" >&6;}
5754 fi
5755 # Neutralize special characters interpreted by sed in replacement strings.
5756 case $configure_input in #(
5757 *\&* | *\|* | *\\* )
5758 ac_sed_conf_input=`$as_echo "$configure_input" |
5759 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5760 *) ac_sed_conf_input=$configure_input;;
5761 esac
5762
5763 case $ac_tag in
5764 *:-:* | *:-) cat >"$tmp/stdin" \
5765 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5766 esac
5767 ;;
5768 esac
5769
5770 ac_dir=`$as_dirname -- "$ac_file" ||
5771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5772 X"$ac_file" : 'X\(//\)[^/]' \| \
5773 X"$ac_file" : 'X\(//\)$' \| \
5774 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5775 $as_echo X"$ac_file" |
5776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5777 s//\1/
5778 q
5779 }
5780 /^X\(\/\/\)[^/].*/{
5781 s//\1/
5782 q
5783 }
5784 /^X\(\/\/\)$/{
5785 s//\1/
5786 q
5787 }
5788 /^X\(\/\).*/{
5789 s//\1/
5790 q
5791 }
5792 s/.*/./; q'`
5793 as_dir="$ac_dir"; as_fn_mkdir_p
5794 ac_builddir=.
5795
5796 case "$ac_dir" in
5797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5798 *)
5799 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5800 # A ".." for each directory in $ac_dir_suffix.
5801 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5802 case $ac_top_builddir_sub in
5803 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5804 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5805 esac ;;
5806 esac
5807 ac_abs_top_builddir=$ac_pwd
5808 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5809 # for backward compatibility:
5810 ac_top_builddir=$ac_top_build_prefix
5811
5812 case $srcdir in
5813 .) # We are building in place.
5814 ac_srcdir=.
5815 ac_top_srcdir=$ac_top_builddir_sub
5816 ac_abs_top_srcdir=$ac_pwd ;;
5817 [\\/]* | ?:[\\/]* ) # Absolute name.
5818 ac_srcdir=$srcdir$ac_dir_suffix;
5819 ac_top_srcdir=$srcdir
5820 ac_abs_top_srcdir=$srcdir ;;
5821 *) # Relative name.
5822 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5823 ac_top_srcdir=$ac_top_build_prefix$srcdir
5824 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5825 esac
5826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5827
5828
5829 case $ac_mode in
5830 :F)
5831 #
5832 # CONFIG_FILE
5833 #
5834
5835 case $INSTALL in
5836 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5837 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5838 esac
5839 _ACEOF
5840
5841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5842 # If the template does not know about datarootdir, expand it.
5843 # FIXME: This hack should be removed a few years after 2.60.
5844 ac_datarootdir_hack=; ac_datarootdir_seen=
5845 ac_sed_dataroot='
5846 /datarootdir/ {
5847 p
5848 q
5849 }
5850 /@datadir@/p
5851 /@docdir@/p
5852 /@infodir@/p
5853 /@localedir@/p
5854 /@mandir@/p'
5855 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5856 *datarootdir*) ac_datarootdir_seen=yes;;
5857 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5859 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5860 _ACEOF
5861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5862 ac_datarootdir_hack='
5863 s&@datadir@&$datadir&g
5864 s&@docdir@&$docdir&g
5865 s&@infodir@&$infodir&g
5866 s&@localedir@&$localedir&g
5867 s&@mandir@&$mandir&g
5868 s&\\\${datarootdir}&$datarootdir&g' ;;
5869 esac
5870 _ACEOF
5871
5872 # Neutralize VPATH when `$srcdir' = `.'.
5873 # Shell code in configure.ac might set extrasub.
5874 # FIXME: do we really want to maintain this feature?
5875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5876 ac_sed_extra="$ac_vpsub
5877 $extrasub
5878 _ACEOF
5879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5880 :t
5881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5882 s|@configure_input@|$ac_sed_conf_input|;t t
5883 s&@top_builddir@&$ac_top_builddir_sub&;t t
5884 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5885 s&@srcdir@&$ac_srcdir&;t t
5886 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5887 s&@top_srcdir@&$ac_top_srcdir&;t t
5888 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5889 s&@builddir@&$ac_builddir&;t t
5890 s&@abs_builddir@&$ac_abs_builddir&;t t
5891 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5892 s&@INSTALL@&$ac_INSTALL&;t t
5893 $ac_datarootdir_hack
5894 "
5895 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5896 || as_fn_error "could not create $ac_file" "$LINENO" 5
5897
5898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5899 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5902 which seems to be undefined. Please make sure it is defined." >&5
5903 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5904 which seems to be undefined. Please make sure it is defined." >&2;}
5905
5906 rm -f "$tmp/stdin"
5907 case $ac_file in
5908 -) cat "$tmp/out" && rm -f "$tmp/out";;
5909 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5910 esac \
5911 || as_fn_error "could not create $ac_file" "$LINENO" 5
5912 ;;
5913 :H)
5914 #
5915 # CONFIG_HEADER
5916 #
5917 if test x"$ac_file" != x-; then
5918 {
5919 $as_echo "/* $configure_input */" \
5920 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5921 } >"$tmp/config.h" \
5922 || as_fn_error "could not create $ac_file" "$LINENO" 5
5923 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5925 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5926 else
5927 rm -f "$ac_file"
5928 mv "$tmp/config.h" "$ac_file" \
5929 || as_fn_error "could not create $ac_file" "$LINENO" 5
5930 fi
5931 else
5932 $as_echo "/* $configure_input */" \
5933 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5934 || as_fn_error "could not create -" "$LINENO" 5
5935 fi
5936 ;;
5937
5938 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5939 $as_echo "$as_me: executing $ac_file commands" >&6;}
5940 ;;
5941 esac
5942
5943
5944 case $ac_file$ac_mode in
5945 "default":C) case x$CONFIG_HEADERS in
5946 xconfig.h:config.in)
5947 echo > stamp-h ;;
5948 esac
5949 ;;
5950
5951 esac
5952 done # for ac_tag
5953
5954
5955 as_fn_exit 0
5956 _ACEOF
5957 ac_clean_files=$ac_clean_files_save
5958
5959 test $ac_write_fail = 0 ||
5960 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5961
5962
5963 # configure is writing to config.log, and then calls config.status.
5964 # config.status does its own redirection, appending to config.log.
5965 # Unfortunately, on DOS this fails, as config.log is still kept open
5966 # by configure, so config.status won't be able to write to it; its
5967 # output is simply discarded. So we exec the FD to /dev/null,
5968 # effectively closing config.log, so it can be properly (re)opened and
5969 # appended to by config.status. When coming back to configure, we
5970 # need to make the FD available again.
5971 if test "$no_create" != yes; then
5972 ac_cs_success=:
5973 ac_config_status_args=
5974 test "$silent" = yes &&
5975 ac_config_status_args="$ac_config_status_args --quiet"
5976 exec 5>/dev/null
5977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5978 exec 5>>config.log
5979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5980 # would make configure fail if this is the last instruction.
5981 $ac_cs_success || as_fn_exit $?
5982 fi
5983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5986 fi
5987