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