92c520013aff76ec7b591893354e77ae26c2ca9b
[deliverable/binutils-gdb.git] / sim / igen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="table.h"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_subst_vars='LTLIBOBJS
592 LIBOBJS
593 RANLIB
594 AR
595 LIBIBERTY_LIB
596 RANLIB_FOR_BUILD
597 CFLAGS_FOR_BUILD
598 CC_FOR_BUILD
599 AR_FLAGS_FOR_BUILD
600 AR_FOR_BUILD
601 EGREP
602 GREP
603 CPP
604 target_os
605 target_vendor
606 target_cpu
607 target
608 host_os
609 host_vendor
610 host_cpu
611 host
612 build_os
613 build_vendor
614 build_cpu
615 build
616 OBJEXT
617 EXEEXT
618 ac_ct_CC
619 CPPFLAGS
620 LDFLAGS
621 CFLAGS
622 CC
623 INSTALL_DATA
624 INSTALL_SCRIPT
625 INSTALL_PROGRAM
626 WERROR_CFLAGS
627 WARN_CFLAGS
628 sim_xor_endian
629 sim_stdcall
630 sim_smp
631 sim_reserved_bits
632 sim_regparm
633 sim_packages
634 sim_inline
635 sim_hw
636 sim_hw_objs
637 sim_hw_cflags
638 sim_default_model
639 sim_scache
640 sim_float
641 sim_endian
642 sim_bitsize
643 sim_assert
644 sim_alignment
645 sim_environment
646 target_alias
647 host_alias
648 build_alias
649 LIBS
650 ECHO_T
651 ECHO_N
652 ECHO_C
653 DEFS
654 mandir
655 localedir
656 libdir
657 psdir
658 pdfdir
659 dvidir
660 htmldir
661 infodir
662 docdir
663 oldincludedir
664 includedir
665 localstatedir
666 sharedstatedir
667 sysconfdir
668 datadir
669 datarootdir
670 libexecdir
671 sbindir
672 bindir
673 program_transform_name
674 prefix
675 exec_prefix
676 PACKAGE_URL
677 PACKAGE_BUGREPORT
678 PACKAGE_STRING
679 PACKAGE_VERSION
680 PACKAGE_TARNAME
681 PACKAGE_NAME
682 PATH_SEPARATOR
683 SHELL'
684 ac_subst_files=''
685 ac_user_opts='
686 enable_option_checking
687 enable_werror
688 enable_build_warnings
689 enable_sim_build_warnings
690 '
691 ac_precious_vars='build_alias
692 host_alias
693 target_alias
694 CC
695 CFLAGS
696 LDFLAGS
697 LIBS
698 CPPFLAGS
699 CPP'
700
701
702 # Initialize some variables set by options.
703 ac_init_help=
704 ac_init_version=false
705 ac_unrecognized_opts=
706 ac_unrecognized_sep=
707 # The variables have the same names as the options, with
708 # dashes changed to underlines.
709 cache_file=/dev/null
710 exec_prefix=NONE
711 no_create=
712 no_recursion=
713 prefix=NONE
714 program_prefix=NONE
715 program_suffix=NONE
716 program_transform_name=s,x,x,
717 silent=
718 site=
719 srcdir=
720 verbose=
721 x_includes=NONE
722 x_libraries=NONE
723
724 # Installation directory options.
725 # These are left unexpanded so users can "make install exec_prefix=/foo"
726 # and all the variables that are supposed to be based on exec_prefix
727 # by default will actually change.
728 # Use braces instead of parens because sh, perl, etc. also accept them.
729 # (The list follows the same order as the GNU Coding Standards.)
730 bindir='${exec_prefix}/bin'
731 sbindir='${exec_prefix}/sbin'
732 libexecdir='${exec_prefix}/libexec'
733 datarootdir='${prefix}/share'
734 datadir='${datarootdir}'
735 sysconfdir='${prefix}/etc'
736 sharedstatedir='${prefix}/com'
737 localstatedir='${prefix}/var'
738 includedir='${prefix}/include'
739 oldincludedir='/usr/include'
740 docdir='${datarootdir}/doc/${PACKAGE}'
741 infodir='${datarootdir}/info'
742 htmldir='${docdir}'
743 dvidir='${docdir}'
744 pdfdir='${docdir}'
745 psdir='${docdir}'
746 libdir='${exec_prefix}/lib'
747 localedir='${datarootdir}/locale'
748 mandir='${datarootdir}/man'
749
750 ac_prev=
751 ac_dashdash=
752 for ac_option
753 do
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
756 eval $ac_prev=\$ac_option
757 ac_prev=
758 continue
759 fi
760
761 case $ac_option in
762 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 *) ac_optarg=yes ;;
764 esac
765
766 # Accept the important Cygnus configure options, so we can diagnose typos.
767
768 case $ac_dashdash$ac_option in
769 --)
770 ac_dashdash=yes ;;
771
772 -bindir | --bindir | --bindi | --bind | --bin | --bi)
773 ac_prev=bindir ;;
774 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
775 bindir=$ac_optarg ;;
776
777 -build | --build | --buil | --bui | --bu)
778 ac_prev=build_alias ;;
779 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
780 build_alias=$ac_optarg ;;
781
782 -cache-file | --cache-file | --cache-fil | --cache-fi \
783 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
784 ac_prev=cache_file ;;
785 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
786 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
787 cache_file=$ac_optarg ;;
788
789 --config-cache | -C)
790 cache_file=config.cache ;;
791
792 -datadir | --datadir | --datadi | --datad)
793 ac_prev=datadir ;;
794 -datadir=* | --datadir=* | --datadi=* | --datad=*)
795 datadir=$ac_optarg ;;
796
797 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
798 | --dataroo | --dataro | --datar)
799 ac_prev=datarootdir ;;
800 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
801 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
802 datarootdir=$ac_optarg ;;
803
804 -disable-* | --disable-*)
805 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
806 # Reject names that are not valid shell variable names.
807 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
808 as_fn_error "invalid feature name: $ac_useropt"
809 ac_useropt_orig=$ac_useropt
810 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
811 case $ac_user_opts in
812 *"
813 "enable_$ac_useropt"
814 "*) ;;
815 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
816 ac_unrecognized_sep=', ';;
817 esac
818 eval enable_$ac_useropt=no ;;
819
820 -docdir | --docdir | --docdi | --doc | --do)
821 ac_prev=docdir ;;
822 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
823 docdir=$ac_optarg ;;
824
825 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
826 ac_prev=dvidir ;;
827 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
828 dvidir=$ac_optarg ;;
829
830 -enable-* | --enable-*)
831 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832 # Reject names that are not valid shell variable names.
833 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
834 as_fn_error "invalid feature name: $ac_useropt"
835 ac_useropt_orig=$ac_useropt
836 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
837 case $ac_user_opts in
838 *"
839 "enable_$ac_useropt"
840 "*) ;;
841 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
842 ac_unrecognized_sep=', ';;
843 esac
844 eval enable_$ac_useropt=\$ac_optarg ;;
845
846 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848 | --exec | --exe | --ex)
849 ac_prev=exec_prefix ;;
850 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852 | --exec=* | --exe=* | --ex=*)
853 exec_prefix=$ac_optarg ;;
854
855 -gas | --gas | --ga | --g)
856 # Obsolete; use --with-gas.
857 with_gas=yes ;;
858
859 -help | --help | --hel | --he | -h)
860 ac_init_help=long ;;
861 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862 ac_init_help=recursive ;;
863 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864 ac_init_help=short ;;
865
866 -host | --host | --hos | --ho)
867 ac_prev=host_alias ;;
868 -host=* | --host=* | --hos=* | --ho=*)
869 host_alias=$ac_optarg ;;
870
871 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
872 ac_prev=htmldir ;;
873 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
874 | --ht=*)
875 htmldir=$ac_optarg ;;
876
877 -includedir | --includedir | --includedi | --included | --include \
878 | --includ | --inclu | --incl | --inc)
879 ac_prev=includedir ;;
880 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881 | --includ=* | --inclu=* | --incl=* | --inc=*)
882 includedir=$ac_optarg ;;
883
884 -infodir | --infodir | --infodi | --infod | --info | --inf)
885 ac_prev=infodir ;;
886 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887 infodir=$ac_optarg ;;
888
889 -libdir | --libdir | --libdi | --libd)
890 ac_prev=libdir ;;
891 -libdir=* | --libdir=* | --libdi=* | --libd=*)
892 libdir=$ac_optarg ;;
893
894 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895 | --libexe | --libex | --libe)
896 ac_prev=libexecdir ;;
897 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898 | --libexe=* | --libex=* | --libe=*)
899 libexecdir=$ac_optarg ;;
900
901 -localedir | --localedir | --localedi | --localed | --locale)
902 ac_prev=localedir ;;
903 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904 localedir=$ac_optarg ;;
905
906 -localstatedir | --localstatedir | --localstatedi | --localstated \
907 | --localstate | --localstat | --localsta | --localst | --locals)
908 ac_prev=localstatedir ;;
909 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
910 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
911 localstatedir=$ac_optarg ;;
912
913 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
914 ac_prev=mandir ;;
915 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
916 mandir=$ac_optarg ;;
917
918 -nfp | --nfp | --nf)
919 # Obsolete; use --without-fp.
920 with_fp=no ;;
921
922 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
923 | --no-cr | --no-c | -n)
924 no_create=yes ;;
925
926 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
927 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
928 no_recursion=yes ;;
929
930 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932 | --oldin | --oldi | --old | --ol | --o)
933 ac_prev=oldincludedir ;;
934 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937 oldincludedir=$ac_optarg ;;
938
939 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
940 ac_prev=prefix ;;
941 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
942 prefix=$ac_optarg ;;
943
944 -program-prefix | --program-prefix | --program-prefi | --program-pref \
945 | --program-pre | --program-pr | --program-p)
946 ac_prev=program_prefix ;;
947 -program-prefix=* | --program-prefix=* | --program-prefi=* \
948 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949 program_prefix=$ac_optarg ;;
950
951 -program-suffix | --program-suffix | --program-suffi | --program-suff \
952 | --program-suf | --program-su | --program-s)
953 ac_prev=program_suffix ;;
954 -program-suffix=* | --program-suffix=* | --program-suffi=* \
955 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956 program_suffix=$ac_optarg ;;
957
958 -program-transform-name | --program-transform-name \
959 | --program-transform-nam | --program-transform-na \
960 | --program-transform-n | --program-transform- \
961 | --program-transform | --program-transfor \
962 | --program-transfo | --program-transf \
963 | --program-trans | --program-tran \
964 | --progr-tra | --program-tr | --program-t)
965 ac_prev=program_transform_name ;;
966 -program-transform-name=* | --program-transform-name=* \
967 | --program-transform-nam=* | --program-transform-na=* \
968 | --program-transform-n=* | --program-transform-=* \
969 | --program-transform=* | --program-transfor=* \
970 | --program-transfo=* | --program-transf=* \
971 | --program-trans=* | --program-tran=* \
972 | --progr-tra=* | --program-tr=* | --program-t=*)
973 program_transform_name=$ac_optarg ;;
974
975 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
976 ac_prev=pdfdir ;;
977 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
978 pdfdir=$ac_optarg ;;
979
980 -psdir | --psdir | --psdi | --psd | --ps)
981 ac_prev=psdir ;;
982 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
983 psdir=$ac_optarg ;;
984
985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
986 | -silent | --silent | --silen | --sile | --sil)
987 silent=yes ;;
988
989 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
990 ac_prev=sbindir ;;
991 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
992 | --sbi=* | --sb=*)
993 sbindir=$ac_optarg ;;
994
995 -sharedstatedir | --sharedstatedir | --sharedstatedi \
996 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997 | --sharedst | --shareds | --shared | --share | --shar \
998 | --sha | --sh)
999 ac_prev=sharedstatedir ;;
1000 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1003 | --sha=* | --sh=*)
1004 sharedstatedir=$ac_optarg ;;
1005
1006 -site | --site | --sit)
1007 ac_prev=site ;;
1008 -site=* | --site=* | --sit=*)
1009 site=$ac_optarg ;;
1010
1011 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1012 ac_prev=srcdir ;;
1013 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1014 srcdir=$ac_optarg ;;
1015
1016 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017 | --syscon | --sysco | --sysc | --sys | --sy)
1018 ac_prev=sysconfdir ;;
1019 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1021 sysconfdir=$ac_optarg ;;
1022
1023 -target | --target | --targe | --targ | --tar | --ta | --t)
1024 ac_prev=target_alias ;;
1025 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1026 target_alias=$ac_optarg ;;
1027
1028 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1029 verbose=yes ;;
1030
1031 -version | --version | --versio | --versi | --vers | -V)
1032 ac_init_version=: ;;
1033
1034 -with-* | --with-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval with_$ac_useropt=\$ac_optarg ;;
1049
1050 -without-* | --without-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error "invalid package name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059 "with_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval with_$ac_useropt=no ;;
1065
1066 --x)
1067 # Obsolete; use --with-x.
1068 with_x=yes ;;
1069
1070 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1071 | --x-incl | --x-inc | --x-in | --x-i)
1072 ac_prev=x_includes ;;
1073 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1074 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1075 x_includes=$ac_optarg ;;
1076
1077 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1078 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1079 ac_prev=x_libraries ;;
1080 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1081 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1082 x_libraries=$ac_optarg ;;
1083
1084 -*) as_fn_error "unrecognized option: \`$ac_option'
1085 Try \`$0 --help' for more information."
1086 ;;
1087
1088 *=*)
1089 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090 # Reject names that are not valid shell variable names.
1091 case $ac_envvar in #(
1092 '' | [0-9]* | *[!_$as_cr_alnum]* )
1093 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1094 esac
1095 eval $ac_envvar=\$ac_optarg
1096 export $ac_envvar ;;
1097
1098 *)
1099 # FIXME: should be removed in autoconf 3.0.
1100 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1101 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1102 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1103 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1104 ;;
1105
1106 esac
1107 done
1108
1109 if test -n "$ac_prev"; then
1110 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1111 as_fn_error "missing argument to $ac_option"
1112 fi
1113
1114 if test -n "$ac_unrecognized_opts"; then
1115 case $enable_option_checking in
1116 no) ;;
1117 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1118 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1119 esac
1120 fi
1121
1122 # Check all directory arguments for consistency.
1123 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1124 datadir sysconfdir sharedstatedir localstatedir includedir \
1125 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126 libdir localedir mandir
1127 do
1128 eval ac_val=\$$ac_var
1129 # Remove trailing slashes.
1130 case $ac_val in
1131 */ )
1132 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1133 eval $ac_var=\$ac_val;;
1134 esac
1135 # Be sure to have absolute directory names.
1136 case $ac_val in
1137 [\\/$]* | ?:[\\/]* ) continue;;
1138 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1139 esac
1140 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1141 done
1142
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1149
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159 fi
1160
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164 test "$silent" = yes && exec 6>/dev/null
1165
1166
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 as_fn_error "working directory cannot be determined"
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 as_fn_error "pwd does not report name of working directory"
1173
1174
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$as_myself" ||
1180 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$as_myself" : 'X\(//\)[^/]' \| \
1182 X"$as_myself" : 'X\(//\)$' \| \
1183 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1184 $as_echo X"$as_myself" |
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\/\)[^/].*/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\/\)$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\).*/{
1198 s//\1/
1199 q
1200 }
1201 s/.*/./; q'`
1202 srcdir=$ac_confdir
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 srcdir=..
1205 fi
1206 else
1207 ac_srcdir_defaulted=no
1208 fi
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1212 fi
1213 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1214 ac_abs_confdir=`(
1215 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1216 pwd)`
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 srcdir=.
1220 fi
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1224 case $srcdir in
1225 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 esac
1227 for ac_var in $ac_precious_vars; do
1228 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_${ac_var}_value=\$${ac_var}
1230 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1232 done
1233
1234 #
1235 # Report the --help message.
1236 #
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1240 cat <<_ACEOF
1241 \`configure' configures this package to adapt to many kinds of systems.
1242
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1244
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1247
1248 Defaults for the options are specified in brackets.
1249
1250 Configuration:
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 [PREFIX]
1266
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1271
1272 For better control, use the options below.
1273
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1294 _ACEOF
1295
1296 cat <<\_ACEOF
1297
1298 Program names:
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1302
1303 System types:
1304 --build=BUILD configure for building on BUILD [guessed]
1305 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1306 --target=TARGET configure for building compilers for TARGET [HOST]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311
1312 cat <<\_ACEOF
1313
1314 Optional Features:
1315 --disable-option-checking ignore unrecognized --enable/--with options
1316 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318 --enable-werror treat compile warnings as errors
1319 --enable-build-warnings enable build-time compiler warnings if gcc is used
1320 --enable-sim-build-warnings
1321 enable SIM specific build-time compiler warnings if
1322 gcc is used
1323
1324 Some influential environment variables:
1325 CC C compiler command
1326 CFLAGS C compiler flags
1327 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1328 nonstandard directory <lib dir>
1329 LIBS libraries to pass to the linker, e.g. -l<library>
1330 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1331 you have headers in a nonstandard directory <include dir>
1332 CPP C preprocessor
1333
1334 Use these variables to override the choices made by `configure' or to help
1335 it to find libraries and programs with nonstandard names/locations.
1336
1337 Report bugs to the package provider.
1338 _ACEOF
1339 ac_status=$?
1340 fi
1341
1342 if test "$ac_init_help" = "recursive"; then
1343 # If there are subdirs, report their specific --help.
1344 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1345 test -d "$ac_dir" ||
1346 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1347 continue
1348 ac_builddir=.
1349
1350 case "$ac_dir" in
1351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *)
1353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1359 esac ;;
1360 esac
1361 ac_abs_top_builddir=$ac_pwd
1362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363 # for backward compatibility:
1364 ac_top_builddir=$ac_top_build_prefix
1365
1366 case $srcdir in
1367 .) # We are building in place.
1368 ac_srcdir=.
1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
1372 ac_srcdir=$srcdir$ac_dir_suffix;
1373 ac_top_srcdir=$srcdir
1374 ac_abs_top_srcdir=$srcdir ;;
1375 *) # Relative name.
1376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379 esac
1380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381
1382 cd "$ac_dir" || { ac_status=$?; continue; }
1383 # Check for guested configure.
1384 if test -f "$ac_srcdir/configure.gnu"; then
1385 echo &&
1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387 elif test -f "$ac_srcdir/configure"; then
1388 echo &&
1389 $SHELL "$ac_srcdir/configure" --help=recursive
1390 else
1391 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392 fi || ac_status=$?
1393 cd "$ac_pwd" || { ac_status=$?; break; }
1394 done
1395 fi
1396
1397 test -n "$ac_init_help" && exit $ac_status
1398 if $ac_init_version; then
1399 cat <<\_ACEOF
1400 configure
1401 generated by GNU Autoconf 2.64
1402
1403 Copyright (C) 2009 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1406 _ACEOF
1407 exit
1408 fi
1409
1410 ## ------------------------ ##
1411 ## Autoconf initialization. ##
1412 ## ------------------------ ##
1413
1414 # ac_fn_c_try_compile LINENO
1415 # --------------------------
1416 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1417 ac_fn_c_try_compile ()
1418 {
1419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1420 rm -f conftest.$ac_objext
1421 if { { ac_try="$ac_compile"
1422 case "(($ac_try" in
1423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1424 *) ac_try_echo=$ac_try;;
1425 esac
1426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1427 $as_echo "$ac_try_echo"; } >&5
1428 (eval "$ac_compile") 2>conftest.err
1429 ac_status=$?
1430 if test -s conftest.err; then
1431 grep -v '^ *+' conftest.err >conftest.er1
1432 cat conftest.er1 >&5
1433 mv -f conftest.er1 conftest.err
1434 fi
1435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1436 test $ac_status = 0; } && {
1437 test -z "$ac_c_werror_flag" ||
1438 test ! -s conftest.err
1439 } && test -s conftest.$ac_objext; then :
1440 ac_retval=0
1441 else
1442 $as_echo "$as_me: failed program was:" >&5
1443 sed 's/^/| /' conftest.$ac_ext >&5
1444
1445 ac_retval=1
1446 fi
1447 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1448 return $ac_retval
1449
1450 } # ac_fn_c_try_compile
1451
1452 # ac_fn_c_try_cpp LINENO
1453 # ----------------------
1454 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1455 ac_fn_c_try_cpp ()
1456 {
1457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1458 if { { ac_try="$ac_cpp conftest.$ac_ext"
1459 case "(($ac_try" in
1460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1461 *) ac_try_echo=$ac_try;;
1462 esac
1463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464 $as_echo "$ac_try_echo"; } >&5
1465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1466 ac_status=$?
1467 if test -s conftest.err; then
1468 grep -v '^ *+' conftest.err >conftest.er1
1469 cat conftest.er1 >&5
1470 mv -f conftest.er1 conftest.err
1471 fi
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1473 test $ac_status = 0; } >/dev/null && {
1474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1475 test ! -s conftest.err
1476 }; then :
1477 ac_retval=0
1478 else
1479 $as_echo "$as_me: failed program was:" >&5
1480 sed 's/^/| /' conftest.$ac_ext >&5
1481
1482 ac_retval=1
1483 fi
1484 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1485 return $ac_retval
1486
1487 } # ac_fn_c_try_cpp
1488
1489 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1490 # -------------------------------------------------------
1491 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1492 # the include files in INCLUDES and setting the cache variable VAR
1493 # accordingly.
1494 ac_fn_c_check_header_mongrel ()
1495 {
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1499 $as_echo_n "checking for $2... " >&6; }
1500 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1501 $as_echo_n "(cached) " >&6
1502 fi
1503 eval ac_res=\$$3
1504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1505 $as_echo "$ac_res" >&6; }
1506 else
1507 # Is the header compilable?
1508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1509 $as_echo_n "checking $2 usability... " >&6; }
1510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1511 /* end confdefs.h. */
1512 $4
1513 #include <$2>
1514 _ACEOF
1515 if ac_fn_c_try_compile "$LINENO"; then :
1516 ac_header_compiler=yes
1517 else
1518 ac_header_compiler=no
1519 fi
1520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1522 $as_echo "$ac_header_compiler" >&6; }
1523
1524 # Is the header present?
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1526 $as_echo_n "checking $2 presence... " >&6; }
1527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1528 /* end confdefs.h. */
1529 #include <$2>
1530 _ACEOF
1531 if ac_fn_c_try_cpp "$LINENO"; then :
1532 ac_header_preproc=yes
1533 else
1534 ac_header_preproc=no
1535 fi
1536 rm -f conftest.err conftest.$ac_ext
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1538 $as_echo "$ac_header_preproc" >&6; }
1539
1540 # So? What about this header?
1541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1542 yes:no: )
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1544 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1546 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1547 ;;
1548 no:yes:* )
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1550 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1552 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1554 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1556 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1558 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1559 ;;
1560 esac
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1562 $as_echo_n "checking for $2... " >&6; }
1563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 $as_echo_n "(cached) " >&6
1565 else
1566 eval "$3=\$ac_header_compiler"
1567 fi
1568 eval ac_res=\$$3
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570 $as_echo "$ac_res" >&6; }
1571 fi
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573
1574 } # ac_fn_c_check_header_mongrel
1575
1576 # ac_fn_c_try_run LINENO
1577 # ----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1579 # that executables *can* be run.
1580 ac_fn_c_try_run ()
1581 {
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_link"
1584 case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587 esac
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>&5
1591 ac_status=$?
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1594 { { case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_try") 2>&5
1601 ac_status=$?
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; }; }; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: program exited with status $ac_status" >&5
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610 ac_retval=$ac_status
1611 fi
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 return $ac_retval
1615
1616 } # ac_fn_c_try_run
1617
1618 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists and can be compiled using the include files in
1621 # INCLUDES, setting the cache variable VAR accordingly.
1622 ac_fn_c_check_header_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628 $as_echo_n "(cached) " >&6
1629 else
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1632 $4
1633 #include <$2>
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"; then :
1636 eval "$3=yes"
1637 else
1638 eval "$3=no"
1639 fi
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 fi
1642 eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646
1647 } # ac_fn_c_check_header_compile
1648
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_link ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 $as_test_x conftest$ac_exeext
1677 }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 return $ac_retval
1692
1693 } # ac_fn_c_try_link
1694 cat >config.log <<_ACEOF
1695 This file contains any messages produced by compilers while
1696 running configure, to aid debugging if configure makes a mistake.
1697
1698 It was created by $as_me, which was
1699 generated by GNU Autoconf 2.64. Invocation command line was
1700
1701 $ $0 $@
1702
1703 _ACEOF
1704 exec 5>>config.log
1705 {
1706 cat <<_ASUNAME
1707 ## --------- ##
1708 ## Platform. ##
1709 ## --------- ##
1710
1711 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1712 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1713 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1714 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1715 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1716
1717 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1718 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1719
1720 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1721 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1722 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1723 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1724 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1725 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1726 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1727
1728 _ASUNAME
1729
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1732 do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 $as_echo "PATH: $as_dir"
1736 done
1737 IFS=$as_save_IFS
1738
1739 } >&5
1740
1741 cat >&5 <<_ACEOF
1742
1743
1744 ## ----------- ##
1745 ## Core tests. ##
1746 ## ----------- ##
1747
1748 _ACEOF
1749
1750
1751 # Keep a trace of the command line.
1752 # Strip out --no-create and --no-recursion so they do not pile up.
1753 # Strip out --silent because we don't want to record it for future runs.
1754 # Also quote any args containing shell meta-characters.
1755 # Make two passes to allow for proper duplicate-argument suppression.
1756 ac_configure_args=
1757 ac_configure_args0=
1758 ac_configure_args1=
1759 ac_must_keep_next=false
1760 for ac_pass in 1 2
1761 do
1762 for ac_arg
1763 do
1764 case $ac_arg in
1765 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1767 | -silent | --silent | --silen | --sile | --sil)
1768 continue ;;
1769 *\'*)
1770 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1771 esac
1772 case $ac_pass in
1773 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1774 2)
1775 as_fn_append ac_configure_args1 " '$ac_arg'"
1776 if test $ac_must_keep_next = true; then
1777 ac_must_keep_next=false # Got value, back to normal.
1778 else
1779 case $ac_arg in
1780 *=* | --config-cache | -C | -disable-* | --disable-* \
1781 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1782 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1783 | -with-* | --with-* | -without-* | --without-* | --x)
1784 case "$ac_configure_args0 " in
1785 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1786 esac
1787 ;;
1788 -* ) ac_must_keep_next=true ;;
1789 esac
1790 fi
1791 as_fn_append ac_configure_args " '$ac_arg'"
1792 ;;
1793 esac
1794 done
1795 done
1796 { ac_configure_args0=; unset ac_configure_args0;}
1797 { ac_configure_args1=; unset ac_configure_args1;}
1798
1799 # When interrupted or exit'd, cleanup temporary files, and complete
1800 # config.log. We remove comments because anyway the quotes in there
1801 # would cause problems or look ugly.
1802 # WARNING: Use '\'' to represent an apostrophe within the trap.
1803 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1804 trap 'exit_status=$?
1805 # Save into config.log some information that might help in debugging.
1806 {
1807 echo
1808
1809 cat <<\_ASBOX
1810 ## ---------------- ##
1811 ## Cache variables. ##
1812 ## ---------------- ##
1813 _ASBOX
1814 echo
1815 # The following way of writing the cache mishandles newlines in values,
1816 (
1817 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in #(
1820 *${as_nl}*)
1821 case $ac_var in #(
1822 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1823 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1824 esac
1825 case $ac_var in #(
1826 _ | IFS | as_nl) ;; #(
1827 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1828 *) { eval $ac_var=; unset $ac_var;} ;;
1829 esac ;;
1830 esac
1831 done
1832 (set) 2>&1 |
1833 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1834 *${as_nl}ac_space=\ *)
1835 sed -n \
1836 "s/'\''/'\''\\\\'\'''\''/g;
1837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838 ;; #(
1839 *)
1840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1841 ;;
1842 esac |
1843 sort
1844 )
1845 echo
1846
1847 cat <<\_ASBOX
1848 ## ----------------- ##
1849 ## Output variables. ##
1850 ## ----------------- ##
1851 _ASBOX
1852 echo
1853 for ac_var in $ac_subst_vars
1854 do
1855 eval ac_val=\$$ac_var
1856 case $ac_val in
1857 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 esac
1859 $as_echo "$ac_var='\''$ac_val'\''"
1860 done | sort
1861 echo
1862
1863 if test -n "$ac_subst_files"; then
1864 cat <<\_ASBOX
1865 ## ------------------- ##
1866 ## File substitutions. ##
1867 ## ------------------- ##
1868 _ASBOX
1869 echo
1870 for ac_var in $ac_subst_files
1871 do
1872 eval ac_val=\$$ac_var
1873 case $ac_val in
1874 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875 esac
1876 $as_echo "$ac_var='\''$ac_val'\''"
1877 done | sort
1878 echo
1879 fi
1880
1881 if test -s confdefs.h; then
1882 cat <<\_ASBOX
1883 ## ----------- ##
1884 ## confdefs.h. ##
1885 ## ----------- ##
1886 _ASBOX
1887 echo
1888 cat confdefs.h
1889 echo
1890 fi
1891 test "$ac_signal" != 0 &&
1892 $as_echo "$as_me: caught signal $ac_signal"
1893 $as_echo "$as_me: exit $exit_status"
1894 } >&5
1895 rm -f core *.core core.conftest.* &&
1896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1897 exit $exit_status
1898 ' 0
1899 for ac_signal in 1 2 13 15; do
1900 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1901 done
1902 ac_signal=0
1903
1904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1905 rm -f -r conftest* confdefs.h
1906
1907 $as_echo "/* confdefs.h */" > confdefs.h
1908
1909 # Predefined preprocessor variables.
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_NAME "$PACKAGE_NAME"
1913 _ACEOF
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917 _ACEOF
1918
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1921 _ACEOF
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_STRING "$PACKAGE_STRING"
1925 _ACEOF
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1929 _ACEOF
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_URL "$PACKAGE_URL"
1933 _ACEOF
1934
1935
1936 # Let the site file select an alternate cache file if it wants to.
1937 # Prefer an explicitly selected file to automatically selected ones.
1938 ac_site_file1=NONE
1939 ac_site_file2=NONE
1940 if test -n "$CONFIG_SITE"; then
1941 ac_site_file1=$CONFIG_SITE
1942 elif test "x$prefix" != xNONE; then
1943 ac_site_file1=$prefix/share/config.site
1944 ac_site_file2=$prefix/etc/config.site
1945 else
1946 ac_site_file1=$ac_default_prefix/share/config.site
1947 ac_site_file2=$ac_default_prefix/etc/config.site
1948 fi
1949 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1950 do
1951 test "x$ac_site_file" = xNONE && continue
1952 if test -r "$ac_site_file"; then
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1954 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1955 sed 's/^/| /' "$ac_site_file" >&5
1956 . "$ac_site_file"
1957 fi
1958 done
1959
1960 if test -r "$cache_file"; then
1961 # Some versions of bash will fail to source /dev/null (special
1962 # files actually), so we avoid doing that.
1963 if test -f "$cache_file"; then
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1965 $as_echo "$as_me: loading cache $cache_file" >&6;}
1966 case $cache_file in
1967 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1968 *) . "./$cache_file";;
1969 esac
1970 fi
1971 else
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1973 $as_echo "$as_me: creating cache $cache_file" >&6;}
1974 >$cache_file
1975 fi
1976
1977 # Check that the precious variables saved in the cache have kept the same
1978 # value.
1979 ac_cache_corrupted=false
1980 for ac_var in $ac_precious_vars; do
1981 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1982 eval ac_new_set=\$ac_env_${ac_var}_set
1983 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1984 eval ac_new_val=\$ac_env_${ac_var}_value
1985 case $ac_old_set,$ac_new_set in
1986 set,)
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1988 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1990 ,set)
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1992 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1993 ac_cache_corrupted=: ;;
1994 ,);;
1995 *)
1996 if test "x$ac_old_val" != "x$ac_new_val"; then
1997 # differences in whitespace do not lead to failure.
1998 ac_old_val_w=`echo x $ac_old_val`
1999 ac_new_val_w=`echo x $ac_new_val`
2000 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2002 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2003 ac_cache_corrupted=:
2004 else
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2006 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2007 eval $ac_var=\$ac_old_val
2008 fi
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2010 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2012 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2013 fi;;
2014 esac
2015 # Pass precious variables to config.status.
2016 if test "$ac_new_set" = set; then
2017 case $ac_new_val in
2018 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2019 *) ac_arg=$ac_var=$ac_new_val ;;
2020 esac
2021 case " $ac_configure_args " in
2022 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2023 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2024 esac
2025 fi
2026 done
2027 if $ac_cache_corrupted; then
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2031 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2032 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2033 fi
2034 ## -------------------- ##
2035 ## Main body of script. ##
2036 ## -------------------- ##
2037
2038 ac_ext=c
2039 ac_cpp='$CPP $CPPFLAGS'
2040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043
2044
2045 # This file contains common code used by all simulators.
2046 #
2047 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2048 # directory. It is intended to be invoked before any target specific stuff.
2049 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2050 # It is intended to be invoked last.
2051 #
2052 # The simulator's configure.ac should look like:
2053 #
2054 # dnl Process this file with autoconf to produce a configure script.
2055 # AC_PREREQ(2.64)dnl
2056 # AC_INIT(Makefile.in)
2057 # sinclude(../common/aclocal.m4)
2058 #
2059 # SIM_AC_COMMON
2060 #
2061 # ... target specific stuff ...
2062 #
2063 # SIM_AC_OUTPUT
2064
2065 # Include global overrides and fixes for Autoconf.
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092 # _AC_CHECK_DECL_BODY
2093 # -------------------
2094 # Shell function body for AC_CHECK_DECL.
2095 # _AC_CHECK_DECL_BODY
2096
2097 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2098 # INCLUDES)
2099 # -------------------------------------------------------------
2100 # Helper to AC_CHECK_DECLS, which generates the check for a single
2101 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2102 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2115 #
2116 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2117 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2118 # Written by Gordon Matzigkeit, 1996
2119 #
2120 # This file is free software; the Free Software Foundation gives
2121 # unlimited permission to copy and/or distribute it, with or without
2122 # modifications, as long as this notice is preserved.
2123
2124
2125
2126 # serial 56 LT_INIT
2127
2128
2129 # LT_PREREQ(VERSION)
2130 # ------------------
2131 # Complain and exit if this libtool version is less that VERSION.
2132
2133
2134
2135 # _LT_CHECK_BUILDDIR
2136 # ------------------
2137 # Complain if the absolute build directory name contains unusual characters
2138
2139
2140
2141 # LT_INIT([OPTIONS])
2142 # ------------------
2143 # LT_INIT
2144
2145 # Old names:
2146 # This is what autoupdate's m4 run will expand. It fires
2147 # the warning (with _au_warn_XXX), outputs it into the
2148 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2149 # the replacement expansion.
2150
2151
2152 # This is an auxiliary macro that is also run when
2153 # autoupdate runs m4. It simply calls m4_warning, but
2154 # we need a wrapper so that each warning is emitted only
2155 # once. We break the quoting in m4_warning's argument in
2156 # order to expand this macro's arguments, not AU_DEFUN's.
2157
2158
2159 # Finally, this is the expansion that is picked up by
2160 # autoconf. It tells the user to run autoupdate, and
2161 # then outputs the replacement expansion. We do not care
2162 # about autoupdate's warning because that contains
2163 # information on what to do *after* running autoupdate.
2164
2165 # This is what autoupdate's m4 run will expand. It fires
2166 # the warning (with _au_warn_XXX), outputs it into the
2167 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2168 # the replacement expansion.
2169
2170
2171 # This is an auxiliary macro that is also run when
2172 # autoupdate runs m4. It simply calls m4_warning, but
2173 # we need a wrapper so that each warning is emitted only
2174 # once. We break the quoting in m4_warning's argument in
2175 # order to expand this macro's arguments, not AU_DEFUN's.
2176
2177
2178 # Finally, this is the expansion that is picked up by
2179 # autoconf. It tells the user to run autoupdate, and
2180 # then outputs the replacement expansion. We do not care
2181 # about autoupdate's warning because that contains
2182 # information on what to do *after* running autoupdate.
2183
2184
2185
2186 # _LT_CC_BASENAME(CC)
2187 # -------------------
2188 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2189
2190
2191
2192 # _LT_FILEUTILS_DEFAULTS
2193 # ----------------------
2194 # It is okay to use these file commands and assume they have been set
2195 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2196 # _LT_FILEUTILS_DEFAULTS
2197
2198
2199 # _LT_SETUP
2200 # ---------
2201 # _LT_SETUP
2202
2203
2204 # _LT_PREPARE_SED_QUOTE_VARS
2205 # --------------------------
2206 # Define a few sed substitution that help us do robust quoting.
2207
2208
2209 # _LT_PROG_LTMAIN
2210 # ---------------
2211 # Note that this code is called both from `configure', and `config.status'
2212 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2213 # `config.status' has no value for ac_aux_dir unless we are using Automake,
2214 # so we pass a copy along to make sure it has a sensible value anyway.
2215 # _LT_PROG_LTMAIN
2216
2217
2218 ## ------------------------------------- ##
2219 ## Accumulate code for creating libtool. ##
2220 ## ------------------------------------- ##
2221
2222 # So that we can recreate a full libtool script including additional
2223 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2224 # in macros and then make a single call at the end using the `libtool'
2225 # label.
2226
2227
2228 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2229 # ----------------------------------------
2230 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2231
2232
2233 # Initialize.
2234
2235
2236
2237 # _LT_CONFIG_LIBTOOL([COMMANDS])
2238 # ------------------------------
2239 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2240
2241
2242 # Initialize.
2243
2244
2245
2246 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2247 # -----------------------------------------------------
2248
2249
2250
2251 # _LT_FORMAT_COMMENT([COMMENT])
2252 # -----------------------------
2253 # Add leading comment marks to the start of each line, and a trailing
2254 # full-stop to the whole comment if one is not present already.
2255
2256
2257
2258
2259 ## ------------------------ ##
2260 ## FIXME: Eliminate VARNAME ##
2261 ## ------------------------ ##
2262
2263
2264 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2265 # -------------------------------------------------------------------
2266 # CONFIGNAME is the name given to the value in the libtool script.
2267 # VARNAME is the (base) name used in the configure script.
2268 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2269 # VARNAME. Any other value will be used directly.
2270
2271
2272
2273 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2274 # --------------------------------------------------------
2275
2276
2277
2278 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2279 # ------------------------------------------------
2280
2281
2282
2283 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2284 # ---------------------------------------------------------
2285
2286
2287
2288 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2289 # --------------------------------------------------
2290
2291
2292
2293 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2294 # ---------------------------------------------------
2295
2296
2297
2298 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2299 # ---------------------------------------------------
2300
2301
2302
2303
2304 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2305 # ------------------------------------------------
2306
2307
2308
2309
2310 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
2311 # ------------------------------------
2312 # Quote a variable value, and forward it to `config.status' so that its
2313 # declaration there will have the same value as in `configure'. VARNAME
2314 # must have a single quote delimited value for this to work.
2315
2316
2317
2318 # _LT_CONFIG_STATUS_DECLARATIONS
2319 # ------------------------------
2320 # We delimit libtool config variables with single quotes, so when
2321 # we write them to config.status, we have to be sure to quote all
2322 # embedded single quotes properly. In configure, this macro expands
2323 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2324 #
2325 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2326
2327
2328
2329 # _LT_LIBTOOL_TAGS
2330 # ----------------
2331 # Output comment and list of tags supported by the script
2332
2333
2334
2335 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2336 # -----------------------------------
2337 # Extract the dictionary values for VARNAME (optionally with TAG) and
2338 # expand to a commented shell variable setting:
2339 #
2340 # # Some comment about what VAR is for.
2341 # visible_name=$lt_internal_name
2342
2343
2344
2345 # _LT_LIBTOOL_CONFIG_VARS
2346 # -----------------------
2347 # Produce commented declarations of non-tagged libtool config variables
2348 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2349 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2350 # section) are produced by _LT_LIBTOOL_TAG_VARS.
2351
2352
2353
2354 # _LT_LIBTOOL_TAG_VARS(TAG)
2355 # -------------------------
2356
2357
2358
2359 # _LT_TAGVAR(VARNAME, [TAGNAME])
2360 # ------------------------------
2361
2362
2363
2364 # _LT_CONFIG_COMMANDS
2365 # -------------------
2366 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2367 # variables for single and double quote escaping we saved from calls
2368 # to _LT_DECL, we can put quote escaped variables declarations
2369 # into `config.status', and then the shell code to quote escape them in
2370 # for loops in `config.status'. Finally, any additional code accumulated
2371 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2372 #_LT_CONFIG_COMMANDS
2373
2374
2375 # Initialize.
2376
2377
2378 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2379 # ------------------------------------
2380 # Generate a child script FILE with all initialization necessary to
2381 # reuse the environment learned by the parent script, and make the
2382 # file executable. If COMMENT is supplied, it is inserted after the
2383 # `#!' sequence but before initialization text begins. After this
2384 # macro, additional text can be appended to FILE to form the body of
2385 # the child script. The macro ends with non-zero status if the
2386 # file could not be fully written (such as if the disk is full).
2387 # _LT_GENERATED_FILE_INIT
2388
2389 # LT_OUTPUT
2390 # ---------
2391 # This macro allows early generation of the libtool script (before
2392 # AC_OUTPUT is called), incase it is used in configure for compilation
2393 # tests.
2394 # LT_OUTPUT
2395
2396
2397 # _LT_CONFIG(TAG)
2398 # ---------------
2399 # If TAG is the built-in tag, create an initial libtool script with a
2400 # default configuration from the untagged config vars. Otherwise add code
2401 # to config.status for appending the configuration named by TAG from the
2402 # matching tagged config vars.
2403 # _LT_CONFIG
2404
2405
2406 # LT_SUPPORTED_TAG(TAG)
2407 # ---------------------
2408 # Trace this macro to discover what tags are supported by the libtool
2409 # --tag option, using:
2410 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
2411
2412
2413
2414 # C support is built-in for now
2415
2416
2417
2418
2419 # LT_LANG(LANG)
2420 # -------------
2421 # Enable libtool support for the given language if not already enabled.
2422 # LT_LANG
2423
2424
2425 # _LT_LANG(LANGNAME)
2426 # ------------------
2427 # _LT_LANG
2428
2429
2430 # _LT_LANG_DEFAULT_CONFIG
2431 # -----------------------
2432 # _LT_LANG_DEFAULT_CONFIG
2433
2434 # Obsolete macros:
2435 # This is what autoupdate's m4 run will expand. It fires
2436 # the warning (with _au_warn_XXX), outputs it into the
2437 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2438 # the replacement expansion.
2439
2440
2441 # This is an auxiliary macro that is also run when
2442 # autoupdate runs m4. It simply calls m4_warning, but
2443 # we need a wrapper so that each warning is emitted only
2444 # once. We break the quoting in m4_warning's argument in
2445 # order to expand this macro's arguments, not AU_DEFUN's.
2446
2447
2448 # Finally, this is the expansion that is picked up by
2449 # autoconf. It tells the user to run autoupdate, and
2450 # then outputs the replacement expansion. We do not care
2451 # about autoupdate's warning because that contains
2452 # information on what to do *after* running autoupdate.
2453
2454 # This is what autoupdate's m4 run will expand. It fires
2455 # the warning (with _au_warn_XXX), outputs it into the
2456 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2457 # the replacement expansion.
2458
2459
2460 # This is an auxiliary macro that is also run when
2461 # autoupdate runs m4. It simply calls m4_warning, but
2462 # we need a wrapper so that each warning is emitted only
2463 # once. We break the quoting in m4_warning's argument in
2464 # order to expand this macro's arguments, not AU_DEFUN's.
2465
2466
2467 # Finally, this is the expansion that is picked up by
2468 # autoconf. It tells the user to run autoupdate, and
2469 # then outputs the replacement expansion. We do not care
2470 # about autoupdate's warning because that contains
2471 # information on what to do *after* running autoupdate.
2472
2473 # This is what autoupdate's m4 run will expand. It fires
2474 # the warning (with _au_warn_XXX), outputs it into the
2475 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2476 # the replacement expansion.
2477
2478
2479 # This is an auxiliary macro that is also run when
2480 # autoupdate runs m4. It simply calls m4_warning, but
2481 # we need a wrapper so that each warning is emitted only
2482 # once. We break the quoting in m4_warning's argument in
2483 # order to expand this macro's arguments, not AU_DEFUN's.
2484
2485
2486 # Finally, this is the expansion that is picked up by
2487 # autoconf. It tells the user to run autoupdate, and
2488 # then outputs the replacement expansion. We do not care
2489 # about autoupdate's warning because that contains
2490 # information on what to do *after* running autoupdate.
2491
2492 # This is what autoupdate's m4 run will expand. It fires
2493 # the warning (with _au_warn_XXX), outputs it into the
2494 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2495 # the replacement expansion.
2496
2497
2498 # This is an auxiliary macro that is also run when
2499 # autoupdate runs m4. It simply calls m4_warning, but
2500 # we need a wrapper so that each warning is emitted only
2501 # once. We break the quoting in m4_warning's argument in
2502 # order to expand this macro's arguments, not AU_DEFUN's.
2503
2504
2505 # Finally, this is the expansion that is picked up by
2506 # autoconf. It tells the user to run autoupdate, and
2507 # then outputs the replacement expansion. We do not care
2508 # about autoupdate's warning because that contains
2509 # information on what to do *after* running autoupdate.
2510
2511 # This is what autoupdate's m4 run will expand. It fires
2512 # the warning (with _au_warn_XXX), outputs it into the
2513 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2514 # the replacement expansion.
2515
2516
2517 # This is an auxiliary macro that is also run when
2518 # autoupdate runs m4. It simply calls m4_warning, but
2519 # we need a wrapper so that each warning is emitted only
2520 # once. We break the quoting in m4_warning's argument in
2521 # order to expand this macro's arguments, not AU_DEFUN's.
2522
2523
2524 # Finally, this is the expansion that is picked up by
2525 # autoconf. It tells the user to run autoupdate, and
2526 # then outputs the replacement expansion. We do not care
2527 # about autoupdate's warning because that contains
2528 # information on what to do *after* running autoupdate.
2529
2530
2531
2532 # _LT_TAG_COMPILER
2533 # ----------------
2534 # _LT_TAG_COMPILER
2535
2536
2537 # _LT_COMPILER_BOILERPLATE
2538 # ------------------------
2539 # Check for compiler boilerplate output or warnings with
2540 # the simple compiler test code.
2541 # _LT_COMPILER_BOILERPLATE
2542
2543
2544 # _LT_LINKER_BOILERPLATE
2545 # ----------------------
2546 # Check for linker boilerplate output or warnings with
2547 # the simple link test code.
2548 # _LT_LINKER_BOILERPLATE
2549
2550 # _LT_REQUIRED_DARWIN_CHECKS
2551 # -------------------------
2552
2553
2554
2555 # _LT_DARWIN_LINKER_FEATURES
2556 # --------------------------
2557 # Checks for linker and compiler features on darwin
2558
2559
2560 # _LT_SYS_MODULE_PATH_AIX
2561 # -----------------------
2562 # Links a minimal program and checks the executable
2563 # for the system default hardcoded library path. In most cases,
2564 # this is /usr/lib:/lib, but when the MPI compilers are used
2565 # the location of the communication and MPI libs are included too.
2566 # If we don't find anything, use the default library path according
2567 # to the aix ld manual.
2568 # _LT_SYS_MODULE_PATH_AIX
2569
2570
2571 # _LT_SHELL_INIT(ARG)
2572 # -------------------
2573 # _LT_SHELL_INIT
2574
2575
2576
2577 # _LT_PROG_ECHO_BACKSLASH
2578 # -----------------------
2579 # Find how we can fake an echo command that does not interpret backslash.
2580 # In particular, with Autoconf 2.60 or later we add some code to the start
2581 # of the generated configure script which will find a shell with a builtin
2582 # printf (which we can use as an echo command).
2583 # _LT_PROG_ECHO_BACKSLASH
2584
2585
2586 # _LT_ENABLE_LOCK
2587 # ---------------
2588 # _LT_ENABLE_LOCK
2589
2590
2591 # _LT_CMD_OLD_ARCHIVE
2592 # -------------------
2593 # _LT_CMD_OLD_ARCHIVE
2594
2595
2596 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2597 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2598 # ----------------------------------------------------------------
2599 # Check whether the given compiler option works
2600 # _LT_COMPILER_OPTION
2601
2602 # Old name:
2603 # This is what autoupdate's m4 run will expand. It fires
2604 # the warning (with _au_warn_XXX), outputs it into the
2605 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2606 # the replacement expansion.
2607
2608
2609 # This is an auxiliary macro that is also run when
2610 # autoupdate runs m4. It simply calls m4_warning, but
2611 # we need a wrapper so that each warning is emitted only
2612 # once. We break the quoting in m4_warning's argument in
2613 # order to expand this macro's arguments, not AU_DEFUN's.
2614
2615
2616 # Finally, this is the expansion that is picked up by
2617 # autoconf. It tells the user to run autoupdate, and
2618 # then outputs the replacement expansion. We do not care
2619 # about autoupdate's warning because that contains
2620 # information on what to do *after* running autoupdate.
2621
2622
2623
2624 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2625 # [ACTION-SUCCESS], [ACTION-FAILURE])
2626 # ----------------------------------------------------
2627 # Check whether the given linker option works
2628 # _LT_LINKER_OPTION
2629
2630 # Old name:
2631 # This is what autoupdate's m4 run will expand. It fires
2632 # the warning (with _au_warn_XXX), outputs it into the
2633 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2634 # the replacement expansion.
2635
2636
2637 # This is an auxiliary macro that is also run when
2638 # autoupdate runs m4. It simply calls m4_warning, but
2639 # we need a wrapper so that each warning is emitted only
2640 # once. We break the quoting in m4_warning's argument in
2641 # order to expand this macro's arguments, not AU_DEFUN's.
2642
2643
2644 # Finally, this is the expansion that is picked up by
2645 # autoconf. It tells the user to run autoupdate, and
2646 # then outputs the replacement expansion. We do not care
2647 # about autoupdate's warning because that contains
2648 # information on what to do *after* running autoupdate.
2649
2650
2651
2652 # LT_CMD_MAX_LEN
2653 #---------------
2654 # LT_CMD_MAX_LEN
2655
2656 # Old name:
2657 # This is what autoupdate's m4 run will expand. It fires
2658 # the warning (with _au_warn_XXX), outputs it into the
2659 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2660 # the replacement expansion.
2661
2662
2663 # This is an auxiliary macro that is also run when
2664 # autoupdate runs m4. It simply calls m4_warning, but
2665 # we need a wrapper so that each warning is emitted only
2666 # once. We break the quoting in m4_warning's argument in
2667 # order to expand this macro's arguments, not AU_DEFUN's.
2668
2669
2670 # Finally, this is the expansion that is picked up by
2671 # autoconf. It tells the user to run autoupdate, and
2672 # then outputs the replacement expansion. We do not care
2673 # about autoupdate's warning because that contains
2674 # information on what to do *after* running autoupdate.
2675
2676
2677
2678 # _LT_HEADER_DLFCN
2679 # ----------------
2680 # _LT_HEADER_DLFCN
2681
2682
2683 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2684 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2685 # ----------------------------------------------------------------
2686 # _LT_TRY_DLOPEN_SELF
2687
2688
2689 # LT_SYS_DLOPEN_SELF
2690 # ------------------
2691 # LT_SYS_DLOPEN_SELF
2692
2693 # Old name:
2694 # This is what autoupdate's m4 run will expand. It fires
2695 # the warning (with _au_warn_XXX), outputs it into the
2696 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2697 # the replacement expansion.
2698
2699
2700 # This is an auxiliary macro that is also run when
2701 # autoupdate runs m4. It simply calls m4_warning, but
2702 # we need a wrapper so that each warning is emitted only
2703 # once. We break the quoting in m4_warning's argument in
2704 # order to expand this macro's arguments, not AU_DEFUN's.
2705
2706
2707 # Finally, this is the expansion that is picked up by
2708 # autoconf. It tells the user to run autoupdate, and
2709 # then outputs the replacement expansion. We do not care
2710 # about autoupdate's warning because that contains
2711 # information on what to do *after* running autoupdate.
2712
2713
2714
2715 # _LT_COMPILER_C_O([TAGNAME])
2716 # ---------------------------
2717 # Check to see if options -c and -o are simultaneously supported by compiler.
2718 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2719 # _LT_COMPILER_C_O
2720
2721
2722 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2723 # ----------------------------------
2724 # Check to see if we can do hard links to lock some files if needed
2725 # _LT_COMPILER_FILE_LOCKS
2726
2727
2728 # _LT_CHECK_OBJDIR
2729 # ----------------
2730 # _LT_CHECK_OBJDIR
2731
2732
2733 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2734 # --------------------------------------
2735 # Check hardcoding attributes.
2736 # _LT_LINKER_HARDCODE_LIBPATH
2737
2738
2739 # _LT_CMD_STRIPLIB
2740 # ----------------
2741 # _LT_CMD_STRIPLIB
2742
2743
2744 # _LT_SYS_DYNAMIC_LINKER([TAG])
2745 # -----------------------------
2746 # PORTME Fill in your ld.so characteristics
2747 # _LT_SYS_DYNAMIC_LINKER
2748
2749
2750 # _LT_PATH_TOOL_PREFIX(TOOL)
2751 # --------------------------
2752 # find a file program which can recognize shared library
2753 # _LT_PATH_TOOL_PREFIX
2754
2755 # Old name:
2756 # This is what autoupdate's m4 run will expand. It fires
2757 # the warning (with _au_warn_XXX), outputs it into the
2758 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2759 # the replacement expansion.
2760
2761
2762 # This is an auxiliary macro that is also run when
2763 # autoupdate runs m4. It simply calls m4_warning, but
2764 # we need a wrapper so that each warning is emitted only
2765 # once. We break the quoting in m4_warning's argument in
2766 # order to expand this macro's arguments, not AU_DEFUN's.
2767
2768
2769 # Finally, this is the expansion that is picked up by
2770 # autoconf. It tells the user to run autoupdate, and
2771 # then outputs the replacement expansion. We do not care
2772 # about autoupdate's warning because that contains
2773 # information on what to do *after* running autoupdate.
2774
2775
2776
2777 # _LT_PATH_MAGIC
2778 # --------------
2779 # find a file program which can recognize a shared library
2780 # _LT_PATH_MAGIC
2781
2782
2783 # LT_PATH_LD
2784 # ----------
2785 # find the pathname to the GNU or non-GNU linker
2786 # LT_PATH_LD
2787
2788 # Old names:
2789 # This is what autoupdate's m4 run will expand. It fires
2790 # the warning (with _au_warn_XXX), outputs it into the
2791 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2792 # the replacement expansion.
2793
2794
2795 # This is an auxiliary macro that is also run when
2796 # autoupdate runs m4. It simply calls m4_warning, but
2797 # we need a wrapper so that each warning is emitted only
2798 # once. We break the quoting in m4_warning's argument in
2799 # order to expand this macro's arguments, not AU_DEFUN's.
2800
2801
2802 # Finally, this is the expansion that is picked up by
2803 # autoconf. It tells the user to run autoupdate, and
2804 # then outputs the replacement expansion. We do not care
2805 # about autoupdate's warning because that contains
2806 # information on what to do *after* running autoupdate.
2807
2808 # This is what autoupdate's m4 run will expand. It fires
2809 # the warning (with _au_warn_XXX), outputs it into the
2810 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2811 # the replacement expansion.
2812
2813
2814 # This is an auxiliary macro that is also run when
2815 # autoupdate runs m4. It simply calls m4_warning, but
2816 # we need a wrapper so that each warning is emitted only
2817 # once. We break the quoting in m4_warning's argument in
2818 # order to expand this macro's arguments, not AU_DEFUN's.
2819
2820
2821 # Finally, this is the expansion that is picked up by
2822 # autoconf. It tells the user to run autoupdate, and
2823 # then outputs the replacement expansion. We do not care
2824 # about autoupdate's warning because that contains
2825 # information on what to do *after* running autoupdate.
2826
2827
2828
2829 # _LT_PATH_LD_GNU
2830 #- --------------
2831 # _LT_PATH_LD_GNU
2832
2833
2834 # _LT_CMD_RELOAD
2835 # --------------
2836 # find reload flag for linker
2837 # -- PORTME Some linkers may need a different reload flag.
2838 # _LT_CMD_RELOAD
2839
2840
2841 # _LT_CHECK_MAGIC_METHOD
2842 # ----------------------
2843 # how to check for library dependencies
2844 # -- PORTME fill in with the dynamic library characteristics
2845 # _LT_CHECK_MAGIC_METHOD
2846
2847
2848 # LT_PATH_NM
2849 # ----------
2850 # find the pathname to a BSD- or MS-compatible name lister
2851 # LT_PATH_NM
2852
2853 # Old names:
2854 # This is what autoupdate's m4 run will expand. It fires
2855 # the warning (with _au_warn_XXX), outputs it into the
2856 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2857 # the replacement expansion.
2858
2859
2860 # This is an auxiliary macro that is also run when
2861 # autoupdate runs m4. It simply calls m4_warning, but
2862 # we need a wrapper so that each warning is emitted only
2863 # once. We break the quoting in m4_warning's argument in
2864 # order to expand this macro's arguments, not AU_DEFUN's.
2865
2866
2867 # Finally, this is the expansion that is picked up by
2868 # autoconf. It tells the user to run autoupdate, and
2869 # then outputs the replacement expansion. We do not care
2870 # about autoupdate's warning because that contains
2871 # information on what to do *after* running autoupdate.
2872
2873 # This is what autoupdate's m4 run will expand. It fires
2874 # the warning (with _au_warn_XXX), outputs it into the
2875 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2876 # the replacement expansion.
2877
2878
2879 # This is an auxiliary macro that is also run when
2880 # autoupdate runs m4. It simply calls m4_warning, but
2881 # we need a wrapper so that each warning is emitted only
2882 # once. We break the quoting in m4_warning's argument in
2883 # order to expand this macro's arguments, not AU_DEFUN's.
2884
2885
2886 # Finally, this is the expansion that is picked up by
2887 # autoconf. It tells the user to run autoupdate, and
2888 # then outputs the replacement expansion. We do not care
2889 # about autoupdate's warning because that contains
2890 # information on what to do *after* running autoupdate.
2891
2892
2893
2894 # LT_LIB_M
2895 # --------
2896 # check for math library
2897 # LT_LIB_M
2898
2899 # Old name:
2900 # This is what autoupdate's m4 run will expand. It fires
2901 # the warning (with _au_warn_XXX), outputs it into the
2902 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2903 # the replacement expansion.
2904
2905
2906 # This is an auxiliary macro that is also run when
2907 # autoupdate runs m4. It simply calls m4_warning, but
2908 # we need a wrapper so that each warning is emitted only
2909 # once. We break the quoting in m4_warning's argument in
2910 # order to expand this macro's arguments, not AU_DEFUN's.
2911
2912
2913 # Finally, this is the expansion that is picked up by
2914 # autoconf. It tells the user to run autoupdate, and
2915 # then outputs the replacement expansion. We do not care
2916 # about autoupdate's warning because that contains
2917 # information on what to do *after* running autoupdate.
2918
2919
2920
2921 # _LT_COMPILER_NO_RTTI([TAGNAME])
2922 # -------------------------------
2923 # _LT_COMPILER_NO_RTTI
2924
2925
2926 # _LT_CMD_GLOBAL_SYMBOLS
2927 # ----------------------
2928 # _LT_CMD_GLOBAL_SYMBOLS
2929
2930
2931 # _LT_COMPILER_PIC([TAGNAME])
2932 # ---------------------------
2933 # _LT_COMPILER_PIC
2934
2935
2936 # _LT_LINKER_SHLIBS([TAGNAME])
2937 # ----------------------------
2938 # See if the linker supports building shared libraries.
2939 # _LT_LINKER_SHLIBS
2940
2941
2942 # _LT_LANG_C_CONFIG([TAG])
2943 # ------------------------
2944 # Ensure that the configuration variables for a C compiler are suitably
2945 # defined. These variables are subsequently used by _LT_CONFIG to write
2946 # the compiler configuration to `libtool'.
2947 # _LT_LANG_C_CONFIG
2948
2949
2950 # _LT_LANG_CXX_CONFIG([TAG])
2951 # --------------------------
2952 # Ensure that the configuration variables for a C++ compiler are suitably
2953 # defined. These variables are subsequently used by _LT_CONFIG to write
2954 # the compiler configuration to `libtool'.
2955 # _LT_LANG_CXX_CONFIG
2956
2957
2958 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
2959 # ---------------------------------
2960 # Figure out "hidden" library dependencies from verbose
2961 # compiler output when linking a shared library.
2962 # Parse the compiler output and extract the necessary
2963 # objects, libraries and library flags.
2964 # _LT_SYS_HIDDEN_LIBDEPS
2965
2966
2967 # _LT_LANG_F77_CONFIG([TAG])
2968 # --------------------------
2969 # Ensure that the configuration variables for a Fortran 77 compiler are
2970 # suitably defined. These variables are subsequently used by _LT_CONFIG
2971 # to write the compiler configuration to `libtool'.
2972 # _LT_LANG_F77_CONFIG
2973
2974
2975 # _LT_LANG_FC_CONFIG([TAG])
2976 # -------------------------
2977 # Ensure that the configuration variables for a Fortran compiler are
2978 # suitably defined. These variables are subsequently used by _LT_CONFIG
2979 # to write the compiler configuration to `libtool'.
2980 # _LT_LANG_FC_CONFIG
2981
2982
2983 # _LT_LANG_GCJ_CONFIG([TAG])
2984 # --------------------------
2985 # Ensure that the configuration variables for the GNU Java Compiler compiler
2986 # are suitably defined. These variables are subsequently used by _LT_CONFIG
2987 # to write the compiler configuration to `libtool'.
2988 # _LT_LANG_GCJ_CONFIG
2989
2990
2991 # _LT_LANG_RC_CONFIG([TAG])
2992 # -------------------------
2993 # Ensure that the configuration variables for the Windows resource compiler
2994 # are suitably defined. These variables are subsequently used by _LT_CONFIG
2995 # to write the compiler configuration to `libtool'.
2996 # _LT_LANG_RC_CONFIG
2997
2998
2999 # LT_PROG_GCJ
3000 # -----------
3001
3002
3003 # Old name:
3004 # This is what autoupdate's m4 run will expand. It fires
3005 # the warning (with _au_warn_XXX), outputs it into the
3006 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3007 # the replacement expansion.
3008
3009
3010 # This is an auxiliary macro that is also run when
3011 # autoupdate runs m4. It simply calls m4_warning, but
3012 # we need a wrapper so that each warning is emitted only
3013 # once. We break the quoting in m4_warning's argument in
3014 # order to expand this macro's arguments, not AU_DEFUN's.
3015
3016
3017 # Finally, this is the expansion that is picked up by
3018 # autoconf. It tells the user to run autoupdate, and
3019 # then outputs the replacement expansion. We do not care
3020 # about autoupdate's warning because that contains
3021 # information on what to do *after* running autoupdate.
3022
3023
3024
3025 # LT_PROG_RC
3026 # ----------
3027
3028
3029 # Old name:
3030 # This is what autoupdate's m4 run will expand. It fires
3031 # the warning (with _au_warn_XXX), outputs it into the
3032 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3033 # the replacement expansion.
3034
3035
3036 # This is an auxiliary macro that is also run when
3037 # autoupdate runs m4. It simply calls m4_warning, but
3038 # we need a wrapper so that each warning is emitted only
3039 # once. We break the quoting in m4_warning's argument in
3040 # order to expand this macro's arguments, not AU_DEFUN's.
3041
3042
3043 # Finally, this is the expansion that is picked up by
3044 # autoconf. It tells the user to run autoupdate, and
3045 # then outputs the replacement expansion. We do not care
3046 # about autoupdate's warning because that contains
3047 # information on what to do *after* running autoupdate.
3048
3049
3050
3051 # _LT_DECL_EGREP
3052 # --------------
3053 # If we don't have a new enough Autoconf to choose the best grep
3054 # available, choose the one first in the user's PATH.
3055
3056
3057
3058 # _LT_DECL_OBJDUMP
3059 # --------------
3060 # If we don't have a new enough Autoconf to choose the best objdump
3061 # available, choose the one first in the user's PATH.
3062
3063
3064
3065 # _LT_DECL_SED
3066 # ------------
3067 # Check for a fully-functional sed program, that truncates
3068 # as few characters as possible. Prefer GNU sed if found.
3069 # _LT_DECL_SED
3070
3071 #m4_ifndef
3072
3073 # Old name:
3074 # This is what autoupdate's m4 run will expand. It fires
3075 # the warning (with _au_warn_XXX), outputs it into the
3076 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3077 # the replacement expansion.
3078
3079
3080 # This is an auxiliary macro that is also run when
3081 # autoupdate runs m4. It simply calls m4_warning, but
3082 # we need a wrapper so that each warning is emitted only
3083 # once. We break the quoting in m4_warning's argument in
3084 # order to expand this macro's arguments, not AU_DEFUN's.
3085
3086
3087 # Finally, this is the expansion that is picked up by
3088 # autoconf. It tells the user to run autoupdate, and
3089 # then outputs the replacement expansion. We do not care
3090 # about autoupdate's warning because that contains
3091 # information on what to do *after* running autoupdate.
3092
3093
3094
3095 # _LT_CHECK_SHELL_FEATURES
3096 # ------------------------
3097 # Find out whether the shell is Bourne or XSI compatible,
3098 # or has some other useful features.
3099 # _LT_CHECK_SHELL_FEATURES
3100
3101
3102 # _LT_PROG_XSI_SHELLFNS
3103 # ---------------------
3104 # Bourne and XSI compatible variants of some useful shell functions.
3105
3106
3107 # Helper functions for option handling. -*- Autoconf -*-
3108 #
3109 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3110 # Inc.
3111 # Written by Gary V. Vaughan, 2004
3112 #
3113 # This file is free software; the Free Software Foundation gives
3114 # unlimited permission to copy and/or distribute it, with or without
3115 # modifications, as long as this notice is preserved.
3116
3117 # serial 6 ltoptions.m4
3118
3119 # This is to help aclocal find these macros, as it can't see m4_define.
3120
3121
3122
3123 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3124 # ------------------------------------------
3125
3126
3127
3128 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3129 # ---------------------------------------
3130 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3131 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
3132 # saved as a flag.
3133
3134
3135
3136 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3137 # ------------------------------------------------------------
3138 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3139
3140
3141
3142 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3143 # -------------------------------------------------------
3144 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3145 # are set.
3146
3147
3148
3149 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3150 # ----------------------------------------
3151 # OPTION-LIST is a space-separated list of Libtool options associated
3152 # with MACRO-NAME. If any OPTION has a matching handler declared with
3153 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3154 # the unknown option and exit.
3155 # _LT_SET_OPTIONS
3156
3157
3158 ## --------------------------------- ##
3159 ## Macros to handle LT_INIT options. ##
3160 ## --------------------------------- ##
3161
3162 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3163 # -----------------------------------------
3164
3165
3166
3167 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3168 # -----------------------------------------------
3169 # LT_OPTION_DEFINE
3170
3171
3172 # dlopen
3173 # ------
3174
3175
3176 # This is what autoupdate's m4 run will expand. It fires
3177 # the warning (with _au_warn_XXX), outputs it into the
3178 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3179 # the replacement expansion.
3180
3181
3182 # This is an auxiliary macro that is also run when
3183 # autoupdate runs m4. It simply calls m4_warning, but
3184 # we need a wrapper so that each warning is emitted only
3185 # once. We break the quoting in m4_warning's argument in
3186 # order to expand this macro's arguments, not AU_DEFUN's.
3187
3188
3189 # Finally, this is the expansion that is picked up by
3190 # autoconf. It tells the user to run autoupdate, and
3191 # then outputs the replacement expansion. We do not care
3192 # about autoupdate's warning because that contains
3193 # information on what to do *after* running autoupdate.
3194
3195
3196
3197
3198 # win32-dll
3199 # ---------
3200 # Declare package support for building win32 dll's.
3201 # win32-dll
3202
3203 # This is what autoupdate's m4 run will expand. It fires
3204 # the warning (with _au_warn_XXX), outputs it into the
3205 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3206 # the replacement expansion.
3207
3208
3209 # This is an auxiliary macro that is also run when
3210 # autoupdate runs m4. It simply calls m4_warning, but
3211 # we need a wrapper so that each warning is emitted only
3212 # once. We break the quoting in m4_warning's argument in
3213 # order to expand this macro's arguments, not AU_DEFUN's.
3214
3215
3216 # Finally, this is the expansion that is picked up by
3217 # autoconf. It tells the user to run autoupdate, and
3218 # then outputs the replacement expansion. We do not care
3219 # about autoupdate's warning because that contains
3220 # information on what to do *after* running autoupdate.
3221
3222
3223
3224
3225 # _LT_ENABLE_SHARED([DEFAULT])
3226 # ----------------------------
3227 # implement the --enable-shared flag, and supports the `shared' and
3228 # `disable-shared' LT_INIT options.
3229 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3230 # _LT_ENABLE_SHARED
3231
3232
3233
3234
3235 # Old names:
3236
3237
3238
3239
3240 # This is what autoupdate's m4 run will expand. It fires
3241 # the warning (with _au_warn_XXX), outputs it into the
3242 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3243 # the replacement expansion.
3244
3245
3246 # This is an auxiliary macro that is also run when
3247 # autoupdate runs m4. It simply calls m4_warning, but
3248 # we need a wrapper so that each warning is emitted only
3249 # once. We break the quoting in m4_warning's argument in
3250 # order to expand this macro's arguments, not AU_DEFUN's.
3251
3252
3253 # Finally, this is the expansion that is picked up by
3254 # autoconf. It tells the user to run autoupdate, and
3255 # then outputs the replacement expansion. We do not care
3256 # about autoupdate's warning because that contains
3257 # information on what to do *after* running autoupdate.
3258
3259 # This is what autoupdate's m4 run will expand. It fires
3260 # the warning (with _au_warn_XXX), outputs it into the
3261 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3262 # the replacement expansion.
3263
3264
3265 # This is an auxiliary macro that is also run when
3266 # autoupdate runs m4. It simply calls m4_warning, but
3267 # we need a wrapper so that each warning is emitted only
3268 # once. We break the quoting in m4_warning's argument in
3269 # order to expand this macro's arguments, not AU_DEFUN's.
3270
3271
3272 # Finally, this is the expansion that is picked up by
3273 # autoconf. It tells the user to run autoupdate, and
3274 # then outputs the replacement expansion. We do not care
3275 # about autoupdate's warning because that contains
3276 # information on what to do *after* running autoupdate.
3277
3278
3279
3280
3281
3282 # _LT_ENABLE_STATIC([DEFAULT])
3283 # ----------------------------
3284 # implement the --enable-static flag, and support the `static' and
3285 # `disable-static' LT_INIT options.
3286 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3287 # _LT_ENABLE_STATIC
3288
3289
3290
3291
3292 # Old names:
3293
3294
3295
3296
3297 # This is what autoupdate's m4 run will expand. It fires
3298 # the warning (with _au_warn_XXX), outputs it into the
3299 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3300 # the replacement expansion.
3301
3302
3303 # This is an auxiliary macro that is also run when
3304 # autoupdate runs m4. It simply calls m4_warning, but
3305 # we need a wrapper so that each warning is emitted only
3306 # once. We break the quoting in m4_warning's argument in
3307 # order to expand this macro's arguments, not AU_DEFUN's.
3308
3309
3310 # Finally, this is the expansion that is picked up by
3311 # autoconf. It tells the user to run autoupdate, and
3312 # then outputs the replacement expansion. We do not care
3313 # about autoupdate's warning because that contains
3314 # information on what to do *after* running autoupdate.
3315
3316 # This is what autoupdate's m4 run will expand. It fires
3317 # the warning (with _au_warn_XXX), outputs it into the
3318 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3319 # the replacement expansion.
3320
3321
3322 # This is an auxiliary macro that is also run when
3323 # autoupdate runs m4. It simply calls m4_warning, but
3324 # we need a wrapper so that each warning is emitted only
3325 # once. We break the quoting in m4_warning's argument in
3326 # order to expand this macro's arguments, not AU_DEFUN's.
3327
3328
3329 # Finally, this is the expansion that is picked up by
3330 # autoconf. It tells the user to run autoupdate, and
3331 # then outputs the replacement expansion. We do not care
3332 # about autoupdate's warning because that contains
3333 # information on what to do *after* running autoupdate.
3334
3335
3336
3337
3338
3339 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
3340 # ----------------------------------
3341 # implement the --enable-fast-install flag, and support the `fast-install'
3342 # and `disable-fast-install' LT_INIT options.
3343 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3344 # _LT_ENABLE_FAST_INSTALL
3345
3346
3347
3348
3349 # Old names:
3350 # This is what autoupdate's m4 run will expand. It fires
3351 # the warning (with _au_warn_XXX), outputs it into the
3352 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3353 # the replacement expansion.
3354
3355
3356 # This is an auxiliary macro that is also run when
3357 # autoupdate runs m4. It simply calls m4_warning, but
3358 # we need a wrapper so that each warning is emitted only
3359 # once. We break the quoting in m4_warning's argument in
3360 # order to expand this macro's arguments, not AU_DEFUN's.
3361
3362
3363 # Finally, this is the expansion that is picked up by
3364 # autoconf. It tells the user to run autoupdate, and
3365 # then outputs the replacement expansion. We do not care
3366 # about autoupdate's warning because that contains
3367 # information on what to do *after* running autoupdate.
3368
3369
3370 # This is what autoupdate's m4 run will expand. It fires
3371 # the warning (with _au_warn_XXX), outputs it into the
3372 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3373 # the replacement expansion.
3374
3375
3376 # This is an auxiliary macro that is also run when
3377 # autoupdate runs m4. It simply calls m4_warning, but
3378 # we need a wrapper so that each warning is emitted only
3379 # once. We break the quoting in m4_warning's argument in
3380 # order to expand this macro's arguments, not AU_DEFUN's.
3381
3382
3383 # Finally, this is the expansion that is picked up by
3384 # autoconf. It tells the user to run autoupdate, and
3385 # then outputs the replacement expansion. We do not care
3386 # about autoupdate's warning because that contains
3387 # information on what to do *after* running autoupdate.
3388
3389
3390
3391
3392 # _LT_WITH_PIC([MODE])
3393 # --------------------
3394 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
3395 # LT_INIT options.
3396 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3397 # _LT_WITH_PIC
3398
3399
3400
3401
3402 # Old name:
3403 # This is what autoupdate's m4 run will expand. It fires
3404 # the warning (with _au_warn_XXX), outputs it into the
3405 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3406 # the replacement expansion.
3407
3408
3409 # This is an auxiliary macro that is also run when
3410 # autoupdate runs m4. It simply calls m4_warning, but
3411 # we need a wrapper so that each warning is emitted only
3412 # once. We break the quoting in m4_warning's argument in
3413 # order to expand this macro's arguments, not AU_DEFUN's.
3414
3415
3416 # Finally, this is the expansion that is picked up by
3417 # autoconf. It tells the user to run autoupdate, and
3418 # then outputs the replacement expansion. We do not care
3419 # about autoupdate's warning because that contains
3420 # information on what to do *after* running autoupdate.
3421
3422
3423
3424 ## ----------------- ##
3425 ## LTDL_INIT Options ##
3426 ## ----------------- ##
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3438 #
3439 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3440 # Written by Gary V. Vaughan, 2004
3441 #
3442 # This file is free software; the Free Software Foundation gives
3443 # unlimited permission to copy and/or distribute it, with or without
3444 # modifications, as long as this notice is preserved.
3445
3446 # serial 6 ltsugar.m4
3447
3448 # This is to help aclocal find these macros, as it can't see m4_define.
3449
3450
3451
3452 # lt_join(SEP, ARG1, [ARG2...])
3453 # -----------------------------
3454 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3455 # associated separator.
3456 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3457 # versions in m4sugar had bugs.
3458
3459
3460
3461
3462 # lt_car(LIST)
3463 # lt_cdr(LIST)
3464 # ------------
3465 # Manipulate m4 lists.
3466 # These macros are necessary as long as will still need to support
3467 # Autoconf-2.59 which quotes differently.
3468
3469
3470
3471
3472
3473 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
3474 # ------------------------------------------
3475 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3476 # Note that neither SEPARATOR nor STRING are expanded; they are appended
3477 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3478 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
3479 # than defined and empty).
3480 #
3481 # This macro is needed until we can rely on Autoconf 2.62, since earlier
3482 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3483
3484
3485
3486
3487 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3488 # ----------------------------------------------------------
3489 # Produce a SEP delimited list of all paired combinations of elements of
3490 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3491 # has the form PREFIXmINFIXSUFFIXn.
3492 # Needed until we can rely on m4_combine added in Autoconf 2.62.
3493
3494
3495
3496 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3497 # -----------------------------------------------------------------------
3498 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3499 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3500
3501
3502
3503 # lt_dict_add(DICT, KEY, VALUE)
3504 # -----------------------------
3505
3506
3507
3508 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3509 # --------------------------------------------
3510
3511
3512
3513 # lt_dict_fetch(DICT, KEY, [SUBKEY])
3514 # ----------------------------------
3515
3516
3517
3518 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3519 # -----------------------------------------------------------------
3520
3521
3522
3523 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3524 # --------------------------------------------------------------
3525
3526
3527 # ltversion.m4 -- version numbers -*- Autoconf -*-
3528 #
3529 # Copyright (C) 2004 Free Software Foundation, Inc.
3530 # Written by Scott James Remnant, 2004
3531 #
3532 # This file is free software; the Free Software Foundation gives
3533 # unlimited permission to copy and/or distribute it, with or without
3534 # modifications, as long as this notice is preserved.
3535
3536 # Generated from ltversion.in.
3537
3538 # serial 3134 ltversion.m4
3539 # This file is part of GNU Libtool
3540
3541
3542
3543
3544
3545
3546 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3547 #
3548 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3549 # Written by Scott James Remnant, 2004.
3550 #
3551 # This file is free software; the Free Software Foundation gives
3552 # unlimited permission to copy and/or distribute it, with or without
3553 # modifications, as long as this notice is preserved.
3554
3555 # serial 4 lt~obsolete.m4
3556
3557 # These exist entirely to fool aclocal when bootstrapping libtool.
3558 #
3559 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3560 # which have later been changed to m4_define as they aren't part of the
3561 # exported API, or moved to Autoconf or Automake where they belong.
3562 #
3563 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3564 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3565 # using a macro with the same name in our local m4/libtool.m4 it'll
3566 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3567 # and doesn't know about Autoconf macros at all.)
3568 #
3569 # So we provide this file, which has a silly filename so it's always
3570 # included after everything else. This provides aclocal with the
3571 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3572 # because those macros already exist, or will be overwritten later.
3573 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3574 #
3575 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3576 # Yes, that means every name once taken will need to remain here until
3577 # we give up compatibility with versions before 1.7, at which point
3578 # we need to keep only those names which we still refer to.
3579
3580 # This is to help aclocal find these macros, as it can't see m4_define.
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645 ## -*- Autoconf -*-
3646
3647 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3648 # Free Software Foundation, Inc.
3649 #
3650 # This file is free software; the Free Software Foundation
3651 # gives unlimited permission to copy and/or distribute it,
3652 # with or without modifications, as long as this notice is preserved.
3653
3654 # serial 8
3655
3656 # Based on depend.m4 from automake 1.9, modified for standalone use in
3657 # an environment where GNU make is required.
3658
3659 # ZW_PROG_COMPILER_DEPENDENCIES
3660 # -----------------------------
3661 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
3662 # sets fooDEPMODE accordingly. Cache-variable compatible with
3663 # original; not side-effect compatible. As the users of this macro
3664 # may require accurate dependencies for correct builds, it does *not*
3665 # honor --disable-dependency-checking, and failure to detect a usable
3666 # method is an error. depcomp is assumed to be located in
3667 # $ac_aux_dir.
3668 #
3669 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3670
3671
3672
3673 # AM_SET_DEPDIR
3674 # -------------
3675 # Choose a directory name for dependency files.
3676
3677
3678 # ZW_CREATE_DEPDIR
3679 # ----------------
3680 # As AM_SET_DEPDIR, but also create the directory at config.status time.
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727 sim_inline="-DDEFAULT_INLINE=0"
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764 # intl sister-directory configuration rules.
3765 #
3766
3767 # The idea behind this macro is that there's no need to repeat all the
3768 # autoconf probes done by the intl directory - it's already done them
3769 # for us. In fact, there's no need even to look at the cache for the
3770 # answers. All we need to do is nab a few pieces of information.
3771 # The intl directory is set up to make this easy, by generating a
3772 # small file which can be sourced as a shell script; then we produce
3773 # the necessary substitutions and definitions for this directory.
3774
3775
3776
3777 # Autoconf M4 include file defining utility macros for complex Canadian
3778 # cross builds.
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788 ####
3789 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
3790 # or AC_INIT.
3791 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
3792
3793 ####
3794 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3795 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
3796
3797
3798 ####
3799 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3800 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
3801
3802
3803
3804 # Backported from Autoconf 2.5x; can go away when and if
3805 # we switch. Put the OS path separator in $PATH_SEPARATOR.
3806
3807
3808
3809
3810 # ACX_HAVE_GCC_FOR_TARGET
3811 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
3812
3813
3814 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
3815 # Searching for installed target binutils. We need to take extra care,
3816 # else we may find the wrong assembler, linker, etc., and lose.
3817 #
3818 # First try --with-build-time-tools, if specified.
3819 #
3820 # For build != host, we ask the installed GCC for the name of the tool it
3821 # uses, and accept it if it is an absolute path. This is because the
3822 # only good choice for a compiler is the same GCC version that is being
3823 # installed (or we couldn't make target libraries), and we assume that
3824 # on the host system we'll have not only the same GCC version, but also
3825 # the same binutils version.
3826 #
3827 # For build == host, search the same directories that the installed
3828 # compiler will search. We used to do this for the assembler, linker,
3829 # and nm only; for simplicity of configuration, however, we extend this
3830 # criterion to tools (such as ar and ranlib) that are never invoked by
3831 # the compiler, to avoid mismatches.
3832 #
3833 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
3834 # if build == target. This makes the most sense only when bootstrapping,
3835 # but we also do so when build != host. In this case, we hope that the
3836 # build and host systems will have similar contents of MD_EXEC_PREFIX.
3837 #
3838 # If we do not find a suitable binary, then try the user's path.
3839
3840
3841 ###
3842 # AC_PROG_CPP_WERROR
3843 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
3844 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
3845 # For now, using this also overrides header checks to use only the
3846 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
3847 # bit harder from here).
3848 # Eventually autoconf will default to checking headers with the compiler
3849 # instead, and we'll have to do this differently.
3850
3851 # AC_PROG_CPP_WERROR
3852
3853 # Test for GNAT.
3854 # We require the gnatbind & gnatmake programs, as well as a compiler driver
3855 # that understands Ada. We use the user's CC setting, already found, and
3856 # possibly add $1 to the command-line parameters.
3857 #
3858 # Sets the shell variable have_gnat to yes or no as appropriate, and
3859 # substitutes GNATBIND and GNATMAKE.
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885 ac_aux_dir=
3886 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3887 for ac_t in install-sh install.sh shtool; do
3888 if test -f "$ac_dir/$ac_t"; then
3889 ac_aux_dir=$ac_dir
3890 ac_install_sh="$ac_aux_dir/$ac_t -c"
3891 break 2
3892 fi
3893 done
3894 done
3895 if test -z "$ac_aux_dir"; then
3896 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3897 fi
3898
3899 # These three variables are undocumented and unsupported,
3900 # and are intended to be withdrawn in a future Autoconf release.
3901 # They can cause serious problems if a builder's source tree is in a directory
3902 # whose full name contains unusual characters.
3903 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3904 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3905 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3906
3907
3908 # Find a good install program. We prefer a C program (faster),
3909 # so one script is as good as another. But avoid the broken or
3910 # incompatible versions:
3911 # SysV /etc/install, /usr/sbin/install
3912 # SunOS /usr/etc/install
3913 # IRIX /sbin/install
3914 # AIX /bin/install
3915 # AmigaOS /C/install, which installs bootblocks on floppy discs
3916 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3917 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3918 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3919 # OS/2's system install, which has a completely different semantic
3920 # ./install, which can be erroneously created by make from ./install.sh.
3921 # Reject install programs that cannot install multiple files.
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3923 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3924 if test -z "$INSTALL"; then
3925 if test "${ac_cv_path_install+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 # Account for people who put trailing slashes in PATH elements.
3934 case $as_dir/ in #((
3935 ./ | .// | /[cC]/* | \
3936 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3937 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3938 /usr/ucb/* ) ;;
3939 *)
3940 # OSF1 and SCO ODT 3.0 have their own names for install.
3941 # Don't use installbsd from OSF since it installs stuff as root
3942 # by default.
3943 for ac_prog in ginstall scoinst install; do
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3946 if test $ac_prog = install &&
3947 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3948 # AIX install. It has an incompatible calling convention.
3949 :
3950 elif test $ac_prog = install &&
3951 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3952 # program-specific install script used by HP pwplus--don't use.
3953 :
3954 else
3955 rm -rf conftest.one conftest.two conftest.dir
3956 echo one > conftest.one
3957 echo two > conftest.two
3958 mkdir conftest.dir
3959 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3960 test -s conftest.one && test -s conftest.two &&
3961 test -s conftest.dir/conftest.one &&
3962 test -s conftest.dir/conftest.two
3963 then
3964 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3965 break 3
3966 fi
3967 fi
3968 fi
3969 done
3970 done
3971 ;;
3972 esac
3973
3974 done
3975 IFS=$as_save_IFS
3976
3977 rm -rf conftest.one conftest.two conftest.dir
3978
3979 fi
3980 if test "${ac_cv_path_install+set}" = set; then
3981 INSTALL=$ac_cv_path_install
3982 else
3983 # As a last resort, use the slow shell script. Don't cache a
3984 # value for INSTALL within a source directory, because that will
3985 # break other packages using the cache if that directory is
3986 # removed, or if the value is a relative name.
3987 INSTALL=$ac_install_sh
3988 fi
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3991 $as_echo "$INSTALL" >&6; }
3992
3993 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3994 # It thinks the first close brace ends the variable substitution.
3995 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3996
3997 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3998
3999 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4000
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4008 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if test "${ac_cv_prog_CC+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4027 fi
4028 done
4029 done
4030 IFS=$as_save_IFS
4031
4032 fi
4033 fi
4034 CC=$ac_cv_prog_CC
4035 if test -n "$CC"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037 $as_echo "$CC" >&6; }
4038 else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 fi
4042
4043
4044 fi
4045 if test -z "$ac_cv_prog_CC"; then
4046 ac_ct_CC=$CC
4047 # Extract the first word of "gcc", so it can be a program name with args.
4048 set dummy gcc; ac_word=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if test -n "$ac_ct_CC"; then
4055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4056 else
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 for as_dir in $PATH
4059 do
4060 IFS=$as_save_IFS
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4064 ac_cv_prog_ac_ct_CC="gcc"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 break 2
4067 fi
4068 done
4069 done
4070 IFS=$as_save_IFS
4071
4072 fi
4073 fi
4074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4075 if test -n "$ac_ct_CC"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4077 $as_echo "$ac_ct_CC" >&6; }
4078 else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4081 fi
4082
4083 if test "x$ac_ct_CC" = x; then
4084 CC=""
4085 else
4086 case $cross_compiling:$ac_tool_warned in
4087 yes:)
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned=yes ;;
4091 esac
4092 CC=$ac_ct_CC
4093 fi
4094 else
4095 CC="$ac_cv_prog_CC"
4096 fi
4097
4098 if test -z "$CC"; then
4099 if test -n "$ac_tool_prefix"; then
4100 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4101 set dummy ${ac_tool_prefix}cc; ac_word=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if test "${ac_cv_prog_CC+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 if test -n "$CC"; then
4108 ac_cv_prog_CC="$CC" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4117 ac_cv_prog_CC="${ac_tool_prefix}cc"
4118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119 break 2
4120 fi
4121 done
4122 done
4123 IFS=$as_save_IFS
4124
4125 fi
4126 fi
4127 CC=$ac_cv_prog_CC
4128 if test -n "$CC"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4130 $as_echo "$CC" >&6; }
4131 else
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4134 fi
4135
4136
4137 fi
4138 fi
4139 if test -z "$CC"; then
4140 # Extract the first word of "cc", so it can be a program name with args.
4141 set dummy cc; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if test "${ac_cv_prog_CC+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC="$CC" # Let the user override the test.
4149 else
4150 ac_prog_rejected=no
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4159 ac_prog_rejected=yes
4160 continue
4161 fi
4162 ac_cv_prog_CC="cc"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 if test $ac_prog_rejected = yes; then
4171 # We found a bogon in the path, so make sure we never use it.
4172 set dummy $ac_cv_prog_CC
4173 shift
4174 if test $# != 0; then
4175 # We chose a different compiler from the bogus one.
4176 # However, it has the same basename, so the bogon will be chosen
4177 # first if we set CC to just the basename; use the full file name.
4178 shift
4179 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4180 fi
4181 fi
4182 fi
4183 fi
4184 CC=$ac_cv_prog_CC
4185 if test -n "$CC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187 $as_echo "$CC" >&6; }
4188 else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4191 fi
4192
4193
4194 fi
4195 if test -z "$CC"; then
4196 if test -n "$ac_tool_prefix"; then
4197 for ac_prog in cl.exe
4198 do
4199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_CC+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$CC"; then
4207 ac_cv_prog_CC="$CC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4219 fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
4226 CC=$ac_cv_prog_CC
4227 if test -n "$CC"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4229 $as_echo "$CC" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4233 fi
4234
4235
4236 test -n "$CC" && break
4237 done
4238 fi
4239 if test -z "$CC"; then
4240 ac_ct_CC=$CC
4241 for ac_prog in cl.exe
4242 do
4243 # Extract the first word of "$ac_prog", so it can be a program name with args.
4244 set dummy $ac_prog; ac_word=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_ac_ct_CC="$ac_prog"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4263 fi
4264 done
4265 done
4266 IFS=$as_save_IFS
4267
4268 fi
4269 fi
4270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4271 if test -n "$ac_ct_CC"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4273 $as_echo "$ac_ct_CC" >&6; }
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4277 fi
4278
4279
4280 test -n "$ac_ct_CC" && break
4281 done
4282
4283 if test "x$ac_ct_CC" = x; then
4284 CC=""
4285 else
4286 case $cross_compiling:$ac_tool_warned in
4287 yes:)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290 ac_tool_warned=yes ;;
4291 esac
4292 CC=$ac_ct_CC
4293 fi
4294 fi
4295
4296 fi
4297
4298
4299 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error "no acceptable C compiler found in \$PATH
4302 See \`config.log' for more details." "$LINENO" 5; }
4303
4304 # Provide some information about the compiler.
4305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4306 set X $ac_compile
4307 ac_compiler=$2
4308 for ac_option in --version -v -V -qversion; do
4309 { { ac_try="$ac_compiler $ac_option >&5"
4310 case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4317 ac_status=$?
4318 if test -s conftest.err; then
4319 sed '10a\
4320 ... rest of stderr output deleted ...
4321 10q' conftest.err >conftest.er1
4322 cat conftest.er1 >&5
4323 rm -f conftest.er1 conftest.err
4324 fi
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }
4327 done
4328
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331
4332 int
4333 main ()
4334 {
4335
4336 ;
4337 return 0;
4338 }
4339 _ACEOF
4340 ac_clean_files_save=$ac_clean_files
4341 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4342 # Try to create an executable without -o first, disregard a.out.
4343 # It will help us diagnose broken compilers, and finding out an intuition
4344 # of exeext.
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4346 $as_echo_n "checking for C compiler default output file name... " >&6; }
4347 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4348
4349 # The possible output files:
4350 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4351
4352 ac_rmfiles=
4353 for ac_file in $ac_files
4354 do
4355 case $ac_file in
4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4357 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4358 esac
4359 done
4360 rm -f $ac_rmfiles
4361
4362 if { { ac_try="$ac_link_default"
4363 case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366 esac
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_link_default") 2>&5
4370 ac_status=$?
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; then :
4373 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4374 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4375 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4376 # so that the user can short-circuit this test for compilers unknown to
4377 # Autoconf.
4378 for ac_file in $ac_files ''
4379 do
4380 test -f "$ac_file" || continue
4381 case $ac_file in
4382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4383 ;;
4384 [ab].out )
4385 # We found the default executable, but exeext='' is most
4386 # certainly right.
4387 break;;
4388 *.* )
4389 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4390 then :; else
4391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4392 fi
4393 # We set ac_cv_exeext here because the later test for it is not
4394 # safe: cross compilers may not add the suffix if given an `-o'
4395 # argument, so we may need to know it at that point already.
4396 # Even if this section looks crufty: it has the advantage of
4397 # actually working.
4398 break;;
4399 * )
4400 break;;
4401 esac
4402 done
4403 test "$ac_cv_exeext" = no && ac_cv_exeext=
4404
4405 else
4406 ac_file=''
4407 fi
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4409 $as_echo "$ac_file" >&6; }
4410 if test -z "$ac_file"; then :
4411 $as_echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 { as_fn_set_status 77
4417 as_fn_error "C compiler cannot create executables
4418 See \`config.log' for more details." "$LINENO" 5; }; }
4419 fi
4420 ac_exeext=$ac_cv_exeext
4421
4422 # Check that the compiler produces executables we can run. If not, either
4423 # the compiler is broken, or we cross compile.
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4425 $as_echo_n "checking whether the C compiler works... " >&6; }
4426 # If not cross compiling, check that we can run a simple program.
4427 if test "$cross_compiling" != yes; then
4428 if { ac_try='./$ac_file'
4429 { { case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4432 esac
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_try") 2>&5
4436 ac_status=$?
4437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438 test $ac_status = 0; }; }; then
4439 cross_compiling=no
4440 else
4441 if test "$cross_compiling" = maybe; then
4442 cross_compiling=yes
4443 else
4444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4446 as_fn_error "cannot run C compiled programs.
4447 If you meant to cross compile, use \`--host'.
4448 See \`config.log' for more details." "$LINENO" 5; }
4449 fi
4450 fi
4451 fi
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4453 $as_echo "yes" >&6; }
4454
4455 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4456 ac_clean_files=$ac_clean_files_save
4457 # Check that the compiler produces executables we can run. If not, either
4458 # the compiler is broken, or we cross compile.
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4460 $as_echo_n "checking whether we are cross compiling... " >&6; }
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4462 $as_echo "$cross_compiling" >&6; }
4463
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4465 $as_echo_n "checking for suffix of executables... " >&6; }
4466 if { { ac_try="$ac_link"
4467 case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470 esac
4471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472 $as_echo "$ac_try_echo"; } >&5
4473 (eval "$ac_link") 2>&5
4474 ac_status=$?
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }; then :
4477 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4478 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4479 # work properly (i.e., refer to `conftest.exe'), while it won't with
4480 # `rm'.
4481 for ac_file in conftest.exe conftest conftest.*; do
4482 test -f "$ac_file" || continue
4483 case $ac_file in
4484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4486 break;;
4487 * ) break;;
4488 esac
4489 done
4490 else
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error "cannot compute suffix of executables: cannot compile and link
4494 See \`config.log' for more details." "$LINENO" 5; }
4495 fi
4496 rm -f conftest$ac_cv_exeext
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4498 $as_echo "$ac_cv_exeext" >&6; }
4499
4500 rm -f conftest.$ac_ext
4501 EXEEXT=$ac_cv_exeext
4502 ac_exeext=$EXEEXT
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4504 $as_echo_n "checking for suffix of object files... " >&6; }
4505 if test "${ac_cv_objext+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510
4511 int
4512 main ()
4513 {
4514
4515 ;
4516 return 0;
4517 }
4518 _ACEOF
4519 rm -f conftest.o conftest.obj
4520 if { { ac_try="$ac_compile"
4521 case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524 esac
4525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526 $as_echo "$ac_try_echo"; } >&5
4527 (eval "$ac_compile") 2>&5
4528 ac_status=$?
4529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; }; then :
4531 for ac_file in conftest.o conftest.obj conftest.*; do
4532 test -f "$ac_file" || continue;
4533 case $ac_file in
4534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4535 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4536 break;;
4537 esac
4538 done
4539 else
4540 $as_echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4542
4543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4545 as_fn_error "cannot compute suffix of object files: cannot compile
4546 See \`config.log' for more details." "$LINENO" 5; }
4547 fi
4548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4549 fi
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4551 $as_echo "$ac_cv_objext" >&6; }
4552 OBJEXT=$ac_cv_objext
4553 ac_objext=$OBJEXT
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4555 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4556 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561
4562 int
4563 main ()
4564 {
4565 #ifndef __GNUC__
4566 choke me
4567 #endif
4568
4569 ;
4570 return 0;
4571 }
4572 _ACEOF
4573 if ac_fn_c_try_compile "$LINENO"; then :
4574 ac_compiler_gnu=yes
4575 else
4576 ac_compiler_gnu=no
4577 fi
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4580
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4583 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4584 if test $ac_compiler_gnu = yes; then
4585 GCC=yes
4586 else
4587 GCC=
4588 fi
4589 ac_test_CFLAGS=${CFLAGS+set}
4590 ac_save_CFLAGS=$CFLAGS
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4592 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4593 if test "${ac_cv_prog_cc_g+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 ac_save_c_werror_flag=$ac_c_werror_flag
4597 ac_c_werror_flag=yes
4598 ac_cv_prog_cc_g=no
4599 CFLAGS="-g"
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602
4603 int
4604 main ()
4605 {
4606
4607 ;
4608 return 0;
4609 }
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612 ac_cv_prog_cc_g=yes
4613 else
4614 CFLAGS=""
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617
4618 int
4619 main ()
4620 {
4621
4622 ;
4623 return 0;
4624 }
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627
4628 else
4629 ac_c_werror_flag=$ac_save_c_werror_flag
4630 CFLAGS="-g"
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633
4634 int
4635 main ()
4636 {
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_prog_cc_g=yes
4644 fi
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_c_werror_flag=$ac_save_c_werror_flag
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4653 $as_echo "$ac_cv_prog_cc_g" >&6; }
4654 if test "$ac_test_CFLAGS" = set; then
4655 CFLAGS=$ac_save_CFLAGS
4656 elif test $ac_cv_prog_cc_g = yes; then
4657 if test "$GCC" = yes; then
4658 CFLAGS="-g -O2"
4659 else
4660 CFLAGS="-g"
4661 fi
4662 else
4663 if test "$GCC" = yes; then
4664 CFLAGS="-O2"
4665 else
4666 CFLAGS=
4667 fi
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4670 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4671 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 ac_cv_prog_cc_c89=no
4675 ac_save_CC=$CC
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678 #include <stdarg.h>
4679 #include <stdio.h>
4680 #include <sys/types.h>
4681 #include <sys/stat.h>
4682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4683 struct buf { int x; };
4684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4685 static char *e (p, i)
4686 char **p;
4687 int i;
4688 {
4689 return p[i];
4690 }
4691 static char *f (char * (*g) (char **, int), char **p, ...)
4692 {
4693 char *s;
4694 va_list v;
4695 va_start (v,p);
4696 s = g (p, va_arg (v,int));
4697 va_end (v);
4698 return s;
4699 }
4700
4701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4702 function prototypes and stuff, but not '\xHH' hex character constants.
4703 These don't provoke an error unfortunately, instead are silently treated
4704 as 'x'. The following induces an error, until -std is added to get
4705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4706 array size at least. It's necessary to write '\x00'==0 to get something
4707 that's true only with -std. */
4708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4709
4710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4711 inside strings and character constants. */
4712 #define FOO(x) 'x'
4713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4714
4715 int test (int i, double x);
4716 struct s1 {int (*f) (int a);};
4717 struct s2 {int (*f) (double a);};
4718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4719 int argc;
4720 char **argv;
4721 int
4722 main ()
4723 {
4724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4731 do
4732 CC="$ac_save_CC $ac_arg"
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_prog_cc_c89=$ac_arg
4735 fi
4736 rm -f core conftest.err conftest.$ac_objext
4737 test "x$ac_cv_prog_cc_c89" != "xno" && break
4738 done
4739 rm -f conftest.$ac_ext
4740 CC=$ac_save_CC
4741
4742 fi
4743 # AC_CACHE_VAL
4744 case "x$ac_cv_prog_cc_c89" in
4745 x)
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4747 $as_echo "none needed" >&6; } ;;
4748 xno)
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4750 $as_echo "unsupported" >&6; } ;;
4751 *)
4752 CC="$CC $ac_cv_prog_cc_c89"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4755 esac
4756 if test "x$ac_cv_prog_cc_c89" != xno; then :
4757
4758 fi
4759
4760 ac_ext=c
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765
4766
4767
4768
4769 # Check whether --enable-werror was given.
4770 if test "${enable_werror+set}" = set; then :
4771 enableval=$enable_werror; case "${enableval}" in
4772 yes | y) ERROR_ON_WARNING="yes" ;;
4773 no | n) ERROR_ON_WARNING="no" ;;
4774 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4775 esac
4776 fi
4777
4778
4779 # Enable -Werror by default when using gcc
4780 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4781 ERROR_ON_WARNING=yes
4782 fi
4783
4784 WERROR_CFLAGS=""
4785 if test "${ERROR_ON_WARNING}" = yes ; then
4786 # NOTE: Disabled in the sim dir due to most sims generating warnings.
4787 # WERROR_CFLAGS="-Werror"
4788 true
4789 fi
4790
4791 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
4792 -Wpointer-sign \
4793 -Wno-unused -Wunused-value -Wunused-function \
4794 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
4795 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
4796 -Wold-style-declaration -Wold-style-definition"
4797
4798 # Enable -Wno-format by default when using gcc on mingw since many
4799 # GCC versions complain about %I64.
4800 case "${host}" in
4801 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
4802 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
4803 esac
4804
4805 # Check whether --enable-build-warnings was given.
4806 if test "${enable_build_warnings+set}" = set; then :
4807 enableval=$enable_build_warnings; case "${enableval}" in
4808 yes) ;;
4809 no) build_warnings="-w";;
4810 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4811 build_warnings="${build_warnings} ${t}";;
4812 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4813 build_warnings="${t} ${build_warnings}";;
4814 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4815 esac
4816 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4817 echo "Setting compiler warning flags = $build_warnings" 6>&1
4818 fi
4819 fi
4820 # Check whether --enable-sim-build-warnings was given.
4821 if test "${enable_sim_build_warnings+set}" = set; then :
4822 enableval=$enable_sim_build_warnings; case "${enableval}" in
4823 yes) ;;
4824 no) build_warnings="-w";;
4825 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4826 build_warnings="${build_warnings} ${t}";;
4827 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4828 build_warnings="${t} ${build_warnings}";;
4829 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4830 esac
4831 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4832 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4833 fi
4834 fi
4835 WARN_CFLAGS=""
4836 if test "x${build_warnings}" != x -a "x$GCC" = xyes
4837 then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4839 $as_echo_n "checking compiler warning flags... " >&6; }
4840 # Separate out the -Werror flag as some files just cannot be
4841 # compiled with it enabled.
4842 for w in ${build_warnings}; do
4843 case $w in
4844 -Werr*) WERROR_CFLAGS=-Werror ;;
4845 *) # Check that GCC accepts it
4846 saved_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS $w"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850
4851 int
4852 main ()
4853 {
4854
4855 ;
4856 return 0;
4857 }
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 WARN_CFLAGS="${WARN_CFLAGS} $w"
4861 fi
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 CFLAGS="$saved_CFLAGS"
4864 esac
4865 done
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4867 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
4868 fi
4869
4870
4871 # Put a plausible default for CC_FOR_BUILD in Makefile.
4872 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
4873 AR_FOR_BUILD='$(AR)'
4874 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
4875 CC_FOR_BUILD='$(CC)'
4876 CFLAGS_FOR_BUILD='$(CFLAGS)'
4877 RANLIB_FOR_BUILD='$(RANLIB)'
4878 LIBIBERTY_LIB=../../libiberty/libiberty.a
4879 else
4880 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4881 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
4882 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4883 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
4884 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4885 LIBIBERTY_LIB=
4886 fi
4887
4888
4889 # Make sure we can run config.sub.
4890 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4891 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4894 $as_echo_n "checking build system type... " >&6; }
4895 if test "${ac_cv_build+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 ac_build_alias=$build_alias
4899 test "x$ac_build_alias" = x &&
4900 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4901 test "x$ac_build_alias" = x &&
4902 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4903 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4904 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4905
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4908 $as_echo "$ac_cv_build" >&6; }
4909 case $ac_cv_build in
4910 *-*-*) ;;
4911 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4912 esac
4913 build=$ac_cv_build
4914 ac_save_IFS=$IFS; IFS='-'
4915 set x $ac_cv_build
4916 shift
4917 build_cpu=$1
4918 build_vendor=$2
4919 shift; shift
4920 # Remember, the first character of IFS is used to create $*,
4921 # except with old shells:
4922 build_os=$*
4923 IFS=$ac_save_IFS
4924 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4925
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4928 $as_echo_n "checking host system type... " >&6; }
4929 if test "${ac_cv_host+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test "x$host_alias" = x; then
4933 ac_cv_host=$ac_cv_build
4934 else
4935 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4936 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4937 fi
4938
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4941 $as_echo "$ac_cv_host" >&6; }
4942 case $ac_cv_host in
4943 *-*-*) ;;
4944 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4945 esac
4946 host=$ac_cv_host
4947 ac_save_IFS=$IFS; IFS='-'
4948 set x $ac_cv_host
4949 shift
4950 host_cpu=$1
4951 host_vendor=$2
4952 shift; shift
4953 # Remember, the first character of IFS is used to create $*,
4954 # except with old shells:
4955 host_os=$*
4956 IFS=$ac_save_IFS
4957 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4958
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4961 $as_echo_n "checking target system type... " >&6; }
4962 if test "${ac_cv_target+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test "x$target_alias" = x; then
4966 ac_cv_target=$ac_cv_host
4967 else
4968 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4969 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4970 fi
4971
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4974 $as_echo "$ac_cv_target" >&6; }
4975 case $ac_cv_target in
4976 *-*-*) ;;
4977 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4978 esac
4979 target=$ac_cv_target
4980 ac_save_IFS=$IFS; IFS='-'
4981 set x $ac_cv_target
4982 shift
4983 target_cpu=$1
4984 target_vendor=$2
4985 shift; shift
4986 # Remember, the first character of IFS is used to create $*,
4987 # except with old shells:
4988 target_os=$*
4989 IFS=$ac_save_IFS
4990 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4991
4992
4993 # The aliases save the names the user supplied, while $host etc.
4994 # will get canonicalized.
4995 test -n "$target_alias" &&
4996 test "$program_prefix$program_suffix$program_transform_name" = \
4997 NONENONEs,x,x, &&
4998 program_prefix=${target_alias}-
4999
5000 test "$program_prefix" != NONE &&
5001 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5002 # Use a double $ so make ignores it.
5003 test "$program_suffix" != NONE &&
5004 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5005 # Double any \ or $.
5006 # By default was `s,x,x', remove it if useless.
5007 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5008 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5009
5010
5011 . ${srcdir}/../../bfd/configure.host
5012
5013 ac_config_headers="$ac_config_headers config.h:config.in"
5014
5015
5016 ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5022 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5023 # On Suns, sometimes $CPP names a directory.
5024 if test -n "$CPP" && test -d "$CPP"; then
5025 CPP=
5026 fi
5027 if test -z "$CPP"; then
5028 if test "${ac_cv_prog_CPP+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 # Double quotes because CPP needs to be expanded
5032 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5033 do
5034 ac_preproc_ok=false
5035 for ac_c_preproc_warn_flag in '' yes
5036 do
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 #ifdef __STDC__
5046 # include <limits.h>
5047 #else
5048 # include <assert.h>
5049 #endif
5050 Syntax error
5051 _ACEOF
5052 if ac_fn_c_try_cpp "$LINENO"; then :
5053
5054 else
5055 # Broken: fails on valid input.
5056 continue
5057 fi
5058 rm -f conftest.err conftest.$ac_ext
5059
5060 # OK, works on sane cases. Now check whether nonexistent headers
5061 # can be detected and how.
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064 #include <ac_nonexistent.h>
5065 _ACEOF
5066 if ac_fn_c_try_cpp "$LINENO"; then :
5067 # Broken: success on invalid input.
5068 continue
5069 else
5070 # Passes both tests.
5071 ac_preproc_ok=:
5072 break
5073 fi
5074 rm -f conftest.err conftest.$ac_ext
5075
5076 done
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.err conftest.$ac_ext
5079 if $ac_preproc_ok; then :
5080 break
5081 fi
5082
5083 done
5084 ac_cv_prog_CPP=$CPP
5085
5086 fi
5087 CPP=$ac_cv_prog_CPP
5088 else
5089 ac_cv_prog_CPP=$CPP
5090 fi
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5092 $as_echo "$CPP" >&6; }
5093 ac_preproc_ok=false
5094 for ac_c_preproc_warn_flag in '' yes
5095 do
5096 # Use a header file that comes with gcc, so configuring glibc
5097 # with a fresh cross-compiler works.
5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5099 # <limits.h> exists even on freestanding compilers.
5100 # On the NeXT, cc -E runs the code through the compiler's parser,
5101 # not just through cpp. "Syntax error" is here to catch this case.
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104 #ifdef __STDC__
5105 # include <limits.h>
5106 #else
5107 # include <assert.h>
5108 #endif
5109 Syntax error
5110 _ACEOF
5111 if ac_fn_c_try_cpp "$LINENO"; then :
5112
5113 else
5114 # Broken: fails on valid input.
5115 continue
5116 fi
5117 rm -f conftest.err conftest.$ac_ext
5118
5119 # OK, works on sane cases. Now check whether nonexistent headers
5120 # can be detected and how.
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 #include <ac_nonexistent.h>
5124 _ACEOF
5125 if ac_fn_c_try_cpp "$LINENO"; then :
5126 # Broken: success on invalid input.
5127 continue
5128 else
5129 # Passes both tests.
5130 ac_preproc_ok=:
5131 break
5132 fi
5133 rm -f conftest.err conftest.$ac_ext
5134
5135 done
5136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137 rm -f conftest.err conftest.$ac_ext
5138 if $ac_preproc_ok; then :
5139
5140 else
5141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5143 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5144 See \`config.log' for more details." "$LINENO" 5; }
5145 fi
5146
5147 ac_ext=c
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5152
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5155 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5156 if test "${ac_cv_path_GREP+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if test -z "$GREP"; then
5160 ac_path_GREP_found=false
5161 # Loop through the user's path and test for each of PROGNAME-LIST
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_prog in grep ggrep; do
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5171 # Check for GNU ac_path_GREP and select it if it is found.
5172 # Check for GNU $ac_path_GREP
5173 case `"$ac_path_GREP" --version 2>&1` in
5174 *GNU*)
5175 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5176 *)
5177 ac_count=0
5178 $as_echo_n 0123456789 >"conftest.in"
5179 while :
5180 do
5181 cat "conftest.in" "conftest.in" >"conftest.tmp"
5182 mv "conftest.tmp" "conftest.in"
5183 cp "conftest.in" "conftest.nl"
5184 $as_echo 'GREP' >> "conftest.nl"
5185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5187 as_fn_arith $ac_count + 1 && ac_count=$as_val
5188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5189 # Best one so far, save it but keep looking for a better one
5190 ac_cv_path_GREP="$ac_path_GREP"
5191 ac_path_GREP_max=$ac_count
5192 fi
5193 # 10*(2^10) chars as input seems more than enough
5194 test $ac_count -gt 10 && break
5195 done
5196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5197 esac
5198
5199 $ac_path_GREP_found && break 3
5200 done
5201 done
5202 done
5203 IFS=$as_save_IFS
5204 if test -z "$ac_cv_path_GREP"; then
5205 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5206 fi
5207 else
5208 ac_cv_path_GREP=$GREP
5209 fi
5210
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5213 $as_echo "$ac_cv_path_GREP" >&6; }
5214 GREP="$ac_cv_path_GREP"
5215
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5218 $as_echo_n "checking for egrep... " >&6; }
5219 if test "${ac_cv_path_EGREP+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5223 then ac_cv_path_EGREP="$GREP -E"
5224 else
5225 if test -z "$EGREP"; then
5226 ac_path_EGREP_found=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5230 do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_prog in egrep; do
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5236 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5237 # Check for GNU ac_path_EGREP and select it if it is found.
5238 # Check for GNU $ac_path_EGREP
5239 case `"$ac_path_EGREP" --version 2>&1` in
5240 *GNU*)
5241 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5242 *)
5243 ac_count=0
5244 $as_echo_n 0123456789 >"conftest.in"
5245 while :
5246 do
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'EGREP' >> "conftest.nl"
5251 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5253 as_fn_arith $ac_count + 1 && ac_count=$as_val
5254 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_EGREP="$ac_path_EGREP"
5257 ac_path_EGREP_max=$ac_count
5258 fi
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5261 done
5262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5263 esac
5264
5265 $ac_path_EGREP_found && break 3
5266 done
5267 done
5268 done
5269 IFS=$as_save_IFS
5270 if test -z "$ac_cv_path_EGREP"; then
5271 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5272 fi
5273 else
5274 ac_cv_path_EGREP=$EGREP
5275 fi
5276
5277 fi
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5280 $as_echo "$ac_cv_path_EGREP" >&6; }
5281 EGREP="$ac_cv_path_EGREP"
5282
5283
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5285 $as_echo_n "checking for ANSI C header files... " >&6; }
5286 if test "${ac_cv_header_stdc+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 #include <stdlib.h>
5292 #include <stdarg.h>
5293 #include <string.h>
5294 #include <float.h>
5295
5296 int
5297 main ()
5298 {
5299
5300 ;
5301 return 0;
5302 }
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 ac_cv_header_stdc=yes
5306 else
5307 ac_cv_header_stdc=no
5308 fi
5309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310
5311 if test $ac_cv_header_stdc = yes; then
5312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 #include <string.h>
5316
5317 _ACEOF
5318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5319 $EGREP "memchr" >/dev/null 2>&1; then :
5320
5321 else
5322 ac_cv_header_stdc=no
5323 fi
5324 rm -f conftest*
5325
5326 fi
5327
5328 if test $ac_cv_header_stdc = yes; then
5329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #include <stdlib.h>
5333
5334 _ACEOF
5335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5336 $EGREP "free" >/dev/null 2>&1; then :
5337
5338 else
5339 ac_cv_header_stdc=no
5340 fi
5341 rm -f conftest*
5342
5343 fi
5344
5345 if test $ac_cv_header_stdc = yes; then
5346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5347 if test "$cross_compiling" = yes; then :
5348 :
5349 else
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #include <ctype.h>
5353 #include <stdlib.h>
5354 #if ((' ' & 0x0FF) == 0x020)
5355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5357 #else
5358 # define ISLOWER(c) \
5359 (('a' <= (c) && (c) <= 'i') \
5360 || ('j' <= (c) && (c) <= 'r') \
5361 || ('s' <= (c) && (c) <= 'z'))
5362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5363 #endif
5364
5365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5366 int
5367 main ()
5368 {
5369 int i;
5370 for (i = 0; i < 256; i++)
5371 if (XOR (islower (i), ISLOWER (i))
5372 || toupper (i) != TOUPPER (i))
5373 return 2;
5374 return 0;
5375 }
5376 _ACEOF
5377 if ac_fn_c_try_run "$LINENO"; then :
5378
5379 else
5380 ac_cv_header_stdc=no
5381 fi
5382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5383 conftest.$ac_objext conftest.beam conftest.$ac_ext
5384 fi
5385
5386 fi
5387 fi
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5389 $as_echo "$ac_cv_header_stdc" >&6; }
5390 if test $ac_cv_header_stdc = yes; then
5391
5392 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5393
5394 fi
5395
5396 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5397 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5398 inttypes.h stdint.h unistd.h
5399 do :
5400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5401 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5402 "
5403 eval as_val=\$$as_ac_Header
5404 if test "x$as_val" = x""yes; then :
5405 cat >>confdefs.h <<_ACEOF
5406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407 _ACEOF
5408
5409 fi
5410
5411 done
5412
5413
5414 for ac_header in stdlib.h string.h strings.h sys/stat.h sys/types.h unistd.h
5415 do :
5416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5418 eval as_val=\$$as_ac_Header
5419 if test "x$as_val" = x""yes; then :
5420 cat >>confdefs.h <<_ACEOF
5421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5422 _ACEOF
5423
5424 fi
5425
5426 done
5427
5428 ac_header_dirent=no
5429 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5430 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5432 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 #include <sys/types.h>
5439 #include <$ac_hdr>
5440
5441 int
5442 main ()
5443 {
5444 if ((DIR *) 0)
5445 return 0;
5446 ;
5447 return 0;
5448 }
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451 eval "$as_ac_Header=yes"
5452 else
5453 eval "$as_ac_Header=no"
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 fi
5457 eval ac_res=\$$as_ac_Header
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5459 $as_echo "$ac_res" >&6; }
5460 eval as_val=\$$as_ac_Header
5461 if test "x$as_val" = x""yes; then :
5462 cat >>confdefs.h <<_ACEOF
5463 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5464 _ACEOF
5465
5466 ac_header_dirent=$ac_hdr; break
5467 fi
5468
5469 done
5470 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5471 if test $ac_header_dirent = dirent.h; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5473 $as_echo_n "checking for library containing opendir... " >&6; }
5474 if test "${ac_cv_search_opendir+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5476 else
5477 ac_func_search_save_LIBS=$LIBS
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480
5481 /* Override any GCC internal prototype to avoid an error.
5482 Use char because int might match the return type of a GCC
5483 builtin and then its argument prototype would still apply. */
5484 #ifdef __cplusplus
5485 extern "C"
5486 #endif
5487 char opendir ();
5488 int
5489 main ()
5490 {
5491 return opendir ();
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 for ac_lib in '' dir; do
5497 if test -z "$ac_lib"; then
5498 ac_res="none required"
5499 else
5500 ac_res=-l$ac_lib
5501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5502 fi
5503 if ac_fn_c_try_link "$LINENO"; then :
5504 ac_cv_search_opendir=$ac_res
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext \
5507 conftest$ac_exeext
5508 if test "${ac_cv_search_opendir+set}" = set; then :
5509 break
5510 fi
5511 done
5512 if test "${ac_cv_search_opendir+set}" = set; then :
5513
5514 else
5515 ac_cv_search_opendir=no
5516 fi
5517 rm conftest.$ac_ext
5518 LIBS=$ac_func_search_save_LIBS
5519 fi
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5521 $as_echo "$ac_cv_search_opendir" >&6; }
5522 ac_res=$ac_cv_search_opendir
5523 if test "$ac_res" != no; then :
5524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5525
5526 fi
5527
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5530 $as_echo_n "checking for library containing opendir... " >&6; }
5531 if test "${ac_cv_search_opendir+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 ac_func_search_save_LIBS=$LIBS
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537
5538 /* Override any GCC internal prototype to avoid an error.
5539 Use char because int might match the return type of a GCC
5540 builtin and then its argument prototype would still apply. */
5541 #ifdef __cplusplus
5542 extern "C"
5543 #endif
5544 char opendir ();
5545 int
5546 main ()
5547 {
5548 return opendir ();
5549 ;
5550 return 0;
5551 }
5552 _ACEOF
5553 for ac_lib in '' x; do
5554 if test -z "$ac_lib"; then
5555 ac_res="none required"
5556 else
5557 ac_res=-l$ac_lib
5558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5559 fi
5560 if ac_fn_c_try_link "$LINENO"; then :
5561 ac_cv_search_opendir=$ac_res
5562 fi
5563 rm -f core conftest.err conftest.$ac_objext \
5564 conftest$ac_exeext
5565 if test "${ac_cv_search_opendir+set}" = set; then :
5566 break
5567 fi
5568 done
5569 if test "${ac_cv_search_opendir+set}" = set; then :
5570
5571 else
5572 ac_cv_search_opendir=no
5573 fi
5574 rm conftest.$ac_ext
5575 LIBS=$ac_func_search_save_LIBS
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5578 $as_echo "$ac_cv_search_opendir" >&6; }
5579 ac_res=$ac_cv_search_opendir
5580 if test "$ac_res" != no; then :
5581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5582
5583 fi
5584
5585 fi
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test -n "$RANLIB"; then
5606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619 done
5620 done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 RANLIB=$ac_cv_prog_RANLIB
5626 if test -n "$RANLIB"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5628 $as_echo "$RANLIB" >&6; }
5629 else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635 fi
5636 if test -z "$ac_cv_prog_RANLIB"; then
5637 ac_ct_RANLIB=$RANLIB
5638 # Extract the first word of "ranlib", so it can be a program name with args.
5639 set dummy ranlib; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
5644 else
5645 if test -n "$ac_ct_RANLIB"; then
5646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_ac_ct_RANLIB="ranlib"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5658 fi
5659 done
5660 done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5666 if test -n "$ac_ct_RANLIB"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5668 $as_echo "$ac_ct_RANLIB" >&6; }
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674 if test "x$ac_ct_RANLIB" = x; then
5675 RANLIB=":"
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683 RANLIB=$ac_ct_RANLIB
5684 fi
5685 else
5686 RANLIB="$ac_cv_prog_RANLIB"
5687 fi
5688
5689
5690 ac_config_files="$ac_config_files Makefile"
5691
5692 ac_config_commands="$ac_config_commands default"
5693
5694 cat >confcache <<\_ACEOF
5695 # This file is a shell script that caches the results of configure
5696 # tests run on this system so they can be shared between configure
5697 # scripts and configure runs, see configure's option --config-cache.
5698 # It is not useful on other systems. If it contains results you don't
5699 # want to keep, you may remove or edit it.
5700 #
5701 # config.status only pays attention to the cache file if you give it
5702 # the --recheck option to rerun configure.
5703 #
5704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5706 # following values.
5707
5708 _ACEOF
5709
5710 # The following way of writing the cache mishandles newlines in values,
5711 # but we know of no workaround that is simple, portable, and efficient.
5712 # So, we kill variables containing newlines.
5713 # Ultrix sh set writes to stderr and can't be redirected directly,
5714 # and sets the high bit in the cache file unless we assign to the vars.
5715 (
5716 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5717 eval ac_val=\$$ac_var
5718 case $ac_val in #(
5719 *${as_nl}*)
5720 case $ac_var in #(
5721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5723 esac
5724 case $ac_var in #(
5725 _ | IFS | as_nl) ;; #(
5726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5727 *) { eval $ac_var=; unset $ac_var;} ;;
5728 esac ;;
5729 esac
5730 done
5731
5732 (set) 2>&1 |
5733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5734 *${as_nl}ac_space=\ *)
5735 # `set' does not quote correctly, so add quotes: double-quote
5736 # substitution turns \\\\ into \\, and sed turns \\ into \.
5737 sed -n \
5738 "s/'/'\\\\''/g;
5739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5740 ;; #(
5741 *)
5742 # `set' quotes correctly as required by POSIX, so do not add quotes.
5743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5744 ;;
5745 esac |
5746 sort
5747 ) |
5748 sed '
5749 /^ac_cv_env_/b end
5750 t clear
5751 :clear
5752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5753 t end
5754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5755 :end' >>confcache
5756 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5757 if test -w "$cache_file"; then
5758 test "x$cache_file" != "x/dev/null" &&
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5760 $as_echo "$as_me: updating cache $cache_file" >&6;}
5761 cat confcache >$cache_file
5762 else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5764 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5765 fi
5766 fi
5767 rm -f confcache
5768
5769 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5770 # Let make expand exec_prefix.
5771 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5772
5773 DEFS=-DHAVE_CONFIG_H
5774
5775 ac_libobjs=
5776 ac_ltlibobjs=
5777 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5778 # 1. Remove the extension, and $U if already installed.
5779 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5780 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5781 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5782 # will be set to the directory where LIBOBJS objects are built.
5783 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5784 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5785 done
5786 LIBOBJS=$ac_libobjs
5787
5788 LTLIBOBJS=$ac_ltlibobjs
5789
5790
5791
5792 : ${CONFIG_STATUS=./config.status}
5793 ac_write_fail=0
5794 ac_clean_files_save=$ac_clean_files
5795 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5797 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5798 as_write_fail=0
5799 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5800 #! $SHELL
5801 # Generated by $as_me.
5802 # Run this file to recreate the current configuration.
5803 # Compiler output produced by configure, useful for debugging
5804 # configure, is in config.log if it exists.
5805
5806 debug=false
5807 ac_cs_recheck=false
5808 ac_cs_silent=false
5809
5810 SHELL=\${CONFIG_SHELL-$SHELL}
5811 export SHELL
5812 _ASEOF
5813 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5814 ## -------------------- ##
5815 ## M4sh Initialization. ##
5816 ## -------------------- ##
5817
5818 # Be more Bourne compatible
5819 DUALCASE=1; export DUALCASE # for MKS sh
5820 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5821 emulate sh
5822 NULLCMD=:
5823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5824 # is contrary to our usage. Disable this feature.
5825 alias -g '${1+"$@"}'='"$@"'
5826 setopt NO_GLOB_SUBST
5827 else
5828 case `(set -o) 2>/dev/null` in #(
5829 *posix*) :
5830 set -o posix ;; #(
5831 *) :
5832 ;;
5833 esac
5834 fi
5835
5836
5837 as_nl='
5838 '
5839 export as_nl
5840 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5841 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5842 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5843 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5844 # Prefer a ksh shell builtin over an external printf program on Solaris,
5845 # but without wasting forks for bash or zsh.
5846 if test -z "$BASH_VERSION$ZSH_VERSION" \
5847 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5848 as_echo='print -r --'
5849 as_echo_n='print -rn --'
5850 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5851 as_echo='printf %s\n'
5852 as_echo_n='printf %s'
5853 else
5854 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5855 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5856 as_echo_n='/usr/ucb/echo -n'
5857 else
5858 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5859 as_echo_n_body='eval
5860 arg=$1;
5861 case $arg in #(
5862 *"$as_nl"*)
5863 expr "X$arg" : "X\\(.*\\)$as_nl";
5864 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5865 esac;
5866 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5867 '
5868 export as_echo_n_body
5869 as_echo_n='sh -c $as_echo_n_body as_echo'
5870 fi
5871 export as_echo_body
5872 as_echo='sh -c $as_echo_body as_echo'
5873 fi
5874
5875 # The user is always right.
5876 if test "${PATH_SEPARATOR+set}" != set; then
5877 PATH_SEPARATOR=:
5878 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5879 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5880 PATH_SEPARATOR=';'
5881 }
5882 fi
5883
5884
5885 # IFS
5886 # We need space, tab and new line, in precisely that order. Quoting is
5887 # there to prevent editors from complaining about space-tab.
5888 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5889 # splitting by setting IFS to empty value.)
5890 IFS=" "" $as_nl"
5891
5892 # Find who we are. Look in the path if we contain no directory separator.
5893 case $0 in #((
5894 *[\\/]* ) as_myself=$0 ;;
5895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5901 done
5902 IFS=$as_save_IFS
5903
5904 ;;
5905 esac
5906 # We did not find ourselves, most probably we were run as `sh COMMAND'
5907 # in which case we are not to be found in the path.
5908 if test "x$as_myself" = x; then
5909 as_myself=$0
5910 fi
5911 if test ! -f "$as_myself"; then
5912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5913 exit 1
5914 fi
5915
5916 # Unset variables that we do not need and which cause bugs (e.g. in
5917 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5918 # suppresses any "Segmentation fault" message there. '((' could
5919 # trigger a bug in pdksh 5.2.14.
5920 for as_var in BASH_ENV ENV MAIL MAILPATH
5921 do eval test x\${$as_var+set} = xset \
5922 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5923 done
5924 PS1='$ '
5925 PS2='> '
5926 PS4='+ '
5927
5928 # NLS nuisances.
5929 LC_ALL=C
5930 export LC_ALL
5931 LANGUAGE=C
5932 export LANGUAGE
5933
5934 # CDPATH.
5935 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5936
5937
5938 # as_fn_error ERROR [LINENO LOG_FD]
5939 # ---------------------------------
5940 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5941 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5942 # script with status $?, using 1 if that was 0.
5943 as_fn_error ()
5944 {
5945 as_status=$?; test $as_status -eq 0 && as_status=1
5946 if test "$3"; then
5947 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5948 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5949 fi
5950 $as_echo "$as_me: error: $1" >&2
5951 as_fn_exit $as_status
5952 } # as_fn_error
5953
5954
5955 # as_fn_set_status STATUS
5956 # -----------------------
5957 # Set $? to STATUS, without forking.
5958 as_fn_set_status ()
5959 {
5960 return $1
5961 } # as_fn_set_status
5962
5963 # as_fn_exit STATUS
5964 # -----------------
5965 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5966 as_fn_exit ()
5967 {
5968 set +e
5969 as_fn_set_status $1
5970 exit $1
5971 } # as_fn_exit
5972
5973 # as_fn_unset VAR
5974 # ---------------
5975 # Portably unset VAR.
5976 as_fn_unset ()
5977 {
5978 { eval $1=; unset $1;}
5979 }
5980 as_unset=as_fn_unset
5981 # as_fn_append VAR VALUE
5982 # ----------------------
5983 # Append the text in VALUE to the end of the definition contained in VAR. Take
5984 # advantage of any shell optimizations that allow amortized linear growth over
5985 # repeated appends, instead of the typical quadratic growth present in naive
5986 # implementations.
5987 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5988 eval 'as_fn_append ()
5989 {
5990 eval $1+=\$2
5991 }'
5992 else
5993 as_fn_append ()
5994 {
5995 eval $1=\$$1\$2
5996 }
5997 fi # as_fn_append
5998
5999 # as_fn_arith ARG...
6000 # ------------------
6001 # Perform arithmetic evaluation on the ARGs, and store the result in the
6002 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6003 # must be portable across $(()) and expr.
6004 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6005 eval 'as_fn_arith ()
6006 {
6007 as_val=$(( $* ))
6008 }'
6009 else
6010 as_fn_arith ()
6011 {
6012 as_val=`expr "$@" || test $? -eq 1`
6013 }
6014 fi # as_fn_arith
6015
6016
6017 if expr a : '\(a\)' >/dev/null 2>&1 &&
6018 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6019 as_expr=expr
6020 else
6021 as_expr=false
6022 fi
6023
6024 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6025 as_basename=basename
6026 else
6027 as_basename=false
6028 fi
6029
6030 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6031 as_dirname=dirname
6032 else
6033 as_dirname=false
6034 fi
6035
6036 as_me=`$as_basename -- "$0" ||
6037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6038 X"$0" : 'X\(//\)$' \| \
6039 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6040 $as_echo X/"$0" |
6041 sed '/^.*\/\([^/][^/]*\)\/*$/{
6042 s//\1/
6043 q
6044 }
6045 /^X\/\(\/\/\)$/{
6046 s//\1/
6047 q
6048 }
6049 /^X\/\(\/\).*/{
6050 s//\1/
6051 q
6052 }
6053 s/.*/./; q'`
6054
6055 # Avoid depending upon Character Ranges.
6056 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6057 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6058 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6059 as_cr_digits='0123456789'
6060 as_cr_alnum=$as_cr_Letters$as_cr_digits
6061
6062 ECHO_C= ECHO_N= ECHO_T=
6063 case `echo -n x` in #(((((
6064 -n*)
6065 case `echo 'xy\c'` in
6066 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6067 xy) ECHO_C='\c';;
6068 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6069 ECHO_T=' ';;
6070 esac;;
6071 *)
6072 ECHO_N='-n';;
6073 esac
6074
6075 rm -f conf$$ conf$$.exe conf$$.file
6076 if test -d conf$$.dir; then
6077 rm -f conf$$.dir/conf$$.file
6078 else
6079 rm -f conf$$.dir
6080 mkdir conf$$.dir 2>/dev/null
6081 fi
6082 if (echo >conf$$.file) 2>/dev/null; then
6083 if ln -s conf$$.file conf$$ 2>/dev/null; then
6084 as_ln_s='ln -s'
6085 # ... but there are two gotchas:
6086 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6087 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6088 # In both cases, we have to default to `cp -p'.
6089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6090 as_ln_s='cp -p'
6091 elif ln conf$$.file conf$$ 2>/dev/null; then
6092 as_ln_s=ln
6093 else
6094 as_ln_s='cp -p'
6095 fi
6096 else
6097 as_ln_s='cp -p'
6098 fi
6099 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6100 rmdir conf$$.dir 2>/dev/null
6101
6102
6103 # as_fn_mkdir_p
6104 # -------------
6105 # Create "$as_dir" as a directory, including parents if necessary.
6106 as_fn_mkdir_p ()
6107 {
6108
6109 case $as_dir in #(
6110 -*) as_dir=./$as_dir;;
6111 esac
6112 test -d "$as_dir" || eval $as_mkdir_p || {
6113 as_dirs=
6114 while :; do
6115 case $as_dir in #(
6116 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6117 *) as_qdir=$as_dir;;
6118 esac
6119 as_dirs="'$as_qdir' $as_dirs"
6120 as_dir=`$as_dirname -- "$as_dir" ||
6121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6122 X"$as_dir" : 'X\(//\)[^/]' \| \
6123 X"$as_dir" : 'X\(//\)$' \| \
6124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6125 $as_echo X"$as_dir" |
6126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6127 s//\1/
6128 q
6129 }
6130 /^X\(\/\/\)[^/].*/{
6131 s//\1/
6132 q
6133 }
6134 /^X\(\/\/\)$/{
6135 s//\1/
6136 q
6137 }
6138 /^X\(\/\).*/{
6139 s//\1/
6140 q
6141 }
6142 s/.*/./; q'`
6143 test -d "$as_dir" && break
6144 done
6145 test -z "$as_dirs" || eval "mkdir $as_dirs"
6146 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6147
6148
6149 } # as_fn_mkdir_p
6150 if mkdir -p . 2>/dev/null; then
6151 as_mkdir_p='mkdir -p "$as_dir"'
6152 else
6153 test -d ./-p && rmdir ./-p
6154 as_mkdir_p=false
6155 fi
6156
6157 if test -x / >/dev/null 2>&1; then
6158 as_test_x='test -x'
6159 else
6160 if ls -dL / >/dev/null 2>&1; then
6161 as_ls_L_option=L
6162 else
6163 as_ls_L_option=
6164 fi
6165 as_test_x='
6166 eval sh -c '\''
6167 if test -d "$1"; then
6168 test -d "$1/.";
6169 else
6170 case $1 in #(
6171 -*)set "./$1";;
6172 esac;
6173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6174 ???[sx]*):;;*)false;;esac;fi
6175 '\'' sh
6176 '
6177 fi
6178 as_executable_p=$as_test_x
6179
6180 # Sed expression to map a string onto a valid CPP name.
6181 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6182
6183 # Sed expression to map a string onto a valid variable name.
6184 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6185
6186
6187 exec 6>&1
6188 ## ----------------------------------- ##
6189 ## Main body of $CONFIG_STATUS script. ##
6190 ## ----------------------------------- ##
6191 _ASEOF
6192 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6193
6194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6195 # Save the log message, to keep $0 and so on meaningful, and to
6196 # report actual input values of CONFIG_FILES etc. instead of their
6197 # values after options handling.
6198 ac_log="
6199 This file was extended by $as_me, which was
6200 generated by GNU Autoconf 2.64. Invocation command line was
6201
6202 CONFIG_FILES = $CONFIG_FILES
6203 CONFIG_HEADERS = $CONFIG_HEADERS
6204 CONFIG_LINKS = $CONFIG_LINKS
6205 CONFIG_COMMANDS = $CONFIG_COMMANDS
6206 $ $0 $@
6207
6208 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6209 "
6210
6211 _ACEOF
6212
6213 case $ac_config_files in *"
6214 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6215 esac
6216
6217 case $ac_config_headers in *"
6218 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6219 esac
6220
6221
6222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6223 # Files that config.status was made for.
6224 config_files="$ac_config_files"
6225 config_headers="$ac_config_headers"
6226 config_commands="$ac_config_commands"
6227
6228 _ACEOF
6229
6230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6231 ac_cs_usage="\
6232 \`$as_me' instantiates files and other configuration actions
6233 from templates according to the current configuration. Unless the files
6234 and actions are specified as TAGs, all are instantiated by default.
6235
6236 Usage: $0 [OPTION]... [TAG]...
6237
6238 -h, --help print this help, then exit
6239 -V, --version print version number and configuration settings, then exit
6240 -q, --quiet, --silent
6241 do not print progress messages
6242 -d, --debug don't remove temporary files
6243 --recheck update $as_me by reconfiguring in the same conditions
6244 --file=FILE[:TEMPLATE]
6245 instantiate the configuration file FILE
6246 --header=FILE[:TEMPLATE]
6247 instantiate the configuration header FILE
6248
6249 Configuration files:
6250 $config_files
6251
6252 Configuration headers:
6253 $config_headers
6254
6255 Configuration commands:
6256 $config_commands
6257
6258 Report bugs to the package provider."
6259
6260 _ACEOF
6261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6262 ac_cs_version="\\
6263 config.status
6264 configured by $0, generated by GNU Autoconf 2.64,
6265 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6266
6267 Copyright (C) 2009 Free Software Foundation, Inc.
6268 This config.status script is free software; the Free Software Foundation
6269 gives unlimited permission to copy, distribute and modify it."
6270
6271 ac_pwd='$ac_pwd'
6272 srcdir='$srcdir'
6273 INSTALL='$INSTALL'
6274 test -n "\$AWK" || AWK=awk
6275 _ACEOF
6276
6277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6278 # The default lists apply if the user does not specify any file.
6279 ac_need_defaults=:
6280 while test $# != 0
6281 do
6282 case $1 in
6283 --*=*)
6284 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6285 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6286 ac_shift=:
6287 ;;
6288 *)
6289 ac_option=$1
6290 ac_optarg=$2
6291 ac_shift=shift
6292 ;;
6293 esac
6294
6295 case $ac_option in
6296 # Handling of the options.
6297 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6298 ac_cs_recheck=: ;;
6299 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6300 $as_echo "$ac_cs_version"; exit ;;
6301 --debug | --debu | --deb | --de | --d | -d )
6302 debug=: ;;
6303 --file | --fil | --fi | --f )
6304 $ac_shift
6305 case $ac_optarg in
6306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6307 esac
6308 as_fn_append CONFIG_FILES " '$ac_optarg'"
6309 ac_need_defaults=false;;
6310 --header | --heade | --head | --hea )
6311 $ac_shift
6312 case $ac_optarg in
6313 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6314 esac
6315 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6316 ac_need_defaults=false;;
6317 --he | --h)
6318 # Conflict between --help and --header
6319 as_fn_error "ambiguous option: \`$1'
6320 Try \`$0 --help' for more information.";;
6321 --help | --hel | -h )
6322 $as_echo "$ac_cs_usage"; exit ;;
6323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6324 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6325 ac_cs_silent=: ;;
6326
6327 # This is an error.
6328 -*) as_fn_error "unrecognized option: \`$1'
6329 Try \`$0 --help' for more information." ;;
6330
6331 *) as_fn_append ac_config_targets " $1"
6332 ac_need_defaults=false ;;
6333
6334 esac
6335 shift
6336 done
6337
6338 ac_configure_extra_args=
6339
6340 if $ac_cs_silent; then
6341 exec 6>/dev/null
6342 ac_configure_extra_args="$ac_configure_extra_args --silent"
6343 fi
6344
6345 _ACEOF
6346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6347 if \$ac_cs_recheck; then
6348 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6349 shift
6350 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6351 CONFIG_SHELL='$SHELL'
6352 export CONFIG_SHELL
6353 exec "\$@"
6354 fi
6355
6356 _ACEOF
6357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6358 exec 5>>config.log
6359 {
6360 echo
6361 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6362 ## Running $as_me. ##
6363 _ASBOX
6364 $as_echo "$ac_log"
6365 } >&5
6366
6367 _ACEOF
6368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6369 _ACEOF
6370
6371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6372
6373 # Handling of arguments.
6374 for ac_config_target in $ac_config_targets
6375 do
6376 case $ac_config_target in
6377 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6378 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6379 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6380
6381 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6382 esac
6383 done
6384
6385
6386 # If the user did not use the arguments to specify the items to instantiate,
6387 # then the envvar interface is used. Set only those that are not.
6388 # We use the long form for the default assignment because of an extremely
6389 # bizarre bug on SunOS 4.1.3.
6390 if $ac_need_defaults; then
6391 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6392 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6393 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6394 fi
6395
6396 # Have a temporary directory for convenience. Make it in the build tree
6397 # simply because there is no reason against having it here, and in addition,
6398 # creating and moving files from /tmp can sometimes cause problems.
6399 # Hook for its removal unless debugging.
6400 # Note that there is a small window in which the directory will not be cleaned:
6401 # after its creation but before its name has been assigned to `$tmp'.
6402 $debug ||
6403 {
6404 tmp=
6405 trap 'exit_status=$?
6406 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6407 ' 0
6408 trap 'as_fn_exit 1' 1 2 13 15
6409 }
6410 # Create a (secure) tmp directory for tmp files.
6411
6412 {
6413 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6414 test -n "$tmp" && test -d "$tmp"
6415 } ||
6416 {
6417 tmp=./conf$$-$RANDOM
6418 (umask 077 && mkdir "$tmp")
6419 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6420
6421 # Set up the scripts for CONFIG_FILES section.
6422 # No need to generate them if there are no CONFIG_FILES.
6423 # This happens for instance with `./config.status config.h'.
6424 if test -n "$CONFIG_FILES"; then
6425
6426
6427 ac_cr=`echo X | tr X '\015'`
6428 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6429 # But we know of no other shell where ac_cr would be empty at this
6430 # point, so we can use a bashism as a fallback.
6431 if test "x$ac_cr" = x; then
6432 eval ac_cr=\$\'\\r\'
6433 fi
6434 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6435 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6436 ac_cs_awk_cr='\r'
6437 else
6438 ac_cs_awk_cr=$ac_cr
6439 fi
6440
6441 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6442 _ACEOF
6443
6444
6445 {
6446 echo "cat >conf$$subs.awk <<_ACEOF" &&
6447 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6448 echo "_ACEOF"
6449 } >conf$$subs.sh ||
6450 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6451 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6452 ac_delim='%!_!# '
6453 for ac_last_try in false false false false false :; do
6454 . ./conf$$subs.sh ||
6455 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6456
6457 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6458 if test $ac_delim_n = $ac_delim_num; then
6459 break
6460 elif $ac_last_try; then
6461 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6462 else
6463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6464 fi
6465 done
6466 rm -f conf$$subs.sh
6467
6468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6469 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6470 _ACEOF
6471 sed -n '
6472 h
6473 s/^/S["/; s/!.*/"]=/
6474 p
6475 g
6476 s/^[^!]*!//
6477 :repl
6478 t repl
6479 s/'"$ac_delim"'$//
6480 t delim
6481 :nl
6482 h
6483 s/\(.\{148\}\).*/\1/
6484 t more1
6485 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6486 p
6487 n
6488 b repl
6489 :more1
6490 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6491 p
6492 g
6493 s/.\{148\}//
6494 t nl
6495 :delim
6496 h
6497 s/\(.\{148\}\).*/\1/
6498 t more2
6499 s/["\\]/\\&/g; s/^/"/; s/$/"/
6500 p
6501 b
6502 :more2
6503 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6504 p
6505 g
6506 s/.\{148\}//
6507 t delim
6508 ' <conf$$subs.awk | sed '
6509 /^[^""]/{
6510 N
6511 s/\n//
6512 }
6513 ' >>$CONFIG_STATUS || ac_write_fail=1
6514 rm -f conf$$subs.awk
6515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6516 _ACAWK
6517 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6518 for (key in S) S_is_set[key] = 1
6519 FS = "\a"
6520
6521 }
6522 {
6523 line = $ 0
6524 nfields = split(line, field, "@")
6525 substed = 0
6526 len = length(field[1])
6527 for (i = 2; i < nfields; i++) {
6528 key = field[i]
6529 keylen = length(key)
6530 if (S_is_set[key]) {
6531 value = S[key]
6532 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6533 len += length(value) + length(field[++i])
6534 substed = 1
6535 } else
6536 len += 1 + keylen
6537 }
6538
6539 print line
6540 }
6541
6542 _ACAWK
6543 _ACEOF
6544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6545 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6546 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6547 else
6548 cat
6549 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6550 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6551 _ACEOF
6552
6553 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6554 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6555 # trailing colons and then remove the whole line if VPATH becomes empty
6556 # (actually we leave an empty line to preserve line numbers).
6557 if test "x$srcdir" = x.; then
6558 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6559 s/:*\$(srcdir):*/:/
6560 s/:*\${srcdir}:*/:/
6561 s/:*@srcdir@:*/:/
6562 s/^\([^=]*=[ ]*\):*/\1/
6563 s/:*$//
6564 s/^[^=]*=[ ]*$//
6565 }'
6566 fi
6567
6568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6569 fi # test -n "$CONFIG_FILES"
6570
6571 # Set up the scripts for CONFIG_HEADERS section.
6572 # No need to generate them if there are no CONFIG_HEADERS.
6573 # This happens for instance with `./config.status Makefile'.
6574 if test -n "$CONFIG_HEADERS"; then
6575 cat >"$tmp/defines.awk" <<\_ACAWK ||
6576 BEGIN {
6577 _ACEOF
6578
6579 # Transform confdefs.h into an awk script `defines.awk', embedded as
6580 # here-document in config.status, that substitutes the proper values into
6581 # config.h.in to produce config.h.
6582
6583 # Create a delimiter string that does not exist in confdefs.h, to ease
6584 # handling of long lines.
6585 ac_delim='%!_!# '
6586 for ac_last_try in false false :; do
6587 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6588 if test -z "$ac_t"; then
6589 break
6590 elif $ac_last_try; then
6591 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6592 else
6593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6594 fi
6595 done
6596
6597 # For the awk script, D is an array of macro values keyed by name,
6598 # likewise P contains macro parameters if any. Preserve backslash
6599 # newline sequences.
6600
6601 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6602 sed -n '
6603 s/.\{148\}/&'"$ac_delim"'/g
6604 t rset
6605 :rset
6606 s/^[ ]*#[ ]*define[ ][ ]*/ /
6607 t def
6608 d
6609 :def
6610 s/\\$//
6611 t bsnl
6612 s/["\\]/\\&/g
6613 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6614 D["\1"]=" \3"/p
6615 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6616 d
6617 :bsnl
6618 s/["\\]/\\&/g
6619 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6620 D["\1"]=" \3\\\\\\n"\\/p
6621 t cont
6622 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6623 t cont
6624 d
6625 :cont
6626 n
6627 s/.\{148\}/&'"$ac_delim"'/g
6628 t clear
6629 :clear
6630 s/\\$//
6631 t bsnlc
6632 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6633 d
6634 :bsnlc
6635 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6636 b cont
6637 ' <confdefs.h | sed '
6638 s/'"$ac_delim"'/"\\\
6639 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6640
6641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6642 for (key in D) D_is_set[key] = 1
6643 FS = "\a"
6644 }
6645 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6646 line = \$ 0
6647 split(line, arg, " ")
6648 if (arg[1] == "#") {
6649 defundef = arg[2]
6650 mac1 = arg[3]
6651 } else {
6652 defundef = substr(arg[1], 2)
6653 mac1 = arg[2]
6654 }
6655 split(mac1, mac2, "(") #)
6656 macro = mac2[1]
6657 prefix = substr(line, 1, index(line, defundef) - 1)
6658 if (D_is_set[macro]) {
6659 # Preserve the white space surrounding the "#".
6660 print prefix "define", macro P[macro] D[macro]
6661 next
6662 } else {
6663 # Replace #undef with comments. This is necessary, for example,
6664 # in the case of _POSIX_SOURCE, which is predefined and required
6665 # on some systems where configure will not decide to define it.
6666 if (defundef == "undef") {
6667 print "/*", prefix defundef, macro, "*/"
6668 next
6669 }
6670 }
6671 }
6672 { print }
6673 _ACAWK
6674 _ACEOF
6675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6676 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6677 fi # test -n "$CONFIG_HEADERS"
6678
6679
6680 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6681 shift
6682 for ac_tag
6683 do
6684 case $ac_tag in
6685 :[FHLC]) ac_mode=$ac_tag; continue;;
6686 esac
6687 case $ac_mode$ac_tag in
6688 :[FHL]*:*);;
6689 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6690 :[FH]-) ac_tag=-:-;;
6691 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6692 esac
6693 ac_save_IFS=$IFS
6694 IFS=:
6695 set x $ac_tag
6696 IFS=$ac_save_IFS
6697 shift
6698 ac_file=$1
6699 shift
6700
6701 case $ac_mode in
6702 :L) ac_source=$1;;
6703 :[FH])
6704 ac_file_inputs=
6705 for ac_f
6706 do
6707 case $ac_f in
6708 -) ac_f="$tmp/stdin";;
6709 *) # Look for the file first in the build tree, then in the source tree
6710 # (if the path is not absolute). The absolute path cannot be DOS-style,
6711 # because $ac_f cannot contain `:'.
6712 test -f "$ac_f" ||
6713 case $ac_f in
6714 [\\/$]*) false;;
6715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6716 esac ||
6717 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6718 esac
6719 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6720 as_fn_append ac_file_inputs " '$ac_f'"
6721 done
6722
6723 # Let's still pretend it is `configure' which instantiates (i.e., don't
6724 # use $as_me), people would be surprised to read:
6725 # /* config.h. Generated by config.status. */
6726 configure_input='Generated from '`
6727 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6728 `' by configure.'
6729 if test x"$ac_file" != x-; then
6730 configure_input="$ac_file. $configure_input"
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6732 $as_echo "$as_me: creating $ac_file" >&6;}
6733 fi
6734 # Neutralize special characters interpreted by sed in replacement strings.
6735 case $configure_input in #(
6736 *\&* | *\|* | *\\* )
6737 ac_sed_conf_input=`$as_echo "$configure_input" |
6738 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6739 *) ac_sed_conf_input=$configure_input;;
6740 esac
6741
6742 case $ac_tag in
6743 *:-:* | *:-) cat >"$tmp/stdin" \
6744 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6745 esac
6746 ;;
6747 esac
6748
6749 ac_dir=`$as_dirname -- "$ac_file" ||
6750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6751 X"$ac_file" : 'X\(//\)[^/]' \| \
6752 X"$ac_file" : 'X\(//\)$' \| \
6753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6754 $as_echo X"$ac_file" |
6755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6756 s//\1/
6757 q
6758 }
6759 /^X\(\/\/\)[^/].*/{
6760 s//\1/
6761 q
6762 }
6763 /^X\(\/\/\)$/{
6764 s//\1/
6765 q
6766 }
6767 /^X\(\/\).*/{
6768 s//\1/
6769 q
6770 }
6771 s/.*/./; q'`
6772 as_dir="$ac_dir"; as_fn_mkdir_p
6773 ac_builddir=.
6774
6775 case "$ac_dir" in
6776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6777 *)
6778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6779 # A ".." for each directory in $ac_dir_suffix.
6780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6781 case $ac_top_builddir_sub in
6782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6784 esac ;;
6785 esac
6786 ac_abs_top_builddir=$ac_pwd
6787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6788 # for backward compatibility:
6789 ac_top_builddir=$ac_top_build_prefix
6790
6791 case $srcdir in
6792 .) # We are building in place.
6793 ac_srcdir=.
6794 ac_top_srcdir=$ac_top_builddir_sub
6795 ac_abs_top_srcdir=$ac_pwd ;;
6796 [\\/]* | ?:[\\/]* ) # Absolute name.
6797 ac_srcdir=$srcdir$ac_dir_suffix;
6798 ac_top_srcdir=$srcdir
6799 ac_abs_top_srcdir=$srcdir ;;
6800 *) # Relative name.
6801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6802 ac_top_srcdir=$ac_top_build_prefix$srcdir
6803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6804 esac
6805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6806
6807
6808 case $ac_mode in
6809 :F)
6810 #
6811 # CONFIG_FILE
6812 #
6813
6814 case $INSTALL in
6815 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6816 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6817 esac
6818 _ACEOF
6819
6820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6821 # If the template does not know about datarootdir, expand it.
6822 # FIXME: This hack should be removed a few years after 2.60.
6823 ac_datarootdir_hack=; ac_datarootdir_seen=
6824 ac_sed_dataroot='
6825 /datarootdir/ {
6826 p
6827 q
6828 }
6829 /@datadir@/p
6830 /@docdir@/p
6831 /@infodir@/p
6832 /@localedir@/p
6833 /@mandir@/p'
6834 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6835 *datarootdir*) ac_datarootdir_seen=yes;;
6836 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6838 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6839 _ACEOF
6840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6841 ac_datarootdir_hack='
6842 s&@datadir@&$datadir&g
6843 s&@docdir@&$docdir&g
6844 s&@infodir@&$infodir&g
6845 s&@localedir@&$localedir&g
6846 s&@mandir@&$mandir&g
6847 s&\\\${datarootdir}&$datarootdir&g' ;;
6848 esac
6849 _ACEOF
6850
6851 # Neutralize VPATH when `$srcdir' = `.'.
6852 # Shell code in configure.ac might set extrasub.
6853 # FIXME: do we really want to maintain this feature?
6854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6855 ac_sed_extra="$ac_vpsub
6856 $extrasub
6857 _ACEOF
6858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6859 :t
6860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6861 s|@configure_input@|$ac_sed_conf_input|;t t
6862 s&@top_builddir@&$ac_top_builddir_sub&;t t
6863 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6864 s&@srcdir@&$ac_srcdir&;t t
6865 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6866 s&@top_srcdir@&$ac_top_srcdir&;t t
6867 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6868 s&@builddir@&$ac_builddir&;t t
6869 s&@abs_builddir@&$ac_abs_builddir&;t t
6870 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6871 s&@INSTALL@&$ac_INSTALL&;t t
6872 $ac_datarootdir_hack
6873 "
6874 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6875 || as_fn_error "could not create $ac_file" "$LINENO" 5
6876
6877 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6878 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6879 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6881 which seems to be undefined. Please make sure it is defined." >&5
6882 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6883 which seems to be undefined. Please make sure it is defined." >&2;}
6884
6885 rm -f "$tmp/stdin"
6886 case $ac_file in
6887 -) cat "$tmp/out" && rm -f "$tmp/out";;
6888 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6889 esac \
6890 || as_fn_error "could not create $ac_file" "$LINENO" 5
6891 ;;
6892 :H)
6893 #
6894 # CONFIG_HEADER
6895 #
6896 if test x"$ac_file" != x-; then
6897 {
6898 $as_echo "/* $configure_input */" \
6899 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6900 } >"$tmp/config.h" \
6901 || as_fn_error "could not create $ac_file" "$LINENO" 5
6902 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6904 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6905 else
6906 rm -f "$ac_file"
6907 mv "$tmp/config.h" "$ac_file" \
6908 || as_fn_error "could not create $ac_file" "$LINENO" 5
6909 fi
6910 else
6911 $as_echo "/* $configure_input */" \
6912 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6913 || as_fn_error "could not create -" "$LINENO" 5
6914 fi
6915 ;;
6916
6917 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6918 $as_echo "$as_me: executing $ac_file commands" >&6;}
6919 ;;
6920 esac
6921
6922
6923 case $ac_file$ac_mode in
6924 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
6925
6926 esac
6927 done # for ac_tag
6928
6929
6930 as_fn_exit 0
6931 _ACEOF
6932 ac_clean_files=$ac_clean_files_save
6933
6934 test $ac_write_fail = 0 ||
6935 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6936
6937
6938 # configure is writing to config.log, and then calls config.status.
6939 # config.status does its own redirection, appending to config.log.
6940 # Unfortunately, on DOS this fails, as config.log is still kept open
6941 # by configure, so config.status won't be able to write to it; its
6942 # output is simply discarded. So we exec the FD to /dev/null,
6943 # effectively closing config.log, so it can be properly (re)opened and
6944 # appended to by config.status. When coming back to configure, we
6945 # need to make the FD available again.
6946 if test "$no_create" != yes; then
6947 ac_cs_success=:
6948 ac_config_status_args=
6949 test "$silent" = yes &&
6950 ac_config_status_args="$ac_config_status_args --quiet"
6951 exec 5>/dev/null
6952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6953 exec 5>>config.log
6954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6955 # would make configure fail if this is the last instruction.
6956 $ac_cs_success || as_fn_exit $?
6957 fi
6958 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6960 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6961 fi
6962
This page took 0.187347 seconds and 4 git commands to generate.