]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/mips/configure
sim: unify environment build settings
[thirdparty/binutils-gdb.git] / sim / mips / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="Makefile.in"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 sim_default_model
635 sim_scache
636 cgen_breaks
637 XMKMF
638 sim_multi_obj
639 sim_multi_src
640 sim_multi_igen_configs
641 sim_multi_flags
642 sim_gen
643 sim_micromips16_flags
644 sim_micromips_flags
645 sim_m16_flags
646 sim_igen_flags
647 SIM_SUBTARGET
648 REPORT_BUGS_TEXI
649 REPORT_BUGS_TO
650 PKGVERSION
651 MAINT
652 MAINTAINER_MODE_FALSE
653 MAINTAINER_MODE_TRUE
654 lt_cv_dlopen_libs
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 AWK
661 STRIP
662 OBJDUMP
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 SED
670 LIBTOOL
671 PLUGINS_FALSE
672 PLUGINS_TRUE
673 zlibinc
674 zlibdir
675 CATOBJEXT
676 GENCAT
677 INSTOBJEXT
678 DATADIRNAME
679 CATALOGS
680 POSUB
681 GMSGFMT
682 XGETTEXT
683 INCINTL
684 LIBINTL_DEP
685 LIBINTL
686 USE_NLS
687 CCDEPMODE
688 DEPDIR
689 am__leading_dot
690 PACKAGE
691 C_DIALECT
692 RANLIB
693 AR
694 LDFLAGS_FOR_BUILD
695 CFLAGS_FOR_BUILD
696 RANLIB_FOR_BUILD
697 CC_FOR_BUILD
698 AR_FOR_BUILD
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 EGREP
703 GREP
704 CPP
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 target_os
713 target_vendor
714 target_cpu
715 target
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL
762 WERROR_CFLAGS
763 WARN_CFLAGS
764 sim_reserved_bits
765 sim_inline
766 sim_hw
767 sim_hw_objs
768 sim_hw_cflags
769 sim_float
770 sim_endian
771 sim_bitsize
772 sim_alignment'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 with_system_zlib
777 enable_plugins
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 with_gnu_ld
783 enable_libtool_lock
784 enable_maintainer_mode
785 enable_sim_debug
786 enable_sim_stdio
787 enable_sim_trace
788 enable_sim_profile
789 enable_sim_inline
790 with_pkgversion
791 with_bugurl
792 enable_sim_alignment
793 enable_werror
794 enable_build_warnings
795 enable_sim_build_warnings
796 enable_sim_reserved_bits
797 enable_sim_endian
798 enable_sim_bitsize
799 enable_sim_float
800 enable_sim_hardware
801 with_x
802 '
803 ac_precious_vars='build_alias
804 host_alias
805 target_alias
806 CC
807 CFLAGS
808 LDFLAGS
809 LIBS
810 CPPFLAGS
811 CPP
812 XMKMF'
813
814
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
910
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
943
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 ;;
1219
1220 esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1241 do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318 else
1319 ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 \`configure' configures this package to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406 _ACEOF
1407
1408 cat <<\_ACEOF
1409
1410 Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415 X features:
1416 --x-includes=DIR X include files are in DIR
1417 --x-libraries=DIR X library files are in DIR
1418
1419 System types:
1420 --build=BUILD configure for building on BUILD [guessed]
1421 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1422 --target=TARGET configure for building compilers for TARGET [HOST]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427
1428 cat <<\_ACEOF
1429
1430 Optional Features:
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-plugins Enable support for plugins
1435 --enable-shared[=PKGS] build shared libraries [default=yes]
1436 --enable-static[=PKGS] build static libraries [default=yes]
1437 --enable-fast-install[=PKGS]
1438 optimize for fast installation [default=yes]
1439 --disable-libtool-lock avoid locking (might break parallel builds)
1440 --enable-maintainer-mode
1441 enable make rules and dependencies not useful (and
1442 sometimes confusing) to the casual installer
1443 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1444 itself)
1445 --enable-sim-stdio Specify whether to use stdio for console
1446 input/output
1447 --enable-sim-trace=opts Enable tracing of simulated programs
1448 --enable-sim-profile=opts
1449 Enable profiling flags
1450 --enable-sim-inline=inlines
1451 Specify which functions should be inlined
1452 --enable-sim-alignment=align
1453 Specify strict, nonstrict or forced alignment of
1454 memory accesses
1455 --enable-werror treat compile warnings as errors
1456 --enable-build-warnings enable build-time compiler warnings if gcc is used
1457 --enable-sim-build-warnings
1458 enable SIM specific build-time compiler warnings if
1459 gcc is used
1460 --enable-sim-reserved-bits
1461 Specify whether to check reserved bits in
1462 instruction
1463 --enable-sim-endian=endian
1464 Specify target byte endian orientation
1465 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
1466 --enable-sim-float Specify that the target processor has floating point
1467 hardware
1468 --enable-sim-hardware=LIST
1469 Specify the hardware to be included in the build.
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-system-zlib use installed libz
1475 --with-pic try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
1479 --with-bugurl=URL Direct users to URL to report a bug
1480 --with-x use the X Window System
1481
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CPP C preprocessor
1491 XMKMF Path to xmkmf, Makefile generator for X Window System
1492
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1495
1496 Report bugs to the package provider.
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 configure
1560 generated by GNU Autoconf 2.69
1561
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_c_try_compile
1610
1611 # ac_fn_c_try_cpp LINENO
1612 # ----------------------
1613 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_cpp ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } > conftest.i && {
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_cpp
1647
1648 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1651 # the include files in INCLUDES and setting the cache variable VAR
1652 # accordingly.
1653 ac_fn_c_check_header_mongrel ()
1654 {
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if eval \${$3+:} false; then :
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 $as_echo_n "checking for $2... " >&6; }
1659 if eval \${$3+:} false; then :
1660 $as_echo_n "(cached) " >&6
1661 fi
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 else
1666 # Is the header compilable?
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1668 $as_echo_n "checking $2 usability... " >&6; }
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1671 $4
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 ac_header_compiler=yes
1676 else
1677 ac_header_compiler=no
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1681 $as_echo "$ac_header_compiler" >&6; }
1682
1683 # Is the header present?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1685 $as_echo_n "checking $2 presence... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_cpp "$LINENO"; then :
1691 ac_header_preproc=yes
1692 else
1693 ac_header_preproc=no
1694 fi
1695 rm -f conftest.err conftest.i conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1697 $as_echo "$ac_header_preproc" >&6; }
1698
1699 # So? What about this header?
1700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1701 yes:no: )
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1703 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 ;;
1707 no:yes:* )
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1709 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1711 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1713 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1715 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1717 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 ;;
1719 esac
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 else
1725 eval "$3=\$ac_header_compiler"
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 fi
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_mongrel
1734
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1739 ac_fn_c_try_run ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=$ac_status
1770 fi
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_run
1776
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 $4
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796 else
1797 eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_header_compile
1807
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_link ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 test -x conftest$ac_exeext
1836 }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_link
1853
1854 # ac_fn_c_check_func LINENO FUNC VAR
1855 # ----------------------------------
1856 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_c_check_func ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1864 else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1870
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below.
1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874 <limits.h> exists even on freestanding compilers. */
1875
1876 #ifdef __STDC__
1877 # include <limits.h>
1878 #else
1879 # include <assert.h>
1880 #endif
1881
1882 #undef $2
1883
1884 /* Override any GCC internal prototype to avoid an error.
1885 Use char because int might match the return type of a GCC
1886 builtin and then its argument prototype would still apply. */
1887 #ifdef __cplusplus
1888 extern "C"
1889 #endif
1890 char $2 ();
1891 /* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894 #if defined __stub_$2 || defined __stub___$2
1895 choke me
1896 #endif
1897
1898 int
1899 main ()
1900 {
1901 return $2 ();
1902 ;
1903 return 0;
1904 }
1905 _ACEOF
1906 if ac_fn_c_try_link "$LINENO"; then :
1907 eval "$3=yes"
1908 else
1909 eval "$3=no"
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext \
1912 conftest$ac_exeext conftest.$ac_ext
1913 fi
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919 } # ac_fn_c_check_func
1920 cat >config.log <<_ACEOF
1921 This file contains any messages produced by compilers while
1922 running configure, to aid debugging if configure makes a mistake.
1923
1924 It was created by $as_me, which was
1925 generated by GNU Autoconf 2.69. Invocation command line was
1926
1927 $ $0 $@
1928
1929 _ACEOF
1930 exec 5>>config.log
1931 {
1932 cat <<_ASUNAME
1933 ## --------- ##
1934 ## Platform. ##
1935 ## --------- ##
1936
1937 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942
1943 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945
1946 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1947 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1948 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1949 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1950 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1951 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1952 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953
1954 _ASUNAME
1955
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 for as_dir in $PATH
1958 do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 $as_echo "PATH: $as_dir"
1962 done
1963 IFS=$as_save_IFS
1964
1965 } >&5
1966
1967 cat >&5 <<_ACEOF
1968
1969
1970 ## ----------- ##
1971 ## Core tests. ##
1972 ## ----------- ##
1973
1974 _ACEOF
1975
1976
1977 # Keep a trace of the command line.
1978 # Strip out --no-create and --no-recursion so they do not pile up.
1979 # Strip out --silent because we don't want to record it for future runs.
1980 # Also quote any args containing shell meta-characters.
1981 # Make two passes to allow for proper duplicate-argument suppression.
1982 ac_configure_args=
1983 ac_configure_args0=
1984 ac_configure_args1=
1985 ac_must_keep_next=false
1986 for ac_pass in 1 2
1987 do
1988 for ac_arg
1989 do
1990 case $ac_arg in
1991 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993 | -silent | --silent | --silen | --sile | --sil)
1994 continue ;;
1995 *\'*)
1996 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 esac
1998 case $ac_pass in
1999 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000 2)
2001 as_fn_append ac_configure_args1 " '$ac_arg'"
2002 if test $ac_must_keep_next = true; then
2003 ac_must_keep_next=false # Got value, back to normal.
2004 else
2005 case $ac_arg in
2006 *=* | --config-cache | -C | -disable-* | --disable-* \
2007 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009 | -with-* | --with-* | -without-* | --without-* | --x)
2010 case "$ac_configure_args0 " in
2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 esac
2013 ;;
2014 -* ) ac_must_keep_next=true ;;
2015 esac
2016 fi
2017 as_fn_append ac_configure_args " '$ac_arg'"
2018 ;;
2019 esac
2020 done
2021 done
2022 { ac_configure_args0=; unset ac_configure_args0;}
2023 { ac_configure_args1=; unset ac_configure_args1;}
2024
2025 # When interrupted or exit'd, cleanup temporary files, and complete
2026 # config.log. We remove comments because anyway the quotes in there
2027 # would cause problems or look ugly.
2028 # WARNING: Use '\'' to represent an apostrophe within the trap.
2029 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2030 trap 'exit_status=$?
2031 # Save into config.log some information that might help in debugging.
2032 {
2033 echo
2034
2035 $as_echo "## ---------------- ##
2036 ## Cache variables. ##
2037 ## ---------------- ##"
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
2040 (
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
2056 (set) 2>&1 |
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
2059 sed -n \
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
2063 *)
2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 ;;
2066 esac |
2067 sort
2068 )
2069 echo
2070
2071 $as_echo "## ----------------- ##
2072 ## Output variables. ##
2073 ## ----------------- ##"
2074 echo
2075 for ac_var in $ac_subst_vars
2076 do
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
2082 done | sort
2083 echo
2084
2085 if test -n "$ac_subst_files"; then
2086 $as_echo "## ------------------- ##
2087 ## File substitutions. ##
2088 ## ------------------- ##"
2089 echo
2090 for ac_var in $ac_subst_files
2091 do
2092 eval ac_val=\$$ac_var
2093 case $ac_val in
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095 esac
2096 $as_echo "$ac_var='\''$ac_val'\''"
2097 done | sort
2098 echo
2099 fi
2100
2101 if test -s confdefs.h; then
2102 $as_echo "## ----------- ##
2103 ## confdefs.h. ##
2104 ## ----------- ##"
2105 echo
2106 cat confdefs.h
2107 echo
2108 fi
2109 test "$ac_signal" != 0 &&
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
2112 } >&5
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2115 exit $exit_status
2116 ' 0
2117 for ac_signal in 1 2 13 15; do
2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2119 done
2120 ac_signal=0
2121
2122 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2123 rm -f -r conftest* confdefs.h
2124
2125 $as_echo "/* confdefs.h */" > confdefs.h
2126
2127 # Predefined preprocessor variables.
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "$PACKAGE_NAME"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_STRING "$PACKAGE_STRING"
2143 _ACEOF
2144
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147 _ACEOF
2148
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_URL "$PACKAGE_URL"
2151 _ACEOF
2152
2153
2154 # Let the site file select an alternate cache file if it wants to.
2155 # Prefer an explicitly selected file to automatically selected ones.
2156 ac_site_file1=NONE
2157 ac_site_file2=NONE
2158 if test -n "$CONFIG_SITE"; then
2159 # We do not want a PATH search for config.site.
2160 case $CONFIG_SITE in #((
2161 -*) ac_site_file1=./$CONFIG_SITE;;
2162 */*) ac_site_file1=$CONFIG_SITE;;
2163 *) ac_site_file1=./$CONFIG_SITE;;
2164 esac
2165 elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168 else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
2171 fi
2172 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173 do
2174 test "x$ac_site_file" = xNONE && continue
2175 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178 sed 's/^/| /' "$ac_site_file" >&5
2179 . "$ac_site_file" \
2180 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182 as_fn_error $? "failed to load site script $ac_site_file
2183 See \`config.log' for more details" "$LINENO" 5; }
2184 fi
2185 done
2186
2187 if test -r "$cache_file"; then
2188 # Some versions of bash will fail to source /dev/null (special files
2189 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2190 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2192 $as_echo "$as_me: loading cache $cache_file" >&6;}
2193 case $cache_file in
2194 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195 *) . "./$cache_file";;
2196 esac
2197 fi
2198 else
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2200 $as_echo "$as_me: creating cache $cache_file" >&6;}
2201 >$cache_file
2202 fi
2203
2204 # Check that the precious variables saved in the cache have kept the same
2205 # value.
2206 ac_cache_corrupted=false
2207 for ac_var in $ac_precious_vars; do
2208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2209 eval ac_new_set=\$ac_env_${ac_var}_set
2210 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2211 eval ac_new_val=\$ac_env_${ac_var}_value
2212 case $ac_old_set,$ac_new_set in
2213 set,)
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2215 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2216 ac_cache_corrupted=: ;;
2217 ,set)
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2221 ,);;
2222 *)
2223 if test "x$ac_old_val" != "x$ac_new_val"; then
2224 # differences in whitespace do not lead to failure.
2225 ac_old_val_w=`echo x $ac_old_val`
2226 ac_new_val_w=`echo x $ac_new_val`
2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2229 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230 ac_cache_corrupted=:
2231 else
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2233 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234 eval $ac_var=\$ac_old_val
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2237 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2239 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2240 fi;;
2241 esac
2242 # Pass precious variables to config.status.
2243 if test "$ac_new_set" = set; then
2244 case $ac_new_val in
2245 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 *) ac_arg=$ac_var=$ac_new_val ;;
2247 esac
2248 case " $ac_configure_args " in
2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2250 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2251 esac
2252 fi
2253 done
2254 if $ac_cache_corrupted; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2258 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2259 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2260 fi
2261 ## -------------------- ##
2262 ## Main body of script. ##
2263 ## -------------------- ##
2264
2265 ac_ext=c
2266 ac_cpp='$CPP $CPPFLAGS'
2267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270
2271
2272
2273
2274
2275
2276
2277 ac_aux_dir=
2278 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2279 if test -f "$ac_dir/install-sh"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/install-sh -c"
2282 break
2283 elif test -f "$ac_dir/install.sh"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/install.sh -c"
2286 break
2287 elif test -f "$ac_dir/shtool"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/shtool install -c"
2290 break
2291 fi
2292 done
2293 if test -z "$ac_aux_dir"; then
2294 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2295 fi
2296
2297 # These three variables are undocumented and unsupported,
2298 # and are intended to be withdrawn in a future Autoconf release.
2299 # They can cause serious problems if a builder's source tree is in a directory
2300 # whose full name contains unusual characters.
2301 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2304
2305
2306 # Make sure we can run config.sub.
2307 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2308 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2309
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2311 $as_echo_n "checking build system type... " >&6; }
2312 if ${ac_cv_build+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 ac_build_alias=$build_alias
2316 test "x$ac_build_alias" = x &&
2317 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2318 test "x$ac_build_alias" = x &&
2319 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2320 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2321 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2322
2323 fi
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2325 $as_echo "$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2327 *-*-*) ;;
2328 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2329 esac
2330 build=$ac_cv_build
2331 ac_save_IFS=$IFS; IFS='-'
2332 set x $ac_cv_build
2333 shift
2334 build_cpu=$1
2335 build_vendor=$2
2336 shift; shift
2337 # Remember, the first character of IFS is used to create $*,
2338 # except with old shells:
2339 build_os=$*
2340 IFS=$ac_save_IFS
2341 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2342
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2345 $as_echo_n "checking host system type... " >&6; }
2346 if ${ac_cv_host+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 if test "x$host_alias" = x; then
2350 ac_cv_host=$ac_cv_build
2351 else
2352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2353 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2354 fi
2355
2356 fi
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2358 $as_echo "$ac_cv_host" >&6; }
2359 case $ac_cv_host in
2360 *-*-*) ;;
2361 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2362 esac
2363 host=$ac_cv_host
2364 ac_save_IFS=$IFS; IFS='-'
2365 set x $ac_cv_host
2366 shift
2367 host_cpu=$1
2368 host_vendor=$2
2369 shift; shift
2370 # Remember, the first character of IFS is used to create $*,
2371 # except with old shells:
2372 host_os=$*
2373 IFS=$ac_save_IFS
2374 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2375
2376
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2378 $as_echo_n "checking target system type... " >&6; }
2379 if ${ac_cv_target+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 if test "x$target_alias" = x; then
2383 ac_cv_target=$ac_cv_host
2384 else
2385 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2387 fi
2388
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2391 $as_echo "$ac_cv_target" >&6; }
2392 case $ac_cv_target in
2393 *-*-*) ;;
2394 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2395 esac
2396 target=$ac_cv_target
2397 ac_save_IFS=$IFS; IFS='-'
2398 set x $ac_cv_target
2399 shift
2400 target_cpu=$1
2401 target_vendor=$2
2402 shift; shift
2403 # Remember, the first character of IFS is used to create $*,
2404 # except with old shells:
2405 target_os=$*
2406 IFS=$ac_save_IFS
2407 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2408
2409
2410 # The aliases save the names the user supplied, while $host etc.
2411 # will get canonicalized.
2412 test -n "$target_alias" &&
2413 test "$program_prefix$program_suffix$program_transform_name" = \
2414 NONENONEs,x,x, &&
2415 program_prefix=${target_alias}-
2416 ac_ext=c
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425 $as_echo_n "checking for $ac_word... " >&6; }
2426 if ${ac_cv_prog_CC+:} false; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447 fi
2448 fi
2449 CC=$ac_cv_prog_CC
2450 if test -n "$CC"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2452 $as_echo "$CC" >&6; }
2453 else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455 $as_echo "no" >&6; }
2456 fi
2457
2458
2459 fi
2460 if test -z "$ac_cv_prog_CC"; then
2461 ac_ct_CC=$CC
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463 set dummy gcc; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468 else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_ac_ct_CC="gcc"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490 if test -n "$ac_ct_CC"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2492 $as_echo "$ac_ct_CC" >&6; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2496 fi
2497
2498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502 yes:)
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2505 ac_tool_warned=yes ;;
2506 esac
2507 CC=$ac_ct_CC
2508 fi
2509 else
2510 CC="$ac_cv_prog_CC"
2511 fi
2512
2513 if test -z "$CC"; then
2514 if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2516 set dummy ${ac_tool_prefix}cc; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if ${ac_cv_prog_CC+:} false; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524 else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526 for as_dir in $PATH
2527 do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532 ac_cv_prog_CC="${ac_tool_prefix}cc"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536 done
2537 done
2538 IFS=$as_save_IFS
2539
2540 fi
2541 fi
2542 CC=$ac_cv_prog_CC
2543 if test -n "$CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545 $as_echo "$CC" >&6; }
2546 else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2549 fi
2550
2551
2552 fi
2553 fi
2554 if test -z "$CC"; then
2555 # Extract the first word of "cc", so it can be a program name with args.
2556 set dummy cc; ac_word=$2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if ${ac_cv_prog_CC+:} false; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2564 else
2565 ac_prog_rejected=no
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2568 do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2574 ac_prog_rejected=yes
2575 continue
2576 fi
2577 ac_cv_prog_CC="cc"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 if test $ac_prog_rejected = yes; then
2586 # We found a bogon in the path, so make sure we never use it.
2587 set dummy $ac_cv_prog_CC
2588 shift
2589 if test $# != 0; then
2590 # We chose a different compiler from the bogus one.
2591 # However, it has the same basename, so the bogon will be chosen
2592 # first if we set CC to just the basename; use the full file name.
2593 shift
2594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2595 fi
2596 fi
2597 fi
2598 fi
2599 CC=$ac_cv_prog_CC
2600 if test -n "$CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602 $as_echo "$CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608
2609 fi
2610 if test -z "$CC"; then
2611 if test -n "$ac_tool_prefix"; then
2612 for ac_prog in cl.exe
2613 do
2614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if ${ac_cv_prog_CC+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 CC=$ac_cv_prog_CC
2642 if test -n "$CC"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644 $as_echo "$CC" >&6; }
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2648 fi
2649
2650
2651 test -n "$CC" && break
2652 done
2653 fi
2654 if test -z "$CC"; then
2655 ac_ct_CC=$CC
2656 for ac_prog in cl.exe
2657 do
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy $ac_prog; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 if test -n "$ac_ct_CC"; then
2666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_CC="$ac_prog"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2686 if test -n "$ac_ct_CC"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2688 $as_echo "$ac_ct_CC" >&6; }
2689 else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 fi
2693
2694
2695 test -n "$ac_ct_CC" && break
2696 done
2697
2698 if test "x$ac_ct_CC" = x; then
2699 CC=""
2700 else
2701 case $cross_compiling:$ac_tool_warned in
2702 yes:)
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned=yes ;;
2706 esac
2707 CC=$ac_ct_CC
2708 fi
2709 fi
2710
2711 fi
2712
2713
2714 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716 as_fn_error $? "no acceptable C compiler found in \$PATH
2717 See \`config.log' for more details" "$LINENO" 5; }
2718
2719 # Provide some information about the compiler.
2720 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2721 set X $ac_compile
2722 ac_compiler=$2
2723 for ac_option in --version -v -V -qversion; do
2724 { { ac_try="$ac_compiler $ac_option >&5"
2725 case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728 esac
2729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730 $as_echo "$ac_try_echo"; } >&5
2731 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2732 ac_status=$?
2733 if test -s conftest.err; then
2734 sed '10a\
2735 ... rest of stderr output deleted ...
2736 10q' conftest.err >conftest.er1
2737 cat conftest.er1 >&5
2738 fi
2739 rm -f conftest.er1 conftest.err
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }
2742 done
2743
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2746
2747 int
2748 main ()
2749 {
2750
2751 ;
2752 return 0;
2753 }
2754 _ACEOF
2755 ac_clean_files_save=$ac_clean_files
2756 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2757 # Try to create an executable without -o first, disregard a.out.
2758 # It will help us diagnose broken compilers, and finding out an intuition
2759 # of exeext.
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2761 $as_echo_n "checking whether the C compiler works... " >&6; }
2762 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2763
2764 # The possible output files:
2765 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2766
2767 ac_rmfiles=
2768 for ac_file in $ac_files
2769 do
2770 case $ac_file in
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 esac
2774 done
2775 rm -f $ac_rmfiles
2776
2777 if { { ac_try="$ac_link_default"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783 $as_echo "$ac_try_echo"; } >&5
2784 (eval "$ac_link_default") 2>&5
2785 ac_status=$?
2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; }; then :
2788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2789 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2790 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2791 # so that the user can short-circuit this test for compilers unknown to
2792 # Autoconf.
2793 for ac_file in $ac_files ''
2794 do
2795 test -f "$ac_file" || continue
2796 case $ac_file in
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2798 ;;
2799 [ab].out )
2800 # We found the default executable, but exeext='' is most
2801 # certainly right.
2802 break;;
2803 *.* )
2804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2805 then :; else
2806 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 fi
2808 # We set ac_cv_exeext here because the later test for it is not
2809 # safe: cross compilers may not add the suffix if given an `-o'
2810 # argument, so we may need to know it at that point already.
2811 # Even if this section looks crufty: it has the advantage of
2812 # actually working.
2813 break;;
2814 * )
2815 break;;
2816 esac
2817 done
2818 test "$ac_cv_exeext" = no && ac_cv_exeext=
2819
2820 else
2821 ac_file=''
2822 fi
2823 if test -z "$ac_file"; then :
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 $as_echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831 as_fn_error 77 "C compiler cannot create executables
2832 See \`config.log' for more details" "$LINENO" 5; }
2833 else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2835 $as_echo "yes" >&6; }
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2838 $as_echo_n "checking for C compiler default output file name... " >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2840 $as_echo "$ac_file" >&6; }
2841 ac_exeext=$ac_cv_exeext
2842
2843 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2844 ac_clean_files=$ac_clean_files_save
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2846 $as_echo_n "checking for suffix of executables... " >&6; }
2847 if { { ac_try="$ac_link"
2848 case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851 esac
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_link") 2>&5
2855 ac_status=$?
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }; then :
2858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2860 # work properly (i.e., refer to `conftest.exe'), while it won't with
2861 # `rm'.
2862 for ac_file in conftest.exe conftest conftest.*; do
2863 test -f "$ac_file" || continue
2864 case $ac_file in
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 break;;
2868 * ) break;;
2869 esac
2870 done
2871 else
2872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details" "$LINENO" 5; }
2876 fi
2877 rm -f conftest conftest$ac_cv_exeext
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2879 $as_echo "$ac_cv_exeext" >&6; }
2880
2881 rm -f conftest.$ac_ext
2882 EXEEXT=$ac_cv_exeext
2883 ac_exeext=$EXEEXT
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2886 #include <stdio.h>
2887 int
2888 main ()
2889 {
2890 FILE *f = fopen ("conftest.out", "w");
2891 return ferror (f) || fclose (f) != 0;
2892
2893 ;
2894 return 0;
2895 }
2896 _ACEOF
2897 ac_clean_files="$ac_clean_files conftest.out"
2898 # Check that the compiler produces executables we can run. If not, either
2899 # the compiler is broken, or we cross compile.
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2901 $as_echo_n "checking whether we are cross compiling... " >&6; }
2902 if test "$cross_compiling" != yes; then
2903 { { ac_try="$ac_link"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2909 $as_echo "$ac_try_echo"; } >&5
2910 (eval "$ac_link") 2>&5
2911 ac_status=$?
2912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913 test $ac_status = 0; }
2914 if { ac_try='./conftest$ac_cv_exeext'
2915 { { case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918 esac
2919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920 $as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_try") 2>&5
2922 ac_status=$?
2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; }; then
2925 cross_compiling=no
2926 else
2927 if test "$cross_compiling" = maybe; then
2928 cross_compiling=yes
2929 else
2930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 as_fn_error $? "cannot run C compiled programs.
2933 If you meant to cross compile, use \`--host'.
2934 See \`config.log' for more details" "$LINENO" 5; }
2935 fi
2936 fi
2937 fi
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2939 $as_echo "$cross_compiling" >&6; }
2940
2941 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2942 ac_clean_files=$ac_clean_files_save
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2944 $as_echo_n "checking for suffix of object files... " >&6; }
2945 if ${ac_cv_objext+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2950
2951 int
2952 main ()
2953 {
2954
2955 ;
2956 return 0;
2957 }
2958 _ACEOF
2959 rm -f conftest.o conftest.obj
2960 if { { ac_try="$ac_compile"
2961 case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967 (eval "$ac_compile") 2>&5
2968 ac_status=$?
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }; then :
2971 for ac_file in conftest.o conftest.obj conftest.*; do
2972 test -f "$ac_file" || continue;
2973 case $ac_file in
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2976 break;;
2977 esac
2978 done
2979 else
2980 $as_echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2982
2983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 as_fn_error $? "cannot compute suffix of object files: cannot compile
2986 See \`config.log' for more details" "$LINENO" 5; }
2987 fi
2988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2989 fi
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2991 $as_echo "$ac_cv_objext" >&6; }
2992 OBJEXT=$ac_cv_objext
2993 ac_objext=$OBJEXT
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2995 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2996 if ${ac_cv_c_compiler_gnu+:} false; then :
2997 $as_echo_n "(cached) " >&6
2998 else
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h. */
3001
3002 int
3003 main ()
3004 {
3005 #ifndef __GNUC__
3006 choke me
3007 #endif
3008
3009 ;
3010 return 0;
3011 }
3012 _ACEOF
3013 if ac_fn_c_try_compile "$LINENO"; then :
3014 ac_compiler_gnu=yes
3015 else
3016 ac_compiler_gnu=no
3017 fi
3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3020
3021 fi
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3023 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3024 if test $ac_compiler_gnu = yes; then
3025 GCC=yes
3026 else
3027 GCC=
3028 fi
3029 ac_test_CFLAGS=${CFLAGS+set}
3030 ac_save_CFLAGS=$CFLAGS
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3032 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3033 if ${ac_cv_prog_cc_g+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 ac_save_c_werror_flag=$ac_c_werror_flag
3037 ac_c_werror_flag=yes
3038 ac_cv_prog_cc_g=no
3039 CFLAGS="-g"
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3042
3043 int
3044 main ()
3045 {
3046
3047 ;
3048 return 0;
3049 }
3050 _ACEOF
3051 if ac_fn_c_try_compile "$LINENO"; then :
3052 ac_cv_prog_cc_g=yes
3053 else
3054 CFLAGS=""
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h. */
3057
3058 int
3059 main ()
3060 {
3061
3062 ;
3063 return 0;
3064 }
3065 _ACEOF
3066 if ac_fn_c_try_compile "$LINENO"; then :
3067
3068 else
3069 ac_c_werror_flag=$ac_save_c_werror_flag
3070 CFLAGS="-g"
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3073
3074 int
3075 main ()
3076 {
3077
3078 ;
3079 return 0;
3080 }
3081 _ACEOF
3082 if ac_fn_c_try_compile "$LINENO"; then :
3083 ac_cv_prog_cc_g=yes
3084 fi
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 fi
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 fi
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_c_werror_flag=$ac_save_c_werror_flag
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3093 $as_echo "$ac_cv_prog_cc_g" >&6; }
3094 if test "$ac_test_CFLAGS" = set; then
3095 CFLAGS=$ac_save_CFLAGS
3096 elif test $ac_cv_prog_cc_g = yes; then
3097 if test "$GCC" = yes; then
3098 CFLAGS="-g -O2"
3099 else
3100 CFLAGS="-g"
3101 fi
3102 else
3103 if test "$GCC" = yes; then
3104 CFLAGS="-O2"
3105 else
3106 CFLAGS=
3107 fi
3108 fi
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3110 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3111 if ${ac_cv_prog_cc_c89+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 ac_cv_prog_cc_c89=no
3115 ac_save_CC=$CC
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3118 #include <stdarg.h>
3119 #include <stdio.h>
3120 struct stat;
3121 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3122 struct buf { int x; };
3123 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3124 static char *e (p, i)
3125 char **p;
3126 int i;
3127 {
3128 return p[i];
3129 }
3130 static char *f (char * (*g) (char **, int), char **p, ...)
3131 {
3132 char *s;
3133 va_list v;
3134 va_start (v,p);
3135 s = g (p, va_arg (v,int));
3136 va_end (v);
3137 return s;
3138 }
3139
3140 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3141 function prototypes and stuff, but not '\xHH' hex character constants.
3142 These don't provoke an error unfortunately, instead are silently treated
3143 as 'x'. The following induces an error, until -std is added to get
3144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3145 array size at least. It's necessary to write '\x00'==0 to get something
3146 that's true only with -std. */
3147 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3148
3149 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3150 inside strings and character constants. */
3151 #define FOO(x) 'x'
3152 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3153
3154 int test (int i, double x);
3155 struct s1 {int (*f) (int a);};
3156 struct s2 {int (*f) (double a);};
3157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3158 int argc;
3159 char **argv;
3160 int
3161 main ()
3162 {
3163 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3170 do
3171 CC="$ac_save_CC $ac_arg"
3172 if ac_fn_c_try_compile "$LINENO"; then :
3173 ac_cv_prog_cc_c89=$ac_arg
3174 fi
3175 rm -f core conftest.err conftest.$ac_objext
3176 test "x$ac_cv_prog_cc_c89" != "xno" && break
3177 done
3178 rm -f conftest.$ac_ext
3179 CC=$ac_save_CC
3180
3181 fi
3182 # AC_CACHE_VAL
3183 case "x$ac_cv_prog_cc_c89" in
3184 x)
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3186 $as_echo "none needed" >&6; } ;;
3187 xno)
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3189 $as_echo "unsupported" >&6; } ;;
3190 *)
3191 CC="$CC $ac_cv_prog_cc_c89"
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3193 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3194 esac
3195 if test "x$ac_cv_prog_cc_c89" != xno; then :
3196
3197 fi
3198
3199 ac_ext=c
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
3205
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3212 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3215 CPP=
3216 fi
3217 if test -z "$CPP"; then
3218 if ${ac_cv_prog_CPP+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220 else
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223 do
3224 ac_preproc_ok=false
3225 for ac_c_preproc_warn_flag in '' yes
3226 do
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3235 #ifdef __STDC__
3236 # include <limits.h>
3237 #else
3238 # include <assert.h>
3239 #endif
3240 Syntax error
3241 _ACEOF
3242 if ac_fn_c_try_cpp "$LINENO"; then :
3243
3244 else
3245 # Broken: fails on valid input.
3246 continue
3247 fi
3248 rm -f conftest.err conftest.i conftest.$ac_ext
3249
3250 # OK, works on sane cases. Now check whether nonexistent headers
3251 # can be detected and how.
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3254 #include <ac_nonexistent.h>
3255 _ACEOF
3256 if ac_fn_c_try_cpp "$LINENO"; then :
3257 # Broken: success on invalid input.
3258 continue
3259 else
3260 # Passes both tests.
3261 ac_preproc_ok=:
3262 break
3263 fi
3264 rm -f conftest.err conftest.i conftest.$ac_ext
3265
3266 done
3267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268 rm -f conftest.i conftest.err conftest.$ac_ext
3269 if $ac_preproc_ok; then :
3270 break
3271 fi
3272
3273 done
3274 ac_cv_prog_CPP=$CPP
3275
3276 fi
3277 CPP=$ac_cv_prog_CPP
3278 else
3279 ac_cv_prog_CPP=$CPP
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3282 $as_echo "$CPP" >&6; }
3283 ac_preproc_ok=false
3284 for ac_c_preproc_warn_flag in '' yes
3285 do
3286 # Use a header file that comes with gcc, so configuring glibc
3287 # with a fresh cross-compiler works.
3288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3289 # <limits.h> exists even on freestanding compilers.
3290 # On the NeXT, cc -E runs the code through the compiler's parser,
3291 # not just through cpp. "Syntax error" is here to catch this case.
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294 #ifdef __STDC__
3295 # include <limits.h>
3296 #else
3297 # include <assert.h>
3298 #endif
3299 Syntax error
3300 _ACEOF
3301 if ac_fn_c_try_cpp "$LINENO"; then :
3302
3303 else
3304 # Broken: fails on valid input.
3305 continue
3306 fi
3307 rm -f conftest.err conftest.i conftest.$ac_ext
3308
3309 # OK, works on sane cases. Now check whether nonexistent headers
3310 # can be detected and how.
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313 #include <ac_nonexistent.h>
3314 _ACEOF
3315 if ac_fn_c_try_cpp "$LINENO"; then :
3316 # Broken: success on invalid input.
3317 continue
3318 else
3319 # Passes both tests.
3320 ac_preproc_ok=:
3321 break
3322 fi
3323 rm -f conftest.err conftest.i conftest.$ac_ext
3324
3325 done
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.i conftest.err conftest.$ac_ext
3328 if $ac_preproc_ok; then :
3329
3330 else
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3334 See \`config.log' for more details" "$LINENO" 5; }
3335 fi
3336
3337 ac_ext=c
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3345 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3346 if ${ac_cv_path_GREP+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if test -z "$GREP"; then
3350 ac_path_GREP_found=false
3351 # Loop through the user's path and test for each of PROGNAME-LIST
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3354 do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_prog in grep ggrep; do
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3360 as_fn_executable_p "$ac_path_GREP" || continue
3361 # Check for GNU ac_path_GREP and select it if it is found.
3362 # Check for GNU $ac_path_GREP
3363 case `"$ac_path_GREP" --version 2>&1` in
3364 *GNU*)
3365 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3366 *)
3367 ac_count=0
3368 $as_echo_n 0123456789 >"conftest.in"
3369 while :
3370 do
3371 cat "conftest.in" "conftest.in" >"conftest.tmp"
3372 mv "conftest.tmp" "conftest.in"
3373 cp "conftest.in" "conftest.nl"
3374 $as_echo 'GREP' >> "conftest.nl"
3375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3377 as_fn_arith $ac_count + 1 && ac_count=$as_val
3378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3379 # Best one so far, save it but keep looking for a better one
3380 ac_cv_path_GREP="$ac_path_GREP"
3381 ac_path_GREP_max=$ac_count
3382 fi
3383 # 10*(2^10) chars as input seems more than enough
3384 test $ac_count -gt 10 && break
3385 done
3386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3387 esac
3388
3389 $ac_path_GREP_found && break 3
3390 done
3391 done
3392 done
3393 IFS=$as_save_IFS
3394 if test -z "$ac_cv_path_GREP"; then
3395 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3396 fi
3397 else
3398 ac_cv_path_GREP=$GREP
3399 fi
3400
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3403 $as_echo "$ac_cv_path_GREP" >&6; }
3404 GREP="$ac_cv_path_GREP"
3405
3406
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3408 $as_echo_n "checking for egrep... " >&6; }
3409 if ${ac_cv_path_EGREP+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3413 then ac_cv_path_EGREP="$GREP -E"
3414 else
3415 if test -z "$EGREP"; then
3416 ac_path_EGREP_found=false
3417 # Loop through the user's path and test for each of PROGNAME-LIST
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3420 do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_prog in egrep; do
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3426 as_fn_executable_p "$ac_path_EGREP" || continue
3427 # Check for GNU ac_path_EGREP and select it if it is found.
3428 # Check for GNU $ac_path_EGREP
3429 case `"$ac_path_EGREP" --version 2>&1` in
3430 *GNU*)
3431 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3432 *)
3433 ac_count=0
3434 $as_echo_n 0123456789 >"conftest.in"
3435 while :
3436 do
3437 cat "conftest.in" "conftest.in" >"conftest.tmp"
3438 mv "conftest.tmp" "conftest.in"
3439 cp "conftest.in" "conftest.nl"
3440 $as_echo 'EGREP' >> "conftest.nl"
3441 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3443 as_fn_arith $ac_count + 1 && ac_count=$as_val
3444 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3445 # Best one so far, save it but keep looking for a better one
3446 ac_cv_path_EGREP="$ac_path_EGREP"
3447 ac_path_EGREP_max=$ac_count
3448 fi
3449 # 10*(2^10) chars as input seems more than enough
3450 test $ac_count -gt 10 && break
3451 done
3452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3453 esac
3454
3455 $ac_path_EGREP_found && break 3
3456 done
3457 done
3458 done
3459 IFS=$as_save_IFS
3460 if test -z "$ac_cv_path_EGREP"; then
3461 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3462 fi
3463 else
3464 ac_cv_path_EGREP=$EGREP
3465 fi
3466
3467 fi
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3470 $as_echo "$ac_cv_path_EGREP" >&6; }
3471 EGREP="$ac_cv_path_EGREP"
3472
3473
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3475 $as_echo_n "checking for ANSI C header files... " >&6; }
3476 if ${ac_cv_header_stdc+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481 #include <stdlib.h>
3482 #include <stdarg.h>
3483 #include <string.h>
3484 #include <float.h>
3485
3486 int
3487 main ()
3488 {
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_header_stdc=yes
3496 else
3497 ac_cv_header_stdc=no
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500
3501 if test $ac_cv_header_stdc = yes; then
3502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505 #include <string.h>
3506
3507 _ACEOF
3508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3509 $EGREP "memchr" >/dev/null 2>&1; then :
3510
3511 else
3512 ac_cv_header_stdc=no
3513 fi
3514 rm -f conftest*
3515
3516 fi
3517
3518 if test $ac_cv_header_stdc = yes; then
3519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3522 #include <stdlib.h>
3523
3524 _ACEOF
3525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3526 $EGREP "free" >/dev/null 2>&1; then :
3527
3528 else
3529 ac_cv_header_stdc=no
3530 fi
3531 rm -f conftest*
3532
3533 fi
3534
3535 if test $ac_cv_header_stdc = yes; then
3536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3537 if test "$cross_compiling" = yes; then :
3538 :
3539 else
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3542 #include <ctype.h>
3543 #include <stdlib.h>
3544 #if ((' ' & 0x0FF) == 0x020)
3545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3547 #else
3548 # define ISLOWER(c) \
3549 (('a' <= (c) && (c) <= 'i') \
3550 || ('j' <= (c) && (c) <= 'r') \
3551 || ('s' <= (c) && (c) <= 'z'))
3552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3553 #endif
3554
3555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3556 int
3557 main ()
3558 {
3559 int i;
3560 for (i = 0; i < 256; i++)
3561 if (XOR (islower (i), ISLOWER (i))
3562 || toupper (i) != TOUPPER (i))
3563 return 2;
3564 return 0;
3565 }
3566 _ACEOF
3567 if ac_fn_c_try_run "$LINENO"; then :
3568
3569 else
3570 ac_cv_header_stdc=no
3571 fi
3572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3573 conftest.$ac_objext conftest.beam conftest.$ac_ext
3574 fi
3575
3576 fi
3577 fi
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3579 $as_echo "$ac_cv_header_stdc" >&6; }
3580 if test $ac_cv_header_stdc = yes; then
3581
3582 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3583
3584 fi
3585
3586 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3587 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3588 inttypes.h stdint.h unistd.h
3589 do :
3590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3591 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3592 "
3593 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3594 cat >>confdefs.h <<_ACEOF
3595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3596 _ACEOF
3597
3598 fi
3599
3600 done
3601
3602
3603
3604 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3605 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3606 MINIX=yes
3607 else
3608 MINIX=
3609 fi
3610
3611
3612 if test "$MINIX" = yes; then
3613
3614 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3615
3616
3617 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3618
3619
3620 $as_echo "#define _MINIX 1" >>confdefs.h
3621
3622 fi
3623
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3626 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3627 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632
3633 # define __EXTENSIONS__ 1
3634 $ac_includes_default
3635 int
3636 main ()
3637 {
3638
3639 ;
3640 return 0;
3641 }
3642 _ACEOF
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_safe_to_define___extensions__=yes
3645 else
3646 ac_cv_safe_to_define___extensions__=no
3647 fi
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3651 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3652 test $ac_cv_safe_to_define___extensions__ = yes &&
3653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3654
3655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3656
3657 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3658
3659 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3660
3661 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3662
3663
3664 test "$program_prefix" != NONE &&
3665 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3666 # Use a double $ so make ignores it.
3667 test "$program_suffix" != NONE &&
3668 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3669 # Double any \ or $.
3670 # By default was `s,x,x', remove it if useless.
3671 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3672 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3673
3674 # Find a good install program. We prefer a C program (faster),
3675 # so one script is as good as another. But avoid the broken or
3676 # incompatible versions:
3677 # SysV /etc/install, /usr/sbin/install
3678 # SunOS /usr/etc/install
3679 # IRIX /sbin/install
3680 # AIX /bin/install
3681 # AmigaOS /C/install, which installs bootblocks on floppy discs
3682 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685 # OS/2's system install, which has a completely different semantic
3686 # ./install, which can be erroneously created by make from ./install.sh.
3687 # Reject install programs that cannot install multiple files.
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3689 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3690 if test -z "$INSTALL"; then
3691 if ${ac_cv_path_install+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 # Account for people who put trailing slashes in PATH elements.
3700 case $as_dir/ in #((
3701 ./ | .// | /[cC]/* | \
3702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3704 /usr/ucb/* ) ;;
3705 *)
3706 # OSF1 and SCO ODT 3.0 have their own names for install.
3707 # Don't use installbsd from OSF since it installs stuff as root
3708 # by default.
3709 for ac_prog in ginstall scoinst install; do
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3712 if test $ac_prog = install &&
3713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714 # AIX install. It has an incompatible calling convention.
3715 :
3716 elif test $ac_prog = install &&
3717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # program-specific install script used by HP pwplus--don't use.
3719 :
3720 else
3721 rm -rf conftest.one conftest.two conftest.dir
3722 echo one > conftest.one
3723 echo two > conftest.two
3724 mkdir conftest.dir
3725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3726 test -s conftest.one && test -s conftest.two &&
3727 test -s conftest.dir/conftest.one &&
3728 test -s conftest.dir/conftest.two
3729 then
3730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3731 break 3
3732 fi
3733 fi
3734 fi
3735 done
3736 done
3737 ;;
3738 esac
3739
3740 done
3741 IFS=$as_save_IFS
3742
3743 rm -rf conftest.one conftest.two conftest.dir
3744
3745 fi
3746 if test "${ac_cv_path_install+set}" = set; then
3747 INSTALL=$ac_cv_path_install
3748 else
3749 # As a last resort, use the slow shell script. Don't cache a
3750 # value for INSTALL within a source directory, because that will
3751 # break other packages using the cache if that directory is
3752 # removed, or if the value is a relative name.
3753 INSTALL=$ac_install_sh
3754 fi
3755 fi
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3757 $as_echo "$INSTALL" >&6; }
3758
3759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3760 # It thinks the first close brace ends the variable substitution.
3761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3762
3763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3764
3765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3766
3767 rm -rf .tst 2>/dev/null
3768 mkdir .tst 2>/dev/null
3769 if test -d .tst; then
3770 am__leading_dot=.
3771 else
3772 am__leading_dot=_
3773 fi
3774 rmdir .tst 2>/dev/null
3775
3776 DEPDIR="${am__leading_dot}deps"
3777
3778 case `pwd` in
3779 *\ * | *\ *)
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3781 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3782 esac
3783
3784
3785
3786 macro_version='2.2.7a'
3787 macro_revision='1.3134'
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801 ltmain="$ac_aux_dir/ltmain.sh"
3802
3803 # Backslashify metacharacters that are still active within
3804 # double-quoted strings.
3805 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3806
3807 # Same as above, but do not quote variable references.
3808 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3809
3810 # Sed substitution to delay expansion of an escaped shell variable in a
3811 # double_quote_subst'ed string.
3812 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3813
3814 # Sed substitution to delay expansion of an escaped single quote.
3815 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3816
3817 # Sed substitution to avoid accidental globbing in evaled expressions
3818 no_glob_subst='s/\*/\\\*/g'
3819
3820 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3821 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3822 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3823
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3825 $as_echo_n "checking how to print strings... " >&6; }
3826 # Test print first, because it will be a builtin if present.
3827 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3828 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3829 ECHO='print -r --'
3830 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3831 ECHO='printf %s\n'
3832 else
3833 # Use this function as a fallback that always works.
3834 func_fallback_echo ()
3835 {
3836 eval 'cat <<_LTECHO_EOF
3837 $1
3838 _LTECHO_EOF'
3839 }
3840 ECHO='func_fallback_echo'
3841 fi
3842
3843 # func_echo_all arg...
3844 # Invoke $ECHO with all args, space-separated.
3845 func_echo_all ()
3846 {
3847 $ECHO ""
3848 }
3849
3850 case "$ECHO" in
3851 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3852 $as_echo "printf" >&6; } ;;
3853 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3854 $as_echo "print -r" >&6; } ;;
3855 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3856 $as_echo "cat" >&6; } ;;
3857 esac
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3873 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3874 if ${ac_cv_path_SED+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3878 for ac_i in 1 2 3 4 5 6 7; do
3879 ac_script="$ac_script$as_nl$ac_script"
3880 done
3881 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3882 { ac_script=; unset ac_script;}
3883 if test -z "$SED"; then
3884 ac_path_SED_found=false
3885 # Loop through the user's path and test for each of PROGNAME-LIST
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in sed gsed; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3894 as_fn_executable_p "$ac_path_SED" || continue
3895 # Check for GNU ac_path_SED and select it if it is found.
3896 # Check for GNU $ac_path_SED
3897 case `"$ac_path_SED" --version 2>&1` in
3898 *GNU*)
3899 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3900 *)
3901 ac_count=0
3902 $as_echo_n 0123456789 >"conftest.in"
3903 while :
3904 do
3905 cat "conftest.in" "conftest.in" >"conftest.tmp"
3906 mv "conftest.tmp" "conftest.in"
3907 cp "conftest.in" "conftest.nl"
3908 $as_echo '' >> "conftest.nl"
3909 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911 as_fn_arith $ac_count + 1 && ac_count=$as_val
3912 if test $ac_count -gt ${ac_path_SED_max-0}; then
3913 # Best one so far, save it but keep looking for a better one
3914 ac_cv_path_SED="$ac_path_SED"
3915 ac_path_SED_max=$ac_count
3916 fi
3917 # 10*(2^10) chars as input seems more than enough
3918 test $ac_count -gt 10 && break
3919 done
3920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921 esac
3922
3923 $ac_path_SED_found && break 3
3924 done
3925 done
3926 done
3927 IFS=$as_save_IFS
3928 if test -z "$ac_cv_path_SED"; then
3929 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3930 fi
3931 else
3932 ac_cv_path_SED=$SED
3933 fi
3934
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3937 $as_echo "$ac_cv_path_SED" >&6; }
3938 SED="$ac_cv_path_SED"
3939 rm -f conftest.sed
3940
3941 test -z "$SED" && SED=sed
3942 Xsed="$SED -e 1s/^X//"
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3955 $as_echo_n "checking for fgrep... " >&6; }
3956 if ${ac_cv_path_FGREP+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3960 then ac_cv_path_FGREP="$GREP -F"
3961 else
3962 if test -z "$FGREP"; then
3963 ac_path_FGREP_found=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967 do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_prog in fgrep; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3973 as_fn_executable_p "$ac_path_FGREP" || continue
3974 # Check for GNU ac_path_FGREP and select it if it is found.
3975 # Check for GNU $ac_path_FGREP
3976 case `"$ac_path_FGREP" --version 2>&1` in
3977 *GNU*)
3978 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3979 *)
3980 ac_count=0
3981 $as_echo_n 0123456789 >"conftest.in"
3982 while :
3983 do
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
3987 $as_echo 'FGREP' >> "conftest.nl"
3988 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990 as_fn_arith $ac_count + 1 && ac_count=$as_val
3991 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_FGREP="$ac_path_FGREP"
3994 ac_path_FGREP_max=$ac_count
3995 fi
3996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3998 done
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000 esac
4001
4002 $ac_path_FGREP_found && break 3
4003 done
4004 done
4005 done
4006 IFS=$as_save_IFS
4007 if test -z "$ac_cv_path_FGREP"; then
4008 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4009 fi
4010 else
4011 ac_cv_path_FGREP=$FGREP
4012 fi
4013
4014 fi
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4017 $as_echo "$ac_cv_path_FGREP" >&6; }
4018 FGREP="$ac_cv_path_FGREP"
4019
4020
4021 test -z "$GREP" && GREP=grep
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041 # Check whether --with-gnu-ld was given.
4042 if test "${with_gnu_ld+set}" = set; then :
4043 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4044 else
4045 with_gnu_ld=no
4046 fi
4047
4048 ac_prog=ld
4049 if test "$GCC" = yes; then
4050 # Check if gcc -print-prog-name=ld gives a path.
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4052 $as_echo_n "checking for ld used by $CC... " >&6; }
4053 case $host in
4054 *-*-mingw*)
4055 # gcc leaves a trailing carriage return which upsets mingw
4056 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4057 *)
4058 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4059 esac
4060 case $ac_prog in
4061 # Accept absolute paths.
4062 [\\/]* | ?:[\\/]*)
4063 re_direlt='/[^/][^/]*/\.\./'
4064 # Canonicalize the pathname of ld
4065 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4066 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4067 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4068 done
4069 test -z "$LD" && LD="$ac_prog"
4070 ;;
4071 "")
4072 # If it fails, then pretend we aren't using GCC.
4073 ac_prog=ld
4074 ;;
4075 *)
4076 # If it is relative, then search for the first ld in PATH.
4077 with_gnu_ld=unknown
4078 ;;
4079 esac
4080 elif test "$with_gnu_ld" = yes; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4082 $as_echo_n "checking for GNU ld... " >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4085 $as_echo_n "checking for non-GNU ld... " >&6; }
4086 fi
4087 if ${lt_cv_path_LD+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -z "$LD"; then
4091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4092 for ac_dir in $PATH; do
4093 IFS="$lt_save_ifs"
4094 test -z "$ac_dir" && ac_dir=.
4095 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4096 lt_cv_path_LD="$ac_dir/$ac_prog"
4097 # Check to see if the program is GNU ld. I'd rather use --version,
4098 # but apparently some variants of GNU ld only accept -v.
4099 # Break only if it was the GNU/non-GNU ld that we prefer.
4100 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4101 *GNU* | *'with BFD'*)
4102 test "$with_gnu_ld" != no && break
4103 ;;
4104 *)
4105 test "$with_gnu_ld" != yes && break
4106 ;;
4107 esac
4108 fi
4109 done
4110 IFS="$lt_save_ifs"
4111 else
4112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4113 fi
4114 fi
4115
4116 LD="$lt_cv_path_LD"
4117 if test -n "$LD"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4119 $as_echo "$LD" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 fi
4124 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4127 if ${lt_cv_prog_gnu_ld+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4131 case `$LD -v 2>&1 </dev/null` in
4132 *GNU* | *'with BFD'*)
4133 lt_cv_prog_gnu_ld=yes
4134 ;;
4135 *)
4136 lt_cv_prog_gnu_ld=no
4137 ;;
4138 esac
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4141 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4142 with_gnu_ld=$lt_cv_prog_gnu_ld
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4153 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4154 if ${lt_cv_path_NM+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if test -n "$NM"; then
4158 # Let the user override the test.
4159 lt_cv_path_NM="$NM"
4160 else
4161 lt_nm_to_check="${ac_tool_prefix}nm"
4162 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4163 lt_nm_to_check="$lt_nm_to_check nm"
4164 fi
4165 for lt_tmp_nm in $lt_nm_to_check; do
4166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4167 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4168 IFS="$lt_save_ifs"
4169 test -z "$ac_dir" && ac_dir=.
4170 tmp_nm="$ac_dir/$lt_tmp_nm"
4171 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4172 # Check to see if the nm accepts a BSD-compat flag.
4173 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4174 # nm: unknown option "B" ignored
4175 # Tru64's nm complains that /dev/null is an invalid object file
4176 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4177 */dev/null* | *'Invalid file or object type'*)
4178 lt_cv_path_NM="$tmp_nm -B"
4179 break
4180 ;;
4181 *)
4182 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4183 */dev/null*)
4184 lt_cv_path_NM="$tmp_nm -p"
4185 break
4186 ;;
4187 *)
4188 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4189 continue # so that we can try to find one that supports BSD flags
4190 ;;
4191 esac
4192 ;;
4193 esac
4194 fi
4195 done
4196 IFS="$lt_save_ifs"
4197 done
4198 : ${lt_cv_path_NM=no}
4199 fi
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4202 $as_echo "$lt_cv_path_NM" >&6; }
4203 if test "$lt_cv_path_NM" != "no"; then
4204 NM="$lt_cv_path_NM"
4205 else
4206 # Didn't find any BSD compatible name lister, look for dumpbin.
4207 if test -n "$DUMPBIN"; then :
4208 # Let the user override the test.
4209 else
4210 if test -n "$ac_tool_prefix"; then
4211 for ac_prog in dumpbin "link -dump"
4212 do
4213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_DUMPBIN+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test -n "$DUMPBIN"; then
4221 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 fi
4239 fi
4240 DUMPBIN=$ac_cv_prog_DUMPBIN
4241 if test -n "$DUMPBIN"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4243 $as_echo "$DUMPBIN" >&6; }
4244 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4247 fi
4248
4249
4250 test -n "$DUMPBIN" && break
4251 done
4252 fi
4253 if test -z "$DUMPBIN"; then
4254 ac_ct_DUMPBIN=$DUMPBIN
4255 for ac_prog in dumpbin "link -dump"
4256 do
4257 # Extract the first word of "$ac_prog", so it can be a program name with args.
4258 set dummy $ac_prog; ac_word=$2
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260 $as_echo_n "checking for $ac_word... " >&6; }
4261 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test -n "$ac_ct_DUMPBIN"; then
4265 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278 done
4279 done
4280 IFS=$as_save_IFS
4281
4282 fi
4283 fi
4284 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4285 if test -n "$ac_ct_DUMPBIN"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4287 $as_echo "$ac_ct_DUMPBIN" >&6; }
4288 else
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4291 fi
4292
4293
4294 test -n "$ac_ct_DUMPBIN" && break
4295 done
4296
4297 if test "x$ac_ct_DUMPBIN" = x; then
4298 DUMPBIN=":"
4299 else
4300 case $cross_compiling:$ac_tool_warned in
4301 yes:)
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304 ac_tool_warned=yes ;;
4305 esac
4306 DUMPBIN=$ac_ct_DUMPBIN
4307 fi
4308 fi
4309
4310 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4311 *COFF*)
4312 DUMPBIN="$DUMPBIN -symbols"
4313 ;;
4314 *)
4315 DUMPBIN=:
4316 ;;
4317 esac
4318 fi
4319
4320 if test "$DUMPBIN" != ":"; then
4321 NM="$DUMPBIN"
4322 fi
4323 fi
4324 test -z "$NM" && NM=nm
4325
4326
4327
4328
4329
4330
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4332 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4333 if ${lt_cv_nm_interface+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 lt_cv_nm_interface="BSD nm"
4337 echo "int some_variable = 0;" > conftest.$ac_ext
4338 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4339 (eval "$ac_compile" 2>conftest.err)
4340 cat conftest.err >&5
4341 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4342 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4343 cat conftest.err >&5
4344 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4345 cat conftest.out >&5
4346 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4347 lt_cv_nm_interface="MS dumpbin"
4348 fi
4349 rm -f conftest*
4350 fi
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4352 $as_echo "$lt_cv_nm_interface" >&6; }
4353
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4355 $as_echo_n "checking whether ln -s works... " >&6; }
4356 LN_S=$as_ln_s
4357 if test "$LN_S" = "ln -s"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359 $as_echo "yes" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4362 $as_echo "no, using $LN_S" >&6; }
4363 fi
4364
4365 # find the maximum length of command line arguments
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4367 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4368 if ${lt_cv_sys_max_cmd_len+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 i=0
4372 teststring="ABCD"
4373
4374 case $build_os in
4375 msdosdjgpp*)
4376 # On DJGPP, this test can blow up pretty badly due to problems in libc
4377 # (any single argument exceeding 2000 bytes causes a buffer overrun
4378 # during glob expansion). Even if it were fixed, the result of this
4379 # check would be larger than it should be.
4380 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4381 ;;
4382
4383 gnu*)
4384 # Under GNU Hurd, this test is not required because there is
4385 # no limit to the length of command line arguments.
4386 # Libtool will interpret -1 as no limit whatsoever
4387 lt_cv_sys_max_cmd_len=-1;
4388 ;;
4389
4390 cygwin* | mingw* | cegcc*)
4391 # On Win9x/ME, this test blows up -- it succeeds, but takes
4392 # about 5 minutes as the teststring grows exponentially.
4393 # Worse, since 9x/ME are not pre-emptively multitasking,
4394 # you end up with a "frozen" computer, even though with patience
4395 # the test eventually succeeds (with a max line length of 256k).
4396 # Instead, let's just punt: use the minimum linelength reported by
4397 # all of the supported platforms: 8192 (on NT/2K/XP).
4398 lt_cv_sys_max_cmd_len=8192;
4399 ;;
4400
4401 mint*)
4402 # On MiNT this can take a long time and run out of memory.
4403 lt_cv_sys_max_cmd_len=8192;
4404 ;;
4405
4406 amigaos*)
4407 # On AmigaOS with pdksh, this test takes hours, literally.
4408 # So we just punt and use a minimum line length of 8192.
4409 lt_cv_sys_max_cmd_len=8192;
4410 ;;
4411
4412 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4413 # This has been around since 386BSD, at least. Likely further.
4414 if test -x /sbin/sysctl; then
4415 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4416 elif test -x /usr/sbin/sysctl; then
4417 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4418 else
4419 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4420 fi
4421 # And add a safety zone
4422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4424 ;;
4425
4426 interix*)
4427 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4428 lt_cv_sys_max_cmd_len=196608
4429 ;;
4430
4431 osf*)
4432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4434 # nice to cause kernel panics so lets avoid the loop below.
4435 # First set a reasonable default.
4436 lt_cv_sys_max_cmd_len=16384
4437 #
4438 if test -x /sbin/sysconfig; then
4439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4440 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4441 esac
4442 fi
4443 ;;
4444 sco3.2v5*)
4445 lt_cv_sys_max_cmd_len=102400
4446 ;;
4447 sysv5* | sco5v6* | sysv4.2uw2*)
4448 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4449 if test -n "$kargmax"; then
4450 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4451 else
4452 lt_cv_sys_max_cmd_len=32768
4453 fi
4454 ;;
4455 *)
4456 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4457 if test -n "$lt_cv_sys_max_cmd_len"; then
4458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4460 else
4461 # Make teststring a little bigger before we do anything with it.
4462 # a 1K string should be a reasonable start.
4463 for i in 1 2 3 4 5 6 7 8 ; do
4464 teststring=$teststring$teststring
4465 done
4466 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4467 # If test is not a shell built-in, we'll probably end up computing a
4468 # maximum length that is only half of the actual maximum length, but
4469 # we can't tell.
4470 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4471 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4472 test $i != 17 # 1/2 MB should be enough
4473 do
4474 i=`expr $i + 1`
4475 teststring=$teststring$teststring
4476 done
4477 # Only check the string length outside the loop.
4478 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4479 teststring=
4480 # Add a significant safety factor because C++ compilers can tack on
4481 # massive amounts of additional arguments before passing them to the
4482 # linker. It appears as though 1/2 is a usable value.
4483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4484 fi
4485 ;;
4486 esac
4487
4488 fi
4489
4490 if test -n $lt_cv_sys_max_cmd_len ; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4492 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4493 else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4495 $as_echo "none" >&6; }
4496 fi
4497 max_cmd_len=$lt_cv_sys_max_cmd_len
4498
4499
4500
4501
4502
4503
4504 : ${CP="cp -f"}
4505 : ${MV="mv -f"}
4506 : ${RM="rm -f"}
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4509 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4510 # Try some XSI features
4511 xsi_shell=no
4512 ( _lt_dummy="a/b/c"
4513 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4514 = c,a/b,, \
4515 && eval 'test $(( 1 + 1 )) -eq 2 \
4516 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4517 && xsi_shell=yes
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4519 $as_echo "$xsi_shell" >&6; }
4520
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4523 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4524 lt_shell_append=no
4525 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4526 >/dev/null 2>&1 \
4527 && lt_shell_append=yes
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4529 $as_echo "$lt_shell_append" >&6; }
4530
4531
4532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4533 lt_unset=unset
4534 else
4535 lt_unset=false
4536 fi
4537
4538
4539
4540
4541
4542 # test EBCDIC or ASCII
4543 case `echo X|tr X '\101'` in
4544 A) # ASCII based system
4545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4546 lt_SP2NL='tr \040 \012'
4547 lt_NL2SP='tr \015\012 \040\040'
4548 ;;
4549 *) # EBCDIC based system
4550 lt_SP2NL='tr \100 \n'
4551 lt_NL2SP='tr \r\n \100\100'
4552 ;;
4553 esac
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4564 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4565 if ${lt_cv_ld_reload_flag+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 lt_cv_ld_reload_flag='-r'
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4571 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4572 reload_flag=$lt_cv_ld_reload_flag
4573 case $reload_flag in
4574 "" | " "*) ;;
4575 *) reload_flag=" $reload_flag" ;;
4576 esac
4577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4578 case $host_os in
4579 darwin*)
4580 if test "$GCC" = yes; then
4581 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4582 else
4583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4584 fi
4585 ;;
4586 esac
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_OBJDUMP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$OBJDUMP"; then
4605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 OBJDUMP=$ac_cv_prog_OBJDUMP
4625 if test -n "$OBJDUMP"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4627 $as_echo "$OBJDUMP" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 fi
4632
4633
4634 fi
4635 if test -z "$ac_cv_prog_OBJDUMP"; then
4636 ac_ct_OBJDUMP=$OBJDUMP
4637 # Extract the first word of "objdump", so it can be a program name with args.
4638 set dummy objdump; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if test -n "$ac_ct_OBJDUMP"; then
4645 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4646 else
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658 done
4659 done
4660 IFS=$as_save_IFS
4661
4662 fi
4663 fi
4664 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4665 if test -n "$ac_ct_OBJDUMP"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4667 $as_echo "$ac_ct_OBJDUMP" >&6; }
4668 else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673 if test "x$ac_ct_OBJDUMP" = x; then
4674 OBJDUMP="false"
4675 else
4676 case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682 OBJDUMP=$ac_ct_OBJDUMP
4683 fi
4684 else
4685 OBJDUMP="$ac_cv_prog_OBJDUMP"
4686 fi
4687
4688 test -z "$OBJDUMP" && OBJDUMP=objdump
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4699 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4700 if ${lt_cv_deplibs_check_method+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 lt_cv_file_magic_cmd='$MAGIC_CMD'
4704 lt_cv_file_magic_test_file=
4705 lt_cv_deplibs_check_method='unknown'
4706 # Need to set the preceding variable on all platforms that support
4707 # interlibrary dependencies.
4708 # 'none' -- dependencies not supported.
4709 # `unknown' -- same as none, but documents that we really don't know.
4710 # 'pass_all' -- all dependencies passed with no checks.
4711 # 'test_compile' -- check by making test program.
4712 # 'file_magic [[regex]]' -- check by looking for files in library path
4713 # which responds to the $file_magic_cmd with a given extended regex.
4714 # If you have `file' or equivalent on your system and you're not sure
4715 # whether `pass_all' will *always* work, you probably want this one.
4716
4717 case $host_os in
4718 aix[4-9]*)
4719 lt_cv_deplibs_check_method=pass_all
4720 ;;
4721
4722 beos*)
4723 lt_cv_deplibs_check_method=pass_all
4724 ;;
4725
4726 bsdi[45]*)
4727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4728 lt_cv_file_magic_cmd='/usr/bin/file -L'
4729 lt_cv_file_magic_test_file=/shlib/libc.so
4730 ;;
4731
4732 cygwin*)
4733 # func_win32_libid is a shell function defined in ltmain.sh
4734 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4735 lt_cv_file_magic_cmd='func_win32_libid'
4736 ;;
4737
4738 mingw* | pw32*)
4739 # Base MSYS/MinGW do not provide the 'file' command needed by
4740 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4741 # unless we find 'file', for example because we are cross-compiling.
4742 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4743 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4745 lt_cv_file_magic_cmd='func_win32_libid'
4746 else
4747 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4748 lt_cv_file_magic_cmd='$OBJDUMP -f'
4749 fi
4750 ;;
4751
4752 cegcc*)
4753 # use the weaker test based on 'objdump'. See mingw*.
4754 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4755 lt_cv_file_magic_cmd='$OBJDUMP -f'
4756 ;;
4757
4758 darwin* | rhapsody*)
4759 lt_cv_deplibs_check_method=pass_all
4760 ;;
4761
4762 freebsd* | dragonfly*)
4763 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4764 case $host_cpu in
4765 i*86 )
4766 # Not sure whether the presence of OpenBSD here was a mistake.
4767 # Let's accept both of them until this is cleared up.
4768 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4769 lt_cv_file_magic_cmd=/usr/bin/file
4770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4771 ;;
4772 esac
4773 else
4774 lt_cv_deplibs_check_method=pass_all
4775 fi
4776 ;;
4777
4778 gnu*)
4779 lt_cv_deplibs_check_method=pass_all
4780 ;;
4781
4782 haiku*)
4783 lt_cv_deplibs_check_method=pass_all
4784 ;;
4785
4786 hpux10.20* | hpux11*)
4787 lt_cv_file_magic_cmd=/usr/bin/file
4788 case $host_cpu in
4789 ia64*)
4790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4791 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4792 ;;
4793 hppa*64*)
4794 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4795 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4796 ;;
4797 *)
4798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4799 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4800 ;;
4801 esac
4802 ;;
4803
4804 interix[3-9]*)
4805 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4807 ;;
4808
4809 irix5* | irix6* | nonstopux*)
4810 case $LD in
4811 *-32|*"-32 ") libmagic=32-bit;;
4812 *-n32|*"-n32 ") libmagic=N32;;
4813 *-64|*"-64 ") libmagic=64-bit;;
4814 *) libmagic=never-match;;
4815 esac
4816 lt_cv_deplibs_check_method=pass_all
4817 ;;
4818
4819 # This must be Linux ELF.
4820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4821 lt_cv_deplibs_check_method=pass_all
4822 ;;
4823
4824 netbsd*)
4825 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4827 else
4828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4829 fi
4830 ;;
4831
4832 newos6*)
4833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4834 lt_cv_file_magic_cmd=/usr/bin/file
4835 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4836 ;;
4837
4838 *nto* | *qnx*)
4839 lt_cv_deplibs_check_method=pass_all
4840 ;;
4841
4842 openbsd*)
4843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4845 else
4846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4847 fi
4848 ;;
4849
4850 osf3* | osf4* | osf5*)
4851 lt_cv_deplibs_check_method=pass_all
4852 ;;
4853
4854 rdos*)
4855 lt_cv_deplibs_check_method=pass_all
4856 ;;
4857
4858 solaris*)
4859 lt_cv_deplibs_check_method=pass_all
4860 ;;
4861
4862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4863 lt_cv_deplibs_check_method=pass_all
4864 ;;
4865
4866 sysv4 | sysv4.3*)
4867 case $host_vendor in
4868 motorola)
4869 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4871 ;;
4872 ncr)
4873 lt_cv_deplibs_check_method=pass_all
4874 ;;
4875 sequent)
4876 lt_cv_file_magic_cmd='/bin/file'
4877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4878 ;;
4879 sni)
4880 lt_cv_file_magic_cmd='/bin/file'
4881 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4882 lt_cv_file_magic_test_file=/lib/libc.so
4883 ;;
4884 siemens)
4885 lt_cv_deplibs_check_method=pass_all
4886 ;;
4887 pc)
4888 lt_cv_deplibs_check_method=pass_all
4889 ;;
4890 esac
4891 ;;
4892
4893 tpf*)
4894 lt_cv_deplibs_check_method=pass_all
4895 ;;
4896 esac
4897
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4900 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4901 file_magic_cmd=$lt_cv_file_magic_cmd
4902 deplibs_check_method=$lt_cv_deplibs_check_method
4903 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916 plugin_option=
4917 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
4918 for plugin in $plugin_names; do
4919 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
4920 if test x$plugin_so = x$plugin; then
4921 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
4922 fi
4923 if test x$plugin_so != x$plugin; then
4924 plugin_option="--plugin $plugin_so"
4925 break
4926 fi
4927 done
4928
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}ar; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if ${ac_cv_prog_AR+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 if test -n "$AR"; then
4938 ac_cv_prog_AR="$AR" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_AR="${ac_tool_prefix}ar"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4950 fi
4951 done
4952 done
4953 IFS=$as_save_IFS
4954
4955 fi
4956 fi
4957 AR=$ac_cv_prog_AR
4958 if test -n "$AR"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4960 $as_echo "$AR" >&6; }
4961 else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4964 fi
4965
4966
4967 fi
4968 if test -z "$ac_cv_prog_AR"; then
4969 ac_ct_AR=$AR
4970 # Extract the first word of "ar", so it can be a program name with args.
4971 set dummy ar; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 if test -n "$ac_ct_AR"; then
4978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_ac_ct_AR="ar"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991 done
4992 done
4993 IFS=$as_save_IFS
4994
4995 fi
4996 fi
4997 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4998 if test -n "$ac_ct_AR"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5000 $as_echo "$ac_ct_AR" >&6; }
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5004 fi
5005
5006 if test "x$ac_ct_AR" = x; then
5007 AR="false"
5008 else
5009 case $cross_compiling:$ac_tool_warned in
5010 yes:)
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013 ac_tool_warned=yes ;;
5014 esac
5015 AR=$ac_ct_AR
5016 fi
5017 else
5018 AR="$ac_cv_prog_AR"
5019 fi
5020
5021 test -z "$AR" && AR=ar
5022 if test -n "$plugin_option"; then
5023 if $AR --help 2>&1 | grep -q "\--plugin"; then
5024 touch conftest.c
5025 $AR $plugin_option rc conftest.a conftest.c
5026 if test "$?" != 0; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5028 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5029 else
5030 AR="$AR $plugin_option"
5031 fi
5032 rm -f conftest.*
5033 fi
5034 fi
5035 test -z "$AR_FLAGS" && AR_FLAGS=cru
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047 if test -n "$ac_tool_prefix"; then
5048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5049 set dummy ${ac_tool_prefix}strip; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_prog_STRIP+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 if test -n "$STRIP"; then
5056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5057 else
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5068 fi
5069 done
5070 done
5071 IFS=$as_save_IFS
5072
5073 fi
5074 fi
5075 STRIP=$ac_cv_prog_STRIP
5076 if test -n "$STRIP"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5078 $as_echo "$STRIP" >&6; }
5079 else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5082 fi
5083
5084
5085 fi
5086 if test -z "$ac_cv_prog_STRIP"; then
5087 ac_ct_STRIP=$STRIP
5088 # Extract the first word of "strip", so it can be a program name with args.
5089 set dummy strip; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5093 $as_echo_n "(cached) " >&6
5094 else
5095 if test -n "$ac_ct_STRIP"; then
5096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_ac_ct_STRIP="strip"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5108 fi
5109 done
5110 done
5111 IFS=$as_save_IFS
5112
5113 fi
5114 fi
5115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5116 if test -n "$ac_ct_STRIP"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5118 $as_echo "$ac_ct_STRIP" >&6; }
5119 else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5122 fi
5123
5124 if test "x$ac_ct_STRIP" = x; then
5125 STRIP=":"
5126 else
5127 case $cross_compiling:$ac_tool_warned in
5128 yes:)
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned=yes ;;
5132 esac
5133 STRIP=$ac_ct_STRIP
5134 fi
5135 else
5136 STRIP="$ac_cv_prog_STRIP"
5137 fi
5138
5139 test -z "$STRIP" && STRIP=:
5140
5141
5142
5143
5144
5145
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_RANLIB+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$RANLIB"; then
5155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168 done
5169 done
5170 IFS=$as_save_IFS
5171
5172 fi
5173 fi
5174 RANLIB=$ac_cv_prog_RANLIB
5175 if test -n "$RANLIB"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5177 $as_echo "$RANLIB" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182
5183
5184 fi
5185 if test -z "$ac_cv_prog_RANLIB"; then
5186 ac_ct_RANLIB=$RANLIB
5187 # Extract the first word of "ranlib", so it can be a program name with args.
5188 set dummy ranlib; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if test -n "$ac_ct_RANLIB"; then
5195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_RANLIB="ranlib"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208 done
5209 done
5210 IFS=$as_save_IFS
5211
5212 fi
5213 fi
5214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5215 if test -n "$ac_ct_RANLIB"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5217 $as_echo "$ac_ct_RANLIB" >&6; }
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223 if test "x$ac_ct_RANLIB" = x; then
5224 RANLIB=":"
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227 yes:)
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5231 esac
5232 RANLIB=$ac_ct_RANLIB
5233 fi
5234 else
5235 RANLIB="$ac_cv_prog_RANLIB"
5236 fi
5237
5238 test -z "$RANLIB" && RANLIB=:
5239 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5240 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5241 RANLIB="$RANLIB $plugin_option"
5242 fi
5243 fi
5244
5245
5246
5247
5248
5249
5250 # Determine commands to create old-style static archives.
5251 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5252 old_postinstall_cmds='chmod 644 $oldlib'
5253 old_postuninstall_cmds=
5254
5255 if test -n "$RANLIB"; then
5256 case $host_os in
5257 openbsd*)
5258 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5259 ;;
5260 *)
5261 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5262 ;;
5263 esac
5264 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5265 fi
5266
5267 case $host_os in
5268 darwin*)
5269 lock_old_archive_extraction=yes ;;
5270 *)
5271 lock_old_archive_extraction=no ;;
5272 esac
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 for ac_prog in gawk mawk nawk awk
5295 do
5296 # Extract the first word of "$ac_prog", so it can be a program name with args.
5297 set dummy $ac_prog; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_AWK+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 if test -n "$AWK"; then
5304 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5305 else
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_AWK="$ac_prog"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317 done
5318 done
5319 IFS=$as_save_IFS
5320
5321 fi
5322 fi
5323 AWK=$ac_cv_prog_AWK
5324 if test -n "$AWK"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5326 $as_echo "$AWK" >&6; }
5327 else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 fi
5331
5332
5333 test -n "$AWK" && break
5334 done
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 # If no C compiler was specified, use CC.
5355 LTCC=${LTCC-"$CC"}
5356
5357 # If no C compiler flags were specified, use CFLAGS.
5358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5359
5360 # Allow CC to be a program name with arguments.
5361 compiler=$CC
5362
5363
5364 # Check for command to grab the raw symbol name followed by C symbol from nm.
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5366 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5367 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370
5371 # These are sane defaults that work on at least a few old systems.
5372 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5373
5374 # Character class describing NM global symbol codes.
5375 symcode='[BCDEGRST]'
5376
5377 # Regexp to match symbols that can be accessed directly from C.
5378 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5379
5380 # Define system-specific variables.
5381 case $host_os in
5382 aix*)
5383 symcode='[BCDT]'
5384 ;;
5385 cygwin* | mingw* | pw32* | cegcc*)
5386 symcode='[ABCDGISTW]'
5387 ;;
5388 hpux*)
5389 if test "$host_cpu" = ia64; then
5390 symcode='[ABCDEGRST]'
5391 fi
5392 ;;
5393 irix* | nonstopux*)
5394 symcode='[BCDEGRST]'
5395 ;;
5396 osf*)
5397 symcode='[BCDEGQRST]'
5398 ;;
5399 solaris*)
5400 symcode='[BDRT]'
5401 ;;
5402 sco3.2v5*)
5403 symcode='[DT]'
5404 ;;
5405 sysv4.2uw2*)
5406 symcode='[DT]'
5407 ;;
5408 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5409 symcode='[ABDT]'
5410 ;;
5411 sysv4)
5412 symcode='[DFNSTU]'
5413 ;;
5414 esac
5415
5416 # If we're using GNU nm, then use its standard symbol codes.
5417 case `$NM -V 2>&1` in
5418 *GNU* | *'with BFD'*)
5419 symcode='[ABCDGIRSTW]' ;;
5420 esac
5421
5422 # Transform an extracted symbol line into a proper C declaration.
5423 # Some systems (esp. on ia64) link data and code symbols differently,
5424 # so use this general approach.
5425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5426
5427 # Transform an extracted symbol line into symbol name and symbol address
5428 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5429 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5430
5431 # Handle CRLF in mingw tool chain
5432 opt_cr=
5433 case $build_os in
5434 mingw*)
5435 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5436 ;;
5437 esac
5438
5439 # Try without a prefix underscore, then with it.
5440 for ac_symprfx in "" "_"; do
5441
5442 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5443 symxfrm="\\1 $ac_symprfx\\2 \\2"
5444
5445 # Write the raw and C identifiers.
5446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5447 # Fake it for dumpbin and say T for any non-static function
5448 # and D for any global variable.
5449 # Also find C++ and __fastcall symbols from MSVC++,
5450 # which start with @ or ?.
5451 lt_cv_sys_global_symbol_pipe="$AWK '"\
5452 " {last_section=section; section=\$ 3};"\
5453 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5454 " \$ 0!~/External *\|/{next};"\
5455 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5456 " {if(hide[section]) next};"\
5457 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5458 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5459 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5460 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5461 " ' prfx=^$ac_symprfx"
5462 else
5463 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5464 fi
5465
5466 # Check to see that the pipe works correctly.
5467 pipe_works=no
5468
5469 rm -f conftest*
5470 cat > conftest.$ac_ext <<_LT_EOF
5471 #ifdef __cplusplus
5472 extern "C" {
5473 #endif
5474 char nm_test_var;
5475 void nm_test_func(void);
5476 void nm_test_func(void){}
5477 #ifdef __cplusplus
5478 }
5479 #endif
5480 int main(){nm_test_var='a';nm_test_func();return(0);}
5481 _LT_EOF
5482
5483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5484 (eval $ac_compile) 2>&5
5485 ac_status=$?
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; }; then
5488 # Now try to grab the symbols.
5489 nlist=conftest.nm
5490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5491 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5492 ac_status=$?
5493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5494 test $ac_status = 0; } && test -s "$nlist"; then
5495 # Try sorting and uniquifying the output.
5496 if sort "$nlist" | uniq > "$nlist"T; then
5497 mv -f "$nlist"T "$nlist"
5498 else
5499 rm -f "$nlist"T
5500 fi
5501
5502 # Make sure that we snagged all the symbols we need.
5503 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5504 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5505 cat <<_LT_EOF > conftest.$ac_ext
5506 #ifdef __cplusplus
5507 extern "C" {
5508 #endif
5509
5510 _LT_EOF
5511 # Now generate the symbol file.
5512 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5513
5514 cat <<_LT_EOF >> conftest.$ac_ext
5515
5516 /* The mapping between symbol names and symbols. */
5517 const struct {
5518 const char *name;
5519 void *address;
5520 }
5521 lt__PROGRAM__LTX_preloaded_symbols[] =
5522 {
5523 { "@PROGRAM@", (void *) 0 },
5524 _LT_EOF
5525 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5526 cat <<\_LT_EOF >> conftest.$ac_ext
5527 {0, (void *) 0}
5528 };
5529
5530 /* This works around a problem in FreeBSD linker */
5531 #ifdef FREEBSD_WORKAROUND
5532 static const void *lt_preloaded_setup() {
5533 return lt__PROGRAM__LTX_preloaded_symbols;
5534 }
5535 #endif
5536
5537 #ifdef __cplusplus
5538 }
5539 #endif
5540 _LT_EOF
5541 # Now try linking the two files.
5542 mv conftest.$ac_objext conftstm.$ac_objext
5543 lt_save_LIBS="$LIBS"
5544 lt_save_CFLAGS="$CFLAGS"
5545 LIBS="conftstm.$ac_objext"
5546 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5548 (eval $ac_link) 2>&5
5549 ac_status=$?
5550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5551 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5552 pipe_works=yes
5553 fi
5554 LIBS="$lt_save_LIBS"
5555 CFLAGS="$lt_save_CFLAGS"
5556 else
5557 echo "cannot find nm_test_func in $nlist" >&5
5558 fi
5559 else
5560 echo "cannot find nm_test_var in $nlist" >&5
5561 fi
5562 else
5563 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5564 fi
5565 else
5566 echo "$progname: failed program was:" >&5
5567 cat conftest.$ac_ext >&5
5568 fi
5569 rm -rf conftest* conftst*
5570
5571 # Do not use the global_symbol_pipe unless it works.
5572 if test "$pipe_works" = yes; then
5573 break
5574 else
5575 lt_cv_sys_global_symbol_pipe=
5576 fi
5577 done
5578
5579 fi
5580
5581 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5582 lt_cv_sys_global_symbol_to_cdecl=
5583 fi
5584 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5586 $as_echo "failed" >&6; }
5587 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5589 $as_echo "ok" >&6; }
5590 fi
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613 # Check whether --enable-libtool-lock was given.
5614 if test "${enable_libtool_lock+set}" = set; then :
5615 enableval=$enable_libtool_lock;
5616 fi
5617
5618 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5619
5620 # Some flags need to be propagated to the compiler or linker for good
5621 # libtool support.
5622 case $host in
5623 ia64-*-hpux*)
5624 # Find out which ABI we are using.
5625 echo 'int i;' > conftest.$ac_ext
5626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5627 (eval $ac_compile) 2>&5
5628 ac_status=$?
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630 test $ac_status = 0; }; then
5631 case `/usr/bin/file conftest.$ac_objext` in
5632 *ELF-32*)
5633 HPUX_IA64_MODE="32"
5634 ;;
5635 *ELF-64*)
5636 HPUX_IA64_MODE="64"
5637 ;;
5638 esac
5639 fi
5640 rm -rf conftest*
5641 ;;
5642 *-*-irix6*)
5643 # Find out which ABI we are using.
5644 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5646 (eval $ac_compile) 2>&5
5647 ac_status=$?
5648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649 test $ac_status = 0; }; then
5650 if test "$lt_cv_prog_gnu_ld" = yes; then
5651 case `/usr/bin/file conftest.$ac_objext` in
5652 *32-bit*)
5653 LD="${LD-ld} -melf32bsmip"
5654 ;;
5655 *N32*)
5656 LD="${LD-ld} -melf32bmipn32"
5657 ;;
5658 *64-bit*)
5659 LD="${LD-ld} -melf64bmip"
5660 ;;
5661 esac
5662 else
5663 case `/usr/bin/file conftest.$ac_objext` in
5664 *32-bit*)
5665 LD="${LD-ld} -32"
5666 ;;
5667 *N32*)
5668 LD="${LD-ld} -n32"
5669 ;;
5670 *64-bit*)
5671 LD="${LD-ld} -64"
5672 ;;
5673 esac
5674 fi
5675 fi
5676 rm -rf conftest*
5677 ;;
5678
5679 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5680 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5681 # Find out which ABI we are using.
5682 echo 'int i;' > conftest.$ac_ext
5683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5684 (eval $ac_compile) 2>&5
5685 ac_status=$?
5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 test $ac_status = 0; }; then
5688 case `/usr/bin/file conftest.o` in
5689 *32-bit*)
5690 case $host in
5691 x86_64-*kfreebsd*-gnu)
5692 LD="${LD-ld} -m elf_i386_fbsd"
5693 ;;
5694 x86_64-*linux*)
5695 case `/usr/bin/file conftest.o` in
5696 *x86-64*)
5697 LD="${LD-ld} -m elf32_x86_64"
5698 ;;
5699 *)
5700 LD="${LD-ld} -m elf_i386"
5701 ;;
5702 esac
5703 ;;
5704 powerpc64le-*linux*)
5705 LD="${LD-ld} -m elf32lppclinux"
5706 ;;
5707 powerpc64-*linux*)
5708 LD="${LD-ld} -m elf32ppclinux"
5709 ;;
5710 s390x-*linux*)
5711 LD="${LD-ld} -m elf_s390"
5712 ;;
5713 sparc64-*linux*)
5714 LD="${LD-ld} -m elf32_sparc"
5715 ;;
5716 esac
5717 ;;
5718 *64-bit*)
5719 case $host in
5720 x86_64-*kfreebsd*-gnu)
5721 LD="${LD-ld} -m elf_x86_64_fbsd"
5722 ;;
5723 x86_64-*linux*)
5724 LD="${LD-ld} -m elf_x86_64"
5725 ;;
5726 powerpcle-*linux*)
5727 LD="${LD-ld} -m elf64lppc"
5728 ;;
5729 powerpc-*linux*)
5730 LD="${LD-ld} -m elf64ppc"
5731 ;;
5732 s390*-*linux*|s390*-*tpf*)
5733 LD="${LD-ld} -m elf64_s390"
5734 ;;
5735 sparc*-*linux*)
5736 LD="${LD-ld} -m elf64_sparc"
5737 ;;
5738 esac
5739 ;;
5740 esac
5741 fi
5742 rm -rf conftest*
5743 ;;
5744
5745 *-*-sco3.2v5*)
5746 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5747 SAVE_CFLAGS="$CFLAGS"
5748 CFLAGS="$CFLAGS -belf"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5750 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5751 if ${lt_cv_cc_needs_belf+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 ac_ext=c
5755 ac_cpp='$CPP $CPPFLAGS'
5756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762
5763 int
5764 main ()
5765 {
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_c_try_link "$LINENO"; then :
5772 lt_cv_cc_needs_belf=yes
5773 else
5774 lt_cv_cc_needs_belf=no
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
5778 ac_ext=c
5779 ac_cpp='$CPP $CPPFLAGS'
5780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5786 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5787 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5788 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5789 CFLAGS="$SAVE_CFLAGS"
5790 fi
5791 ;;
5792 sparc*-*solaris*)
5793 # Find out which ABI we are using.
5794 echo 'int i;' > conftest.$ac_ext
5795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5796 (eval $ac_compile) 2>&5
5797 ac_status=$?
5798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5799 test $ac_status = 0; }; then
5800 case `/usr/bin/file conftest.o` in
5801 *64-bit*)
5802 case $lt_cv_prog_gnu_ld in
5803 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5804 *)
5805 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5806 LD="${LD-ld} -64"
5807 fi
5808 ;;
5809 esac
5810 ;;
5811 esac
5812 fi
5813 rm -rf conftest*
5814 ;;
5815 esac
5816
5817 need_locks="$enable_libtool_lock"
5818
5819
5820 case $host_os in
5821 rhapsody* | darwin*)
5822 if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 if test -n "$DSYMUTIL"; then
5831 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844 done
5845 done
5846 IFS=$as_save_IFS
5847
5848 fi
5849 fi
5850 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5851 if test -n "$DSYMUTIL"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5853 $as_echo "$DSYMUTIL" >&6; }
5854 else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5857 fi
5858
5859
5860 fi
5861 if test -z "$ac_cv_prog_DSYMUTIL"; then
5862 ac_ct_DSYMUTIL=$DSYMUTIL
5863 # Extract the first word of "dsymutil", so it can be a program name with args.
5864 set dummy dsymutil; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 $as_echo_n "checking for $ac_word... " >&6; }
5867 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if test -n "$ac_ct_DSYMUTIL"; then
5871 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888 fi
5889 fi
5890 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5891 if test -n "$ac_ct_DSYMUTIL"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5893 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5894 else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5897 fi
5898
5899 if test "x$ac_ct_DSYMUTIL" = x; then
5900 DSYMUTIL=":"
5901 else
5902 case $cross_compiling:$ac_tool_warned in
5903 yes:)
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906 ac_tool_warned=yes ;;
5907 esac
5908 DSYMUTIL=$ac_ct_DSYMUTIL
5909 fi
5910 else
5911 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5912 fi
5913
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5916 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_NMEDIT+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$NMEDIT"; then
5923 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 NMEDIT=$ac_cv_prog_NMEDIT
5943 if test -n "$NMEDIT"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5945 $as_echo "$NMEDIT" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952 fi
5953 if test -z "$ac_cv_prog_NMEDIT"; then
5954 ac_ct_NMEDIT=$NMEDIT
5955 # Extract the first word of "nmedit", so it can be a program name with args.
5956 set dummy nmedit; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if test -n "$ac_ct_NMEDIT"; then
5963 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5983 if test -n "$ac_ct_NMEDIT"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5985 $as_echo "$ac_ct_NMEDIT" >&6; }
5986 else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991 if test "x$ac_ct_NMEDIT" = x; then
5992 NMEDIT=":"
5993 else
5994 case $cross_compiling:$ac_tool_warned in
5995 yes:)
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5998 ac_tool_warned=yes ;;
5999 esac
6000 NMEDIT=$ac_ct_NMEDIT
6001 fi
6002 else
6003 NMEDIT="$ac_cv_prog_NMEDIT"
6004 fi
6005
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010 $as_echo_n "checking for $ac_word... " >&6; }
6011 if ${ac_cv_prog_LIPO+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 if test -n "$LIPO"; then
6015 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028 done
6029 done
6030 IFS=$as_save_IFS
6031
6032 fi
6033 fi
6034 LIPO=$ac_cv_prog_LIPO
6035 if test -n "$LIPO"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6037 $as_echo "$LIPO" >&6; }
6038 else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040 $as_echo "no" >&6; }
6041 fi
6042
6043
6044 fi
6045 if test -z "$ac_cv_prog_LIPO"; then
6046 ac_ct_LIPO=$LIPO
6047 # Extract the first word of "lipo", so it can be a program name with args.
6048 set dummy lipo; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050 $as_echo_n "checking for $ac_word... " >&6; }
6051 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 if test -n "$ac_ct_LIPO"; then
6055 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_ac_ct_LIPO="lipo"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6075 if test -n "$ac_ct_LIPO"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6077 $as_echo "$ac_ct_LIPO" >&6; }
6078 else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 fi
6082
6083 if test "x$ac_ct_LIPO" = x; then
6084 LIPO=":"
6085 else
6086 case $cross_compiling:$ac_tool_warned in
6087 yes:)
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6090 ac_tool_warned=yes ;;
6091 esac
6092 LIPO=$ac_ct_LIPO
6093 fi
6094 else
6095 LIPO="$ac_cv_prog_LIPO"
6096 fi
6097
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}otool; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102 $as_echo_n "checking for $ac_word... " >&6; }
6103 if ${ac_cv_prog_OTOOL+:} false; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -n "$OTOOL"; then
6107 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 OTOOL=$ac_cv_prog_OTOOL
6127 if test -n "$OTOOL"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6129 $as_echo "$OTOOL" >&6; }
6130 else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135
6136 fi
6137 if test -z "$ac_cv_prog_OTOOL"; then
6138 ac_ct_OTOOL=$OTOOL
6139 # Extract the first word of "otool", so it can be a program name with args.
6140 set dummy otool; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -n "$ac_ct_OTOOL"; then
6147 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6156 ac_cv_prog_ac_ct_OTOOL="otool"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6167 if test -n "$ac_ct_OTOOL"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6169 $as_echo "$ac_ct_OTOOL" >&6; }
6170 else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175 if test "x$ac_ct_OTOOL" = x; then
6176 OTOOL=":"
6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179 yes:)
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182 ac_tool_warned=yes ;;
6183 esac
6184 OTOOL=$ac_ct_OTOOL
6185 fi
6186 else
6187 OTOOL="$ac_cv_prog_OTOOL"
6188 fi
6189
6190 if test -n "$ac_tool_prefix"; then
6191 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6192 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if ${ac_cv_prog_OTOOL64+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 if test -n "$OTOOL64"; then
6199 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 OTOOL64=$ac_cv_prog_OTOOL64
6219 if test -n "$OTOOL64"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6221 $as_echo "$OTOOL64" >&6; }
6222 else
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227
6228 fi
6229 if test -z "$ac_cv_prog_OTOOL64"; then
6230 ac_ct_OTOOL64=$OTOOL64
6231 # Extract the first word of "otool64", so it can be a program name with args.
6232 set dummy otool64; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$ac_ct_OTOOL64"; then
6239 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_ac_ct_OTOOL64="otool64"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6259 if test -n "$ac_ct_OTOOL64"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6261 $as_echo "$ac_ct_OTOOL64" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267 if test "x$ac_ct_OTOOL64" = x; then
6268 OTOOL64=":"
6269 else
6270 case $cross_compiling:$ac_tool_warned in
6271 yes:)
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274 ac_tool_warned=yes ;;
6275 esac
6276 OTOOL64=$ac_ct_OTOOL64
6277 fi
6278 else
6279 OTOOL64="$ac_cv_prog_OTOOL64"
6280 fi
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6309 $as_echo_n "checking for -single_module linker flag... " >&6; }
6310 if ${lt_cv_apple_cc_single_mod+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 lt_cv_apple_cc_single_mod=no
6314 if test -z "${LT_MULTI_MODULE}"; then
6315 # By default we will add the -single_module flag. You can override
6316 # by either setting the environment variable LT_MULTI_MODULE
6317 # non-empty at configure time, or by adding -multi_module to the
6318 # link flags.
6319 rm -rf libconftest.dylib*
6320 echo "int foo(void){return 1;}" > conftest.c
6321 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6322 -dynamiclib -Wl,-single_module conftest.c" >&5
6323 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6324 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6325 _lt_result=$?
6326 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6327 lt_cv_apple_cc_single_mod=yes
6328 else
6329 cat conftest.err >&5
6330 fi
6331 rm -rf libconftest.dylib*
6332 rm -f conftest.*
6333 fi
6334 fi
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6336 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6338 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6339 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 lt_cv_ld_exported_symbols_list=no
6343 save_LDFLAGS=$LDFLAGS
6344 echo "_main" > conftest.sym
6345 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6348
6349 int
6350 main ()
6351 {
6352
6353 ;
6354 return 0;
6355 }
6356 _ACEOF
6357 if ac_fn_c_try_link "$LINENO"; then :
6358 lt_cv_ld_exported_symbols_list=yes
6359 else
6360 lt_cv_ld_exported_symbols_list=no
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6364 LDFLAGS="$save_LDFLAGS"
6365
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6368 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6370 $as_echo_n "checking for -force_load linker flag... " >&6; }
6371 if ${lt_cv_ld_force_load+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 lt_cv_ld_force_load=no
6375 cat > conftest.c << _LT_EOF
6376 int forced_loaded() { return 2;}
6377 _LT_EOF
6378 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6379 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6380 echo "$AR cru libconftest.a conftest.o" >&5
6381 $AR cru libconftest.a conftest.o 2>&5
6382 cat > conftest.c << _LT_EOF
6383 int main() { return 0;}
6384 _LT_EOF
6385 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6386 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6387 _lt_result=$?
6388 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6389 lt_cv_ld_force_load=yes
6390 else
6391 cat conftest.err >&5
6392 fi
6393 rm -f conftest.err libconftest.a conftest conftest.c
6394 rm -rf conftest.dSYM
6395
6396 fi
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6398 $as_echo "$lt_cv_ld_force_load" >&6; }
6399 case $host_os in
6400 rhapsody* | darwin1.[012])
6401 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6402 darwin1.*)
6403 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6404 darwin*) # darwin 5.x on
6405 # if running on 10.5 or later, the deployment target defaults
6406 # to the OS version, if on x86, and 10.4, the deployment
6407 # target defaults to 10.4. Don't you love it?
6408 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6409 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6410 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6411 10.[012][,.]*)
6412 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6413 10.*)
6414 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6415 esac
6416 ;;
6417 esac
6418 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6419 _lt_dar_single_mod='$single_module'
6420 fi
6421 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6422 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6423 else
6424 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6425 fi
6426 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6427 _lt_dsymutil='~$DSYMUTIL $lib || :'
6428 else
6429 _lt_dsymutil=
6430 fi
6431 ;;
6432 esac
6433
6434 for ac_header in dlfcn.h
6435 do :
6436 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6437 "
6438 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6439 cat >>confdefs.h <<_ACEOF
6440 #define HAVE_DLFCN_H 1
6441 _ACEOF
6442
6443 fi
6444
6445 done
6446
6447
6448
6449
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6452 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6453 if ${ac_cv_c_bigendian+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 ac_cv_c_bigendian=unknown
6457 # See if we're dealing with a universal compiler.
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #ifndef __APPLE_CC__
6461 not a universal capable compiler
6462 #endif
6463 typedef int dummy;
6464
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"; then :
6467
6468 # Check for potential -arch flags. It is not universal unless
6469 # there are at least two -arch flags with different values.
6470 ac_arch=
6471 ac_prev=
6472 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6473 if test -n "$ac_prev"; then
6474 case $ac_word in
6475 i?86 | x86_64 | ppc | ppc64)
6476 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6477 ac_arch=$ac_word
6478 else
6479 ac_cv_c_bigendian=universal
6480 break
6481 fi
6482 ;;
6483 esac
6484 ac_prev=
6485 elif test "x$ac_word" = "x-arch"; then
6486 ac_prev=arch
6487 fi
6488 done
6489 fi
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 if test $ac_cv_c_bigendian = unknown; then
6492 # See if sys/param.h defines the BYTE_ORDER macro.
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495 #include <sys/types.h>
6496 #include <sys/param.h>
6497
6498 int
6499 main ()
6500 {
6501 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6502 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6503 && LITTLE_ENDIAN)
6504 bogus endian macros
6505 #endif
6506
6507 ;
6508 return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512 # It does; now see whether it defined to BIG_ENDIAN or not.
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 #include <sys/types.h>
6516 #include <sys/param.h>
6517
6518 int
6519 main ()
6520 {
6521 #if BYTE_ORDER != BIG_ENDIAN
6522 not big endian
6523 #endif
6524
6525 ;
6526 return 0;
6527 }
6528 _ACEOF
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 ac_cv_c_bigendian=yes
6531 else
6532 ac_cv_c_bigendian=no
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 fi
6538 if test $ac_cv_c_bigendian = unknown; then
6539 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6542 #include <limits.h>
6543
6544 int
6545 main ()
6546 {
6547 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6548 bogus endian macros
6549 #endif
6550
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 # It does; now see whether it defined to _BIG_ENDIAN or not.
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 #include <limits.h>
6560
6561 int
6562 main ()
6563 {
6564 #ifndef _BIG_ENDIAN
6565 not big endian
6566 #endif
6567
6568 ;
6569 return 0;
6570 }
6571 _ACEOF
6572 if ac_fn_c_try_compile "$LINENO"; then :
6573 ac_cv_c_bigendian=yes
6574 else
6575 ac_cv_c_bigendian=no
6576 fi
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 fi
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 fi
6581 if test $ac_cv_c_bigendian = unknown; then
6582 # Compile a test program.
6583 if test "$cross_compiling" = yes; then :
6584 # Try to guess by grepping values from an object file.
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587 short int ascii_mm[] =
6588 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6589 short int ascii_ii[] =
6590 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6591 int use_ascii (int i) {
6592 return ascii_mm[i] + ascii_ii[i];
6593 }
6594 short int ebcdic_ii[] =
6595 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6596 short int ebcdic_mm[] =
6597 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6598 int use_ebcdic (int i) {
6599 return ebcdic_mm[i] + ebcdic_ii[i];
6600 }
6601 extern int foo;
6602
6603 int
6604 main ()
6605 {
6606 return use_ascii (foo) == use_ebcdic (foo);
6607 ;
6608 return 0;
6609 }
6610 _ACEOF
6611 if ac_fn_c_try_compile "$LINENO"; then :
6612 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6613 ac_cv_c_bigendian=yes
6614 fi
6615 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6616 if test "$ac_cv_c_bigendian" = unknown; then
6617 ac_cv_c_bigendian=no
6618 else
6619 # finding both strings is unlikely to happen, but who knows?
6620 ac_cv_c_bigendian=unknown
6621 fi
6622 fi
6623 fi
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 else
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 $ac_includes_default
6629 int
6630 main ()
6631 {
6632
6633 /* Are we little or big endian? From Harbison&Steele. */
6634 union
6635 {
6636 long int l;
6637 char c[sizeof (long int)];
6638 } u;
6639 u.l = 1;
6640 return u.c[sizeof (long int) - 1] == 1;
6641
6642 ;
6643 return 0;
6644 }
6645 _ACEOF
6646 if ac_fn_c_try_run "$LINENO"; then :
6647 ac_cv_c_bigendian=no
6648 else
6649 ac_cv_c_bigendian=yes
6650 fi
6651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6652 conftest.$ac_objext conftest.beam conftest.$ac_ext
6653 fi
6654
6655 fi
6656 fi
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6658 $as_echo "$ac_cv_c_bigendian" >&6; }
6659 case $ac_cv_c_bigendian in #(
6660 yes)
6661 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6662 ;; #(
6663 no)
6664 ;; #(
6665 universal)
6666
6667 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6668
6669 ;; #(
6670 *)
6671 as_fn_error $? "unknown endianness
6672 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6673 esac
6674
6675
6676
6677
6678 if test "x$cross_compiling" = "xno"; then
6679 : "${AR_FOR_BUILD:=\$(AR)}"
6680 : "${CC_FOR_BUILD:=\$(CC)}"
6681 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
6682 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
6683 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
6684 else
6685 : "${AR_FOR_BUILD:=ar}"
6686 : "${CC_FOR_BUILD:=gcc}"
6687 : "${RANLIB_FOR_BUILD:=ranlib}"
6688 : "${CFLAGS_FOR_BUILD:=-g -O}"
6689 : "${LDLFAGS_FOR_BUILD:=}"
6690 fi
6691
6692
6693
6694
6695
6696
6697
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}ar; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_AR+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 if test -n "$AR"; then
6707 ac_cv_prog_AR="$AR" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_AR="${ac_tool_prefix}ar"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 AR=$ac_cv_prog_AR
6727 if test -n "$AR"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6729 $as_echo "$AR" >&6; }
6730 else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735
6736 fi
6737 if test -z "$ac_cv_prog_AR"; then
6738 ac_ct_AR=$AR
6739 # Extract the first word of "ar", so it can be a program name with args.
6740 set dummy ar; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$ac_ct_AR"; then
6747 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_AR="ar"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6767 if test -n "$ac_ct_AR"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6769 $as_echo "$ac_ct_AR" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775 if test "x$ac_ct_AR" = x; then
6776 AR=""
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784 AR=$ac_ct_AR
6785 fi
6786 else
6787 AR="$ac_cv_prog_AR"
6788 fi
6789
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_RANLIB+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$RANLIB"; then
6799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 RANLIB=$ac_cv_prog_RANLIB
6819 if test -n "$RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821 $as_echo "$RANLIB" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827
6828 fi
6829 if test -z "$ac_cv_prog_RANLIB"; then
6830 ac_ct_RANLIB=$RANLIB
6831 # Extract the first word of "ranlib", so it can be a program name with args.
6832 set dummy ranlib; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_RANLIB"; then
6839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_RANLIB="ranlib"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859 if test -n "$ac_ct_RANLIB"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6861 $as_echo "$ac_ct_RANLIB" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867 if test "x$ac_ct_RANLIB" = x; then
6868 RANLIB=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 RANLIB=$ac_ct_RANLIB
6877 fi
6878 else
6879 RANLIB="$ac_cv_prog_RANLIB"
6880 fi
6881
6882
6883 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
6884 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
6885 # is C99. So handle it ourselves.
6886 :
6887 C_DIALECT=
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
6889 $as_echo_n "checking whether C11 is supported by default... " >&6; }
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892
6893 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6894 # error "C11 support not found"
6895 #endif
6896
6897 _ACEOF
6898 if ac_fn_c_try_compile "$LINENO"; then :
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900 $as_echo "yes" >&6; }
6901 else
6902
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
6906 $as_echo_n "checking for -std=c11 support... " >&6; }
6907 ac_save_CC="$CC"
6908 CC="$CC -std=c11"
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911
6912 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6913 # error "C11 support not found"
6914 #endif
6915
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6920 $as_echo "yes" >&6; }
6921 CC="$ac_save_CC"
6922 C_DIALECT="-std=c11"
6923
6924 else
6925 as_fn_error $? "C11 is required" "$LINENO" 5
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930
6931
6932 ac_config_headers="$ac_config_headers config.h:config.in"
6933
6934
6935 # Some of the common include files depend on bfd.h, and bfd.h checks
6936 # that config.h is included first by testing that the PACKAGE macro
6937 # is defined.
6938 PACKAGE=sim
6939
6940 cat >>confdefs.h <<_ACEOF
6941 #define PACKAGE "$PACKAGE"
6942 _ACEOF
6943
6944
6945
6946 # Dependency checking.
6947 ac_config_commands="$ac_config_commands depdir"
6948
6949
6950 depcc="$CC" am_compiler_list=
6951
6952 am_depcomp=$ac_aux_dir/depcomp
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6954 $as_echo_n "checking dependency style of $depcc... " >&6; }
6955 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 if test -f "$am_depcomp"; then
6959 # We make a subdir and do the tests there. Otherwise we can end up
6960 # making bogus files that we don't know about and never remove. For
6961 # instance it was reported that on HP-UX the gcc test will end up
6962 # making a dummy file named `D' -- because `-MD' means `put the output
6963 # in D'.
6964 mkdir conftest.dir
6965 # Copy depcomp to subdir because otherwise we won't find it if we're
6966 # using a relative directory.
6967 cp "$am_depcomp" conftest.dir
6968 cd conftest.dir
6969 # We will build objects and dependencies in a subdirectory because
6970 # it helps to detect inapplicable dependency modes. For instance
6971 # both Tru64's cc and ICC support -MD to output dependencies as a
6972 # side effect of compilation, but ICC will put the dependencies in
6973 # the current directory while Tru64 will put them in the object
6974 # directory.
6975 mkdir sub
6976
6977 am_cv_CC_dependencies_compiler_type=none
6978 if test "$am_compiler_list" = ""; then
6979 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6980 fi
6981 for depmode in $am_compiler_list; do
6982 if test $depmode = none; then break; fi
6983
6984 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6985 # Setup a source with many dependencies, because some compilers
6986 # like to wrap large dependency lists on column 80 (with \), and
6987 # we should not choose a depcomp mode which is confused by this.
6988 #
6989 # We need to recreate these files for each test, as the compiler may
6990 # overwrite some of them when testing with obscure command lines.
6991 # This happens at least with the AIX C compiler.
6992 : > sub/conftest.c
6993 for i in 1 2 3 4 5 6; do
6994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6996 # Solaris 8's {/usr,}/bin/sh.
6997 touch sub/conftst$i.h
6998 done
6999 echo "include sub/conftest.Po" > confmf
7000
7001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7002 # mode. It turns out that the SunPro C++ compiler does not properly
7003 # handle `-M -o', and we need to detect this.
7004 depcmd="depmode=$depmode \
7005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
7008 echo "| $depcmd" | sed -e 's/ */ /g' >&5
7009 if env $depcmd > conftest.err 2>&1 &&
7010 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
7011 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
7012 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
7013 # icc doesn't choke on unknown options, it will just issue warnings
7014 # or remarks (even with -Werror). So we grep stderr for any message
7015 # that says an option was ignored or not supported.
7016 # When given -MP, icc 7.0 and 7.1 complain thusly:
7017 # icc: Command line warning: ignoring option '-M'; no argument required
7018 # The diagnosis changed in icc 8.0:
7019 # icc: Command line remark: option '-MP' not supported
7020 if (grep 'ignoring option' conftest.err ||
7021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7022 am_cv_CC_dependencies_compiler_type=$depmode
7023 $as_echo "$as_me:$LINENO: success" >&5
7024 break
7025 fi
7026 fi
7027 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
7028 sed -e 's/^/| /' < conftest.err >&5
7029 done
7030
7031 cd ..
7032 rm -rf conftest.dir
7033 else
7034 am_cv_CC_dependencies_compiler_type=none
7035 fi
7036
7037 fi
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7039 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7040 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
7041 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
7042 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7043
7044 fi
7045
7046
7047 ALL_LINGUAS=
7048 # If we haven't got the data from the intl directory,
7049 # assume NLS is disabled.
7050 USE_NLS=no
7051 LIBINTL=
7052 LIBINTL_DEP=
7053 INCINTL=
7054 XGETTEXT=
7055 GMSGFMT=
7056 POSUB=
7057
7058 if test -f ../../intl/config.intl; then
7059 . ../../intl/config.intl
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7062 $as_echo_n "checking whether NLS is requested... " >&6; }
7063 if test x"$USE_NLS" != xyes; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7068 $as_echo "yes" >&6; }
7069
7070 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7071
7072
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7074 $as_echo_n "checking for catalogs to be installed... " >&6; }
7075 # Look for .po and .gmo files in the source directory.
7076 CATALOGS=
7077 XLINGUAS=
7078 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7079 # If there aren't any .gmo files the shell will give us the
7080 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7081 # weeded out.
7082 case "$cat" in *\**)
7083 continue;;
7084 esac
7085 # The quadruple backslash is collapsed to a double backslash
7086 # by the backticks, then collapsed again by the double quotes,
7087 # leaving us with one backslash in the sed expression (right
7088 # before the dot that mustn't act as a wildcard).
7089 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7090 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7091 # The user is allowed to set LINGUAS to a list of languages to
7092 # install catalogs for. If it's empty that means "all of them."
7093 if test "x$LINGUAS" = x; then
7094 CATALOGS="$CATALOGS $cat"
7095 XLINGUAS="$XLINGUAS $lang"
7096 else
7097 case "$LINGUAS" in *$lang*)
7098 CATALOGS="$CATALOGS $cat"
7099 XLINGUAS="$XLINGUAS $lang"
7100 ;;
7101 esac
7102 fi
7103 done
7104 LINGUAS="$XLINGUAS"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7106 $as_echo "$LINGUAS" >&6; }
7107
7108
7109 DATADIRNAME=share
7110
7111 INSTOBJEXT=.mo
7112
7113 GENCAT=gencat
7114
7115 CATOBJEXT=.gmo
7116
7117 fi
7118
7119 # Check for socket libraries
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7121 $as_echo_n "checking for bind in -lsocket... " >&6; }
7122 if ${ac_cv_lib_socket_bind+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 ac_check_lib_save_LIBS=$LIBS
7126 LIBS="-lsocket $LIBS"
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7129
7130 /* Override any GCC internal prototype to avoid an error.
7131 Use char because int might match the return type of a GCC
7132 builtin and then its argument prototype would still apply. */
7133 #ifdef __cplusplus
7134 extern "C"
7135 #endif
7136 char bind ();
7137 int
7138 main ()
7139 {
7140 return bind ();
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 if ac_fn_c_try_link "$LINENO"; then :
7146 ac_cv_lib_socket_bind=yes
7147 else
7148 ac_cv_lib_socket_bind=no
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext
7152 LIBS=$ac_check_lib_save_LIBS
7153 fi
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7155 $as_echo "$ac_cv_lib_socket_bind" >&6; }
7156 if test "x$ac_cv_lib_socket_bind" = xyes; then :
7157 cat >>confdefs.h <<_ACEOF
7158 #define HAVE_LIBSOCKET 1
7159 _ACEOF
7160
7161 LIBS="-lsocket $LIBS"
7162
7163 fi
7164
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7166 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7167 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 ac_check_lib_save_LIBS=$LIBS
7171 LIBS="-lnsl $LIBS"
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7174
7175 /* Override any GCC internal prototype to avoid an error.
7176 Use char because int might match the return type of a GCC
7177 builtin and then its argument prototype would still apply. */
7178 #ifdef __cplusplus
7179 extern "C"
7180 #endif
7181 char gethostbyname ();
7182 int
7183 main ()
7184 {
7185 return gethostbyname ();
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 if ac_fn_c_try_link "$LINENO"; then :
7191 ac_cv_lib_nsl_gethostbyname=yes
7192 else
7193 ac_cv_lib_nsl_gethostbyname=no
7194 fi
7195 rm -f core conftest.err conftest.$ac_objext \
7196 conftest$ac_exeext conftest.$ac_ext
7197 LIBS=$ac_check_lib_save_LIBS
7198 fi
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7200 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7201 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7202 cat >>confdefs.h <<_ACEOF
7203 #define HAVE_LIBNSL 1
7204 _ACEOF
7205
7206 LIBS="-lnsl $LIBS"
7207
7208 fi
7209
7210
7211 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
7212 # using the same condition.
7213
7214 # Use the system's zlib library.
7215 zlibdir="-L\$(top_builddir)/../zlib"
7216 zlibinc="-I\$(top_srcdir)/../zlib"
7217
7218 # Check whether --with-system-zlib was given.
7219 if test "${with_system_zlib+set}" = set; then :
7220 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7221 zlibdir=
7222 zlibinc=
7223 fi
7224
7225 fi
7226
7227
7228
7229
7230
7231 # BFD uses libdl when when plugins enabled.
7232
7233 maybe_plugins=no
7234 for ac_header in dlfcn.h
7235 do :
7236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7237 "
7238 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7239 cat >>confdefs.h <<_ACEOF
7240 #define HAVE_DLFCN_H 1
7241 _ACEOF
7242 maybe_plugins=yes
7243 fi
7244
7245 done
7246
7247 for ac_header in windows.h
7248 do :
7249 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7250 "
7251 if test "x$ac_cv_header_windows_h" = xyes; then :
7252 cat >>confdefs.h <<_ACEOF
7253 #define HAVE_WINDOWS_H 1
7254 _ACEOF
7255 maybe_plugins=yes
7256 fi
7257
7258 done
7259
7260
7261 # Check whether --enable-plugins was given.
7262 if test "${enable_plugins+set}" = set; then :
7263 enableval=$enable_plugins; case "${enableval}" in
7264 no) plugins=no ;;
7265 *) plugins=yes
7266 if test "$maybe_plugins" != "yes" ; then
7267 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
7268 fi ;;
7269 esac
7270 else
7271 plugins=$maybe_plugins
7272
7273 fi
7274
7275 if test "$plugins" = "yes"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7277 $as_echo_n "checking for library containing dlsym... " >&6; }
7278 if ${ac_cv_search_dlsym+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 ac_func_search_save_LIBS=$LIBS
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284
7285 /* Override any GCC internal prototype to avoid an error.
7286 Use char because int might match the return type of a GCC
7287 builtin and then its argument prototype would still apply. */
7288 #ifdef __cplusplus
7289 extern "C"
7290 #endif
7291 char dlsym ();
7292 int
7293 main ()
7294 {
7295 return dlsym ();
7296 ;
7297 return 0;
7298 }
7299 _ACEOF
7300 for ac_lib in '' dl; do
7301 if test -z "$ac_lib"; then
7302 ac_res="none required"
7303 else
7304 ac_res=-l$ac_lib
7305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7306 fi
7307 if ac_fn_c_try_link "$LINENO"; then :
7308 ac_cv_search_dlsym=$ac_res
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext
7312 if ${ac_cv_search_dlsym+:} false; then :
7313 break
7314 fi
7315 done
7316 if ${ac_cv_search_dlsym+:} false; then :
7317
7318 else
7319 ac_cv_search_dlsym=no
7320 fi
7321 rm conftest.$ac_ext
7322 LIBS=$ac_func_search_save_LIBS
7323 fi
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7325 $as_echo "$ac_cv_search_dlsym" >&6; }
7326 ac_res=$ac_cv_search_dlsym
7327 if test "$ac_res" != no; then :
7328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7329
7330 fi
7331
7332 fi
7333
7334 if test "$plugins" = yes; then
7335 PLUGINS_TRUE=
7336 PLUGINS_FALSE='#'
7337 else
7338 PLUGINS_TRUE='#'
7339 PLUGINS_FALSE=
7340 fi
7341
7342
7343
7344
7345
7346 # Set options
7347 enable_dlopen=yes
7348
7349
7350
7351
7352 enable_win32_dll=no
7353
7354
7355 # Check whether --enable-shared was given.
7356 if test "${enable_shared+set}" = set; then :
7357 enableval=$enable_shared; p=${PACKAGE-default}
7358 case $enableval in
7359 yes) enable_shared=yes ;;
7360 no) enable_shared=no ;;
7361 *)
7362 enable_shared=no
7363 # Look at the argument we got. We use all the common list separators.
7364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7365 for pkg in $enableval; do
7366 IFS="$lt_save_ifs"
7367 if test "X$pkg" = "X$p"; then
7368 enable_shared=yes
7369 fi
7370 done
7371 IFS="$lt_save_ifs"
7372 ;;
7373 esac
7374 else
7375 enable_shared=yes
7376 fi
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386 # Check whether --enable-static was given.
7387 if test "${enable_static+set}" = set; then :
7388 enableval=$enable_static; p=${PACKAGE-default}
7389 case $enableval in
7390 yes) enable_static=yes ;;
7391 no) enable_static=no ;;
7392 *)
7393 enable_static=no
7394 # Look at the argument we got. We use all the common list separators.
7395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7396 for pkg in $enableval; do
7397 IFS="$lt_save_ifs"
7398 if test "X$pkg" = "X$p"; then
7399 enable_static=yes
7400 fi
7401 done
7402 IFS="$lt_save_ifs"
7403 ;;
7404 esac
7405 else
7406 enable_static=yes
7407 fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418 # Check whether --with-pic was given.
7419 if test "${with_pic+set}" = set; then :
7420 withval=$with_pic; pic_mode="$withval"
7421 else
7422 pic_mode=default
7423 fi
7424
7425
7426 test -z "$pic_mode" && pic_mode=default
7427
7428
7429
7430
7431
7432
7433
7434 # Check whether --enable-fast-install was given.
7435 if test "${enable_fast_install+set}" = set; then :
7436 enableval=$enable_fast_install; p=${PACKAGE-default}
7437 case $enableval in
7438 yes) enable_fast_install=yes ;;
7439 no) enable_fast_install=no ;;
7440 *)
7441 enable_fast_install=no
7442 # Look at the argument we got. We use all the common list separators.
7443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7444 for pkg in $enableval; do
7445 IFS="$lt_save_ifs"
7446 if test "X$pkg" = "X$p"; then
7447 enable_fast_install=yes
7448 fi
7449 done
7450 IFS="$lt_save_ifs"
7451 ;;
7452 esac
7453 else
7454 enable_fast_install=yes
7455 fi
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467 # This can be used to rebuild libtool when needed
7468 LIBTOOL_DEPS="$ltmain"
7469
7470 # Always use our own libtool.
7471 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 test -z "$LN_S" && LN_S="ln -s"
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513 if test -n "${ZSH_VERSION+set}" ; then
7514 setopt NO_GLOB_SUBST
7515 fi
7516
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7518 $as_echo_n "checking for objdir... " >&6; }
7519 if ${lt_cv_objdir+:} false; then :
7520 $as_echo_n "(cached) " >&6
7521 else
7522 rm -f .libs 2>/dev/null
7523 mkdir .libs 2>/dev/null
7524 if test -d .libs; then
7525 lt_cv_objdir=.libs
7526 else
7527 # MS-DOS does not allow filenames that begin with a dot.
7528 lt_cv_objdir=_libs
7529 fi
7530 rmdir .libs 2>/dev/null
7531 fi
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7533 $as_echo "$lt_cv_objdir" >&6; }
7534 objdir=$lt_cv_objdir
7535
7536
7537
7538
7539
7540 cat >>confdefs.h <<_ACEOF
7541 #define LT_OBJDIR "$lt_cv_objdir/"
7542 _ACEOF
7543
7544
7545
7546
7547 case $host_os in
7548 aix3*)
7549 # AIX sometimes has problems with the GCC collect2 program. For some
7550 # reason, if we set the COLLECT_NAMES environment variable, the problems
7551 # vanish in a puff of smoke.
7552 if test "X${COLLECT_NAMES+set}" != Xset; then
7553 COLLECT_NAMES=
7554 export COLLECT_NAMES
7555 fi
7556 ;;
7557 esac
7558
7559 # Global variables:
7560 ofile=libtool
7561 can_build_shared=yes
7562
7563 # All known linkers require a `.a' archive for static linking (except MSVC,
7564 # which needs '.lib').
7565 libext=a
7566
7567 with_gnu_ld="$lt_cv_prog_gnu_ld"
7568
7569 old_CC="$CC"
7570 old_CFLAGS="$CFLAGS"
7571
7572 # Set sane defaults for various variables
7573 test -z "$CC" && CC=cc
7574 test -z "$LTCC" && LTCC=$CC
7575 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7576 test -z "$LD" && LD=ld
7577 test -z "$ac_objext" && ac_objext=o
7578
7579 for cc_temp in $compiler""; do
7580 case $cc_temp in
7581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7583 \-*) ;;
7584 *) break;;
7585 esac
7586 done
7587 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7588
7589
7590 # Only perform the check for file, if the check method requires it
7591 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7592 case $deplibs_check_method in
7593 file_magic*)
7594 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7596 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7597 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 case $MAGIC_CMD in
7601 [\\/*] | ?:[\\/]*)
7602 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7603 ;;
7604 *)
7605 lt_save_MAGIC_CMD="$MAGIC_CMD"
7606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7607 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7608 for ac_dir in $ac_dummy; do
7609 IFS="$lt_save_ifs"
7610 test -z "$ac_dir" && ac_dir=.
7611 if test -f $ac_dir/${ac_tool_prefix}file; then
7612 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7613 if test -n "$file_magic_test_file"; then
7614 case $deplibs_check_method in
7615 "file_magic "*)
7616 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7618 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7619 $EGREP "$file_magic_regex" > /dev/null; then
7620 :
7621 else
7622 cat <<_LT_EOF 1>&2
7623
7624 *** Warning: the command libtool uses to detect shared libraries,
7625 *** $file_magic_cmd, produces output that libtool cannot recognize.
7626 *** The result is that libtool may fail to recognize shared libraries
7627 *** as such. This will affect the creation of libtool libraries that
7628 *** depend on shared libraries, but programs linked with such libtool
7629 *** libraries will work regardless of this problem. Nevertheless, you
7630 *** may want to report the problem to your system manager and/or to
7631 *** bug-libtool@gnu.org
7632
7633 _LT_EOF
7634 fi ;;
7635 esac
7636 fi
7637 break
7638 fi
7639 done
7640 IFS="$lt_save_ifs"
7641 MAGIC_CMD="$lt_save_MAGIC_CMD"
7642 ;;
7643 esac
7644 fi
7645
7646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7647 if test -n "$MAGIC_CMD"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7649 $as_echo "$MAGIC_CMD" >&6; }
7650 else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 fi
7654
7655
7656
7657
7658
7659 if test -z "$lt_cv_path_MAGIC_CMD"; then
7660 if test -n "$ac_tool_prefix"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7662 $as_echo_n "checking for file... " >&6; }
7663 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 case $MAGIC_CMD in
7667 [\\/*] | ?:[\\/]*)
7668 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7669 ;;
7670 *)
7671 lt_save_MAGIC_CMD="$MAGIC_CMD"
7672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7673 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7674 for ac_dir in $ac_dummy; do
7675 IFS="$lt_save_ifs"
7676 test -z "$ac_dir" && ac_dir=.
7677 if test -f $ac_dir/file; then
7678 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7679 if test -n "$file_magic_test_file"; then
7680 case $deplibs_check_method in
7681 "file_magic "*)
7682 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7684 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7685 $EGREP "$file_magic_regex" > /dev/null; then
7686 :
7687 else
7688 cat <<_LT_EOF 1>&2
7689
7690 *** Warning: the command libtool uses to detect shared libraries,
7691 *** $file_magic_cmd, produces output that libtool cannot recognize.
7692 *** The result is that libtool may fail to recognize shared libraries
7693 *** as such. This will affect the creation of libtool libraries that
7694 *** depend on shared libraries, but programs linked with such libtool
7695 *** libraries will work regardless of this problem. Nevertheless, you
7696 *** may want to report the problem to your system manager and/or to
7697 *** bug-libtool@gnu.org
7698
7699 _LT_EOF
7700 fi ;;
7701 esac
7702 fi
7703 break
7704 fi
7705 done
7706 IFS="$lt_save_ifs"
7707 MAGIC_CMD="$lt_save_MAGIC_CMD"
7708 ;;
7709 esac
7710 fi
7711
7712 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7713 if test -n "$MAGIC_CMD"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7715 $as_echo "$MAGIC_CMD" >&6; }
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7719 fi
7720
7721
7722 else
7723 MAGIC_CMD=:
7724 fi
7725 fi
7726
7727 fi
7728 ;;
7729 esac
7730
7731 # Use C for the default configuration in the libtool script
7732
7733 lt_save_CC="$CC"
7734 ac_ext=c
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740
7741 # Source file extension for C test sources.
7742 ac_ext=c
7743
7744 # Object file extension for compiled C test sources.
7745 objext=o
7746 objext=$objext
7747
7748 # Code to be used in simple compile tests
7749 lt_simple_compile_test_code="int some_variable = 0;"
7750
7751 # Code to be used in simple link tests
7752 lt_simple_link_test_code='int main(){return(0);}'
7753
7754
7755
7756
7757
7758
7759
7760 # If no C compiler was specified, use CC.
7761 LTCC=${LTCC-"$CC"}
7762
7763 # If no C compiler flags were specified, use CFLAGS.
7764 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7765
7766 # Allow CC to be a program name with arguments.
7767 compiler=$CC
7768
7769 # Save the default compiler, since it gets overwritten when the other
7770 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7771 compiler_DEFAULT=$CC
7772
7773 # save warnings/boilerplate of simple test code
7774 ac_outfile=conftest.$ac_objext
7775 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7776 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7777 _lt_compiler_boilerplate=`cat conftest.err`
7778 $RM conftest*
7779
7780 ac_outfile=conftest.$ac_objext
7781 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7782 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7783 _lt_linker_boilerplate=`cat conftest.err`
7784 $RM -r conftest*
7785
7786
7787 ## CAVEAT EMPTOR:
7788 ## There is no encapsulation within the following macros, do not change
7789 ## the running order or otherwise move them around unless you know exactly
7790 ## what you are doing...
7791 if test -n "$compiler"; then
7792
7793 lt_prog_compiler_no_builtin_flag=
7794
7795 if test "$GCC" = yes; then
7796 case $cc_basename in
7797 nvcc*)
7798 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7799 *)
7800 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7801 esac
7802
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7804 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7805 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 lt_cv_prog_compiler_rtti_exceptions=no
7809 ac_outfile=conftest.$ac_objext
7810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7811 lt_compiler_flag="-fno-rtti -fno-exceptions"
7812 # Insert the option either (1) after the last *FLAGS variable, or
7813 # (2) before a word containing "conftest.", or (3) at the end.
7814 # Note that $ac_compile itself does not contain backslashes and begins
7815 # with a dollar sign (not a hyphen), so the echo should work correctly.
7816 # The option is referenced via a variable to avoid confusing sed.
7817 lt_compile=`echo "$ac_compile" | $SED \
7818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7820 -e 's:$: $lt_compiler_flag:'`
7821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7822 (eval "$lt_compile" 2>conftest.err)
7823 ac_status=$?
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 if (exit $ac_status) && test -s "$ac_outfile"; then
7827 # The compiler can only warn and ignore the option if not recognized
7828 # So say no if there are warnings other than the usual output.
7829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7831 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7832 lt_cv_prog_compiler_rtti_exceptions=yes
7833 fi
7834 fi
7835 $RM conftest*
7836
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7839 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7840
7841 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7842 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7843 else
7844 :
7845 fi
7846
7847 fi
7848
7849
7850
7851
7852
7853
7854 lt_prog_compiler_wl=
7855 lt_prog_compiler_pic=
7856 lt_prog_compiler_static=
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7859 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7860
7861 if test "$GCC" = yes; then
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_static='-static'
7864
7865 case $host_os in
7866 aix*)
7867 # All AIX code is PIC.
7868 if test "$host_cpu" = ia64; then
7869 # AIX 5 now supports IA64 processor
7870 lt_prog_compiler_static='-Bstatic'
7871 fi
7872 lt_prog_compiler_pic='-fPIC'
7873 ;;
7874
7875 amigaos*)
7876 case $host_cpu in
7877 powerpc)
7878 # see comment about AmigaOS4 .so support
7879 lt_prog_compiler_pic='-fPIC'
7880 ;;
7881 m68k)
7882 # FIXME: we need at least 68020 code to build shared libraries, but
7883 # adding the `-m68020' flag to GCC prevents building anything better,
7884 # like `-m68040'.
7885 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7886 ;;
7887 esac
7888 ;;
7889
7890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7891 # PIC is the default for these OSes.
7892 ;;
7893
7894 mingw* | cygwin* | pw32* | os2* | cegcc*)
7895 # This hack is so that the source file can tell whether it is being
7896 # built for inclusion in a dll (and should export symbols for example).
7897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7898 # (--disable-auto-import) libraries
7899 lt_prog_compiler_pic='-DDLL_EXPORT'
7900 ;;
7901
7902 darwin* | rhapsody*)
7903 # PIC is the default on this platform
7904 # Common symbols not allowed in MH_DYLIB files
7905 lt_prog_compiler_pic='-fno-common'
7906 ;;
7907
7908 haiku*)
7909 # PIC is the default for Haiku.
7910 # The "-static" flag exists, but is broken.
7911 lt_prog_compiler_static=
7912 ;;
7913
7914 hpux*)
7915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7917 # sets the default TLS model and affects inlining.
7918 case $host_cpu in
7919 hppa*64*)
7920 # +Z the default
7921 ;;
7922 *)
7923 lt_prog_compiler_pic='-fPIC'
7924 ;;
7925 esac
7926 ;;
7927
7928 interix[3-9]*)
7929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7930 # Instead, we relocate shared libraries at runtime.
7931 ;;
7932
7933 msdosdjgpp*)
7934 # Just because we use GCC doesn't mean we suddenly get shared libraries
7935 # on systems that don't support them.
7936 lt_prog_compiler_can_build_shared=no
7937 enable_shared=no
7938 ;;
7939
7940 *nto* | *qnx*)
7941 # QNX uses GNU C++, but need to define -shared option too, otherwise
7942 # it will coredump.
7943 lt_prog_compiler_pic='-fPIC -shared'
7944 ;;
7945
7946 sysv4*MP*)
7947 if test -d /usr/nec; then
7948 lt_prog_compiler_pic=-Kconform_pic
7949 fi
7950 ;;
7951
7952 *)
7953 lt_prog_compiler_pic='-fPIC'
7954 ;;
7955 esac
7956
7957 case $cc_basename in
7958 nvcc*) # Cuda Compiler Driver 2.2
7959 lt_prog_compiler_wl='-Xlinker '
7960 lt_prog_compiler_pic='-Xcompiler -fPIC'
7961 ;;
7962 esac
7963 else
7964 # PORTME Check for flag to pass linker flags through the system compiler.
7965 case $host_os in
7966 aix*)
7967 lt_prog_compiler_wl='-Wl,'
7968 if test "$host_cpu" = ia64; then
7969 # AIX 5 now supports IA64 processor
7970 lt_prog_compiler_static='-Bstatic'
7971 else
7972 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7973 fi
7974 ;;
7975
7976 mingw* | cygwin* | pw32* | os2* | cegcc*)
7977 # This hack is so that the source file can tell whether it is being
7978 # built for inclusion in a dll (and should export symbols for example).
7979 lt_prog_compiler_pic='-DDLL_EXPORT'
7980 ;;
7981
7982 hpux9* | hpux10* | hpux11*)
7983 lt_prog_compiler_wl='-Wl,'
7984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7985 # not for PA HP-UX.
7986 case $host_cpu in
7987 hppa*64*|ia64*)
7988 # +Z the default
7989 ;;
7990 *)
7991 lt_prog_compiler_pic='+Z'
7992 ;;
7993 esac
7994 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7995 lt_prog_compiler_static='${wl}-a ${wl}archive'
7996 ;;
7997
7998 irix5* | irix6* | nonstopux*)
7999 lt_prog_compiler_wl='-Wl,'
8000 # PIC (with -KPIC) is the default.
8001 lt_prog_compiler_static='-non_shared'
8002 ;;
8003
8004 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8005 case $cc_basename in
8006 # old Intel for x86_64 which still supported -KPIC.
8007 ecc*)
8008 lt_prog_compiler_wl='-Wl,'
8009 lt_prog_compiler_pic='-KPIC'
8010 lt_prog_compiler_static='-static'
8011 ;;
8012 # icc used to be incompatible with GCC.
8013 # ICC 10 doesn't accept -KPIC any more.
8014 icc* | ifort*)
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='-fPIC'
8017 lt_prog_compiler_static='-static'
8018 ;;
8019 # Lahey Fortran 8.1.
8020 lf95*)
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='--shared'
8023 lt_prog_compiler_static='--static'
8024 ;;
8025 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8026 # Portland Group compilers (*not* the Pentium gcc compiler,
8027 # which looks to be a dead project)
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_pic='-fpic'
8030 lt_prog_compiler_static='-Bstatic'
8031 ;;
8032 ccc*)
8033 lt_prog_compiler_wl='-Wl,'
8034 # All Alpha code is PIC.
8035 lt_prog_compiler_static='-non_shared'
8036 ;;
8037 xl* | bgxl* | bgf* | mpixl*)
8038 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-qpic'
8041 lt_prog_compiler_static='-qstaticlink'
8042 ;;
8043 *)
8044 case `$CC -V 2>&1 | sed 5q` in
8045 *Sun\ F* | *Sun*Fortran*)
8046 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
8049 lt_prog_compiler_wl=''
8050 ;;
8051 *Sun\ C*)
8052 # Sun C 5.9
8053 lt_prog_compiler_pic='-KPIC'
8054 lt_prog_compiler_static='-Bstatic'
8055 lt_prog_compiler_wl='-Wl,'
8056 ;;
8057 esac
8058 ;;
8059 esac
8060 ;;
8061
8062 newsos6)
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-Bstatic'
8065 ;;
8066
8067 *nto* | *qnx*)
8068 # QNX uses GNU C++, but need to define -shared option too, otherwise
8069 # it will coredump.
8070 lt_prog_compiler_pic='-fPIC -shared'
8071 ;;
8072
8073 osf3* | osf4* | osf5*)
8074 lt_prog_compiler_wl='-Wl,'
8075 # All OSF/1 code is PIC.
8076 lt_prog_compiler_static='-non_shared'
8077 ;;
8078
8079 rdos*)
8080 lt_prog_compiler_static='-non_shared'
8081 ;;
8082
8083 solaris*)
8084 lt_prog_compiler_pic='-KPIC'
8085 lt_prog_compiler_static='-Bstatic'
8086 case $cc_basename in
8087 f77* | f90* | f95*)
8088 lt_prog_compiler_wl='-Qoption ld ';;
8089 *)
8090 lt_prog_compiler_wl='-Wl,';;
8091 esac
8092 ;;
8093
8094 sunos4*)
8095 lt_prog_compiler_wl='-Qoption ld '
8096 lt_prog_compiler_pic='-PIC'
8097 lt_prog_compiler_static='-Bstatic'
8098 ;;
8099
8100 sysv4 | sysv4.2uw2* | sysv4.3*)
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
8104 ;;
8105
8106 sysv4*MP*)
8107 if test -d /usr/nec ;then
8108 lt_prog_compiler_pic='-Kconform_pic'
8109 lt_prog_compiler_static='-Bstatic'
8110 fi
8111 ;;
8112
8113 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_pic='-KPIC'
8116 lt_prog_compiler_static='-Bstatic'
8117 ;;
8118
8119 unicos*)
8120 lt_prog_compiler_wl='-Wl,'
8121 lt_prog_compiler_can_build_shared=no
8122 ;;
8123
8124 uts4*)
8125 lt_prog_compiler_pic='-pic'
8126 lt_prog_compiler_static='-Bstatic'
8127 ;;
8128
8129 *)
8130 lt_prog_compiler_can_build_shared=no
8131 ;;
8132 esac
8133 fi
8134
8135 case $host_os in
8136 # For platforms which do not support PIC, -DPIC is meaningless:
8137 *djgpp*)
8138 lt_prog_compiler_pic=
8139 ;;
8140 *)
8141 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8142 ;;
8143 esac
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8145 $as_echo "$lt_prog_compiler_pic" >&6; }
8146
8147
8148
8149
8150
8151
8152 #
8153 # Check to make sure the PIC flag actually works.
8154 #
8155 if test -n "$lt_prog_compiler_pic"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8157 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8158 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 lt_cv_prog_compiler_pic_works=no
8162 ac_outfile=conftest.$ac_objext
8163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8164 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8165 # Insert the option either (1) after the last *FLAGS variable, or
8166 # (2) before a word containing "conftest.", or (3) at the end.
8167 # Note that $ac_compile itself does not contain backslashes and begins
8168 # with a dollar sign (not a hyphen), so the echo should work correctly.
8169 # The option is referenced via a variable to avoid confusing sed.
8170 lt_compile=`echo "$ac_compile" | $SED \
8171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8173 -e 's:$: $lt_compiler_flag:'`
8174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8175 (eval "$lt_compile" 2>conftest.err)
8176 ac_status=$?
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 if (exit $ac_status) && test -s "$ac_outfile"; then
8180 # The compiler can only warn and ignore the option if not recognized
8181 # So say no if there are warnings other than the usual output.
8182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8184 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8185 lt_cv_prog_compiler_pic_works=yes
8186 fi
8187 fi
8188 $RM conftest*
8189
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8192 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8193
8194 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8195 case $lt_prog_compiler_pic in
8196 "" | " "*) ;;
8197 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8198 esac
8199 else
8200 lt_prog_compiler_pic=
8201 lt_prog_compiler_can_build_shared=no
8202 fi
8203
8204 fi
8205
8206
8207
8208
8209
8210
8211 #
8212 # Check to make sure the static flag actually works.
8213 #
8214 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8216 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8217 if ${lt_cv_prog_compiler_static_works+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 lt_cv_prog_compiler_static_works=no
8221 save_LDFLAGS="$LDFLAGS"
8222 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8223 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8225 # The linker can only warn and ignore the option if not recognized
8226 # So say no if there are warnings
8227 if test -s conftest.err; then
8228 # Append any errors to the config.log.
8229 cat conftest.err 1>&5
8230 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8232 if diff conftest.exp conftest.er2 >/dev/null; then
8233 lt_cv_prog_compiler_static_works=yes
8234 fi
8235 else
8236 lt_cv_prog_compiler_static_works=yes
8237 fi
8238 fi
8239 $RM -r conftest*
8240 LDFLAGS="$save_LDFLAGS"
8241
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8244 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8245
8246 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8247 :
8248 else
8249 lt_prog_compiler_static=
8250 fi
8251
8252
8253
8254
8255
8256
8257
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8260 if ${lt_cv_prog_compiler_c_o+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 lt_cv_prog_compiler_c_o=no
8264 $RM -r conftest 2>/dev/null
8265 mkdir conftest
8266 cd conftest
8267 mkdir out
8268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8269
8270 lt_compiler_flag="-o out/conftest2.$ac_objext"
8271 # Insert the option either (1) after the last *FLAGS variable, or
8272 # (2) before a word containing "conftest.", or (3) at the end.
8273 # Note that $ac_compile itself does not contain backslashes and begins
8274 # with a dollar sign (not a hyphen), so the echo should work correctly.
8275 lt_compile=`echo "$ac_compile" | $SED \
8276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8278 -e 's:$: $lt_compiler_flag:'`
8279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8280 (eval "$lt_compile" 2>out/conftest.err)
8281 ac_status=$?
8282 cat out/conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8285 then
8286 # The compiler can only warn and ignore the option if not recognized
8287 # So say no if there are warnings
8288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8291 lt_cv_prog_compiler_c_o=yes
8292 fi
8293 fi
8294 chmod u+w . 2>&5
8295 $RM conftest*
8296 # SGI C++ compiler will create directory out/ii_files/ for
8297 # template instantiation
8298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8299 $RM out/* && rmdir out
8300 cd ..
8301 $RM -r conftest
8302 $RM conftest*
8303
8304 fi
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8306 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8307
8308
8309
8310
8311
8312
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8315 if ${lt_cv_prog_compiler_c_o+:} false; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 lt_cv_prog_compiler_c_o=no
8319 $RM -r conftest 2>/dev/null
8320 mkdir conftest
8321 cd conftest
8322 mkdir out
8323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8324
8325 lt_compiler_flag="-o out/conftest2.$ac_objext"
8326 # Insert the option either (1) after the last *FLAGS variable, or
8327 # (2) before a word containing "conftest.", or (3) at the end.
8328 # Note that $ac_compile itself does not contain backslashes and begins
8329 # with a dollar sign (not a hyphen), so the echo should work correctly.
8330 lt_compile=`echo "$ac_compile" | $SED \
8331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8333 -e 's:$: $lt_compiler_flag:'`
8334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8335 (eval "$lt_compile" 2>out/conftest.err)
8336 ac_status=$?
8337 cat out/conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8340 then
8341 # The compiler can only warn and ignore the option if not recognized
8342 # So say no if there are warnings
8343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8346 lt_cv_prog_compiler_c_o=yes
8347 fi
8348 fi
8349 chmod u+w . 2>&5
8350 $RM conftest*
8351 # SGI C++ compiler will create directory out/ii_files/ for
8352 # template instantiation
8353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8354 $RM out/* && rmdir out
8355 cd ..
8356 $RM -r conftest
8357 $RM conftest*
8358
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8362
8363
8364
8365
8366 hard_links="nottested"
8367 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8368 # do not overwrite the value of need_locks provided by the user
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8370 $as_echo_n "checking if we can lock with hard links... " >&6; }
8371 hard_links=yes
8372 $RM conftest*
8373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8374 touch conftest.a
8375 ln conftest.a conftest.b 2>&5 || hard_links=no
8376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8378 $as_echo "$hard_links" >&6; }
8379 if test "$hard_links" = no; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8381 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8382 need_locks=warn
8383 fi
8384 else
8385 need_locks=no
8386 fi
8387
8388
8389
8390
8391
8392
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8394 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8395
8396 runpath_var=
8397 allow_undefined_flag=
8398 always_export_symbols=no
8399 archive_cmds=
8400 archive_expsym_cmds=
8401 compiler_needs_object=no
8402 enable_shared_with_static_runtimes=no
8403 export_dynamic_flag_spec=
8404 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8405 hardcode_automatic=no
8406 hardcode_direct=no
8407 hardcode_direct_absolute=no
8408 hardcode_libdir_flag_spec=
8409 hardcode_libdir_flag_spec_ld=
8410 hardcode_libdir_separator=
8411 hardcode_minus_L=no
8412 hardcode_shlibpath_var=unsupported
8413 inherit_rpath=no
8414 link_all_deplibs=unknown
8415 module_cmds=
8416 module_expsym_cmds=
8417 old_archive_from_new_cmds=
8418 old_archive_from_expsyms_cmds=
8419 thread_safe_flag_spec=
8420 whole_archive_flag_spec=
8421 # include_expsyms should be a list of space-separated symbols to be *always*
8422 # included in the symbol list
8423 include_expsyms=
8424 # exclude_expsyms can be an extended regexp of symbols to exclude
8425 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8426 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8427 # as well as any symbol that contains `d'.
8428 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8429 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8430 # platforms (ab)use it in PIC code, but their linkers get confused if
8431 # the symbol is explicitly referenced. Since portable code cannot
8432 # rely on this symbol name, it's probably fine to never include it in
8433 # preloaded symbol tables.
8434 # Exclude shared library initialization/finalization symbols.
8435 extract_expsyms_cmds=
8436
8437 case $host_os in
8438 cygwin* | mingw* | pw32* | cegcc*)
8439 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8440 # When not using gcc, we currently assume that we are using
8441 # Microsoft Visual C++.
8442 if test "$GCC" != yes; then
8443 with_gnu_ld=no
8444 fi
8445 ;;
8446 interix*)
8447 # we just hope/assume this is gcc and not c89 (= MSVC++)
8448 with_gnu_ld=yes
8449 ;;
8450 openbsd*)
8451 with_gnu_ld=no
8452 ;;
8453 esac
8454
8455 ld_shlibs=yes
8456
8457 # On some targets, GNU ld is compatible enough with the native linker
8458 # that we're better off using the native interface for both.
8459 lt_use_gnu_ld_interface=no
8460 if test "$with_gnu_ld" = yes; then
8461 case $host_os in
8462 aix*)
8463 # The AIX port of GNU ld has always aspired to compatibility
8464 # with the native linker. However, as the warning in the GNU ld
8465 # block says, versions before 2.19.5* couldn't really create working
8466 # shared libraries, regardless of the interface used.
8467 case `$LD -v 2>&1` in
8468 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8469 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8470 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8471 *)
8472 lt_use_gnu_ld_interface=yes
8473 ;;
8474 esac
8475 ;;
8476 *)
8477 lt_use_gnu_ld_interface=yes
8478 ;;
8479 esac
8480 fi
8481
8482 if test "$lt_use_gnu_ld_interface" = yes; then
8483 # If archive_cmds runs LD, not CC, wlarc should be empty
8484 wlarc='${wl}'
8485
8486 # Set some defaults for GNU ld with shared library support. These
8487 # are reset later if shared libraries are not supported. Putting them
8488 # here allows them to be overridden if necessary.
8489 runpath_var=LD_RUN_PATH
8490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8491 export_dynamic_flag_spec='${wl}--export-dynamic'
8492 # ancient GNU ld didn't support --whole-archive et. al.
8493 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8494 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8495 else
8496 whole_archive_flag_spec=
8497 fi
8498 supports_anon_versioning=no
8499 case `$LD -v 2>&1` in
8500 *GNU\ gold*) supports_anon_versioning=yes ;;
8501 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8502 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8503 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8504 *\ 2.11.*) ;; # other 2.11 versions
8505 *) supports_anon_versioning=yes ;;
8506 esac
8507
8508 # See if GNU ld supports shared libraries.
8509 case $host_os in
8510 aix[3-9]*)
8511 # On AIX/PPC, the GNU linker is very broken
8512 if test "$host_cpu" != ia64; then
8513 ld_shlibs=no
8514 cat <<_LT_EOF 1>&2
8515
8516 *** Warning: the GNU linker, at least up to release 2.19, is reported
8517 *** to be unable to reliably create shared libraries on AIX.
8518 *** Therefore, libtool is disabling shared libraries support. If you
8519 *** really care for shared libraries, you may want to install binutils
8520 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8521 *** You will then need to restart the configuration process.
8522
8523 _LT_EOF
8524 fi
8525 ;;
8526
8527 amigaos*)
8528 case $host_cpu in
8529 powerpc)
8530 # see comment about AmigaOS4 .so support
8531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds=''
8533 ;;
8534 m68k)
8535 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8536 hardcode_libdir_flag_spec='-L$libdir'
8537 hardcode_minus_L=yes
8538 ;;
8539 esac
8540 ;;
8541
8542 beos*)
8543 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8544 allow_undefined_flag=unsupported
8545 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8546 # support --undefined. This deserves some investigation. FIXME
8547 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548 else
8549 ld_shlibs=no
8550 fi
8551 ;;
8552
8553 cygwin* | mingw* | pw32* | cegcc*)
8554 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8555 # as there is no search path for DLLs.
8556 hardcode_libdir_flag_spec='-L$libdir'
8557 export_dynamic_flag_spec='${wl}--export-all-symbols'
8558 allow_undefined_flag=unsupported
8559 always_export_symbols=no
8560 enable_shared_with_static_runtimes=yes
8561 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8562
8563 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8565 # If the export-symbols file already is a .def file (1st line
8566 # is EXPORTS), use it as is; otherwise, prepend...
8567 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8568 cp $export_symbols $output_objdir/$soname.def;
8569 else
8570 echo EXPORTS > $output_objdir/$soname.def;
8571 cat $export_symbols >> $output_objdir/$soname.def;
8572 fi~
8573 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8574 else
8575 ld_shlibs=no
8576 fi
8577 ;;
8578
8579 haiku*)
8580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581 link_all_deplibs=yes
8582 ;;
8583
8584 interix[3-9]*)
8585 hardcode_direct=no
8586 hardcode_shlibpath_var=no
8587 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8588 export_dynamic_flag_spec='${wl}-E'
8589 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8590 # Instead, shared libraries are loaded at an image base (0x10000000 by
8591 # default) and relocated if they conflict, which is a slow very memory
8592 # consuming and fragmenting process. To avoid this, we pick a random,
8593 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8594 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8596 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8597 ;;
8598
8599 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8600 tmp_diet=no
8601 if test "$host_os" = linux-dietlibc; then
8602 case $cc_basename in
8603 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8604 esac
8605 fi
8606 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8607 && test "$tmp_diet" = no
8608 then
8609 tmp_addflag=' $pic_flag'
8610 tmp_sharedflag='-shared'
8611 case $cc_basename,$host_cpu in
8612 pgcc*) # Portland Group C compiler
8613 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8614 tmp_addflag=' $pic_flag'
8615 ;;
8616 pgf77* | pgf90* | pgf95* | pgfortran*)
8617 # Portland Group f77 and f90 compilers
8618 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8619 tmp_addflag=' $pic_flag -Mnomain' ;;
8620 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8621 tmp_addflag=' -i_dynamic' ;;
8622 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8623 tmp_addflag=' -i_dynamic -nofor_main' ;;
8624 ifc* | ifort*) # Intel Fortran compiler
8625 tmp_addflag=' -nofor_main' ;;
8626 lf95*) # Lahey Fortran 8.1
8627 whole_archive_flag_spec=
8628 tmp_sharedflag='--shared' ;;
8629 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8630 tmp_sharedflag='-qmkshrobj'
8631 tmp_addflag= ;;
8632 nvcc*) # Cuda Compiler Driver 2.2
8633 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8634 compiler_needs_object=yes
8635 ;;
8636 esac
8637 case `$CC -V 2>&1 | sed 5q` in
8638 *Sun\ C*) # Sun C 5.9
8639 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8640 compiler_needs_object=yes
8641 tmp_sharedflag='-G' ;;
8642 *Sun\ F*) # Sun Fortran 8.3
8643 tmp_sharedflag='-G' ;;
8644 esac
8645 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646
8647 if test "x$supports_anon_versioning" = xyes; then
8648 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8650 echo "local: *; };" >> $output_objdir/$libname.ver~
8651 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8652 fi
8653
8654 case $cc_basename in
8655 xlf* | bgf* | bgxlf* | mpixlf*)
8656 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8657 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8658 hardcode_libdir_flag_spec=
8659 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8660 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8661 if test "x$supports_anon_versioning" = xyes; then
8662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8664 echo "local: *; };" >> $output_objdir/$libname.ver~
8665 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8666 fi
8667 ;;
8668 esac
8669 else
8670 ld_shlibs=no
8671 fi
8672 ;;
8673
8674 netbsd*)
8675 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8676 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8677 wlarc=
8678 else
8679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8681 fi
8682 ;;
8683
8684 solaris*)
8685 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8686 ld_shlibs=no
8687 cat <<_LT_EOF 1>&2
8688
8689 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8690 *** create shared libraries on Solaris systems. Therefore, libtool
8691 *** is disabling shared libraries support. We urge you to upgrade GNU
8692 *** binutils to release 2.9.1 or newer. Another option is to modify
8693 *** your PATH or compiler configuration so that the native linker is
8694 *** used, and then restart.
8695
8696 _LT_EOF
8697 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
8704
8705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8706 case `$LD -v 2>&1` in
8707 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8708 ld_shlibs=no
8709 cat <<_LT_EOF 1>&2
8710
8711 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8712 *** reliably create shared libraries on SCO systems. Therefore, libtool
8713 *** is disabling shared libraries support. We urge you to upgrade GNU
8714 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8715 *** your PATH or compiler configuration so that the native linker is
8716 *** used, and then restart.
8717
8718 _LT_EOF
8719 ;;
8720 *)
8721 # For security reasons, it is highly recommended that you always
8722 # use absolute paths for naming shared libraries, and exclude the
8723 # DT_RUNPATH tag from executables and libraries. But doing so
8724 # requires that you compile everything twice, which is a pain.
8725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729 else
8730 ld_shlibs=no
8731 fi
8732 ;;
8733 esac
8734 ;;
8735
8736 sunos4*)
8737 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8738 wlarc=
8739 hardcode_direct=yes
8740 hardcode_shlibpath_var=no
8741 ;;
8742
8743 *)
8744 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747 else
8748 ld_shlibs=no
8749 fi
8750 ;;
8751 esac
8752
8753 if test "$ld_shlibs" = no; then
8754 runpath_var=
8755 hardcode_libdir_flag_spec=
8756 export_dynamic_flag_spec=
8757 whole_archive_flag_spec=
8758 fi
8759 else
8760 # PORTME fill in a description of your system's linker (not GNU ld)
8761 case $host_os in
8762 aix3*)
8763 allow_undefined_flag=unsupported
8764 always_export_symbols=yes
8765 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8766 # Note: this linker hardcodes the directories in LIBPATH if there
8767 # are no directories specified by -L.
8768 hardcode_minus_L=yes
8769 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8770 # Neither direct hardcoding nor static linking is supported with a
8771 # broken collect2.
8772 hardcode_direct=unsupported
8773 fi
8774 ;;
8775
8776 aix[4-9]*)
8777 if test "$host_cpu" = ia64; then
8778 # On IA64, the linker does run time linking by default, so we don't
8779 # have to do anything special.
8780 aix_use_runtimelinking=no
8781 exp_sym_flag='-Bexport'
8782 no_entry_flag=""
8783 else
8784 # If we're using GNU nm, then we don't want the "-C" option.
8785 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8786 # Also, AIX nm treats weak defined symbols like other global
8787 # defined symbols, whereas GNU nm marks them as "W".
8788 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8789 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8790 else
8791 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8792 fi
8793 aix_use_runtimelinking=no
8794
8795 # Test if we are trying to use run time linking or normal
8796 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8797 # need to do runtime linking.
8798 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8799 for ld_flag in $LDFLAGS; do
8800 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8801 aix_use_runtimelinking=yes
8802 break
8803 fi
8804 done
8805 ;;
8806 esac
8807
8808 exp_sym_flag='-bexport'
8809 no_entry_flag='-bnoentry'
8810 fi
8811
8812 # When large executables or shared objects are built, AIX ld can
8813 # have problems creating the table of contents. If linking a library
8814 # or program results in "error TOC overflow" add -mminimal-toc to
8815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8817
8818 archive_cmds=''
8819 hardcode_direct=yes
8820 hardcode_direct_absolute=yes
8821 hardcode_libdir_separator=':'
8822 link_all_deplibs=yes
8823 file_list_spec='${wl}-f,'
8824
8825 if test "$GCC" = yes; then
8826 case $host_os in aix4.[012]|aix4.[012].*)
8827 # We only want to do this on AIX 4.2 and lower, the check
8828 # below for broken collect2 doesn't work under 4.3+
8829 collect2name=`${CC} -print-prog-name=collect2`
8830 if test -f "$collect2name" &&
8831 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8832 then
8833 # We have reworked collect2
8834 :
8835 else
8836 # We have old collect2
8837 hardcode_direct=unsupported
8838 # It fails to find uninstalled libraries when the uninstalled
8839 # path is not listed in the libpath. Setting hardcode_minus_L
8840 # to unsupported forces relinking
8841 hardcode_minus_L=yes
8842 hardcode_libdir_flag_spec='-L$libdir'
8843 hardcode_libdir_separator=
8844 fi
8845 ;;
8846 esac
8847 shared_flag='-shared'
8848 if test "$aix_use_runtimelinking" = yes; then
8849 shared_flag="$shared_flag "'${wl}-G'
8850 fi
8851 else
8852 # not using gcc
8853 if test "$host_cpu" = ia64; then
8854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8855 # chokes on -Wl,-G. The following line is correct:
8856 shared_flag='-G'
8857 else
8858 if test "$aix_use_runtimelinking" = yes; then
8859 shared_flag='${wl}-G'
8860 else
8861 shared_flag='${wl}-bM:SRE'
8862 fi
8863 fi
8864 fi
8865
8866 export_dynamic_flag_spec='${wl}-bexpall'
8867 # It seems that -bexpall does not export symbols beginning with
8868 # underscore (_), so it is better to generate a list of symbols to export.
8869 always_export_symbols=yes
8870 if test "$aix_use_runtimelinking" = yes; then
8871 # Warning - without using the other runtime loading flags (-brtl),
8872 # -berok will link without error, but may produce a broken library.
8873 allow_undefined_flag='-berok'
8874 # Determine the default libpath from the value encoded in an
8875 # empty executable.
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878
8879 int
8880 main ()
8881 {
8882
8883 ;
8884 return 0;
8885 }
8886 _ACEOF
8887 if ac_fn_c_try_link "$LINENO"; then :
8888
8889 lt_aix_libpath_sed='
8890 /Import File Strings/,/^$/ {
8891 /^0/ {
8892 s/^0 *\(.*\)$/\1/
8893 p
8894 }
8895 }'
8896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897 # Check for a 64-bit object if we didn't find anything.
8898 if test -z "$aix_libpath"; then
8899 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8900 fi
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8905
8906 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8907 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8908 else
8909 if test "$host_cpu" = ia64; then
8910 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8911 allow_undefined_flag="-z nodefs"
8912 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8913 else
8914 # Determine the default libpath from the value encoded in an
8915 # empty executable.
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8918
8919 int
8920 main ()
8921 {
8922
8923 ;
8924 return 0;
8925 }
8926 _ACEOF
8927 if ac_fn_c_try_link "$LINENO"; then :
8928
8929 lt_aix_libpath_sed='
8930 /Import File Strings/,/^$/ {
8931 /^0/ {
8932 s/^0 *\(.*\)$/\1/
8933 p
8934 }
8935 }'
8936 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8937 # Check for a 64-bit object if we didn't find anything.
8938 if test -z "$aix_libpath"; then
8939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8940 fi
8941 fi
8942 rm -f core conftest.err conftest.$ac_objext \
8943 conftest$ac_exeext conftest.$ac_ext
8944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8945
8946 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8947 # Warning - without using the other run time loading flags,
8948 # -berok will link without error, but may produce a broken library.
8949 no_undefined_flag=' ${wl}-bernotok'
8950 allow_undefined_flag=' ${wl}-berok'
8951 if test "$with_gnu_ld" = yes; then
8952 # We only use this code for GNU lds that support --whole-archive.
8953 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8954 else
8955 # Exported symbols can be pulled into shared objects from archives
8956 whole_archive_flag_spec='$convenience'
8957 fi
8958 archive_cmds_need_lc=yes
8959 # This is similar to how AIX traditionally builds its shared libraries.
8960 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8961 fi
8962 fi
8963 ;;
8964
8965 amigaos*)
8966 case $host_cpu in
8967 powerpc)
8968 # see comment about AmigaOS4 .so support
8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds=''
8971 ;;
8972 m68k)
8973 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8974 hardcode_libdir_flag_spec='-L$libdir'
8975 hardcode_minus_L=yes
8976 ;;
8977 esac
8978 ;;
8979
8980 bsdi[45]*)
8981 export_dynamic_flag_spec=-rdynamic
8982 ;;
8983
8984 cygwin* | mingw* | pw32* | cegcc*)
8985 # When not using gcc, we currently assume that we are using
8986 # Microsoft Visual C++.
8987 # hardcode_libdir_flag_spec is actually meaningless, as there is
8988 # no search path for DLLs.
8989 hardcode_libdir_flag_spec=' '
8990 allow_undefined_flag=unsupported
8991 # Tell ltmain to make .lib files, not .a files.
8992 libext=lib
8993 # Tell ltmain to make .dll files, not .so files.
8994 shrext_cmds=".dll"
8995 # FIXME: Setting linknames here is a bad hack.
8996 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8997 # The linker will automatically build a .lib file if we build a DLL.
8998 old_archive_from_new_cmds='true'
8999 # FIXME: Should let the user specify the lib program.
9000 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9001 fix_srcfile_path='`cygpath -w "$srcfile"`'
9002 enable_shared_with_static_runtimes=yes
9003 ;;
9004
9005 darwin* | rhapsody*)
9006
9007
9008 archive_cmds_need_lc=no
9009 hardcode_direct=no
9010 hardcode_automatic=yes
9011 hardcode_shlibpath_var=unsupported
9012 if test "$lt_cv_ld_force_load" = "yes"; then
9013 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9014 else
9015 whole_archive_flag_spec=''
9016 fi
9017 link_all_deplibs=yes
9018 allow_undefined_flag="$_lt_dar_allow_undefined"
9019 case $cc_basename in
9020 ifort*) _lt_dar_can_shared=yes ;;
9021 *) _lt_dar_can_shared=$GCC ;;
9022 esac
9023 if test "$_lt_dar_can_shared" = "yes"; then
9024 output_verbose_link_cmd=func_echo_all
9025 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9026 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9027 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9028 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9029
9030 else
9031 ld_shlibs=no
9032 fi
9033
9034 ;;
9035
9036 dgux*)
9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_libdir_flag_spec='-L$libdir'
9039 hardcode_shlibpath_var=no
9040 ;;
9041
9042 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9043 # support. Future versions do this automatically, but an explicit c++rt0.o
9044 # does not break anything, and helps significantly (at the cost of a little
9045 # extra space).
9046 freebsd2.2*)
9047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9048 hardcode_libdir_flag_spec='-R$libdir'
9049 hardcode_direct=yes
9050 hardcode_shlibpath_var=no
9051 ;;
9052
9053 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9054 freebsd2.*)
9055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9056 hardcode_direct=yes
9057 hardcode_minus_L=yes
9058 hardcode_shlibpath_var=no
9059 ;;
9060
9061 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9062 freebsd* | dragonfly*)
9063 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9064 hardcode_libdir_flag_spec='-R$libdir'
9065 hardcode_direct=yes
9066 hardcode_shlibpath_var=no
9067 ;;
9068
9069 hpux9*)
9070 if test "$GCC" = yes; then
9071 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9072 else
9073 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9074 fi
9075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9076 hardcode_libdir_separator=:
9077 hardcode_direct=yes
9078
9079 # hardcode_minus_L: Not really in the search PATH,
9080 # but as the default location of the library.
9081 hardcode_minus_L=yes
9082 export_dynamic_flag_spec='${wl}-E'
9083 ;;
9084
9085 hpux10*)
9086 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9087 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9088 else
9089 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9090 fi
9091 if test "$with_gnu_ld" = no; then
9092 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_flag_spec_ld='+b $libdir'
9094 hardcode_libdir_separator=:
9095 hardcode_direct=yes
9096 hardcode_direct_absolute=yes
9097 export_dynamic_flag_spec='${wl}-E'
9098 # hardcode_minus_L: Not really in the search PATH,
9099 # but as the default location of the library.
9100 hardcode_minus_L=yes
9101 fi
9102 ;;
9103
9104 hpux11*)
9105 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9106 case $host_cpu in
9107 hppa*64*)
9108 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109 ;;
9110 ia64*)
9111 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9112 ;;
9113 *)
9114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115 ;;
9116 esac
9117 else
9118 case $host_cpu in
9119 hppa*64*)
9120 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 ;;
9122 ia64*)
9123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9124 ;;
9125 *)
9126
9127 # Older versions of the 11.00 compiler do not understand -b yet
9128 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9130 $as_echo_n "checking if $CC understands -b... " >&6; }
9131 if ${lt_cv_prog_compiler__b+:} false; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 lt_cv_prog_compiler__b=no
9135 save_LDFLAGS="$LDFLAGS"
9136 LDFLAGS="$LDFLAGS -b"
9137 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9139 # The linker can only warn and ignore the option if not recognized
9140 # So say no if there are warnings
9141 if test -s conftest.err; then
9142 # Append any errors to the config.log.
9143 cat conftest.err 1>&5
9144 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9146 if diff conftest.exp conftest.er2 >/dev/null; then
9147 lt_cv_prog_compiler__b=yes
9148 fi
9149 else
9150 lt_cv_prog_compiler__b=yes
9151 fi
9152 fi
9153 $RM -r conftest*
9154 LDFLAGS="$save_LDFLAGS"
9155
9156 fi
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9158 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9159
9160 if test x"$lt_cv_prog_compiler__b" = xyes; then
9161 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9162 else
9163 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9164 fi
9165
9166 ;;
9167 esac
9168 fi
9169 if test "$with_gnu_ld" = no; then
9170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_separator=:
9172
9173 case $host_cpu in
9174 hppa*64*|ia64*)
9175 hardcode_direct=no
9176 hardcode_shlibpath_var=no
9177 ;;
9178 *)
9179 hardcode_direct=yes
9180 hardcode_direct_absolute=yes
9181 export_dynamic_flag_spec='${wl}-E'
9182
9183 # hardcode_minus_L: Not really in the search PATH,
9184 # but as the default location of the library.
9185 hardcode_minus_L=yes
9186 ;;
9187 esac
9188 fi
9189 ;;
9190
9191 irix5* | irix6* | nonstopux*)
9192 if test "$GCC" = yes; then
9193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9194 # Try to use the -exported_symbol ld option, if it does not
9195 # work, assume that -exports_file does not work either and
9196 # implicitly export all symbols.
9197 save_LDFLAGS="$LDFLAGS"
9198 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201 int foo(void) {}
9202 _ACEOF
9203 if ac_fn_c_try_link "$LINENO"; then :
9204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9205
9206 fi
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 LDFLAGS="$save_LDFLAGS"
9210 else
9211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9213 fi
9214 archive_cmds_need_lc='no'
9215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9216 hardcode_libdir_separator=:
9217 inherit_rpath=yes
9218 link_all_deplibs=yes
9219 ;;
9220
9221 netbsd*)
9222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9224 else
9225 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9226 fi
9227 hardcode_libdir_flag_spec='-R$libdir'
9228 hardcode_direct=yes
9229 hardcode_shlibpath_var=no
9230 ;;
9231
9232 newsos6)
9233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9234 hardcode_direct=yes
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 hardcode_libdir_separator=:
9237 hardcode_shlibpath_var=no
9238 ;;
9239
9240 *nto* | *qnx*)
9241 ;;
9242
9243 openbsd*)
9244 if test -f /usr/libexec/ld.so; then
9245 hardcode_direct=yes
9246 hardcode_shlibpath_var=no
9247 hardcode_direct_absolute=yes
9248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9250 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9252 export_dynamic_flag_spec='${wl}-E'
9253 else
9254 case $host_os in
9255 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9257 hardcode_libdir_flag_spec='-R$libdir'
9258 ;;
9259 *)
9260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9262 ;;
9263 esac
9264 fi
9265 else
9266 ld_shlibs=no
9267 fi
9268 ;;
9269
9270 os2*)
9271 hardcode_libdir_flag_spec='-L$libdir'
9272 hardcode_minus_L=yes
9273 allow_undefined_flag=unsupported
9274 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9275 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9276 ;;
9277
9278 osf3*)
9279 if test "$GCC" = yes; then
9280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9281 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9282 else
9283 allow_undefined_flag=' -expect_unresolved \*'
9284 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9285 fi
9286 archive_cmds_need_lc='no'
9287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9288 hardcode_libdir_separator=:
9289 ;;
9290
9291 osf4* | osf5*) # as osf3* with the addition of -msym flag
9292 if test "$GCC" = yes; then
9293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9294 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 else
9297 allow_undefined_flag=' -expect_unresolved \*'
9298 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9299 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9300 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9301
9302 # Both c and cxx compiler support -rpath directly
9303 hardcode_libdir_flag_spec='-rpath $libdir'
9304 fi
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_separator=:
9307 ;;
9308
9309 solaris*)
9310 no_undefined_flag=' -z defs'
9311 if test "$GCC" = yes; then
9312 wlarc='${wl}'
9313 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9315 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9316 else
9317 case `$CC -V 2>&1` in
9318 *"Compilers 5.0"*)
9319 wlarc=''
9320 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9323 ;;
9324 *)
9325 wlarc='${wl}'
9326 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9328 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9329 ;;
9330 esac
9331 fi
9332 hardcode_libdir_flag_spec='-R$libdir'
9333 hardcode_shlibpath_var=no
9334 case $host_os in
9335 solaris2.[0-5] | solaris2.[0-5].*) ;;
9336 *)
9337 # The compiler driver will combine and reorder linker options,
9338 # but understands `-z linker_flag'. GCC discards it without `$wl',
9339 # but is careful enough not to reorder.
9340 # Supported since Solaris 2.6 (maybe 2.5.1?)
9341 if test "$GCC" = yes; then
9342 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9343 else
9344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9345 fi
9346 ;;
9347 esac
9348 link_all_deplibs=yes
9349 ;;
9350
9351 sunos4*)
9352 if test "x$host_vendor" = xsequent; then
9353 # Use $CC to link under sequent, because it throws in some extra .o
9354 # files that make .init and .fini sections work.
9355 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9356 else
9357 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9358 fi
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 hardcode_direct=yes
9361 hardcode_minus_L=yes
9362 hardcode_shlibpath_var=no
9363 ;;
9364
9365 sysv4)
9366 case $host_vendor in
9367 sni)
9368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_direct=yes # is this really true???
9370 ;;
9371 siemens)
9372 ## LD is ld it makes a PLAMLIB
9373 ## CC just makes a GrossModule.
9374 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9375 reload_cmds='$CC -r -o $output$reload_objs'
9376 hardcode_direct=no
9377 ;;
9378 motorola)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9381 ;;
9382 esac
9383 runpath_var='LD_RUN_PATH'
9384 hardcode_shlibpath_var=no
9385 ;;
9386
9387 sysv4.3*)
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_shlibpath_var=no
9390 export_dynamic_flag_spec='-Bexport'
9391 ;;
9392
9393 sysv4*MP*)
9394 if test -d /usr/nec; then
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_shlibpath_var=no
9397 runpath_var=LD_RUN_PATH
9398 hardcode_runpath_var=yes
9399 ld_shlibs=yes
9400 fi
9401 ;;
9402
9403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9404 no_undefined_flag='${wl}-z,text'
9405 archive_cmds_need_lc=no
9406 hardcode_shlibpath_var=no
9407 runpath_var='LD_RUN_PATH'
9408
9409 if test "$GCC" = yes; then
9410 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 fi
9416 ;;
9417
9418 sysv5* | sco3.2v5* | sco5v6*)
9419 # Note: We can NOT use -z defs as we might desire, because we do not
9420 # link with -lc, and that would cause any symbols used from libc to
9421 # always be unresolved, which means just about no library would
9422 # ever link correctly. If we're not using GNU ld we use -z text
9423 # though, which does catch some bad symbols but isn't as heavy-handed
9424 # as -z defs.
9425 no_undefined_flag='${wl}-z,text'
9426 allow_undefined_flag='${wl}-z,nodefs'
9427 archive_cmds_need_lc=no
9428 hardcode_shlibpath_var=no
9429 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9430 hardcode_libdir_separator=':'
9431 link_all_deplibs=yes
9432 export_dynamic_flag_spec='${wl}-Bexport'
9433 runpath_var='LD_RUN_PATH'
9434
9435 if test "$GCC" = yes; then
9436 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 else
9439 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 fi
9442 ;;
9443
9444 uts4*)
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_shlibpath_var=no
9448 ;;
9449
9450 *)
9451 ld_shlibs=no
9452 ;;
9453 esac
9454
9455 if test x$host_vendor = xsni; then
9456 case $host in
9457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9458 export_dynamic_flag_spec='${wl}-Blargedynsym'
9459 ;;
9460 esac
9461 fi
9462 fi
9463
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9465 $as_echo "$ld_shlibs" >&6; }
9466 test "$ld_shlibs" = no && can_build_shared=no
9467
9468 with_gnu_ld=$with_gnu_ld
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484 #
9485 # Do we need to explicitly link libc?
9486 #
9487 case "x$archive_cmds_need_lc" in
9488 x|xyes)
9489 # Assume -lc should be added
9490 archive_cmds_need_lc=yes
9491
9492 if test "$enable_shared" = yes && test "$GCC" = yes; then
9493 case $archive_cmds in
9494 *'~'*)
9495 # FIXME: we may have to deal with multi-command sequences.
9496 ;;
9497 '$CC '*)
9498 # Test whether the compiler implicitly links with -lc since on some
9499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9500 # to ld, don't add -lc before -lgcc.
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9502 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9503 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 $RM conftest*
9507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9508
9509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9510 (eval $ac_compile) 2>&5
9511 ac_status=$?
9512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9513 test $ac_status = 0; } 2>conftest.err; then
9514 soname=conftest
9515 lib=conftest
9516 libobjs=conftest.$ac_objext
9517 deplibs=
9518 wl=$lt_prog_compiler_wl
9519 pic_flag=$lt_prog_compiler_pic
9520 compiler_flags=-v
9521 linker_flags=-v
9522 verstring=
9523 output_objdir=.
9524 libname=conftest
9525 lt_save_allow_undefined_flag=$allow_undefined_flag
9526 allow_undefined_flag=
9527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9528 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9529 ac_status=$?
9530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9531 test $ac_status = 0; }
9532 then
9533 lt_cv_archive_cmds_need_lc=no
9534 else
9535 lt_cv_archive_cmds_need_lc=yes
9536 fi
9537 allow_undefined_flag=$lt_save_allow_undefined_flag
9538 else
9539 cat conftest.err 1>&5
9540 fi
9541 $RM conftest*
9542
9543 fi
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9545 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9546 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9547 ;;
9548 esac
9549 fi
9550 ;;
9551 esac
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9710 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9711
9712 if test "$GCC" = yes; then
9713 case $host_os in
9714 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9715 *) lt_awk_arg="/^libraries:/" ;;
9716 esac
9717 case $host_os in
9718 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9719 *) lt_sed_strip_eq="s,=/,/,g" ;;
9720 esac
9721 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9722 case $lt_search_path_spec in
9723 *\;*)
9724 # if the path contains ";" then we assume it to be the separator
9725 # otherwise default to the standard path separator (i.e. ":") - it is
9726 # assumed that no part of a normal pathname contains ";" but that should
9727 # okay in the real world where ";" in dirpaths is itself problematic.
9728 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9729 ;;
9730 *)
9731 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9732 ;;
9733 esac
9734 # Ok, now we have the path, separated by spaces, we can step through it
9735 # and add multilib dir if necessary.
9736 lt_tmp_lt_search_path_spec=
9737 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9738 for lt_sys_path in $lt_search_path_spec; do
9739 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9740 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9741 else
9742 test -d "$lt_sys_path" && \
9743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9744 fi
9745 done
9746 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9747 BEGIN {RS=" "; FS="/|\n";} {
9748 lt_foo="";
9749 lt_count=0;
9750 for (lt_i = NF; lt_i > 0; lt_i--) {
9751 if ($lt_i != "" && $lt_i != ".") {
9752 if ($lt_i == "..") {
9753 lt_count++;
9754 } else {
9755 if (lt_count == 0) {
9756 lt_foo="/" $lt_i lt_foo;
9757 } else {
9758 lt_count--;
9759 }
9760 }
9761 }
9762 }
9763 if (lt_foo != "") { lt_freq[lt_foo]++; }
9764 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9765 }'`
9766 # AWK program above erroneously prepends '/' to C:/dos/paths
9767 # for these hosts.
9768 case $host_os in
9769 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9770 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9771 esac
9772 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9773 else
9774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9775 fi
9776 library_names_spec=
9777 libname_spec='lib$name'
9778 soname_spec=
9779 shrext_cmds=".so"
9780 postinstall_cmds=
9781 postuninstall_cmds=
9782 finish_cmds=
9783 finish_eval=
9784 shlibpath_var=
9785 shlibpath_overrides_runpath=unknown
9786 version_type=none
9787 dynamic_linker="$host_os ld.so"
9788 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9789 need_lib_prefix=unknown
9790 hardcode_into_libs=no
9791
9792 # when you set need_version to no, make sure it does not cause -set_version
9793 # flags to be left without arguments
9794 need_version=unknown
9795
9796 case $host_os in
9797 aix3*)
9798 version_type=linux
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9800 shlibpath_var=LIBPATH
9801
9802 # AIX 3 has no versioning support, so we append a major version to the name.
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 ;;
9805
9806 aix[4-9]*)
9807 version_type=linux
9808 need_lib_prefix=no
9809 need_version=no
9810 hardcode_into_libs=yes
9811 if test "$host_cpu" = ia64; then
9812 # AIX 5 supports IA64
9813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 else
9816 # With GCC up to 2.95.x, collect2 would create an import file
9817 # for dependence libraries. The import file would start with
9818 # the line `#! .'. This would cause the generated library to
9819 # depend on `.', always an invalid library. This was fixed in
9820 # development snapshots of GCC prior to 3.0.
9821 case $host_os in
9822 aix4 | aix4.[01] | aix4.[01].*)
9823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9824 echo ' yes '
9825 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9826 :
9827 else
9828 can_build_shared=no
9829 fi
9830 ;;
9831 esac
9832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9833 # soname into executable. Probably we can add versioning support to
9834 # collect2, so additional links can be useful in future.
9835 if test "$aix_use_runtimelinking" = yes; then
9836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9837 # instead of lib<name>.a to let people know that these are not
9838 # typical AIX shared libraries.
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 else
9841 # We preserve .a as extension for shared libraries through AIX4.2
9842 # and later when we are not doing run time linking.
9843 library_names_spec='${libname}${release}.a $libname.a'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 fi
9846 shlibpath_var=LIBPATH
9847 fi
9848 ;;
9849
9850 amigaos*)
9851 case $host_cpu in
9852 powerpc)
9853 # Since July 2007 AmigaOS4 officially supports .so libraries.
9854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 ;;
9857 m68k)
9858 library_names_spec='$libname.ixlibrary $libname.a'
9859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9860 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9861 ;;
9862 esac
9863 ;;
9864
9865 beos*)
9866 library_names_spec='${libname}${shared_ext}'
9867 dynamic_linker="$host_os ld.so"
9868 shlibpath_var=LIBRARY_PATH
9869 ;;
9870
9871 bsdi[45]*)
9872 version_type=linux
9873 need_version=no
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 soname_spec='${libname}${release}${shared_ext}$major'
9876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9880 # the default ld.so.conf also contains /usr/contrib/lib and
9881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9882 # libtool to hard-code these into programs
9883 ;;
9884
9885 cygwin* | mingw* | pw32* | cegcc*)
9886 version_type=windows
9887 shrext_cmds=".dll"
9888 need_version=no
9889 need_lib_prefix=no
9890
9891 case $GCC,$host_os in
9892 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9893 library_names_spec='$libname.dll.a'
9894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9895 postinstall_cmds='base_file=`basename \${file}`~
9896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9897 dldir=$destdir/`dirname \$dlpath`~
9898 test -d \$dldir || mkdir -p \$dldir~
9899 $install_prog $dir/$dlname \$dldir/$dlname~
9900 chmod a+x \$dldir/$dlname~
9901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9903 fi'
9904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905 dlpath=$dir/\$dldll~
9906 $RM \$dlpath'
9907 shlibpath_overrides_runpath=yes
9908
9909 case $host_os in
9910 cygwin*)
9911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913
9914 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9915 ;;
9916 mingw* | cegcc*)
9917 # MinGW DLLs use traditional 'lib' prefix
9918 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9919 ;;
9920 pw32*)
9921 # pw32 DLLs use 'pw' prefix rather than 'lib'
9922 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9923 ;;
9924 esac
9925 ;;
9926
9927 *)
9928 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9929 ;;
9930 esac
9931 dynamic_linker='Win32 ld.exe'
9932 # FIXME: first we should search . and the directory the executable is in
9933 shlibpath_var=PATH
9934 ;;
9935
9936 darwin* | rhapsody*)
9937 dynamic_linker="$host_os dyld"
9938 version_type=darwin
9939 need_lib_prefix=no
9940 need_version=no
9941 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9942 soname_spec='${libname}${release}${major}$shared_ext'
9943 shlibpath_overrides_runpath=yes
9944 shlibpath_var=DYLD_LIBRARY_PATH
9945 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9946
9947 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9948 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9949 ;;
9950
9951 dgux*)
9952 version_type=linux
9953 need_lib_prefix=no
9954 need_version=no
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 shlibpath_var=LD_LIBRARY_PATH
9958 ;;
9959
9960 freebsd* | dragonfly*)
9961 # DragonFly does not have aout. When/if they implement a new
9962 # versioning mechanism, adjust this.
9963 if test -x /usr/bin/objformat; then
9964 objformat=`/usr/bin/objformat`
9965 else
9966 case $host_os in
9967 freebsd[23].*) objformat=aout ;;
9968 *) objformat=elf ;;
9969 esac
9970 fi
9971 version_type=freebsd-$objformat
9972 case $version_type in
9973 freebsd-elf*)
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9975 need_version=no
9976 need_lib_prefix=no
9977 ;;
9978 freebsd-*)
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9980 need_version=yes
9981 ;;
9982 esac
9983 shlibpath_var=LD_LIBRARY_PATH
9984 case $host_os in
9985 freebsd2.*)
9986 shlibpath_overrides_runpath=yes
9987 ;;
9988 freebsd3.[01]* | freebsdelf3.[01]*)
9989 shlibpath_overrides_runpath=yes
9990 hardcode_into_libs=yes
9991 ;;
9992 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9993 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9994 shlibpath_overrides_runpath=no
9995 hardcode_into_libs=yes
9996 ;;
9997 *) # from 4.6 on, and DragonFly
9998 shlibpath_overrides_runpath=yes
9999 hardcode_into_libs=yes
10000 ;;
10001 esac
10002 ;;
10003
10004 haiku*)
10005 version_type=linux
10006 need_lib_prefix=no
10007 need_version=no
10008 dynamic_linker="$host_os runtime_loader"
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes
10013 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10014 hardcode_into_libs=yes
10015 ;;
10016
10017 hpux9* | hpux10* | hpux11*)
10018 # Give a soname corresponding to the major version so that dld.sl refuses to
10019 # link against other versions.
10020 version_type=sunos
10021 need_lib_prefix=no
10022 need_version=no
10023 case $host_cpu in
10024 ia64*)
10025 shrext_cmds='.so'
10026 hardcode_into_libs=yes
10027 dynamic_linker="$host_os dld.so"
10028 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 if test "X$HPUX_IA64_MODE" = X32; then
10033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10034 else
10035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10036 fi
10037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10038 ;;
10039 hppa*64*)
10040 shrext_cmds='.sl'
10041 hardcode_into_libs=yes
10042 dynamic_linker="$host_os dld.sl"
10043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10049 ;;
10050 *)
10051 shrext_cmds='.sl'
10052 dynamic_linker="$host_os dld.sl"
10053 shlibpath_var=SHLIB_PATH
10054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 ;;
10058 esac
10059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10060 postinstall_cmds='chmod 555 $lib'
10061 # or fails outright, so override atomically:
10062 install_override_mode=555
10063 ;;
10064
10065 interix[3-9]*)
10066 version_type=linux
10067 need_lib_prefix=no
10068 need_version=no
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=no
10074 hardcode_into_libs=yes
10075 ;;
10076
10077 irix5* | irix6* | nonstopux*)
10078 case $host_os in
10079 nonstopux*) version_type=nonstopux ;;
10080 *)
10081 if test "$lt_cv_prog_gnu_ld" = yes; then
10082 version_type=linux
10083 else
10084 version_type=irix
10085 fi ;;
10086 esac
10087 need_lib_prefix=no
10088 need_version=no
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10091 case $host_os in
10092 irix5* | nonstopux*)
10093 libsuff= shlibsuff=
10094 ;;
10095 *)
10096 case $LD in # libtool.m4 will add one of these switches to LD
10097 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10098 libsuff= shlibsuff= libmagic=32-bit;;
10099 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10100 libsuff=32 shlibsuff=N32 libmagic=N32;;
10101 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10102 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10103 *) libsuff= shlibsuff= libmagic=never-match;;
10104 esac
10105 ;;
10106 esac
10107 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10108 shlibpath_overrides_runpath=no
10109 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10110 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10111 hardcode_into_libs=yes
10112 ;;
10113
10114 # No shared lib support for Linux oldld, aout, or coff.
10115 linux*oldld* | linux*aout* | linux*coff*)
10116 dynamic_linker=no
10117 ;;
10118
10119 # This must be Linux ELF.
10120 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10121 version_type=linux
10122 need_lib_prefix=no
10123 need_version=no
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 shlibpath_overrides_runpath=no
10129
10130 # Some binutils ld are patched to set DT_RUNPATH
10131 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 lt_cv_shlibpath_overrides_runpath=no
10135 save_LDFLAGS=$LDFLAGS
10136 save_libdir=$libdir
10137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h. */
10141
10142 int
10143 main ()
10144 {
10145
10146 ;
10147 return 0;
10148 }
10149 _ACEOF
10150 if ac_fn_c_try_link "$LINENO"; then :
10151 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10152 lt_cv_shlibpath_overrides_runpath=yes
10153 fi
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LDFLAGS=$save_LDFLAGS
10158 libdir=$save_libdir
10159
10160 fi
10161
10162 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10163
10164 # This implies no fast_install, which is unacceptable.
10165 # Some rework will be needed to allow for fast_install
10166 # before this can be enabled.
10167 hardcode_into_libs=yes
10168
10169 # Append ld.so.conf contents to the search path
10170 if test -f /etc/ld.so.conf; then
10171 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10173 fi
10174
10175 # We used to test for /lib/ld.so.1 and disable shared libraries on
10176 # powerpc, because MkLinux only supported shared libraries with the
10177 # GNU dynamic linker. Since this was broken with cross compilers,
10178 # most powerpc-linux boxes support dynamic linking these days and
10179 # people can always --disable-shared, the test was removed, and we
10180 # assume the GNU/Linux dynamic linker is in use.
10181 dynamic_linker='GNU/Linux ld.so'
10182 ;;
10183
10184 netbsd*)
10185 version_type=sunos
10186 need_lib_prefix=no
10187 need_version=no
10188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10191 dynamic_linker='NetBSD (a.out) ld.so'
10192 else
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 dynamic_linker='NetBSD ld.elf_so'
10196 fi
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=yes
10199 hardcode_into_libs=yes
10200 ;;
10201
10202 newsos6)
10203 version_type=linux
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 shlibpath_overrides_runpath=yes
10207 ;;
10208
10209 *nto* | *qnx*)
10210 version_type=qnx
10211 need_lib_prefix=no
10212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 shlibpath_overrides_runpath=no
10217 hardcode_into_libs=yes
10218 dynamic_linker='ldqnx.so'
10219 ;;
10220
10221 openbsd*)
10222 version_type=sunos
10223 sys_lib_dlsearch_path_spec="/usr/lib"
10224 need_lib_prefix=no
10225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10226 case $host_os in
10227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10228 *) need_version=no ;;
10229 esac
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10234 case $host_os in
10235 openbsd2.[89] | openbsd2.[89].*)
10236 shlibpath_overrides_runpath=no
10237 ;;
10238 *)
10239 shlibpath_overrides_runpath=yes
10240 ;;
10241 esac
10242 else
10243 shlibpath_overrides_runpath=yes
10244 fi
10245 ;;
10246
10247 os2*)
10248 libname_spec='$name'
10249 shrext_cmds=".dll"
10250 need_lib_prefix=no
10251 library_names_spec='$libname${shared_ext} $libname.a'
10252 dynamic_linker='OS/2 ld.exe'
10253 shlibpath_var=LIBPATH
10254 ;;
10255
10256 osf3* | osf4* | osf5*)
10257 version_type=osf
10258 need_lib_prefix=no
10259 need_version=no
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10265 ;;
10266
10267 rdos*)
10268 dynamic_linker=no
10269 ;;
10270
10271 solaris*)
10272 version_type=linux
10273 need_lib_prefix=no
10274 need_version=no
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes
10279 hardcode_into_libs=yes
10280 # ldd complains unless libraries are executable
10281 postinstall_cmds='chmod +x $lib'
10282 ;;
10283
10284 sunos4*)
10285 version_type=sunos
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 if test "$with_gnu_ld" = yes; then
10291 need_lib_prefix=no
10292 fi
10293 need_version=yes
10294 ;;
10295
10296 sysv4 | sysv4.3*)
10297 version_type=linux
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 case $host_vendor in
10302 sni)
10303 shlibpath_overrides_runpath=no
10304 need_lib_prefix=no
10305 runpath_var=LD_RUN_PATH
10306 ;;
10307 siemens)
10308 need_lib_prefix=no
10309 ;;
10310 motorola)
10311 need_lib_prefix=no
10312 need_version=no
10313 shlibpath_overrides_runpath=no
10314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10315 ;;
10316 esac
10317 ;;
10318
10319 sysv4*MP*)
10320 if test -d /usr/nec ;then
10321 version_type=linux
10322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10323 soname_spec='$libname${shared_ext}.$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 fi
10326 ;;
10327
10328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10329 version_type=freebsd-elf
10330 need_lib_prefix=no
10331 need_version=no
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 shlibpath_overrides_runpath=yes
10336 hardcode_into_libs=yes
10337 if test "$with_gnu_ld" = yes; then
10338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10339 else
10340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10341 case $host_os in
10342 sco3.2v5*)
10343 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10344 ;;
10345 esac
10346 fi
10347 sys_lib_dlsearch_path_spec='/usr/lib'
10348 ;;
10349
10350 tpf*)
10351 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10352 version_type=linux
10353 need_lib_prefix=no
10354 need_version=no
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath=no
10358 hardcode_into_libs=yes
10359 ;;
10360
10361 uts4*)
10362 version_type=linux
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 ;;
10367
10368 *)
10369 dynamic_linker=no
10370 ;;
10371 esac
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10373 $as_echo "$dynamic_linker" >&6; }
10374 test "$dynamic_linker" = no && can_build_shared=no
10375
10376 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10377 if test "$GCC" = yes; then
10378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10379 fi
10380
10381 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10382 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10383 fi
10384 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10385 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10386 fi
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10480 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10481 hardcode_action=
10482 if test -n "$hardcode_libdir_flag_spec" ||
10483 test -n "$runpath_var" ||
10484 test "X$hardcode_automatic" = "Xyes" ; then
10485
10486 # We can hardcode non-existent directories.
10487 if test "$hardcode_direct" != no &&
10488 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10489 # have to relink, otherwise we might link with an installed library
10490 # when we should be linking with a yet-to-be-installed one
10491 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10492 test "$hardcode_minus_L" != no; then
10493 # Linking always hardcodes the temporary library directory.
10494 hardcode_action=relink
10495 else
10496 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10497 hardcode_action=immediate
10498 fi
10499 else
10500 # We cannot hardcode anything, or else we can only hardcode existing
10501 # directories.
10502 hardcode_action=unsupported
10503 fi
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10505 $as_echo "$hardcode_action" >&6; }
10506
10507 if test "$hardcode_action" = relink ||
10508 test "$inherit_rpath" = yes; then
10509 # Fast installation is not supported
10510 enable_fast_install=no
10511 elif test "$shlibpath_overrides_runpath" = yes ||
10512 test "$enable_shared" = no; then
10513 # Fast installation is not necessary
10514 enable_fast_install=needless
10515 fi
10516
10517
10518
10519
10520
10521
10522 if test "x$enable_dlopen" != xyes; then
10523 enable_dlopen=unknown
10524 enable_dlopen_self=unknown
10525 enable_dlopen_self_static=unknown
10526 else
10527 lt_cv_dlopen=no
10528 lt_cv_dlopen_libs=
10529
10530 case $host_os in
10531 beos*)
10532 lt_cv_dlopen="load_add_on"
10533 lt_cv_dlopen_libs=
10534 lt_cv_dlopen_self=yes
10535 ;;
10536
10537 mingw* | pw32* | cegcc*)
10538 lt_cv_dlopen="LoadLibrary"
10539 lt_cv_dlopen_libs=
10540 ;;
10541
10542 cygwin*)
10543 lt_cv_dlopen="dlopen"
10544 lt_cv_dlopen_libs=
10545 ;;
10546
10547 darwin*)
10548 # if libdl is installed we need to link against it
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10550 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10551 if ${ac_cv_lib_dl_dlopen+:} false; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-ldl $LIBS"
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558
10559 /* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 char dlopen ();
10566 int
10567 main ()
10568 {
10569 return dlopen ();
10570 ;
10571 return 0;
10572 }
10573 _ACEOF
10574 if ac_fn_c_try_link "$LINENO"; then :
10575 ac_cv_lib_dl_dlopen=yes
10576 else
10577 ac_cv_lib_dl_dlopen=no
10578 fi
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10582 fi
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10584 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10585 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10587 else
10588
10589 lt_cv_dlopen="dyld"
10590 lt_cv_dlopen_libs=
10591 lt_cv_dlopen_self=yes
10592
10593 fi
10594
10595 ;;
10596
10597 *)
10598 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10599 if test "x$ac_cv_func_shl_load" = xyes; then :
10600 lt_cv_dlopen="shl_load"
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10603 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10604 if ${ac_cv_lib_dld_shl_load+:} false; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 ac_check_lib_save_LIBS=$LIBS
10608 LIBS="-ldld $LIBS"
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611
10612 /* Override any GCC internal prototype to avoid an error.
10613 Use char because int might match the return type of a GCC
10614 builtin and then its argument prototype would still apply. */
10615 #ifdef __cplusplus
10616 extern "C"
10617 #endif
10618 char shl_load ();
10619 int
10620 main ()
10621 {
10622 return shl_load ();
10623 ;
10624 return 0;
10625 }
10626 _ACEOF
10627 if ac_fn_c_try_link "$LINENO"; then :
10628 ac_cv_lib_dld_shl_load=yes
10629 else
10630 ac_cv_lib_dld_shl_load=no
10631 fi
10632 rm -f core conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext conftest.$ac_ext
10634 LIBS=$ac_check_lib_save_LIBS
10635 fi
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10637 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10638 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10639 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10640 else
10641 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10642 if test "x$ac_cv_func_dlopen" = xyes; then :
10643 lt_cv_dlopen="dlopen"
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10646 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10647 if ${ac_cv_lib_dl_dlopen+:} false; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 ac_check_lib_save_LIBS=$LIBS
10651 LIBS="-ldl $LIBS"
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10654
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char dlopen ();
10662 int
10663 main ()
10664 {
10665 return dlopen ();
10666 ;
10667 return 0;
10668 }
10669 _ACEOF
10670 if ac_fn_c_try_link "$LINENO"; then :
10671 ac_cv_lib_dl_dlopen=yes
10672 else
10673 ac_cv_lib_dl_dlopen=no
10674 fi
10675 rm -f core conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 LIBS=$ac_check_lib_save_LIBS
10678 fi
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10680 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10681 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10685 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10686 if ${ac_cv_lib_svld_dlopen+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-lsvld $LIBS"
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char dlopen ();
10701 int
10702 main ()
10703 {
10704 return dlopen ();
10705 ;
10706 return 0;
10707 }
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710 ac_cv_lib_svld_dlopen=yes
10711 else
10712 ac_cv_lib_svld_dlopen=no
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716 LIBS=$ac_check_lib_save_LIBS
10717 fi
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10719 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10720 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10724 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10725 if ${ac_cv_lib_dld_dld_link+:} false; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-ldld $LIBS"
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732
10733 /* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
10736 #ifdef __cplusplus
10737 extern "C"
10738 #endif
10739 char dld_link ();
10740 int
10741 main ()
10742 {
10743 return dld_link ();
10744 ;
10745 return 0;
10746 }
10747 _ACEOF
10748 if ac_fn_c_try_link "$LINENO"; then :
10749 ac_cv_lib_dld_dld_link=yes
10750 else
10751 ac_cv_lib_dld_dld_link=no
10752 fi
10753 rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_check_lib_save_LIBS
10756 fi
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10758 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10759 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10760 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10761 fi
10762
10763
10764 fi
10765
10766
10767 fi
10768
10769
10770 fi
10771
10772
10773 fi
10774
10775
10776 fi
10777
10778 ;;
10779 esac
10780
10781 if test "x$lt_cv_dlopen" != xno; then
10782 enable_dlopen=yes
10783 else
10784 enable_dlopen=no
10785 fi
10786
10787 case $lt_cv_dlopen in
10788 dlopen)
10789 save_CPPFLAGS="$CPPFLAGS"
10790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10791
10792 save_LDFLAGS="$LDFLAGS"
10793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10794
10795 save_LIBS="$LIBS"
10796 LIBS="$lt_cv_dlopen_libs $LIBS"
10797
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10799 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10800 if ${lt_cv_dlopen_self+:} false; then :
10801 $as_echo_n "(cached) " >&6
10802 else
10803 if test "$cross_compiling" = yes; then :
10804 lt_cv_dlopen_self=cross
10805 else
10806 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10807 lt_status=$lt_dlunknown
10808 cat > conftest.$ac_ext <<_LT_EOF
10809 #line 10809 "configure"
10810 #include "confdefs.h"
10811
10812 #if HAVE_DLFCN_H
10813 #include <dlfcn.h>
10814 #endif
10815
10816 #include <stdio.h>
10817
10818 #ifdef RTLD_GLOBAL
10819 # define LT_DLGLOBAL RTLD_GLOBAL
10820 #else
10821 # ifdef DL_GLOBAL
10822 # define LT_DLGLOBAL DL_GLOBAL
10823 # else
10824 # define LT_DLGLOBAL 0
10825 # endif
10826 #endif
10827
10828 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10829 find out it does not work in some platform. */
10830 #ifndef LT_DLLAZY_OR_NOW
10831 # ifdef RTLD_LAZY
10832 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10833 # else
10834 # ifdef DL_LAZY
10835 # define LT_DLLAZY_OR_NOW DL_LAZY
10836 # else
10837 # ifdef RTLD_NOW
10838 # define LT_DLLAZY_OR_NOW RTLD_NOW
10839 # else
10840 # ifdef DL_NOW
10841 # define LT_DLLAZY_OR_NOW DL_NOW
10842 # else
10843 # define LT_DLLAZY_OR_NOW 0
10844 # endif
10845 # endif
10846 # endif
10847 # endif
10848 #endif
10849
10850 /* When -fvisbility=hidden is used, assume the code has been annotated
10851 correspondingly for the symbols needed. */
10852 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10853 void fnord () __attribute__((visibility("default")));
10854 #endif
10855
10856 void fnord () { int i=42; }
10857 int main ()
10858 {
10859 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10860 int status = $lt_dlunknown;
10861
10862 if (self)
10863 {
10864 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10865 else
10866 {
10867 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10868 else puts (dlerror ());
10869 }
10870 /* dlclose (self); */
10871 }
10872 else
10873 puts (dlerror ());
10874
10875 return status;
10876 }
10877 _LT_EOF
10878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10879 (eval $ac_link) 2>&5
10880 ac_status=$?
10881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10882 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10883 (./conftest; exit; ) >&5 2>/dev/null
10884 lt_status=$?
10885 case x$lt_status in
10886 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10887 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10888 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10889 esac
10890 else :
10891 # compilation failed
10892 lt_cv_dlopen_self=no
10893 fi
10894 fi
10895 rm -fr conftest*
10896
10897
10898 fi
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10900 $as_echo "$lt_cv_dlopen_self" >&6; }
10901
10902 if test "x$lt_cv_dlopen_self" = xyes; then
10903 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10905 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10906 if ${lt_cv_dlopen_self_static+:} false; then :
10907 $as_echo_n "(cached) " >&6
10908 else
10909 if test "$cross_compiling" = yes; then :
10910 lt_cv_dlopen_self_static=cross
10911 else
10912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10913 lt_status=$lt_dlunknown
10914 cat > conftest.$ac_ext <<_LT_EOF
10915 #line 10915 "configure"
10916 #include "confdefs.h"
10917
10918 #if HAVE_DLFCN_H
10919 #include <dlfcn.h>
10920 #endif
10921
10922 #include <stdio.h>
10923
10924 #ifdef RTLD_GLOBAL
10925 # define LT_DLGLOBAL RTLD_GLOBAL
10926 #else
10927 # ifdef DL_GLOBAL
10928 # define LT_DLGLOBAL DL_GLOBAL
10929 # else
10930 # define LT_DLGLOBAL 0
10931 # endif
10932 #endif
10933
10934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10935 find out it does not work in some platform. */
10936 #ifndef LT_DLLAZY_OR_NOW
10937 # ifdef RTLD_LAZY
10938 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10939 # else
10940 # ifdef DL_LAZY
10941 # define LT_DLLAZY_OR_NOW DL_LAZY
10942 # else
10943 # ifdef RTLD_NOW
10944 # define LT_DLLAZY_OR_NOW RTLD_NOW
10945 # else
10946 # ifdef DL_NOW
10947 # define LT_DLLAZY_OR_NOW DL_NOW
10948 # else
10949 # define LT_DLLAZY_OR_NOW 0
10950 # endif
10951 # endif
10952 # endif
10953 # endif
10954 #endif
10955
10956 /* When -fvisbility=hidden is used, assume the code has been annotated
10957 correspondingly for the symbols needed. */
10958 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10959 void fnord () __attribute__((visibility("default")));
10960 #endif
10961
10962 void fnord () { int i=42; }
10963 int main ()
10964 {
10965 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10966 int status = $lt_dlunknown;
10967
10968 if (self)
10969 {
10970 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10971 else
10972 {
10973 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10974 else puts (dlerror ());
10975 }
10976 /* dlclose (self); */
10977 }
10978 else
10979 puts (dlerror ());
10980
10981 return status;
10982 }
10983 _LT_EOF
10984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10985 (eval $ac_link) 2>&5
10986 ac_status=$?
10987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10988 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10989 (./conftest; exit; ) >&5 2>/dev/null
10990 lt_status=$?
10991 case x$lt_status in
10992 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10993 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10994 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10995 esac
10996 else :
10997 # compilation failed
10998 lt_cv_dlopen_self_static=no
10999 fi
11000 fi
11001 rm -fr conftest*
11002
11003
11004 fi
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11006 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11007 fi
11008
11009 CPPFLAGS="$save_CPPFLAGS"
11010 LDFLAGS="$save_LDFLAGS"
11011 LIBS="$save_LIBS"
11012 ;;
11013 esac
11014
11015 case $lt_cv_dlopen_self in
11016 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11017 *) enable_dlopen_self=unknown ;;
11018 esac
11019
11020 case $lt_cv_dlopen_self_static in
11021 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11022 *) enable_dlopen_self_static=unknown ;;
11023 esac
11024 fi
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042 striplib=
11043 old_striplib=
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11045 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11046 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11047 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11048 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11050 $as_echo "yes" >&6; }
11051 else
11052 # FIXME - insert some real tests, host_os isn't really good enough
11053 case $host_os in
11054 darwin*)
11055 if test -n "$STRIP" ; then
11056 striplib="$STRIP -x"
11057 old_striplib="$STRIP -S"
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059 $as_echo "yes" >&6; }
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11063 fi
11064 ;;
11065 *)
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 $as_echo "no" >&6; }
11068 ;;
11069 esac
11070 fi
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 # Report which library types will actually be built
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11085 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11087 $as_echo "$can_build_shared" >&6; }
11088
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11090 $as_echo_n "checking whether to build shared libraries... " >&6; }
11091 test "$can_build_shared" = "no" && enable_shared=no
11092
11093 # On AIX, shared libraries and static libraries use the same namespace, and
11094 # are all built from PIC.
11095 case $host_os in
11096 aix3*)
11097 test "$enable_shared" = yes && enable_static=no
11098 if test -n "$RANLIB"; then
11099 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11100 postinstall_cmds='$RANLIB $lib'
11101 fi
11102 ;;
11103
11104 aix[4-9]*)
11105 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11106 test "$enable_shared" = yes && enable_static=no
11107 fi
11108 ;;
11109 esac
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11111 $as_echo "$enable_shared" >&6; }
11112
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11114 $as_echo_n "checking whether to build static libraries... " >&6; }
11115 # Make sure either enable_shared or enable_static is yes.
11116 test "$enable_shared" = yes || enable_static=yes
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11118 $as_echo "$enable_static" >&6; }
11119
11120
11121
11122
11123 fi
11124 ac_ext=c
11125 ac_cpp='$CPP $CPPFLAGS'
11126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11129
11130 CC="$lt_save_CC"
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144 ac_config_commands="$ac_config_commands libtool"
11145
11146
11147
11148
11149 # Only expand once:
11150
11151
11152
11153
11154
11155
11156
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11158 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11159 # Check whether --enable-maintainer-mode was given.
11160 if test "${enable_maintainer_mode+set}" = set; then :
11161 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11162 else
11163 USE_MAINTAINER_MODE=no
11164 fi
11165
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11167 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11168 if test $USE_MAINTAINER_MODE = yes; then
11169 MAINTAINER_MODE_TRUE=
11170 MAINTAINER_MODE_FALSE='#'
11171 else
11172 MAINTAINER_MODE_TRUE='#'
11173 MAINTAINER_MODE_FALSE=
11174 fi
11175
11176 MAINT=$MAINTAINER_MODE_TRUE
11177
11178
11179
11180
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11182 $as_echo_n "checking for sim debug setting... " >&6; }
11183 sim_debug="0"
11184 # Check whether --enable-sim-debug was given.
11185 if test "${enable_sim_debug+set}" = set; then :
11186 enableval=$enable_sim_debug; case "${enableval}" in
11187 yes) sim_debug="7";;
11188 no) sim_debug="0";;
11189 *) sim_debug="($enableval)";;
11190 esac
11191 fi
11192 if test "$sim_debug" != "0"; then
11193
11194 cat >>confdefs.h <<_ACEOF
11195 #define DEBUG $sim_debug
11196 _ACEOF
11197
11198 fi
11199
11200 cat >>confdefs.h <<_ACEOF
11201 #define WITH_DEBUG $sim_debug
11202 _ACEOF
11203
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11205 $as_echo "$sim_debug" >&6; }
11206
11207
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11209 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
11210 sim_stdio="0"
11211 # Check whether --enable-sim-stdio was given.
11212 if test "${enable_sim_stdio+set}" = set; then :
11213 enableval=$enable_sim_stdio; case "${enableval}" in
11214 yes) sim_stdio="DO_USE_STDIO";;
11215 no) sim_stdio="DONT_USE_STDIO";;
11216 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
11217 esac
11218 fi
11219
11220 cat >>confdefs.h <<_ACEOF
11221 #define WITH_STDIO $sim_stdio
11222 _ACEOF
11223
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11225 $as_echo "$sim_stdio" >&6; }
11226
11227
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11229 $as_echo_n "checking for sim trace settings... " >&6; }
11230 sim_trace="~TRACE_debug"
11231 # Check whether --enable-sim-trace was given.
11232 if test "${enable_sim_trace+set}" = set; then :
11233 enableval=$enable_sim_trace; case "${enableval}" in
11234 yes) sim_trace="-1";;
11235 no) sim_trace="0";;
11236 [-0-9]*)
11237 sim_trace="'(${enableval})'";;
11238 [[:lower:]]*)
11239 sim_trace=""
11240 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11241 if test x"$sim_trace" = x; then
11242 sim_trace="(TRACE_$x"
11243 else
11244 sim_trace="${sim_trace}|TRACE_$x"
11245 fi
11246 done
11247 sim_trace="$sim_trace)" ;;
11248 esac
11249 fi
11250
11251 cat >>confdefs.h <<_ACEOF
11252 #define WITH_TRACE $sim_trace
11253 _ACEOF
11254
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11256 $as_echo "$sim_trace" >&6; }
11257
11258
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11260 $as_echo_n "checking for sim profile settings... " >&6; }
11261 profile="1"
11262 sim_profile="-1"
11263 # Check whether --enable-sim-profile was given.
11264 if test "${enable_sim_profile+set}" = set; then :
11265 enableval=$enable_sim_profile; case "${enableval}" in
11266 yes) profile="1" sim_profile="-1";;
11267 no) profile="0" sim_profile="0";;
11268 [-0-9]*)
11269 profile="(${enableval})" sim_profile="(${enableval})";;
11270 [a-z]*)
11271 profile="1"
11272 sim_profile=""
11273 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11274 if test x"$sim_profile" = x; then
11275 sim_profile="(PROFILE_$x"
11276 else
11277 sim_profile="${sim_profile}|PROFILE_$x"
11278 fi
11279 done
11280 sim_profile="$sim_profile)" ;;
11281 esac
11282 fi
11283
11284 cat >>confdefs.h <<_ACEOF
11285 #define PROFILE $profile
11286 _ACEOF
11287
11288
11289 cat >>confdefs.h <<_ACEOF
11290 #define WITH_PROFILE $sim_profile
11291 _ACEOF
11292
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11294 $as_echo "$sim_profile" >&6; }
11295
11296
11297
11298 sim_inline="-DDEFAULT_INLINE=0"
11299 # Check whether --enable-sim-inline was given.
11300 if test "${enable_sim_inline+set}" = set; then :
11301 enableval=$enable_sim_inline; sim_inline=""
11302 case "$enableval" in
11303 no) sim_inline="-DDEFAULT_INLINE=0";;
11304 0) sim_inline="-DDEFAULT_INLINE=0";;
11305 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11306 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11307 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11308 new_flag=""
11309 case "$x" in
11310 *_INLINE=*) new_flag="-D$x";;
11311 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11312 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11313 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11314 esac
11315 if test x"$sim_inline" = x""; then
11316 sim_inline="$new_flag"
11317 else
11318 sim_inline="$sim_inline $new_flag"
11319 fi
11320 done;;
11321 esac
11322 if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11323 echo "Setting inline flags = $sim_inline" 6>&1
11324 fi
11325 fi
11326
11327
11328
11329
11330 # Check whether --with-pkgversion was given.
11331 if test "${with_pkgversion+set}" = set; then :
11332 withval=$with_pkgversion; case "$withval" in
11333 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
11334 no) PKGVERSION= ;;
11335 *) PKGVERSION="($withval) " ;;
11336 esac
11337 else
11338 PKGVERSION="(SIM) "
11339
11340 fi
11341
11342
11343
11344
11345
11346 # Check whether --with-bugurl was given.
11347 if test "${with_bugurl+set}" = set; then :
11348 withval=$with_bugurl; case "$withval" in
11349 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
11350 no) BUGURL=
11351 ;;
11352 *) BUGURL="$withval"
11353 ;;
11354 esac
11355 else
11356 BUGURL="https://www.gnu.org/software/gdb/bugs/"
11357
11358 fi
11359
11360 case ${BUGURL} in
11361 "")
11362 REPORT_BUGS_TO=
11363 REPORT_BUGS_TEXI=
11364 ;;
11365 *)
11366 REPORT_BUGS_TO="<$BUGURL>"
11367 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11368 ;;
11369 esac;
11370
11371
11372
11373
11374 cat >>confdefs.h <<_ACEOF
11375 #define PKGVERSION "$PKGVERSION"
11376 _ACEOF
11377
11378
11379 cat >>confdefs.h <<_ACEOF
11380 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11381 _ACEOF
11382
11383
11384
11385
11386
11387 wire_alignment="NONSTRICT_ALIGNMENT"
11388 default_alignment=""
11389
11390 # Check whether --enable-sim-alignment was given.
11391 if test "${enable_sim_alignment+set}" = set; then :
11392 enableval=$enable_sim_alignment; case "${enableval}" in
11393 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11394 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11395 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11396 yes) if test x"$wire_alignment" != x; then
11397 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11398 else
11399 if test x"$default_alignment" != x; then
11400 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
11401 else
11402 echo "No hard-wired alignment for target $target" 1>&6
11403 sim_alignment="-DWITH_ALIGNMENT=0"
11404 fi
11405 fi;;
11406 no) if test x"$default_alignment" != x; then
11407 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11408 else
11409 if test x"$wire_alignment" != x; then
11410 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11411 else
11412 echo "No default alignment for target $target" 1>&6
11413 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
11414 fi
11415 fi;;
11416 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
11417 esac
11418 if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
11419 echo "Setting alignment flags = $sim_alignment" 6>&1
11420 fi
11421 else
11422 if test x"$default_alignment" != x; then
11423 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11424 else
11425 if test x"$wire_alignment" != x; then
11426 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11427 else
11428 sim_alignment=
11429 fi
11430 fi
11431 fi
11432
11433
11434 # Check whether --enable-werror was given.
11435 if test "${enable_werror+set}" = set; then :
11436 enableval=$enable_werror; case "${enableval}" in
11437 yes | y) ERROR_ON_WARNING="yes" ;;
11438 no | n) ERROR_ON_WARNING="no" ;;
11439 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11440 esac
11441 fi
11442
11443
11444 # Enable -Werror by default when using gcc
11445 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11446 ERROR_ON_WARNING=yes
11447 fi
11448
11449 WERROR_CFLAGS=""
11450
11451 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
11452 -Wpointer-sign \
11453 -Wno-unused -Wunused-value -Wunused-function \
11454 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11455 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11456 -Wold-style-declaration -Wold-style-definition"
11457
11458 # Enable -Wno-format by default when using gcc on mingw since many
11459 # GCC versions complain about %I64.
11460 case "${host}" in
11461 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
11462 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
11463 esac
11464
11465 # Check whether --enable-build-warnings was given.
11466 if test "${enable_build_warnings+set}" = set; then :
11467 enableval=$enable_build_warnings; case "${enableval}" in
11468 yes) ;;
11469 no) build_warnings="-w";;
11470 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11471 build_warnings="${build_warnings} ${t}";;
11472 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11473 build_warnings="${t} ${build_warnings}";;
11474 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11475 esac
11476 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11477 echo "Setting compiler warning flags = $build_warnings" 6>&1
11478 fi
11479 fi
11480 # Check whether --enable-sim-build-warnings was given.
11481 if test "${enable_sim_build_warnings+set}" = set; then :
11482 enableval=$enable_sim_build_warnings; case "${enableval}" in
11483 yes) ;;
11484 no) build_warnings="-w";;
11485 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11486 build_warnings="${build_warnings} ${t}";;
11487 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11488 build_warnings="${t} ${build_warnings}";;
11489 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11490 esac
11491 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11492 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11493 fi
11494 fi
11495 WARN_CFLAGS=""
11496 if test "x${build_warnings}" != x -a "x$GCC" = xyes
11497 then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11499 $as_echo_n "checking compiler warning flags... " >&6; }
11500 # Separate out the -Werror flag as some files just cannot be
11501 # compiled with it enabled.
11502 for w in ${build_warnings}; do
11503 case $w in
11504 -Werr*) WERROR_CFLAGS=-Werror ;;
11505 *) # Check that GCC accepts it
11506 saved_CFLAGS="$CFLAGS"
11507 CFLAGS="$CFLAGS -Werror $w"
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510
11511 int
11512 main ()
11513 {
11514
11515 ;
11516 return 0;
11517 }
11518 _ACEOF
11519 if ac_fn_c_try_compile "$LINENO"; then :
11520 WARN_CFLAGS="${WARN_CFLAGS} $w"
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 CFLAGS="$saved_CFLAGS"
11524 esac
11525 done
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11527 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11528 fi
11529
11530
11531 default_sim_reserved_bits="1"
11532 # Check whether --enable-sim-reserved-bits was given.
11533 if test "${enable_sim_reserved_bits+set}" = set; then :
11534 enableval=$enable_sim_reserved_bits; case "${enableval}" in
11535 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
11536 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
11537 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
11538 esac
11539 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
11540 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
11541 fi
11542 else
11543 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
11544 fi
11545
11546
11547 # DEPRECATED
11548 #
11549 # Instead of defining a `subtarget' macro, code should be checking
11550 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
11551 # in question.
11552 #
11553 case "${target}" in
11554 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
11555 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
11556 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
11557 mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
11558 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
11559 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
11560 *) SIM_SUBTARGET="";;
11561 esac
11562
11563
11564
11565
11566 #
11567 # Select the byte order of the target
11568 #
11569 mips_endian=
11570 default_endian=
11571 case "${target}" in
11572 mips64el*-*-*) mips_endian=LITTLE ;;
11573 mips64vr*el-*-*) default_endian=LITTLE ;;
11574 mips64*-*-*) default_endian=BIG ;;
11575 mips16*-*-*) default_endian=BIG ;;
11576 mipsisa32*-*-*) default_endian=BIG ;;
11577 mipsisa64*-*-*) default_endian=BIG ;;
11578 mips*-*-*) default_endian=BIG ;;
11579 *) default_endian=BIG ;;
11580 esac
11581
11582 wire_endian="$mips_endian"
11583 default_endian="$default_endian"
11584 # Check whether --enable-sim-endian was given.
11585 if test "${enable_sim_endian+set}" = set; then :
11586 enableval=$enable_sim_endian; case "${enableval}" in
11587 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
11588 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
11589 yes) if test x"$wire_endian" != x; then
11590 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
11591 else
11592 if test x"$default_endian" != x; then
11593 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
11594 else
11595 echo "No hard-wired endian for target $target" 1>&6
11596 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
11597 fi
11598 fi;;
11599 no) if test x"$default_endian" != x; then
11600 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
11601 else
11602 if test x"$wire_endian" != x; then
11603 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
11604 else
11605 echo "No default endian for target $target" 1>&6
11606 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
11607 fi
11608 fi;;
11609 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
11610 esac
11611 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
11612 echo "Setting endian flags = $sim_endian" 6>&1
11613 fi
11614 else
11615 if test x"$default_endian" != x; then
11616 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
11617 else
11618 if test x"$wire_endian" != x; then
11619 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
11620 else
11621 sim_endian=
11622 fi
11623 fi
11624 fi
11625
11626
11627
11628
11629 #
11630 # Select the bitsize of the target
11631 #
11632 mips_addr_bitsize=
11633 case "${target}" in
11634 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
11635 mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
11636 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
11637 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
11638 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
11639 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
11640 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
11641 *) mips_bitsize=64 ; mips_msb=63 ;;
11642 esac
11643 wire_word_bitsize="$mips_bitsize"
11644 wire_word_msb="$mips_msb"
11645 wire_address_bitsize="$mips_addr_bitsize"
11646 wire_cell_bitsize=""
11647 # Check whether --enable-sim-bitsize was given.
11648 if test "${enable_sim_bitsize+set}" = set; then :
11649 enableval=$enable_sim_bitsize; sim_bitsize=
11650 case "${enableval}" in
11651 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
11652 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
11653 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11654 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11655 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11656 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
11657 else
11658 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
11659 fi ;;
11660 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11661 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
11662 else
11663 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
11664 fi ;;
11665 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
11666 esac
11667 # address bitsize
11668 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
11669 case x"${tmp}" in
11670 x ) ;;
11671 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
11672 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
11673 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
11674 esac
11675 # cell bitsize
11676 tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
11677 case x"${tmp}" in
11678 x ) ;;
11679 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
11680 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
11681 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
11682 esac
11683 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
11684 echo "Setting bitsize flags = $sim_bitsize" 6>&1
11685 fi
11686 else
11687 sim_bitsize=""
11688 if test x"$wire_word_bitsize" != x; then
11689 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
11690 fi
11691 if test x"$wire_word_msb" != x; then
11692 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
11693 fi
11694 if test x"$wire_address_bitsize" != x; then
11695 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
11696 fi
11697 if test x"$wire_cell_bitsize" != x; then
11698 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
11699 fi
11700 fi
11701
11702
11703
11704
11705 #
11706 # Select the floating hardware support of the target
11707 #
11708 mips_fpu=HARDWARE_FLOATING_POINT
11709 mips_fpu_bitsize=
11710 case "${target}" in
11711 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
11712 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
11713 mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
11714 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
11715 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
11716 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
11717 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
11718 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
11719 *) mips_fpu=HARD_FLOATING_POINT ;;
11720 esac
11721
11722 default_sim_float="$mips_fpu"
11723 default_sim_float_bitsize="$mips_fpu_bitsize"
11724 # Check whether --enable-sim-float was given.
11725 if test "${enable_sim_float+set}" = set; then :
11726 enableval=$enable_sim_float; case "${enableval}" in
11727 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
11728 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
11729 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
11730 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
11731 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
11732 esac
11733 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
11734 echo "Setting float flags = $sim_float" 6>&1
11735 fi
11736 else
11737
11738 sim_float=
11739 if test x"${default_sim_float}" != x""; then
11740 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
11741 fi
11742 if test x"${default_sim_float_bitsize}" != x""; then
11743 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
11744 fi
11745
11746 fi
11747
11748
11749
11750
11751 #
11752 # Select the IGEN architecture
11753 #
11754 sim_gen=IGEN
11755 sim_igen_machine="-M mipsIV"
11756 sim_m16_machine="-M mips16,mipsIII"
11757 sim_igen_filter="32,64,f"
11758 sim_m16_filter="16"
11759 sim_mach_default="mips8000"
11760
11761 case "${target}" in
11762 mips*tx39*) sim_gen=IGEN
11763 sim_igen_filter="32,f"
11764 sim_igen_machine="-M r3900"
11765 ;;
11766 mips64vr43*-*-*) sim_gen=IGEN
11767 sim_igen_machine="-M mipsIV"
11768 sim_mach_default="mips8000"
11769 ;;
11770 mips64vr5*-*-*) sim_gen=IGEN
11771 sim_igen_machine="-M vr5000"
11772 sim_mach_default="mips5000"
11773 ;;
11774 mips64vr41*) sim_gen=M16
11775 sim_igen_machine="-M vr4100"
11776 sim_m16_machine="-M vr4100"
11777 sim_igen_filter="32,64,f"
11778 sim_m16_filter="16"
11779 sim_mach_default="mips4100"
11780 ;;
11781 mips64vr-*-* | mips64vrel-*-*)
11782 sim_gen=MULTI
11783 sim_multi_configs="\
11784 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
11785 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
11786 vr5000:mipsIV:32,64,f:mips4300,mips5000\
11787 vr5400:mipsIV,vr5400:32,64,f:mips5400\
11788 vr5500:mipsIV,vr5500:32,64,f:mips5500"
11789 sim_multi_default=mips5000
11790 ;;
11791 mips*-sde-elf* | mips*-mti-elf*)
11792 sim_gen=MULTI
11793 sim_multi_configs="\
11794 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
11795 mips64r2:mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,64,f:mipsisa64r2"
11796 sim_multi_default=mipsisa64r2
11797 ;;
11798 mips64*-*-*) sim_igen_filter="32,64,f"
11799 sim_gen=IGEN
11800 ;;
11801 mips16*-*-*) sim_gen=M16
11802 sim_igen_filter="32,64,f"
11803 sim_m16_filter="16"
11804 ;;
11805 mipsisa32r2*-*-*) sim_gen=MULTI
11806 sim_multi_configs="\
11807 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
11808 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
11809 sim_multi_default=mipsisa32r2
11810 ;;
11811 mipsisa32*-*-*) sim_gen=M16
11812 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
11813 sim_m16_machine="-M mips16,mips16e,mips32"
11814 sim_igen_filter="32,f"
11815 sim_mach_default="mipsisa32"
11816 ;;
11817 mipsisa64r2*-*-*) sim_gen=M16
11818 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
11819 sim_m16_machine="-M mips16,mips16e,mips64r2"
11820 sim_igen_filter="32,64,f"
11821 sim_mach_default="mipsisa64r2"
11822 ;;
11823 mipsisa64sb1*-*-*) sim_gen=IGEN
11824 sim_igen_machine="-M mips64,mips3d,sb1"
11825 sim_igen_filter="32,64,f"
11826 sim_mach_default="mips_sb1"
11827 ;;
11828 mipsisa64*-*-*) sim_gen=M16
11829 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
11830 sim_m16_machine="-M mips16,mips16e,mips64"
11831 sim_igen_filter="32,64,f"
11832 sim_mach_default="mipsisa64"
11833 ;;
11834 mips*lsi*) sim_gen=M16
11835 sim_igen_machine="-M mipsIII,mips16"
11836 sim_m16_machine="-M mips16,mipsIII"
11837 sim_igen_filter="32,f"
11838 sim_m16_filter="16"
11839 sim_mach_default="mips4000"
11840 ;;
11841 mips*-*-*) sim_gen=IGEN
11842 sim_igen_filter="32,f"
11843 ;;
11844 esac
11845
11846 # The MULTI generator can combine several simulation engines into one.
11847 # executable. A configuration which uses the MULTI should set two
11848 # variables: ${sim_multi_configs} and ${sim_multi_default}.
11849 #
11850 # ${sim_multi_configs} is the list of engines to build. Each
11851 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
11852 # where:
11853 #
11854 # - NAME is a C-compatible prefix for the engine,
11855 # - MACHINE is a -M argument,
11856 # - FILTER is a -F argument, and
11857 # - BFDMACHS is a comma-separated list of bfd machines that the
11858 # simulator can run.
11859 #
11860 # Each entry will have a separate simulation engine whose prefix is
11861 # m32<NAME>. If the machine list includes "mips16", there will also
11862 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
11863 # generated using the same machine list as the 32-bit version,
11864 # but the filter will be "16" instead of FILTER.
11865 #
11866 # The simulator compares the bfd mach against BFDMACHS to decide
11867 # which engine to use. Entries in BFDMACHS should be bfd_mach
11868 # values with "bfd_mach_" removed. ${sim_multi_default} says
11869 # which entry should be the default.
11870 if test ${sim_gen} = MULTI; then
11871
11872 # Simple sanity check.
11873 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
11874 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
11875 fi
11876
11877 # Start in a known state.
11878 rm -f multi-include.h multi-run.c
11879 sim_multi_flags=
11880 sim_multi_src=
11881 sim_multi_obj=
11882 sim_multi_igen_configs=
11883 sim_seen_default=no
11884
11885 cat << __EOF__ > multi-run.c
11886 /* Main entry point for MULTI simulators.
11887 Copyright (C) 2003-2021 Free Software Foundation, Inc.
11888
11889 This program is free software; you can redistribute it and/or modify
11890 it under the terms of the GNU General Public License as published by
11891 the Free Software Foundation; either version 3 of the License, or
11892 (at your option) any later version.
11893
11894 This program is distributed in the hope that it will be useful,
11895 but WITHOUT ANY WARRANTY; without even the implied warranty of
11896 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11897 GNU General Public License for more details.
11898
11899 You should have received a copy of the GNU General Public License
11900 along with this program. If not, see <http://www.gnu.org/licenses/>.
11901
11902 --
11903
11904 This file was generated by sim/mips/configure. */
11905
11906 #include "sim-main.h"
11907 #include "multi-include.h"
11908 #include "elf-bfd.h"
11909 #include "elf/mips.h"
11910
11911 #define SD sd
11912 #define CPU cpu
11913
11914 void
11915 sim_engine_run (SIM_DESC sd,
11916 int next_cpu_nr,
11917 int nr_cpus,
11918 int signal) /* ignore */
11919 {
11920 int mach;
11921
11922 if (STATE_ARCHITECTURE (sd) == NULL)
11923 mach = bfd_mach_${sim_multi_default};
11924 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
11925 & EF_MIPS_ARCH_ASE_MICROMIPS)
11926 mach = bfd_mach_mips_micromips;
11927 else
11928 mach = STATE_ARCHITECTURE (SD)->mach;
11929
11930 switch (mach)
11931 {
11932 __EOF__
11933
11934 for fc in ${sim_multi_configs}; do
11935
11936 # Split up the entry. ${c} contains the first three elements.
11937 # Note: outer sqaure brackets are m4 quotes.
11938 c=`echo ${fc} | sed 's/:[^:]*$//'`
11939 bfdmachs=`echo ${fc} | sed 's/.*://'`
11940 name=`echo ${c} | sed 's/:.*//'`
11941 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
11942 filter=`echo ${c} | sed 's/.*://'`
11943
11944 # Build the following lists:
11945 #
11946 # sim_multi_flags: all -M and -F flags used by the simulator
11947 # sim_multi_src: all makefile-generated source files
11948 # sim_multi_obj: the objects for ${sim_multi_src}
11949 # sim_multi_igen_configs: igen configuration strings.
11950 #
11951 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
11952 # or m16) followed by the NAME, MACHINE and FILTER part of
11953 # the ${sim_multi_configs} entry.
11954 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
11955
11956 # Check whether special handling is needed.
11957 case ${c} in
11958 *:*mips16*:*)
11959 # Run igen twice, once for normal mode and once for mips16.
11960 ws="m32 m16"
11961
11962 # The top-level function for the mips16 simulator is
11963 # in a file m16${name}_run.c, generated by the
11964 # tmp-run-multi Makefile rule.
11965 sim_multi_src="${sim_multi_src} m16${name}_run.c"
11966 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
11967 sim_multi_flags="${sim_multi_flags} -F 16"
11968 ;;
11969 *:*micromips32*:*)
11970 # Run igen thrice, once for micromips32, once for micromips16,
11971 # and once for m32.
11972 ws="micromips_m32 micromips16 micromips32"
11973
11974 # The top-level function for the micromips simulator is
11975 # in a file micromips${name}_run.c, generated by the
11976 # tmp-run-multi Makefile rule.
11977 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
11978 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
11979 sim_multi_flags="${sim_multi_flags} -F 16,32"
11980 ;;
11981 *:*micromips64*:*)
11982 # Run igen thrice, once for micromips64, once for micromips16,
11983 # and once for m64.
11984 ws="micromips_m64 micromips16 micromips64"
11985
11986 # The top-level function for the micromips simulator is
11987 # in a file micromips${name}_run.c, generated by the
11988 # tmp-run-multi Makefile rule.
11989 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
11990 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
11991 sim_multi_flags="${sim_multi_flags} -F 16,32,64"
11992 ;;
11993 *)
11994 ws=m32
11995 ;;
11996 esac
11997
11998 # Now add the list of igen-generated files to ${sim_multi_src}
11999 # and ${sim_multi_obj}.
12000 for w in ${ws}; do
12001 for base in engine icache idecode model semantics support; do
12002 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
12003 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
12004 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
12005 done
12006 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
12007 done
12008
12009 # Add an include for the engine.h file. This file declares the
12010 # top-level foo_engine_run() function.
12011 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
12012
12013 # Add case statements for this engine to sim_engine_run().
12014 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
12015 echo " case bfd_mach_${mach}:" >> multi-run.c
12016 if test ${mach} = ${sim_multi_default}; then
12017 echo " default:" >> multi-run.c
12018 sim_seen_default=yes
12019 fi
12020 done
12021 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
12022 >> multi-run.c
12023 echo " break;" >> multi-run.c
12024 done
12025
12026 # Check whether we added a 'default:' label.
12027 if test ${sim_seen_default} = no; then
12028 as_fn_error $? "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
12029 fi
12030
12031 cat << __EOF__ >> multi-run.c
12032 }
12033 }
12034
12035 int
12036 mips_mach_multi (SIM_DESC sd)
12037 {
12038 if (STATE_ARCHITECTURE (sd) == NULL)
12039 return bfd_mach_${sim_multi_default};
12040
12041 switch (STATE_ARCHITECTURE (SD)->mach)
12042 {
12043 __EOF__
12044
12045 # Add case statements for this engine to mips_mach_multi().
12046 for fc in ${sim_multi_configs}; do
12047
12048 # Split up the entry. ${c} contains the first three elements.
12049 # Note: outer sqaure brackets are m4 quotes.
12050 c=`echo ${fc} | sed 's/:[^:]*$//'`
12051 bfdmachs=`echo ${fc} | sed 's/.*://'`
12052
12053 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
12054 echo " case bfd_mach_${mach}:" >> multi-run.c
12055 done
12056 done
12057
12058 cat << __EOF__ >> multi-run.c
12059 return (STATE_ARCHITECTURE (SD)->mach);
12060 default:
12061 return bfd_mach_${sim_multi_default};
12062 }
12063 }
12064 __EOF__
12065
12066 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
12067 else
12068 # For clean-extra
12069 sim_multi_src=doesnt-exist.c
12070
12071 if test x"${sim_mach_default}" = x""; then
12072 as_fn_error $? "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
12073 fi
12074 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
12075 fi
12076 sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
12077 sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
12078 sim_micromips16_flags=" -F ${sim_micromips16_filter} ${sim_micromips16_machine} ${sim_igen_smp}"
12079 sim_micromips_flags=" -F ${sim_micromips_filter} ${sim_micromips_machine} ${sim_igen_smp}"
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089 #
12090 # Add simulated hardware devices
12091 #
12092
12093 hardware="cfi core pal glue tx3904cpu tx3904irc tx3904tmr tx3904sio"
12094 sim_hw_cflags="-DWITH_HW=1"
12095 sim_hw="$hardware"
12096 sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
12097
12098 # Check whether --enable-sim-hardware was given.
12099 if test "${enable_sim_hardware+set}" = set; then :
12100 enableval=$enable_sim_hardware;
12101 else
12102 enable_sim_hardware="yes"
12103 fi
12104
12105 case ${enable_sim_hardware} in
12106 yes|no) ;;
12107 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
12108 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
12109 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
12110 esac
12111
12112 if test "$enable_sim_hardware" = no; then
12113 sim_hw_objs=
12114 sim_hw_cflags="-DWITH_HW=0"
12115 sim_hw=
12116 else
12117 sim_hw_cflags="-DWITH_HW=1"
12118 # remove duplicates
12119 sim_hw=""
12120 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
12121 for i in $hardware ; do
12122 case " $sim_hw " in
12123 *" $i "*) ;;
12124 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
12125 esac
12126 done
12127 # mingw does not support sockser
12128 case ${host} in
12129 *mingw*) ;;
12130 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
12131 # that you instatiate. Instead, other code will call into it directly.
12132 # At some point, we should convert it over.
12133 sim_hw_objs="$sim_hw_objs dv-sockser.o"
12134
12135 cat >>confdefs.h <<_ACEOF
12136 #define HAVE_DV_SOCKSER 1
12137 _ACEOF
12138
12139 ;;
12140 esac
12141 if test x"$silent" != x"yes"; then
12142 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
12143 fi
12144 case " $hardware " in
12145 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12146 $as_echo_n "checking for log2 in -lm... " >&6; }
12147 if ${ac_cv_lib_m_log2+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 ac_check_lib_save_LIBS=$LIBS
12151 LIBS="-lm $LIBS"
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12154
12155 /* Override any GCC internal prototype to avoid an error.
12156 Use char because int might match the return type of a GCC
12157 builtin and then its argument prototype would still apply. */
12158 #ifdef __cplusplus
12159 extern "C"
12160 #endif
12161 char log2 ();
12162 int
12163 main ()
12164 {
12165 return log2 ();
12166 ;
12167 return 0;
12168 }
12169 _ACEOF
12170 if ac_fn_c_try_link "$LINENO"; then :
12171 ac_cv_lib_m_log2=yes
12172 else
12173 ac_cv_lib_m_log2=no
12174 fi
12175 rm -f core conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$ac_check_lib_save_LIBS
12178 fi
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12180 $as_echo "$ac_cv_lib_m_log2" >&6; }
12181 if test "x$ac_cv_lib_m_log2" = xyes; then :
12182 cat >>confdefs.h <<_ACEOF
12183 #define HAVE_LIBM 1
12184 _ACEOF
12185
12186 LIBS="-lm $LIBS"
12187
12188 fi
12189 ;;
12190 esac
12191 fi
12192
12193
12194
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12196 $as_echo_n "checking for X... " >&6; }
12197
12198
12199 # Check whether --with-x was given.
12200 if test "${with_x+set}" = set; then :
12201 withval=$with_x;
12202 fi
12203
12204 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12205 if test "x$with_x" = xno; then
12206 # The user explicitly disabled X.
12207 have_x=disabled
12208 else
12209 case $x_includes,$x_libraries in #(
12210 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
12211 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 # One or both of the vars are not set, and there is no cached value.
12215 ac_x_includes=no ac_x_libraries=no
12216 rm -f -r conftest.dir
12217 if mkdir conftest.dir; then
12218 cd conftest.dir
12219 cat >Imakefile <<'_ACEOF'
12220 incroot:
12221 @echo incroot='${INCROOT}'
12222 usrlibdir:
12223 @echo usrlibdir='${USRLIBDIR}'
12224 libdir:
12225 @echo libdir='${LIBDIR}'
12226 _ACEOF
12227 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12228 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12229 for ac_var in incroot usrlibdir libdir; do
12230 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12231 done
12232 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12233 for ac_extension in a so sl dylib la dll; do
12234 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12235 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12236 ac_im_usrlibdir=$ac_im_libdir; break
12237 fi
12238 done
12239 # Screen out bogus values from the imake configuration. They are
12240 # bogus both because they are the default anyway, and because
12241 # using them would break gcc on systems where it needs fixed includes.
12242 case $ac_im_incroot in
12243 /usr/include) ac_x_includes= ;;
12244 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12245 esac
12246 case $ac_im_usrlibdir in
12247 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
12248 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12249 esac
12250 fi
12251 cd ..
12252 rm -f -r conftest.dir
12253 fi
12254
12255 # Standard set of common directories for X headers.
12256 # Check X11 before X11Rn because it is often a symlink to the current release.
12257 ac_x_header_dirs='
12258 /usr/X11/include
12259 /usr/X11R7/include
12260 /usr/X11R6/include
12261 /usr/X11R5/include
12262 /usr/X11R4/include
12263
12264 /usr/include/X11
12265 /usr/include/X11R7
12266 /usr/include/X11R6
12267 /usr/include/X11R5
12268 /usr/include/X11R4
12269
12270 /usr/local/X11/include
12271 /usr/local/X11R7/include
12272 /usr/local/X11R6/include
12273 /usr/local/X11R5/include
12274 /usr/local/X11R4/include
12275
12276 /usr/local/include/X11
12277 /usr/local/include/X11R7
12278 /usr/local/include/X11R6
12279 /usr/local/include/X11R5
12280 /usr/local/include/X11R4
12281
12282 /usr/X386/include
12283 /usr/x386/include
12284 /usr/XFree86/include/X11
12285
12286 /usr/include
12287 /usr/local/include
12288 /usr/unsupported/include
12289 /usr/athena/include
12290 /usr/local/x11r5/include
12291 /usr/lpp/Xamples/include
12292
12293 /usr/openwin/include
12294 /usr/openwin/share/include'
12295
12296 if test "$ac_x_includes" = no; then
12297 # Guess where to find include files, by looking for Xlib.h.
12298 # First, try using that file with no special directory specified.
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301 #include <X11/Xlib.h>
12302 _ACEOF
12303 if ac_fn_c_try_cpp "$LINENO"; then :
12304 # We can compile using X headers with no special include directory.
12305 ac_x_includes=
12306 else
12307 for ac_dir in $ac_x_header_dirs; do
12308 if test -r "$ac_dir/X11/Xlib.h"; then
12309 ac_x_includes=$ac_dir
12310 break
12311 fi
12312 done
12313 fi
12314 rm -f conftest.err conftest.i conftest.$ac_ext
12315 fi # $ac_x_includes = no
12316
12317 if test "$ac_x_libraries" = no; then
12318 # Check for the libraries.
12319 # See if we find them without any special options.
12320 # Don't add to $LIBS permanently.
12321 ac_save_LIBS=$LIBS
12322 LIBS="-lX11 $LIBS"
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325 #include <X11/Xlib.h>
12326 int
12327 main ()
12328 {
12329 XrmInitialize ()
12330 ;
12331 return 0;
12332 }
12333 _ACEOF
12334 if ac_fn_c_try_link "$LINENO"; then :
12335 LIBS=$ac_save_LIBS
12336 # We can link X programs with no special library path.
12337 ac_x_libraries=
12338 else
12339 LIBS=$ac_save_LIBS
12340 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12341 do
12342 # Don't even attempt the hair of trying to link an X program!
12343 for ac_extension in a so sl dylib la dll; do
12344 if test -r "$ac_dir/libX11.$ac_extension"; then
12345 ac_x_libraries=$ac_dir
12346 break 2
12347 fi
12348 done
12349 done
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12353 fi # $ac_x_libraries = no
12354
12355 case $ac_x_includes,$ac_x_libraries in #(
12356 no,* | *,no | *\'*)
12357 # Didn't find X, or a directory has "'" in its name.
12358 ac_cv_have_x="have_x=no";; #(
12359 *)
12360 # Record where we found X for the cache.
12361 ac_cv_have_x="have_x=yes\
12362 ac_x_includes='$ac_x_includes'\
12363 ac_x_libraries='$ac_x_libraries'"
12364 esac
12365 fi
12366 ;; #(
12367 *) have_x=yes;;
12368 esac
12369 eval "$ac_cv_have_x"
12370 fi # $with_x != no
12371
12372 if test "$have_x" != yes; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12374 $as_echo "$have_x" >&6; }
12375 no_x=yes
12376 else
12377 # If each of the values was on the command line, it overrides each guess.
12378 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12379 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12380 # Update the cache value to reflect the command line values.
12381 ac_cv_have_x="have_x=yes\
12382 ac_x_includes='$x_includes'\
12383 ac_x_libraries='$x_libraries'"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12385 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12386 fi
12387
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12390 $as_echo_n "checking for fabs in -lm... " >&6; }
12391 if ${ac_cv_lib_m_fabs+:} false; then :
12392 $as_echo_n "(cached) " >&6
12393 else
12394 ac_check_lib_save_LIBS=$LIBS
12395 LIBS="-lm $LIBS"
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12398
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 char fabs ();
12406 int
12407 main ()
12408 {
12409 return fabs ();
12410 ;
12411 return 0;
12412 }
12413 _ACEOF
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 ac_cv_lib_m_fabs=yes
12416 else
12417 ac_cv_lib_m_fabs=no
12418 fi
12419 rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421 LIBS=$ac_check_lib_save_LIBS
12422 fi
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12424 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12425 if test "x$ac_cv_lib_m_fabs" = xyes; then :
12426 cat >>confdefs.h <<_ACEOF
12427 #define HAVE_LIBM 1
12428 _ACEOF
12429
12430 LIBS="-lm $LIBS"
12431
12432 fi
12433
12434
12435
12436 cgen_breaks=""
12437 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
12438 cgen_breaks="break cgen_rtx_error";
12439 fi
12440
12441 ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
12442
12443 ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
12444
12445 ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
12446
12447 ac_config_commands="$ac_config_commands Makefile"
12448
12449 ac_config_commands="$ac_config_commands stamp-h"
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463 cat >confcache <<\_ACEOF
12464 # This file is a shell script that caches the results of configure
12465 # tests run on this system so they can be shared between configure
12466 # scripts and configure runs, see configure's option --config-cache.
12467 # It is not useful on other systems. If it contains results you don't
12468 # want to keep, you may remove or edit it.
12469 #
12470 # config.status only pays attention to the cache file if you give it
12471 # the --recheck option to rerun configure.
12472 #
12473 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12474 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12475 # following values.
12476
12477 _ACEOF
12478
12479 # The following way of writing the cache mishandles newlines in values,
12480 # but we know of no workaround that is simple, portable, and efficient.
12481 # So, we kill variables containing newlines.
12482 # Ultrix sh set writes to stderr and can't be redirected directly,
12483 # and sets the high bit in the cache file unless we assign to the vars.
12484 (
12485 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12486 eval ac_val=\$$ac_var
12487 case $ac_val in #(
12488 *${as_nl}*)
12489 case $ac_var in #(
12490 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12491 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12492 esac
12493 case $ac_var in #(
12494 _ | IFS | as_nl) ;; #(
12495 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12496 *) { eval $ac_var=; unset $ac_var;} ;;
12497 esac ;;
12498 esac
12499 done
12500
12501 (set) 2>&1 |
12502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12503 *${as_nl}ac_space=\ *)
12504 # `set' does not quote correctly, so add quotes: double-quote
12505 # substitution turns \\\\ into \\, and sed turns \\ into \.
12506 sed -n \
12507 "s/'/'\\\\''/g;
12508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12509 ;; #(
12510 *)
12511 # `set' quotes correctly as required by POSIX, so do not add quotes.
12512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12513 ;;
12514 esac |
12515 sort
12516 ) |
12517 sed '
12518 /^ac_cv_env_/b end
12519 t clear
12520 :clear
12521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12522 t end
12523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12524 :end' >>confcache
12525 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12526 if test -w "$cache_file"; then
12527 if test "x$cache_file" != "x/dev/null"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12529 $as_echo "$as_me: updating cache $cache_file" >&6;}
12530 if test ! -f "$cache_file" || test -h "$cache_file"; then
12531 cat confcache >"$cache_file"
12532 else
12533 case $cache_file in #(
12534 */* | ?:*)
12535 mv -f confcache "$cache_file"$$ &&
12536 mv -f "$cache_file"$$ "$cache_file" ;; #(
12537 *)
12538 mv -f confcache "$cache_file" ;;
12539 esac
12540 fi
12541 fi
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12544 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12545 fi
12546 fi
12547 rm -f confcache
12548
12549 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12550 # Let make expand exec_prefix.
12551 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12552
12553 DEFS=-DHAVE_CONFIG_H
12554
12555 ac_libobjs=
12556 ac_ltlibobjs=
12557 U=
12558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12559 # 1. Remove the extension, and $U if already installed.
12560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12561 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12563 # will be set to the directory where LIBOBJS objects are built.
12564 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12565 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12566 done
12567 LIBOBJS=$ac_libobjs
12568
12569 LTLIBOBJS=$ac_ltlibobjs
12570
12571
12572
12573 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
12574 as_fn_error $? "conditional \"PLUGINS\" was never defined.
12575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12576 fi
12577 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12578 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12580 fi
12581
12582 : "${CONFIG_STATUS=./config.status}"
12583 ac_write_fail=0
12584 ac_clean_files_save=$ac_clean_files
12585 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12587 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12588 as_write_fail=0
12589 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12590 #! $SHELL
12591 # Generated by $as_me.
12592 # Run this file to recreate the current configuration.
12593 # Compiler output produced by configure, useful for debugging
12594 # configure, is in config.log if it exists.
12595
12596 debug=false
12597 ac_cs_recheck=false
12598 ac_cs_silent=false
12599
12600 SHELL=\${CONFIG_SHELL-$SHELL}
12601 export SHELL
12602 _ASEOF
12603 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12604 ## -------------------- ##
12605 ## M4sh Initialization. ##
12606 ## -------------------- ##
12607
12608 # Be more Bourne compatible
12609 DUALCASE=1; export DUALCASE # for MKS sh
12610 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12611 emulate sh
12612 NULLCMD=:
12613 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12614 # is contrary to our usage. Disable this feature.
12615 alias -g '${1+"$@"}'='"$@"'
12616 setopt NO_GLOB_SUBST
12617 else
12618 case `(set -o) 2>/dev/null` in #(
12619 *posix*) :
12620 set -o posix ;; #(
12621 *) :
12622 ;;
12623 esac
12624 fi
12625
12626
12627 as_nl='
12628 '
12629 export as_nl
12630 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12631 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12633 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12634 # Prefer a ksh shell builtin over an external printf program on Solaris,
12635 # but without wasting forks for bash or zsh.
12636 if test -z "$BASH_VERSION$ZSH_VERSION" \
12637 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12638 as_echo='print -r --'
12639 as_echo_n='print -rn --'
12640 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12641 as_echo='printf %s\n'
12642 as_echo_n='printf %s'
12643 else
12644 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12645 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12646 as_echo_n='/usr/ucb/echo -n'
12647 else
12648 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12649 as_echo_n_body='eval
12650 arg=$1;
12651 case $arg in #(
12652 *"$as_nl"*)
12653 expr "X$arg" : "X\\(.*\\)$as_nl";
12654 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12655 esac;
12656 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12657 '
12658 export as_echo_n_body
12659 as_echo_n='sh -c $as_echo_n_body as_echo'
12660 fi
12661 export as_echo_body
12662 as_echo='sh -c $as_echo_body as_echo'
12663 fi
12664
12665 # The user is always right.
12666 if test "${PATH_SEPARATOR+set}" != set; then
12667 PATH_SEPARATOR=:
12668 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12669 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12670 PATH_SEPARATOR=';'
12671 }
12672 fi
12673
12674
12675 # IFS
12676 # We need space, tab and new line, in precisely that order. Quoting is
12677 # there to prevent editors from complaining about space-tab.
12678 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12679 # splitting by setting IFS to empty value.)
12680 IFS=" "" $as_nl"
12681
12682 # Find who we are. Look in the path if we contain no directory separator.
12683 as_myself=
12684 case $0 in #((
12685 *[\\/]* ) as_myself=$0 ;;
12686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12688 do
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12692 done
12693 IFS=$as_save_IFS
12694
12695 ;;
12696 esac
12697 # We did not find ourselves, most probably we were run as `sh COMMAND'
12698 # in which case we are not to be found in the path.
12699 if test "x$as_myself" = x; then
12700 as_myself=$0
12701 fi
12702 if test ! -f "$as_myself"; then
12703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12704 exit 1
12705 fi
12706
12707 # Unset variables that we do not need and which cause bugs (e.g. in
12708 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12709 # suppresses any "Segmentation fault" message there. '((' could
12710 # trigger a bug in pdksh 5.2.14.
12711 for as_var in BASH_ENV ENV MAIL MAILPATH
12712 do eval test x\${$as_var+set} = xset \
12713 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12714 done
12715 PS1='$ '
12716 PS2='> '
12717 PS4='+ '
12718
12719 # NLS nuisances.
12720 LC_ALL=C
12721 export LC_ALL
12722 LANGUAGE=C
12723 export LANGUAGE
12724
12725 # CDPATH.
12726 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12727
12728
12729 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12730 # ----------------------------------------
12731 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12732 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12733 # script with STATUS, using 1 if that was 0.
12734 as_fn_error ()
12735 {
12736 as_status=$1; test $as_status -eq 0 && as_status=1
12737 if test "$4"; then
12738 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12739 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12740 fi
12741 $as_echo "$as_me: error: $2" >&2
12742 as_fn_exit $as_status
12743 } # as_fn_error
12744
12745
12746 # as_fn_set_status STATUS
12747 # -----------------------
12748 # Set $? to STATUS, without forking.
12749 as_fn_set_status ()
12750 {
12751 return $1
12752 } # as_fn_set_status
12753
12754 # as_fn_exit STATUS
12755 # -----------------
12756 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12757 as_fn_exit ()
12758 {
12759 set +e
12760 as_fn_set_status $1
12761 exit $1
12762 } # as_fn_exit
12763
12764 # as_fn_unset VAR
12765 # ---------------
12766 # Portably unset VAR.
12767 as_fn_unset ()
12768 {
12769 { eval $1=; unset $1;}
12770 }
12771 as_unset=as_fn_unset
12772 # as_fn_append VAR VALUE
12773 # ----------------------
12774 # Append the text in VALUE to the end of the definition contained in VAR. Take
12775 # advantage of any shell optimizations that allow amortized linear growth over
12776 # repeated appends, instead of the typical quadratic growth present in naive
12777 # implementations.
12778 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12779 eval 'as_fn_append ()
12780 {
12781 eval $1+=\$2
12782 }'
12783 else
12784 as_fn_append ()
12785 {
12786 eval $1=\$$1\$2
12787 }
12788 fi # as_fn_append
12789
12790 # as_fn_arith ARG...
12791 # ------------------
12792 # Perform arithmetic evaluation on the ARGs, and store the result in the
12793 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12794 # must be portable across $(()) and expr.
12795 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12796 eval 'as_fn_arith ()
12797 {
12798 as_val=$(( $* ))
12799 }'
12800 else
12801 as_fn_arith ()
12802 {
12803 as_val=`expr "$@" || test $? -eq 1`
12804 }
12805 fi # as_fn_arith
12806
12807
12808 if expr a : '\(a\)' >/dev/null 2>&1 &&
12809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12810 as_expr=expr
12811 else
12812 as_expr=false
12813 fi
12814
12815 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12816 as_basename=basename
12817 else
12818 as_basename=false
12819 fi
12820
12821 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12822 as_dirname=dirname
12823 else
12824 as_dirname=false
12825 fi
12826
12827 as_me=`$as_basename -- "$0" ||
12828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12829 X"$0" : 'X\(//\)$' \| \
12830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12831 $as_echo X/"$0" |
12832 sed '/^.*\/\([^/][^/]*\)\/*$/{
12833 s//\1/
12834 q
12835 }
12836 /^X\/\(\/\/\)$/{
12837 s//\1/
12838 q
12839 }
12840 /^X\/\(\/\).*/{
12841 s//\1/
12842 q
12843 }
12844 s/.*/./; q'`
12845
12846 # Avoid depending upon Character Ranges.
12847 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12848 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12849 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12850 as_cr_digits='0123456789'
12851 as_cr_alnum=$as_cr_Letters$as_cr_digits
12852
12853 ECHO_C= ECHO_N= ECHO_T=
12854 case `echo -n x` in #(((((
12855 -n*)
12856 case `echo 'xy\c'` in
12857 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12858 xy) ECHO_C='\c';;
12859 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12860 ECHO_T=' ';;
12861 esac;;
12862 *)
12863 ECHO_N='-n';;
12864 esac
12865
12866 rm -f conf$$ conf$$.exe conf$$.file
12867 if test -d conf$$.dir; then
12868 rm -f conf$$.dir/conf$$.file
12869 else
12870 rm -f conf$$.dir
12871 mkdir conf$$.dir 2>/dev/null
12872 fi
12873 if (echo >conf$$.file) 2>/dev/null; then
12874 if ln -s conf$$.file conf$$ 2>/dev/null; then
12875 as_ln_s='ln -s'
12876 # ... but there are two gotchas:
12877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12879 # In both cases, we have to default to `cp -pR'.
12880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12881 as_ln_s='cp -pR'
12882 elif ln conf$$.file conf$$ 2>/dev/null; then
12883 as_ln_s=ln
12884 else
12885 as_ln_s='cp -pR'
12886 fi
12887 else
12888 as_ln_s='cp -pR'
12889 fi
12890 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12891 rmdir conf$$.dir 2>/dev/null
12892
12893
12894 # as_fn_mkdir_p
12895 # -------------
12896 # Create "$as_dir" as a directory, including parents if necessary.
12897 as_fn_mkdir_p ()
12898 {
12899
12900 case $as_dir in #(
12901 -*) as_dir=./$as_dir;;
12902 esac
12903 test -d "$as_dir" || eval $as_mkdir_p || {
12904 as_dirs=
12905 while :; do
12906 case $as_dir in #(
12907 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12908 *) as_qdir=$as_dir;;
12909 esac
12910 as_dirs="'$as_qdir' $as_dirs"
12911 as_dir=`$as_dirname -- "$as_dir" ||
12912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12913 X"$as_dir" : 'X\(//\)[^/]' \| \
12914 X"$as_dir" : 'X\(//\)$' \| \
12915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12916 $as_echo X"$as_dir" |
12917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12918 s//\1/
12919 q
12920 }
12921 /^X\(\/\/\)[^/].*/{
12922 s//\1/
12923 q
12924 }
12925 /^X\(\/\/\)$/{
12926 s//\1/
12927 q
12928 }
12929 /^X\(\/\).*/{
12930 s//\1/
12931 q
12932 }
12933 s/.*/./; q'`
12934 test -d "$as_dir" && break
12935 done
12936 test -z "$as_dirs" || eval "mkdir $as_dirs"
12937 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12938
12939
12940 } # as_fn_mkdir_p
12941 if mkdir -p . 2>/dev/null; then
12942 as_mkdir_p='mkdir -p "$as_dir"'
12943 else
12944 test -d ./-p && rmdir ./-p
12945 as_mkdir_p=false
12946 fi
12947
12948
12949 # as_fn_executable_p FILE
12950 # -----------------------
12951 # Test if FILE is an executable regular file.
12952 as_fn_executable_p ()
12953 {
12954 test -f "$1" && test -x "$1"
12955 } # as_fn_executable_p
12956 as_test_x='test -x'
12957 as_executable_p=as_fn_executable_p
12958
12959 # Sed expression to map a string onto a valid CPP name.
12960 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12961
12962 # Sed expression to map a string onto a valid variable name.
12963 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12964
12965
12966 exec 6>&1
12967 ## ----------------------------------- ##
12968 ## Main body of $CONFIG_STATUS script. ##
12969 ## ----------------------------------- ##
12970 _ASEOF
12971 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12972
12973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12974 # Save the log message, to keep $0 and so on meaningful, and to
12975 # report actual input values of CONFIG_FILES etc. instead of their
12976 # values after options handling.
12977 ac_log="
12978 This file was extended by $as_me, which was
12979 generated by GNU Autoconf 2.69. Invocation command line was
12980
12981 CONFIG_FILES = $CONFIG_FILES
12982 CONFIG_HEADERS = $CONFIG_HEADERS
12983 CONFIG_LINKS = $CONFIG_LINKS
12984 CONFIG_COMMANDS = $CONFIG_COMMANDS
12985 $ $0 $@
12986
12987 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12988 "
12989
12990 _ACEOF
12991
12992 case $ac_config_files in *"
12993 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12994 esac
12995
12996 case $ac_config_headers in *"
12997 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12998 esac
12999
13000
13001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13002 # Files that config.status was made for.
13003 config_files="$ac_config_files"
13004 config_headers="$ac_config_headers"
13005 config_commands="$ac_config_commands"
13006
13007 _ACEOF
13008
13009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13010 ac_cs_usage="\
13011 \`$as_me' instantiates files and other configuration actions
13012 from templates according to the current configuration. Unless the files
13013 and actions are specified as TAGs, all are instantiated by default.
13014
13015 Usage: $0 [OPTION]... [TAG]...
13016
13017 -h, --help print this help, then exit
13018 -V, --version print version number and configuration settings, then exit
13019 --config print configuration, then exit
13020 -q, --quiet, --silent
13021 do not print progress messages
13022 -d, --debug don't remove temporary files
13023 --recheck update $as_me by reconfiguring in the same conditions
13024 --file=FILE[:TEMPLATE]
13025 instantiate the configuration file FILE
13026 --header=FILE[:TEMPLATE]
13027 instantiate the configuration header FILE
13028
13029 Configuration files:
13030 $config_files
13031
13032 Configuration headers:
13033 $config_headers
13034
13035 Configuration commands:
13036 $config_commands
13037
13038 Report bugs to the package provider."
13039
13040 _ACEOF
13041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13042 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13043 ac_cs_version="\\
13044 config.status
13045 configured by $0, generated by GNU Autoconf 2.69,
13046 with options \\"\$ac_cs_config\\"
13047
13048 Copyright (C) 2012 Free Software Foundation, Inc.
13049 This config.status script is free software; the Free Software Foundation
13050 gives unlimited permission to copy, distribute and modify it."
13051
13052 ac_pwd='$ac_pwd'
13053 srcdir='$srcdir'
13054 INSTALL='$INSTALL'
13055 AWK='$AWK'
13056 test -n "\$AWK" || AWK=awk
13057 _ACEOF
13058
13059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13060 # The default lists apply if the user does not specify any file.
13061 ac_need_defaults=:
13062 while test $# != 0
13063 do
13064 case $1 in
13065 --*=?*)
13066 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13067 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13068 ac_shift=:
13069 ;;
13070 --*=)
13071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13072 ac_optarg=
13073 ac_shift=:
13074 ;;
13075 *)
13076 ac_option=$1
13077 ac_optarg=$2
13078 ac_shift=shift
13079 ;;
13080 esac
13081
13082 case $ac_option in
13083 # Handling of the options.
13084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13085 ac_cs_recheck=: ;;
13086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13087 $as_echo "$ac_cs_version"; exit ;;
13088 --config | --confi | --conf | --con | --co | --c )
13089 $as_echo "$ac_cs_config"; exit ;;
13090 --debug | --debu | --deb | --de | --d | -d )
13091 debug=: ;;
13092 --file | --fil | --fi | --f )
13093 $ac_shift
13094 case $ac_optarg in
13095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13096 '') as_fn_error $? "missing file argument" ;;
13097 esac
13098 as_fn_append CONFIG_FILES " '$ac_optarg'"
13099 ac_need_defaults=false;;
13100 --header | --heade | --head | --hea )
13101 $ac_shift
13102 case $ac_optarg in
13103 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13104 esac
13105 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13106 ac_need_defaults=false;;
13107 --he | --h)
13108 # Conflict between --help and --header
13109 as_fn_error $? "ambiguous option: \`$1'
13110 Try \`$0 --help' for more information.";;
13111 --help | --hel | -h )
13112 $as_echo "$ac_cs_usage"; exit ;;
13113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13114 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13115 ac_cs_silent=: ;;
13116
13117 # This is an error.
13118 -*) as_fn_error $? "unrecognized option: \`$1'
13119 Try \`$0 --help' for more information." ;;
13120
13121 *) as_fn_append ac_config_targets " $1"
13122 ac_need_defaults=false ;;
13123
13124 esac
13125 shift
13126 done
13127
13128 ac_configure_extra_args=
13129
13130 if $ac_cs_silent; then
13131 exec 6>/dev/null
13132 ac_configure_extra_args="$ac_configure_extra_args --silent"
13133 fi
13134
13135 _ACEOF
13136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13137 if \$ac_cs_recheck; then
13138 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13139 shift
13140 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13141 CONFIG_SHELL='$SHELL'
13142 export CONFIG_SHELL
13143 exec "\$@"
13144 fi
13145
13146 _ACEOF
13147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13148 exec 5>>config.log
13149 {
13150 echo
13151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13152 ## Running $as_me. ##
13153 _ASBOX
13154 $as_echo "$ac_log"
13155 } >&5
13156
13157 _ACEOF
13158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13159 #
13160 # INIT-COMMANDS
13161 #
13162 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
13163
13164
13165 # The HP-UX ksh and POSIX shell print the target directory to stdout
13166 # if CDPATH is set.
13167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13168
13169 sed_quote_subst='$sed_quote_subst'
13170 double_quote_subst='$double_quote_subst'
13171 delay_variable_subst='$delay_variable_subst'
13172 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13173 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13174 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13175 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13176 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13177 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13178 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13179 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13180 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13181 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13182 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13183 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13184 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13185 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13186 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13187 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13188 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13189 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13190 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13191 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13192 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13193 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13194 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13195 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13196 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13197 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13198 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13199 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13200 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13201 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13202 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13203 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13204 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13205 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13206 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13207 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13208 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13209 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13210 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13211 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13212 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13213 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13214 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13215 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13216 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13217 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13218 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13219 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13220 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13221 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13222 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13223 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13224 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13225 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13226 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13227 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13228 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13229 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13230 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13231 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13232 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13233 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13234 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13235 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13236 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13237 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13238 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13239 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13240 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13241 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13242 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13243 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13244 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13245 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13246 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13247 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13248 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13249 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13250 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13251 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13252 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13253 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13254 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13255 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13256 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13257 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13258 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13259 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13260 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13261 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13262 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13263 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13264 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13265 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13266 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13267 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13268 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13269 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13270 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13271 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13272 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13273 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13274 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13275 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13276 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13277 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13278 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13279 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13280 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13281 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13282 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13283 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13284 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13285 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13286 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13287 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13288 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13289 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13290 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13291 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13292
13293 LTCC='$LTCC'
13294 LTCFLAGS='$LTCFLAGS'
13295 compiler='$compiler_DEFAULT'
13296
13297 # A function that is used when there is no print builtin or printf.
13298 func_fallback_echo ()
13299 {
13300 eval 'cat <<_LTECHO_EOF
13301 \$1
13302 _LTECHO_EOF'
13303 }
13304
13305 # Quote evaled strings.
13306 for var in SHELL \
13307 ECHO \
13308 SED \
13309 GREP \
13310 EGREP \
13311 FGREP \
13312 LD \
13313 NM \
13314 LN_S \
13315 lt_SP2NL \
13316 lt_NL2SP \
13317 reload_flag \
13318 OBJDUMP \
13319 deplibs_check_method \
13320 file_magic_cmd \
13321 AR \
13322 AR_FLAGS \
13323 STRIP \
13324 RANLIB \
13325 CC \
13326 CFLAGS \
13327 compiler \
13328 lt_cv_sys_global_symbol_pipe \
13329 lt_cv_sys_global_symbol_to_cdecl \
13330 lt_cv_sys_global_symbol_to_c_name_address \
13331 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13332 lt_prog_compiler_no_builtin_flag \
13333 lt_prog_compiler_wl \
13334 lt_prog_compiler_pic \
13335 lt_prog_compiler_static \
13336 lt_cv_prog_compiler_c_o \
13337 need_locks \
13338 DSYMUTIL \
13339 NMEDIT \
13340 LIPO \
13341 OTOOL \
13342 OTOOL64 \
13343 shrext_cmds \
13344 export_dynamic_flag_spec \
13345 whole_archive_flag_spec \
13346 compiler_needs_object \
13347 with_gnu_ld \
13348 allow_undefined_flag \
13349 no_undefined_flag \
13350 hardcode_libdir_flag_spec \
13351 hardcode_libdir_flag_spec_ld \
13352 hardcode_libdir_separator \
13353 fix_srcfile_path \
13354 exclude_expsyms \
13355 include_expsyms \
13356 file_list_spec \
13357 variables_saved_for_relink \
13358 libname_spec \
13359 library_names_spec \
13360 soname_spec \
13361 install_override_mode \
13362 finish_eval \
13363 old_striplib \
13364 striplib; do
13365 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13366 *[\\\\\\\`\\"\\\$]*)
13367 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13368 ;;
13369 *)
13370 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13371 ;;
13372 esac
13373 done
13374
13375 # Double-quote double-evaled strings.
13376 for var in reload_cmds \
13377 old_postinstall_cmds \
13378 old_postuninstall_cmds \
13379 old_archive_cmds \
13380 extract_expsyms_cmds \
13381 old_archive_from_new_cmds \
13382 old_archive_from_expsyms_cmds \
13383 archive_cmds \
13384 archive_expsym_cmds \
13385 module_cmds \
13386 module_expsym_cmds \
13387 export_symbols_cmds \
13388 prelink_cmds \
13389 postinstall_cmds \
13390 postuninstall_cmds \
13391 finish_cmds \
13392 sys_lib_search_path_spec \
13393 sys_lib_dlsearch_path_spec; do
13394 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13395 *[\\\\\\\`\\"\\\$]*)
13396 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13397 ;;
13398 *)
13399 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13400 ;;
13401 esac
13402 done
13403
13404 ac_aux_dir='$ac_aux_dir'
13405 xsi_shell='$xsi_shell'
13406 lt_shell_append='$lt_shell_append'
13407
13408 # See if we are running on zsh, and set the options which allow our
13409 # commands through without removal of \ escapes INIT.
13410 if test -n "\${ZSH_VERSION+set}" ; then
13411 setopt NO_GLOB_SUBST
13412 fi
13413
13414
13415 PACKAGE='$PACKAGE'
13416 VERSION='$VERSION'
13417 TIMESTAMP='$TIMESTAMP'
13418 RM='$RM'
13419 ofile='$ofile'
13420
13421
13422
13423
13424 _ACEOF
13425
13426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13427
13428 # Handling of arguments.
13429 for ac_config_target in $ac_config_targets
13430 do
13431 case $ac_config_target in
13432 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13433 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
13434 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13435 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
13436 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
13437 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
13438 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13439 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13440
13441 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13442 esac
13443 done
13444
13445
13446 # If the user did not use the arguments to specify the items to instantiate,
13447 # then the envvar interface is used. Set only those that are not.
13448 # We use the long form for the default assignment because of an extremely
13449 # bizarre bug on SunOS 4.1.3.
13450 if $ac_need_defaults; then
13451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13453 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13454 fi
13455
13456 # Have a temporary directory for convenience. Make it in the build tree
13457 # simply because there is no reason against having it here, and in addition,
13458 # creating and moving files from /tmp can sometimes cause problems.
13459 # Hook for its removal unless debugging.
13460 # Note that there is a small window in which the directory will not be cleaned:
13461 # after its creation but before its name has been assigned to `$tmp'.
13462 $debug ||
13463 {
13464 tmp= ac_tmp=
13465 trap 'exit_status=$?
13466 : "${ac_tmp:=$tmp}"
13467 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13468 ' 0
13469 trap 'as_fn_exit 1' 1 2 13 15
13470 }
13471 # Create a (secure) tmp directory for tmp files.
13472
13473 {
13474 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13475 test -d "$tmp"
13476 } ||
13477 {
13478 tmp=./conf$$-$RANDOM
13479 (umask 077 && mkdir "$tmp")
13480 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13481 ac_tmp=$tmp
13482
13483 # Set up the scripts for CONFIG_FILES section.
13484 # No need to generate them if there are no CONFIG_FILES.
13485 # This happens for instance with `./config.status config.h'.
13486 if test -n "$CONFIG_FILES"; then
13487
13488
13489 ac_cr=`echo X | tr X '\015'`
13490 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13491 # But we know of no other shell where ac_cr would be empty at this
13492 # point, so we can use a bashism as a fallback.
13493 if test "x$ac_cr" = x; then
13494 eval ac_cr=\$\'\\r\'
13495 fi
13496 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13497 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13498 ac_cs_awk_cr='\\r'
13499 else
13500 ac_cs_awk_cr=$ac_cr
13501 fi
13502
13503 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13504 _ACEOF
13505
13506
13507 {
13508 echo "cat >conf$$subs.awk <<_ACEOF" &&
13509 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13510 echo "_ACEOF"
13511 } >conf$$subs.sh ||
13512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13513 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13514 ac_delim='%!_!# '
13515 for ac_last_try in false false false false false :; do
13516 . ./conf$$subs.sh ||
13517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13518
13519 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13520 if test $ac_delim_n = $ac_delim_num; then
13521 break
13522 elif $ac_last_try; then
13523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13524 else
13525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13526 fi
13527 done
13528 rm -f conf$$subs.sh
13529
13530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13531 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13532 _ACEOF
13533 sed -n '
13534 h
13535 s/^/S["/; s/!.*/"]=/
13536 p
13537 g
13538 s/^[^!]*!//
13539 :repl
13540 t repl
13541 s/'"$ac_delim"'$//
13542 t delim
13543 :nl
13544 h
13545 s/\(.\{148\}\)..*/\1/
13546 t more1
13547 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13548 p
13549 n
13550 b repl
13551 :more1
13552 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13553 p
13554 g
13555 s/.\{148\}//
13556 t nl
13557 :delim
13558 h
13559 s/\(.\{148\}\)..*/\1/
13560 t more2
13561 s/["\\]/\\&/g; s/^/"/; s/$/"/
13562 p
13563 b
13564 :more2
13565 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13566 p
13567 g
13568 s/.\{148\}//
13569 t delim
13570 ' <conf$$subs.awk | sed '
13571 /^[^""]/{
13572 N
13573 s/\n//
13574 }
13575 ' >>$CONFIG_STATUS || ac_write_fail=1
13576 rm -f conf$$subs.awk
13577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13578 _ACAWK
13579 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13580 for (key in S) S_is_set[key] = 1
13581 FS = "\a"
13582
13583 }
13584 {
13585 line = $ 0
13586 nfields = split(line, field, "@")
13587 substed = 0
13588 len = length(field[1])
13589 for (i = 2; i < nfields; i++) {
13590 key = field[i]
13591 keylen = length(key)
13592 if (S_is_set[key]) {
13593 value = S[key]
13594 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13595 len += length(value) + length(field[++i])
13596 substed = 1
13597 } else
13598 len += 1 + keylen
13599 }
13600
13601 print line
13602 }
13603
13604 _ACAWK
13605 _ACEOF
13606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13607 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13608 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13609 else
13610 cat
13611 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13612 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13613 _ACEOF
13614
13615 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13616 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13617 # trailing colons and then remove the whole line if VPATH becomes empty
13618 # (actually we leave an empty line to preserve line numbers).
13619 if test "x$srcdir" = x.; then
13620 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13621 h
13622 s///
13623 s/^/:/
13624 s/[ ]*$/:/
13625 s/:\$(srcdir):/:/g
13626 s/:\${srcdir}:/:/g
13627 s/:@srcdir@:/:/g
13628 s/^:*//
13629 s/:*$//
13630 x
13631 s/\(=[ ]*\).*/\1/
13632 G
13633 s/\n//
13634 s/^[^=]*=[ ]*$//
13635 }'
13636 fi
13637
13638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13639 fi # test -n "$CONFIG_FILES"
13640
13641 # Set up the scripts for CONFIG_HEADERS section.
13642 # No need to generate them if there are no CONFIG_HEADERS.
13643 # This happens for instance with `./config.status Makefile'.
13644 if test -n "$CONFIG_HEADERS"; then
13645 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13646 BEGIN {
13647 _ACEOF
13648
13649 # Transform confdefs.h into an awk script `defines.awk', embedded as
13650 # here-document in config.status, that substitutes the proper values into
13651 # config.h.in to produce config.h.
13652
13653 # Create a delimiter string that does not exist in confdefs.h, to ease
13654 # handling of long lines.
13655 ac_delim='%!_!# '
13656 for ac_last_try in false false :; do
13657 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13658 if test -z "$ac_tt"; then
13659 break
13660 elif $ac_last_try; then
13661 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13662 else
13663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13664 fi
13665 done
13666
13667 # For the awk script, D is an array of macro values keyed by name,
13668 # likewise P contains macro parameters if any. Preserve backslash
13669 # newline sequences.
13670
13671 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13672 sed -n '
13673 s/.\{148\}/&'"$ac_delim"'/g
13674 t rset
13675 :rset
13676 s/^[ ]*#[ ]*define[ ][ ]*/ /
13677 t def
13678 d
13679 :def
13680 s/\\$//
13681 t bsnl
13682 s/["\\]/\\&/g
13683 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13684 D["\1"]=" \3"/p
13685 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13686 d
13687 :bsnl
13688 s/["\\]/\\&/g
13689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13690 D["\1"]=" \3\\\\\\n"\\/p
13691 t cont
13692 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13693 t cont
13694 d
13695 :cont
13696 n
13697 s/.\{148\}/&'"$ac_delim"'/g
13698 t clear
13699 :clear
13700 s/\\$//
13701 t bsnlc
13702 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13703 d
13704 :bsnlc
13705 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13706 b cont
13707 ' <confdefs.h | sed '
13708 s/'"$ac_delim"'/"\\\
13709 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13710
13711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13712 for (key in D) D_is_set[key] = 1
13713 FS = "\a"
13714 }
13715 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13716 line = \$ 0
13717 split(line, arg, " ")
13718 if (arg[1] == "#") {
13719 defundef = arg[2]
13720 mac1 = arg[3]
13721 } else {
13722 defundef = substr(arg[1], 2)
13723 mac1 = arg[2]
13724 }
13725 split(mac1, mac2, "(") #)
13726 macro = mac2[1]
13727 prefix = substr(line, 1, index(line, defundef) - 1)
13728 if (D_is_set[macro]) {
13729 # Preserve the white space surrounding the "#".
13730 print prefix "define", macro P[macro] D[macro]
13731 next
13732 } else {
13733 # Replace #undef with comments. This is necessary, for example,
13734 # in the case of _POSIX_SOURCE, which is predefined and required
13735 # on some systems where configure will not decide to define it.
13736 if (defundef == "undef") {
13737 print "/*", prefix defundef, macro, "*/"
13738 next
13739 }
13740 }
13741 }
13742 { print }
13743 _ACAWK
13744 _ACEOF
13745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13746 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13747 fi # test -n "$CONFIG_HEADERS"
13748
13749
13750 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13751 shift
13752 for ac_tag
13753 do
13754 case $ac_tag in
13755 :[FHLC]) ac_mode=$ac_tag; continue;;
13756 esac
13757 case $ac_mode$ac_tag in
13758 :[FHL]*:*);;
13759 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13760 :[FH]-) ac_tag=-:-;;
13761 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13762 esac
13763 ac_save_IFS=$IFS
13764 IFS=:
13765 set x $ac_tag
13766 IFS=$ac_save_IFS
13767 shift
13768 ac_file=$1
13769 shift
13770
13771 case $ac_mode in
13772 :L) ac_source=$1;;
13773 :[FH])
13774 ac_file_inputs=
13775 for ac_f
13776 do
13777 case $ac_f in
13778 -) ac_f="$ac_tmp/stdin";;
13779 *) # Look for the file first in the build tree, then in the source tree
13780 # (if the path is not absolute). The absolute path cannot be DOS-style,
13781 # because $ac_f cannot contain `:'.
13782 test -f "$ac_f" ||
13783 case $ac_f in
13784 [\\/$]*) false;;
13785 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13786 esac ||
13787 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13788 esac
13789 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13790 as_fn_append ac_file_inputs " '$ac_f'"
13791 done
13792
13793 # Let's still pretend it is `configure' which instantiates (i.e., don't
13794 # use $as_me), people would be surprised to read:
13795 # /* config.h. Generated by config.status. */
13796 configure_input='Generated from '`
13797 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13798 `' by configure.'
13799 if test x"$ac_file" != x-; then
13800 configure_input="$ac_file. $configure_input"
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13802 $as_echo "$as_me: creating $ac_file" >&6;}
13803 fi
13804 # Neutralize special characters interpreted by sed in replacement strings.
13805 case $configure_input in #(
13806 *\&* | *\|* | *\\* )
13807 ac_sed_conf_input=`$as_echo "$configure_input" |
13808 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13809 *) ac_sed_conf_input=$configure_input;;
13810 esac
13811
13812 case $ac_tag in
13813 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13815 esac
13816 ;;
13817 esac
13818
13819 ac_dir=`$as_dirname -- "$ac_file" ||
13820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13821 X"$ac_file" : 'X\(//\)[^/]' \| \
13822 X"$ac_file" : 'X\(//\)$' \| \
13823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13824 $as_echo X"$ac_file" |
13825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13826 s//\1/
13827 q
13828 }
13829 /^X\(\/\/\)[^/].*/{
13830 s//\1/
13831 q
13832 }
13833 /^X\(\/\/\)$/{
13834 s//\1/
13835 q
13836 }
13837 /^X\(\/\).*/{
13838 s//\1/
13839 q
13840 }
13841 s/.*/./; q'`
13842 as_dir="$ac_dir"; as_fn_mkdir_p
13843 ac_builddir=.
13844
13845 case "$ac_dir" in
13846 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13847 *)
13848 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13849 # A ".." for each directory in $ac_dir_suffix.
13850 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13851 case $ac_top_builddir_sub in
13852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13854 esac ;;
13855 esac
13856 ac_abs_top_builddir=$ac_pwd
13857 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13858 # for backward compatibility:
13859 ac_top_builddir=$ac_top_build_prefix
13860
13861 case $srcdir in
13862 .) # We are building in place.
13863 ac_srcdir=.
13864 ac_top_srcdir=$ac_top_builddir_sub
13865 ac_abs_top_srcdir=$ac_pwd ;;
13866 [\\/]* | ?:[\\/]* ) # Absolute name.
13867 ac_srcdir=$srcdir$ac_dir_suffix;
13868 ac_top_srcdir=$srcdir
13869 ac_abs_top_srcdir=$srcdir ;;
13870 *) # Relative name.
13871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13872 ac_top_srcdir=$ac_top_build_prefix$srcdir
13873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13874 esac
13875 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13876
13877
13878 case $ac_mode in
13879 :F)
13880 #
13881 # CONFIG_FILE
13882 #
13883
13884 case $INSTALL in
13885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13886 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13887 esac
13888 _ACEOF
13889
13890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13891 # If the template does not know about datarootdir, expand it.
13892 # FIXME: This hack should be removed a few years after 2.60.
13893 ac_datarootdir_hack=; ac_datarootdir_seen=
13894 ac_sed_dataroot='
13895 /datarootdir/ {
13896 p
13897 q
13898 }
13899 /@datadir@/p
13900 /@docdir@/p
13901 /@infodir@/p
13902 /@localedir@/p
13903 /@mandir@/p'
13904 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13905 *datarootdir*) ac_datarootdir_seen=yes;;
13906 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13908 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13909 _ACEOF
13910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13911 ac_datarootdir_hack='
13912 s&@datadir@&$datadir&g
13913 s&@docdir@&$docdir&g
13914 s&@infodir@&$infodir&g
13915 s&@localedir@&$localedir&g
13916 s&@mandir@&$mandir&g
13917 s&\\\${datarootdir}&$datarootdir&g' ;;
13918 esac
13919 _ACEOF
13920
13921 # Neutralize VPATH when `$srcdir' = `.'.
13922 # Shell code in configure.ac might set extrasub.
13923 # FIXME: do we really want to maintain this feature?
13924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13925 ac_sed_extra="$ac_vpsub
13926 $extrasub
13927 _ACEOF
13928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13929 :t
13930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13931 s|@configure_input@|$ac_sed_conf_input|;t t
13932 s&@top_builddir@&$ac_top_builddir_sub&;t t
13933 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13934 s&@srcdir@&$ac_srcdir&;t t
13935 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13936 s&@top_srcdir@&$ac_top_srcdir&;t t
13937 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13938 s&@builddir@&$ac_builddir&;t t
13939 s&@abs_builddir@&$ac_abs_builddir&;t t
13940 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13941 s&@INSTALL@&$ac_INSTALL&;t t
13942 $ac_datarootdir_hack
13943 "
13944 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13945 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13946
13947 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13948 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13950 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13952 which seems to be undefined. Please make sure it is defined" >&5
13953 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13954 which seems to be undefined. Please make sure it is defined" >&2;}
13955
13956 rm -f "$ac_tmp/stdin"
13957 case $ac_file in
13958 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13959 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13960 esac \
13961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13962 ;;
13963 :H)
13964 #
13965 # CONFIG_HEADER
13966 #
13967 if test x"$ac_file" != x-; then
13968 {
13969 $as_echo "/* $configure_input */" \
13970 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13971 } >"$ac_tmp/config.h" \
13972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13973 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13975 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13976 else
13977 rm -f "$ac_file"
13978 mv "$ac_tmp/config.h" "$ac_file" \
13979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13980 fi
13981 else
13982 $as_echo "/* $configure_input */" \
13983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13984 || as_fn_error $? "could not create -" "$LINENO" 5
13985 fi
13986 ;;
13987
13988 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13989 $as_echo "$as_me: executing $ac_file commands" >&6;}
13990 ;;
13991 esac
13992
13993
13994 case $ac_file$ac_mode in
13995 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
13996 "libtool":C)
13997
13998 # See if we are running on zsh, and set the options which allow our
13999 # commands through without removal of \ escapes.
14000 if test -n "${ZSH_VERSION+set}" ; then
14001 setopt NO_GLOB_SUBST
14002 fi
14003
14004 cfgfile="${ofile}T"
14005 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14006 $RM "$cfgfile"
14007
14008 cat <<_LT_EOF >> "$cfgfile"
14009 #! $SHELL
14010
14011 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14012 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14013 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14014 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14015 #
14016 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14017 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14018 # Written by Gordon Matzigkeit, 1996
14019 #
14020 # This file is part of GNU Libtool.
14021 #
14022 # GNU Libtool is free software; you can redistribute it and/or
14023 # modify it under the terms of the GNU General Public License as
14024 # published by the Free Software Foundation; either version 2 of
14025 # the License, or (at your option) any later version.
14026 #
14027 # As a special exception to the GNU General Public License,
14028 # if you distribute this file as part of a program or library that
14029 # is built using GNU Libtool, you may include this file under the
14030 # same distribution terms that you use for the rest of that program.
14031 #
14032 # GNU Libtool is distributed in the hope that it will be useful,
14033 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14034 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14035 # GNU General Public License for more details.
14036 #
14037 # You should have received a copy of the GNU General Public License
14038 # along with GNU Libtool; see the file COPYING. If not, a copy
14039 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14040 # obtained by writing to the Free Software Foundation, Inc.,
14041 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14042
14043
14044 # The names of the tagged configurations supported by this script.
14045 available_tags=""
14046
14047 # ### BEGIN LIBTOOL CONFIG
14048
14049 # Which release of libtool.m4 was used?
14050 macro_version=$macro_version
14051 macro_revision=$macro_revision
14052
14053 # Whether or not to build shared libraries.
14054 build_libtool_libs=$enable_shared
14055
14056 # Whether or not to build static libraries.
14057 build_old_libs=$enable_static
14058
14059 # What type of objects to build.
14060 pic_mode=$pic_mode
14061
14062 # Whether or not to optimize for fast installation.
14063 fast_install=$enable_fast_install
14064
14065 # Shell to use when invoking shell scripts.
14066 SHELL=$lt_SHELL
14067
14068 # An echo program that protects backslashes.
14069 ECHO=$lt_ECHO
14070
14071 # The host system.
14072 host_alias=$host_alias
14073 host=$host
14074 host_os=$host_os
14075
14076 # The build system.
14077 build_alias=$build_alias
14078 build=$build
14079 build_os=$build_os
14080
14081 # A sed program that does not truncate output.
14082 SED=$lt_SED
14083
14084 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14085 Xsed="\$SED -e 1s/^X//"
14086
14087 # A grep program that handles long lines.
14088 GREP=$lt_GREP
14089
14090 # An ERE matcher.
14091 EGREP=$lt_EGREP
14092
14093 # A literal string matcher.
14094 FGREP=$lt_FGREP
14095
14096 # A BSD- or MS-compatible name lister.
14097 NM=$lt_NM
14098
14099 # Whether we need soft or hard links.
14100 LN_S=$lt_LN_S
14101
14102 # What is the maximum length of a command?
14103 max_cmd_len=$max_cmd_len
14104
14105 # Object file suffix (normally "o").
14106 objext=$ac_objext
14107
14108 # Executable file suffix (normally "").
14109 exeext=$exeext
14110
14111 # whether the shell understands "unset".
14112 lt_unset=$lt_unset
14113
14114 # turn spaces into newlines.
14115 SP2NL=$lt_lt_SP2NL
14116
14117 # turn newlines into spaces.
14118 NL2SP=$lt_lt_NL2SP
14119
14120 # An object symbol dumper.
14121 OBJDUMP=$lt_OBJDUMP
14122
14123 # Method to check whether dependent libraries are shared objects.
14124 deplibs_check_method=$lt_deplibs_check_method
14125
14126 # Command to use when deplibs_check_method == "file_magic".
14127 file_magic_cmd=$lt_file_magic_cmd
14128
14129 # The archiver.
14130 AR=$lt_AR
14131 AR_FLAGS=$lt_AR_FLAGS
14132
14133 # A symbol stripping program.
14134 STRIP=$lt_STRIP
14135
14136 # Commands used to install an old-style archive.
14137 RANLIB=$lt_RANLIB
14138 old_postinstall_cmds=$lt_old_postinstall_cmds
14139 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14140
14141 # Whether to use a lock for old archive extraction.
14142 lock_old_archive_extraction=$lock_old_archive_extraction
14143
14144 # A C compiler.
14145 LTCC=$lt_CC
14146
14147 # LTCC compiler flags.
14148 LTCFLAGS=$lt_CFLAGS
14149
14150 # Take the output of nm and produce a listing of raw symbols and C names.
14151 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14152
14153 # Transform the output of nm in a proper C declaration.
14154 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14155
14156 # Transform the output of nm in a C name address pair.
14157 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14158
14159 # Transform the output of nm in a C name address pair when lib prefix is needed.
14160 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14161
14162 # The name of the directory that contains temporary libtool files.
14163 objdir=$objdir
14164
14165 # Used to examine libraries when file_magic_cmd begins with "file".
14166 MAGIC_CMD=$MAGIC_CMD
14167
14168 # Must we lock files when doing compilation?
14169 need_locks=$lt_need_locks
14170
14171 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14172 DSYMUTIL=$lt_DSYMUTIL
14173
14174 # Tool to change global to local symbols on Mac OS X.
14175 NMEDIT=$lt_NMEDIT
14176
14177 # Tool to manipulate fat objects and archives on Mac OS X.
14178 LIPO=$lt_LIPO
14179
14180 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14181 OTOOL=$lt_OTOOL
14182
14183 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14184 OTOOL64=$lt_OTOOL64
14185
14186 # Old archive suffix (normally "a").
14187 libext=$libext
14188
14189 # Shared library suffix (normally ".so").
14190 shrext_cmds=$lt_shrext_cmds
14191
14192 # The commands to extract the exported symbol list from a shared archive.
14193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14194
14195 # Variables whose values should be saved in libtool wrapper scripts and
14196 # restored at link time.
14197 variables_saved_for_relink=$lt_variables_saved_for_relink
14198
14199 # Do we need the "lib" prefix for modules?
14200 need_lib_prefix=$need_lib_prefix
14201
14202 # Do we need a version for libraries?
14203 need_version=$need_version
14204
14205 # Library versioning type.
14206 version_type=$version_type
14207
14208 # Shared library runtime path variable.
14209 runpath_var=$runpath_var
14210
14211 # Shared library path variable.
14212 shlibpath_var=$shlibpath_var
14213
14214 # Is shlibpath searched before the hard-coded library search path?
14215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14216
14217 # Format of library name prefix.
14218 libname_spec=$lt_libname_spec
14219
14220 # List of archive names. First name is the real one, the rest are links.
14221 # The last name is the one that the linker finds with -lNAME
14222 library_names_spec=$lt_library_names_spec
14223
14224 # The coded name of the library, if different from the real name.
14225 soname_spec=$lt_soname_spec
14226
14227 # Permission mode override for installation of shared libraries.
14228 install_override_mode=$lt_install_override_mode
14229
14230 # Command to use after installation of a shared archive.
14231 postinstall_cmds=$lt_postinstall_cmds
14232
14233 # Command to use after uninstallation of a shared archive.
14234 postuninstall_cmds=$lt_postuninstall_cmds
14235
14236 # Commands used to finish a libtool library installation in a directory.
14237 finish_cmds=$lt_finish_cmds
14238
14239 # As "finish_cmds", except a single script fragment to be evaled but
14240 # not shown.
14241 finish_eval=$lt_finish_eval
14242
14243 # Whether we should hardcode library paths into libraries.
14244 hardcode_into_libs=$hardcode_into_libs
14245
14246 # Compile-time system search path for libraries.
14247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14248
14249 # Run-time system search path for libraries.
14250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14251
14252 # Whether dlopen is supported.
14253 dlopen_support=$enable_dlopen
14254
14255 # Whether dlopen of programs is supported.
14256 dlopen_self=$enable_dlopen_self
14257
14258 # Whether dlopen of statically linked programs is supported.
14259 dlopen_self_static=$enable_dlopen_self_static
14260
14261 # Commands to strip libraries.
14262 old_striplib=$lt_old_striplib
14263 striplib=$lt_striplib
14264
14265
14266 # The linker used to build libraries.
14267 LD=$lt_LD
14268
14269 # How to create reloadable object files.
14270 reload_flag=$lt_reload_flag
14271 reload_cmds=$lt_reload_cmds
14272
14273 # Commands used to build an old-style archive.
14274 old_archive_cmds=$lt_old_archive_cmds
14275
14276 # A language specific compiler.
14277 CC=$lt_compiler
14278
14279 # Is the compiler the GNU compiler?
14280 with_gcc=$GCC
14281
14282 # Compiler flag to turn off builtin functions.
14283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14284
14285 # How to pass a linker flag through the compiler.
14286 wl=$lt_lt_prog_compiler_wl
14287
14288 # Additional compiler flags for building library objects.
14289 pic_flag=$lt_lt_prog_compiler_pic
14290
14291 # Compiler flag to prevent dynamic linking.
14292 link_static_flag=$lt_lt_prog_compiler_static
14293
14294 # Does compiler simultaneously support -c and -o options?
14295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14296
14297 # Whether or not to add -lc for building shared libraries.
14298 build_libtool_need_lc=$archive_cmds_need_lc
14299
14300 # Whether or not to disallow shared libs when runtime libs are static.
14301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14302
14303 # Compiler flag to allow reflexive dlopens.
14304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14305
14306 # Compiler flag to generate shared objects directly from archives.
14307 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14308
14309 # Whether the compiler copes with passing no objects directly.
14310 compiler_needs_object=$lt_compiler_needs_object
14311
14312 # Create an old-style archive from a shared archive.
14313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14314
14315 # Create a temporary old-style archive to link instead of a shared archive.
14316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14317
14318 # Commands used to build a shared archive.
14319 archive_cmds=$lt_archive_cmds
14320 archive_expsym_cmds=$lt_archive_expsym_cmds
14321
14322 # Commands used to build a loadable module if different from building
14323 # a shared archive.
14324 module_cmds=$lt_module_cmds
14325 module_expsym_cmds=$lt_module_expsym_cmds
14326
14327 # Whether we are building with GNU ld or not.
14328 with_gnu_ld=$lt_with_gnu_ld
14329
14330 # Flag that allows shared libraries with undefined symbols to be built.
14331 allow_undefined_flag=$lt_allow_undefined_flag
14332
14333 # Flag that enforces no undefined symbols.
14334 no_undefined_flag=$lt_no_undefined_flag
14335
14336 # Flag to hardcode \$libdir into a binary during linking.
14337 # This must work even if \$libdir does not exist
14338 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14339
14340 # If ld is used when linking, flag to hardcode \$libdir into a binary
14341 # during linking. This must work even if \$libdir does not exist.
14342 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14343
14344 # Whether we need a single "-rpath" flag with a separated argument.
14345 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14346
14347 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14348 # DIR into the resulting binary.
14349 hardcode_direct=$hardcode_direct
14350
14351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14352 # DIR into the resulting binary and the resulting library dependency is
14353 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14354 # library is relocated.
14355 hardcode_direct_absolute=$hardcode_direct_absolute
14356
14357 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14358 # into the resulting binary.
14359 hardcode_minus_L=$hardcode_minus_L
14360
14361 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14362 # into the resulting binary.
14363 hardcode_shlibpath_var=$hardcode_shlibpath_var
14364
14365 # Set to "yes" if building a shared library automatically hardcodes DIR
14366 # into the library and all subsequent libraries and executables linked
14367 # against it.
14368 hardcode_automatic=$hardcode_automatic
14369
14370 # Set to yes if linker adds runtime paths of dependent libraries
14371 # to runtime path list.
14372 inherit_rpath=$inherit_rpath
14373
14374 # Whether libtool must link a program against all its dependency libraries.
14375 link_all_deplibs=$link_all_deplibs
14376
14377 # Fix the shell variable \$srcfile for the compiler.
14378 fix_srcfile_path=$lt_fix_srcfile_path
14379
14380 # Set to "yes" if exported symbols are required.
14381 always_export_symbols=$always_export_symbols
14382
14383 # The commands to list exported symbols.
14384 export_symbols_cmds=$lt_export_symbols_cmds
14385
14386 # Symbols that should not be listed in the preloaded symbols.
14387 exclude_expsyms=$lt_exclude_expsyms
14388
14389 # Symbols that must always be exported.
14390 include_expsyms=$lt_include_expsyms
14391
14392 # Commands necessary for linking programs (against libraries) with templates.
14393 prelink_cmds=$lt_prelink_cmds
14394
14395 # Specify filename containing input files.
14396 file_list_spec=$lt_file_list_spec
14397
14398 # How to hardcode a shared library path into an executable.
14399 hardcode_action=$hardcode_action
14400
14401 # ### END LIBTOOL CONFIG
14402
14403 _LT_EOF
14404
14405 case $host_os in
14406 aix3*)
14407 cat <<\_LT_EOF >> "$cfgfile"
14408 # AIX sometimes has problems with the GCC collect2 program. For some
14409 # reason, if we set the COLLECT_NAMES environment variable, the problems
14410 # vanish in a puff of smoke.
14411 if test "X${COLLECT_NAMES+set}" != Xset; then
14412 COLLECT_NAMES=
14413 export COLLECT_NAMES
14414 fi
14415 _LT_EOF
14416 ;;
14417 esac
14418
14419
14420 ltmain="$ac_aux_dir/ltmain.sh"
14421
14422
14423 # We use sed instead of cat because bash on DJGPP gets confused if
14424 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14425 # text mode, it properly converts lines to CR/LF. This bash problem
14426 # is reportedly fixed, but why not run on old versions too?
14427 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14428 || (rm -f "$cfgfile"; exit 1)
14429
14430 case $xsi_shell in
14431 yes)
14432 cat << \_LT_EOF >> "$cfgfile"
14433
14434 # func_dirname file append nondir_replacement
14435 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14436 # otherwise set result to NONDIR_REPLACEMENT.
14437 func_dirname ()
14438 {
14439 case ${1} in
14440 */*) func_dirname_result="${1%/*}${2}" ;;
14441 * ) func_dirname_result="${3}" ;;
14442 esac
14443 }
14444
14445 # func_basename file
14446 func_basename ()
14447 {
14448 func_basename_result="${1##*/}"
14449 }
14450
14451 # func_dirname_and_basename file append nondir_replacement
14452 # perform func_basename and func_dirname in a single function
14453 # call:
14454 # dirname: Compute the dirname of FILE. If nonempty,
14455 # add APPEND to the result, otherwise set result
14456 # to NONDIR_REPLACEMENT.
14457 # value returned in "$func_dirname_result"
14458 # basename: Compute filename of FILE.
14459 # value retuned in "$func_basename_result"
14460 # Implementation must be kept synchronized with func_dirname
14461 # and func_basename. For efficiency, we do not delegate to
14462 # those functions but instead duplicate the functionality here.
14463 func_dirname_and_basename ()
14464 {
14465 case ${1} in
14466 */*) func_dirname_result="${1%/*}${2}" ;;
14467 * ) func_dirname_result="${3}" ;;
14468 esac
14469 func_basename_result="${1##*/}"
14470 }
14471
14472 # func_stripname prefix suffix name
14473 # strip PREFIX and SUFFIX off of NAME.
14474 # PREFIX and SUFFIX must not contain globbing or regex special
14475 # characters, hashes, percent signs, but SUFFIX may contain a leading
14476 # dot (in which case that matches only a dot).
14477 func_stripname ()
14478 {
14479 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14480 # positional parameters, so assign one to ordinary parameter first.
14481 func_stripname_result=${3}
14482 func_stripname_result=${func_stripname_result#"${1}"}
14483 func_stripname_result=${func_stripname_result%"${2}"}
14484 }
14485
14486 # func_opt_split
14487 func_opt_split ()
14488 {
14489 func_opt_split_opt=${1%%=*}
14490 func_opt_split_arg=${1#*=}
14491 }
14492
14493 # func_lo2o object
14494 func_lo2o ()
14495 {
14496 case ${1} in
14497 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14498 *) func_lo2o_result=${1} ;;
14499 esac
14500 }
14501
14502 # func_xform libobj-or-source
14503 func_xform ()
14504 {
14505 func_xform_result=${1%.*}.lo
14506 }
14507
14508 # func_arith arithmetic-term...
14509 func_arith ()
14510 {
14511 func_arith_result=$(( $* ))
14512 }
14513
14514 # func_len string
14515 # STRING may not start with a hyphen.
14516 func_len ()
14517 {
14518 func_len_result=${#1}
14519 }
14520
14521 _LT_EOF
14522 ;;
14523 *) # Bourne compatible functions.
14524 cat << \_LT_EOF >> "$cfgfile"
14525
14526 # func_dirname file append nondir_replacement
14527 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14528 # otherwise set result to NONDIR_REPLACEMENT.
14529 func_dirname ()
14530 {
14531 # Extract subdirectory from the argument.
14532 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14533 if test "X$func_dirname_result" = "X${1}"; then
14534 func_dirname_result="${3}"
14535 else
14536 func_dirname_result="$func_dirname_result${2}"
14537 fi
14538 }
14539
14540 # func_basename file
14541 func_basename ()
14542 {
14543 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14544 }
14545
14546
14547 # func_stripname prefix suffix name
14548 # strip PREFIX and SUFFIX off of NAME.
14549 # PREFIX and SUFFIX must not contain globbing or regex special
14550 # characters, hashes, percent signs, but SUFFIX may contain a leading
14551 # dot (in which case that matches only a dot).
14552 # func_strip_suffix prefix name
14553 func_stripname ()
14554 {
14555 case ${2} in
14556 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14557 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14558 esac
14559 }
14560
14561 # sed scripts:
14562 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14563 my_sed_long_arg='1s/^-[^=]*=//'
14564
14565 # func_opt_split
14566 func_opt_split ()
14567 {
14568 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14569 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14570 }
14571
14572 # func_lo2o object
14573 func_lo2o ()
14574 {
14575 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14576 }
14577
14578 # func_xform libobj-or-source
14579 func_xform ()
14580 {
14581 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14582 }
14583
14584 # func_arith arithmetic-term...
14585 func_arith ()
14586 {
14587 func_arith_result=`expr "$@"`
14588 }
14589
14590 # func_len string
14591 # STRING may not start with a hyphen.
14592 func_len ()
14593 {
14594 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14595 }
14596
14597 _LT_EOF
14598 esac
14599
14600 case $lt_shell_append in
14601 yes)
14602 cat << \_LT_EOF >> "$cfgfile"
14603
14604 # func_append var value
14605 # Append VALUE to the end of shell variable VAR.
14606 func_append ()
14607 {
14608 eval "$1+=\$2"
14609 }
14610 _LT_EOF
14611 ;;
14612 *)
14613 cat << \_LT_EOF >> "$cfgfile"
14614
14615 # func_append var value
14616 # Append VALUE to the end of shell variable VAR.
14617 func_append ()
14618 {
14619 eval "$1=\$$1\$2"
14620 }
14621
14622 _LT_EOF
14623 ;;
14624 esac
14625
14626
14627 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14628 || (rm -f "$cfgfile"; exit 1)
14629
14630 mv -f "$cfgfile" "$ofile" ||
14631 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14632 chmod +x "$ofile"
14633
14634 ;;
14635 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
14636 rm -f Makesim1.tmp Makesim2.tmp Makefile
14637 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
14638 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
14639 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
14640 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
14641 <Makefile.sim >Makefile
14642 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
14643 ;;
14644 "stamp-h":C) echo > stamp-h ;;
14645
14646 esac
14647 done # for ac_tag
14648
14649
14650 as_fn_exit 0
14651 _ACEOF
14652 ac_clean_files=$ac_clean_files_save
14653
14654 test $ac_write_fail = 0 ||
14655 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14656
14657
14658 # configure is writing to config.log, and then calls config.status.
14659 # config.status does its own redirection, appending to config.log.
14660 # Unfortunately, on DOS this fails, as config.log is still kept open
14661 # by configure, so config.status won't be able to write to it; its
14662 # output is simply discarded. So we exec the FD to /dev/null,
14663 # effectively closing config.log, so it can be properly (re)opened and
14664 # appended to by config.status. When coming back to configure, we
14665 # need to make the FD available again.
14666 if test "$no_create" != yes; then
14667 ac_cs_success=:
14668 ac_config_status_args=
14669 test "$silent" = yes &&
14670 ac_config_status_args="$ac_config_status_args --quiet"
14671 exec 5>/dev/null
14672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14673 exec 5>>config.log
14674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14675 # would make configure fail if this is the last instruction.
14676 $ac_cs_success || as_fn_exit 1
14677 fi
14678 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14680 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14681 fi
14682
14683