opcodes: enable silent build rules
[binutils-gdb.git] / opcodes / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for opcodes 2.37.50.
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='opcodes'
589 PACKAGE_TARNAME='opcodes'
590 PACKAGE_VERSION='2.37.50'
591 PACKAGE_STRING='opcodes 2.37.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="z8k-dis.c"
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='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 BFD_MACHINES
637 archdefs
638 SHARED_DEPENDENCIES
639 SHARED_LIBADD
640 SHARED_LDFLAGS
641 BUILD_LIB_DEPS
642 BUILD_LIBS
643 LIBM
644 cgendir
645 CGEN_MAINT_FALSE
646 CGEN_MAINT_TRUE
647 HDEFINES
648 EXEEXT_FOR_BUILD
649 CC_FOR_BUILD
650 MSGMERGE
651 MSGFMT
652 MKINSTALLDIRS
653 CATOBJEXT
654 GENCAT
655 INSTOBJEXT
656 DATADIRNAME
657 CATALOGS
658 POSUB
659 GMSGFMT
660 XGETTEXT
661 INCINTL
662 LIBINTL_DEP
663 LIBINTL
664 USE_NLS
665 bfdincludedir
666 bfdlibdir
667 target_noncanonical
668 host_noncanonical
669 INSTALL_LIBBFD_FALSE
670 INSTALL_LIBBFD_TRUE
671 MAINT
672 MAINTAINER_MODE_FALSE
673 MAINTAINER_MODE_TRUE
674 WARN_WRITE_STRINGS
675 NO_WERROR
676 WARN_CFLAGS_FOR_BUILD
677 WARN_CFLAGS
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 OBJDUMP
684 LN_S
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LD
689 FGREP
690 SED
691 LIBTOOL
692 RANLIB
693 AR
694 EGREP
695 GREP
696 CPP
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
723 AWK
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_os
742 target_vendor
743 target_cpu
744 target
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_dependency_tracking
796 enable_shared
797 enable_static
798 with_pic
799 enable_fast_install
800 with_gnu_ld
801 enable_libtool_lock
802 enable_checking
803 enable_targets
804 enable_werror
805 enable_build_warnings
806 enable_maintainer_mode
807 enable_install_libbfd
808 enable_nls
809 enable_cgen_maint
810 '
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 CPP'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures opcodes 2.37.50 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of opcodes 2.37.50:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-dependency-tracking
1442 do not reject slow dependency extractors
1443 --disable-dependency-tracking
1444 speeds up one-time build
1445 --enable-shared[=PKGS] build shared libraries [default=no]
1446 --enable-static[=PKGS] build static libraries [default=yes]
1447 --enable-fast-install[=PKGS]
1448 optimize for fast installation [default=yes]
1449 --disable-libtool-lock avoid locking (might break parallel builds)
1450 --enable-checking enable run-time checks
1451 --enable-targets alternative target configurations
1452 --enable-werror treat compile warnings as errors
1453 --enable-build-warnings enable build-time compiler warnings
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
1457 --enable-install-libbfd controls installation of libbfd and related headers
1458 --disable-nls do not use Native Language Support
1459 --enable-cgen-maint=dir build cgen generated files
1460
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-pic try to use only PIC/non-PIC objects [default=use
1465 both]
1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1467
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CPP C preprocessor
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to the package provider.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1493
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *)
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1509
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 opcodes configure 2.37.50
1545 generated by GNU Autoconf 2.69
1546
1547 Copyright (C) 2012 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590 fi
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_compile
1595
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_cpp ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } > conftest.i && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_cpp
1632
1633 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636 # the include files in INCLUDES and setting the cache variable VAR
1637 # accordingly.
1638 ac_fn_c_check_header_mongrel ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if eval \${$3+:} false; then :
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1646 fi
1647 eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 else
1651 # Is the header compilable?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653 $as_echo_n "checking $2 usability... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 $4
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 ac_header_compiler=yes
1661 else
1662 ac_header_compiler=no
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666 $as_echo "$ac_header_compiler" >&6; }
1667
1668 # Is the header present?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670 $as_echo_n "checking $2 presence... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_cpp "$LINENO"; then :
1676 ac_header_preproc=yes
1677 else
1678 ac_header_preproc=no
1679 fi
1680 rm -f conftest.err conftest.i conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682 $as_echo "$ac_header_preproc" >&6; }
1683
1684 # So? What about this header?
1685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 yes:no: )
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691 ;;
1692 no:yes:* )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1696 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1700 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704 esac
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1709 else
1710 eval "$3=\$ac_header_compiler"
1711 fi
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718 } # ac_fn_c_check_header_mongrel
1719
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1724 ac_fn_c_try_run ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=$ac_status
1755 fi
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_run
1761
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_header_compile
1792
1793 # ac_fn_c_try_link LINENO
1794 # -----------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_link ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 test -x conftest$ac_exeext
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828 fi
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_link
1838
1839 # ac_fn_c_check_func LINENO FUNC VAR
1840 # ----------------------------------
1841 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1842 ac_fn_c_check_func ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1854 #define $2 innocuous_$2
1855
1856 /* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char $2 (); below.
1858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1859 <limits.h> exists even on freestanding compilers. */
1860
1861 #ifdef __STDC__
1862 # include <limits.h>
1863 #else
1864 # include <assert.h>
1865 #endif
1866
1867 #undef $2
1868
1869 /* Override any GCC internal prototype to avoid an error.
1870 Use char because int might match the return type of a GCC
1871 builtin and then its argument prototype would still apply. */
1872 #ifdef __cplusplus
1873 extern "C"
1874 #endif
1875 char $2 ();
1876 /* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879 #if defined __stub_$2 || defined __stub___$2
1880 choke me
1881 #endif
1882
1883 int
1884 main ()
1885 {
1886 return $2 ();
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_link "$LINENO"; then :
1892 eval "$3=yes"
1893 else
1894 eval "$3=no"
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext \
1897 conftest$ac_exeext conftest.$ac_ext
1898 fi
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904 } # ac_fn_c_check_func
1905
1906 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1907 # ---------------------------------------------
1908 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1909 # accordingly.
1910 ac_fn_c_check_decl ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 as_decl_name=`echo $2|sed 's/ *(.*//'`
1914 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1916 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1919 else
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 int
1924 main ()
1925 {
1926 #ifndef $as_decl_name
1927 #ifdef __cplusplus
1928 (void) $as_decl_use;
1929 #else
1930 (void) $as_decl_name;
1931 #endif
1932 #endif
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 eval "$3=yes"
1940 else
1941 eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_decl
1951 cat >config.log <<_ACEOF
1952 This file contains any messages produced by compilers while
1953 running configure, to aid debugging if configure makes a mistake.
1954
1955 It was created by opcodes $as_me 2.37.50, which was
1956 generated by GNU Autoconf 2.69. Invocation command line was
1957
1958 $ $0 $@
1959
1960 _ACEOF
1961 exec 5>>config.log
1962 {
1963 cat <<_ASUNAME
1964 ## --------- ##
1965 ## Platform. ##
1966 ## --------- ##
1967
1968 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1969 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1970 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1971 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1972 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973
1974 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1975 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976
1977 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1978 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1979 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1980 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1981 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1982 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1983 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1984
1985 _ASUNAME
1986
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 $as_echo "PATH: $as_dir"
1993 done
1994 IFS=$as_save_IFS
1995
1996 } >&5
1997
1998 cat >&5 <<_ACEOF
1999
2000
2001 ## ----------- ##
2002 ## Core tests. ##
2003 ## ----------- ##
2004
2005 _ACEOF
2006
2007
2008 # Keep a trace of the command line.
2009 # Strip out --no-create and --no-recursion so they do not pile up.
2010 # Strip out --silent because we don't want to record it for future runs.
2011 # Also quote any args containing shell meta-characters.
2012 # Make two passes to allow for proper duplicate-argument suppression.
2013 ac_configure_args=
2014 ac_configure_args0=
2015 ac_configure_args1=
2016 ac_must_keep_next=false
2017 for ac_pass in 1 2
2018 do
2019 for ac_arg
2020 do
2021 case $ac_arg in
2022 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2024 | -silent | --silent | --silen | --sile | --sil)
2025 continue ;;
2026 *\'*)
2027 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2028 esac
2029 case $ac_pass in
2030 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2031 2)
2032 as_fn_append ac_configure_args1 " '$ac_arg'"
2033 if test $ac_must_keep_next = true; then
2034 ac_must_keep_next=false # Got value, back to normal.
2035 else
2036 case $ac_arg in
2037 *=* | --config-cache | -C | -disable-* | --disable-* \
2038 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2039 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2040 | -with-* | --with-* | -without-* | --without-* | --x)
2041 case "$ac_configure_args0 " in
2042 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2043 esac
2044 ;;
2045 -* ) ac_must_keep_next=true ;;
2046 esac
2047 fi
2048 as_fn_append ac_configure_args " '$ac_arg'"
2049 ;;
2050 esac
2051 done
2052 done
2053 { ac_configure_args0=; unset ac_configure_args0;}
2054 { ac_configure_args1=; unset ac_configure_args1;}
2055
2056 # When interrupted or exit'd, cleanup temporary files, and complete
2057 # config.log. We remove comments because anyway the quotes in there
2058 # would cause problems or look ugly.
2059 # WARNING: Use '\'' to represent an apostrophe within the trap.
2060 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2061 trap 'exit_status=$?
2062 # Save into config.log some information that might help in debugging.
2063 {
2064 echo
2065
2066 $as_echo "## ---------------- ##
2067 ## Cache variables. ##
2068 ## ---------------- ##"
2069 echo
2070 # The following way of writing the cache mishandles newlines in values,
2071 (
2072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in #(
2075 *${as_nl}*)
2076 case $ac_var in #(
2077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079 esac
2080 case $ac_var in #(
2081 _ | IFS | as_nl) ;; #(
2082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083 *) { eval $ac_var=; unset $ac_var;} ;;
2084 esac ;;
2085 esac
2086 done
2087 (set) 2>&1 |
2088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089 *${as_nl}ac_space=\ *)
2090 sed -n \
2091 "s/'\''/'\''\\\\'\'''\''/g;
2092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093 ;; #(
2094 *)
2095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096 ;;
2097 esac |
2098 sort
2099 )
2100 echo
2101
2102 $as_echo "## ----------------- ##
2103 ## Output variables. ##
2104 ## ----------------- ##"
2105 echo
2106 for ac_var in $ac_subst_vars
2107 do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
2113 done | sort
2114 echo
2115
2116 if test -n "$ac_subst_files"; then
2117 $as_echo "## ------------------- ##
2118 ## File substitutions. ##
2119 ## ------------------- ##"
2120 echo
2121 for ac_var in $ac_subst_files
2122 do
2123 eval ac_val=\$$ac_var
2124 case $ac_val in
2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 esac
2127 $as_echo "$ac_var='\''$ac_val'\''"
2128 done | sort
2129 echo
2130 fi
2131
2132 if test -s confdefs.h; then
2133 $as_echo "## ----------- ##
2134 ## confdefs.h. ##
2135 ## ----------- ##"
2136 echo
2137 cat confdefs.h
2138 echo
2139 fi
2140 test "$ac_signal" != 0 &&
2141 $as_echo "$as_me: caught signal $ac_signal"
2142 $as_echo "$as_me: exit $exit_status"
2143 } >&5
2144 rm -f core *.core core.conftest.* &&
2145 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2146 exit $exit_status
2147 ' 0
2148 for ac_signal in 1 2 13 15; do
2149 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150 done
2151 ac_signal=0
2152
2153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2154 rm -f -r conftest* confdefs.h
2155
2156 $as_echo "/* confdefs.h */" > confdefs.h
2157
2158 # Predefined preprocessor variables.
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_NAME "$PACKAGE_NAME"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_STRING "$PACKAGE_STRING"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_URL "$PACKAGE_URL"
2182 _ACEOF
2183
2184
2185 # Let the site file select an alternate cache file if it wants to.
2186 # Prefer an explicitly selected file to automatically selected ones.
2187 ac_site_file1=NONE
2188 ac_site_file2=NONE
2189 if test -n "$CONFIG_SITE"; then
2190 # We do not want a PATH search for config.site.
2191 case $CONFIG_SITE in #((
2192 -*) ac_site_file1=./$CONFIG_SITE;;
2193 */*) ac_site_file1=$CONFIG_SITE;;
2194 *) ac_site_file1=./$CONFIG_SITE;;
2195 esac
2196 elif test "x$prefix" != xNONE; then
2197 ac_site_file1=$prefix/share/config.site
2198 ac_site_file2=$prefix/etc/config.site
2199 else
2200 ac_site_file1=$ac_default_prefix/share/config.site
2201 ac_site_file2=$ac_default_prefix/etc/config.site
2202 fi
2203 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2204 do
2205 test "x$ac_site_file" = xNONE && continue
2206 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2208 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2209 sed 's/^/| /' "$ac_site_file" >&5
2210 . "$ac_site_file" \
2211 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 as_fn_error $? "failed to load site script $ac_site_file
2214 See \`config.log' for more details" "$LINENO" 5; }
2215 fi
2216 done
2217
2218 if test -r "$cache_file"; then
2219 # Some versions of bash will fail to source /dev/null (special files
2220 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2221 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2223 $as_echo "$as_me: loading cache $cache_file" >&6;}
2224 case $cache_file in
2225 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2226 *) . "./$cache_file";;
2227 esac
2228 fi
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2231 $as_echo "$as_me: creating cache $cache_file" >&6;}
2232 >$cache_file
2233 fi
2234
2235 # Check that the precious variables saved in the cache have kept the same
2236 # value.
2237 ac_cache_corrupted=false
2238 for ac_var in $ac_precious_vars; do
2239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2240 eval ac_new_set=\$ac_env_${ac_var}_set
2241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2242 eval ac_new_val=\$ac_env_${ac_var}_value
2243 case $ac_old_set,$ac_new_set in
2244 set,)
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2248 ,set)
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2252 ,);;
2253 *)
2254 if test "x$ac_old_val" != "x$ac_new_val"; then
2255 # differences in whitespace do not lead to failure.
2256 ac_old_val_w=`echo x $ac_old_val`
2257 ac_new_val_w=`echo x $ac_new_val`
2258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2261 ac_cache_corrupted=:
2262 else
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2265 eval $ac_var=\$ac_old_val
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2268 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2270 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2271 fi;;
2272 esac
2273 # Pass precious variables to config.status.
2274 if test "$ac_new_set" = set; then
2275 case $ac_new_val in
2276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 *) ac_arg=$ac_var=$ac_new_val ;;
2278 esac
2279 case " $ac_configure_args " in
2280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2282 esac
2283 fi
2284 done
2285 if $ac_cache_corrupted; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2290 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2291 fi
2292 ## -------------------- ##
2293 ## Main body of script. ##
2294 ## -------------------- ##
2295
2296 ac_ext=c
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303
2304
2305
2306
2307
2308 ac_aux_dir=
2309 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2310 if test -f "$ac_dir/install-sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install-sh -c"
2313 break
2314 elif test -f "$ac_dir/install.sh"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/install.sh -c"
2317 break
2318 elif test -f "$ac_dir/shtool"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/shtool install -c"
2321 break
2322 fi
2323 done
2324 if test -z "$ac_aux_dir"; then
2325 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2326 fi
2327
2328 # These three variables are undocumented and unsupported,
2329 # and are intended to be withdrawn in a future Autoconf release.
2330 # They can cause serious problems if a builder's source tree is in a directory
2331 # whose full name contains unusual characters.
2332 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2333 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2334 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2335
2336
2337 # Make sure we can run config.sub.
2338 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2339 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2340
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2342 $as_echo_n "checking build system type... " >&6; }
2343 if ${ac_cv_build+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 ac_build_alias=$build_alias
2347 test "x$ac_build_alias" = x &&
2348 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2349 test "x$ac_build_alias" = x &&
2350 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2351 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2352 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2353
2354 fi
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2356 $as_echo "$ac_cv_build" >&6; }
2357 case $ac_cv_build in
2358 *-*-*) ;;
2359 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2360 esac
2361 build=$ac_cv_build
2362 ac_save_IFS=$IFS; IFS='-'
2363 set x $ac_cv_build
2364 shift
2365 build_cpu=$1
2366 build_vendor=$2
2367 shift; shift
2368 # Remember, the first character of IFS is used to create $*,
2369 # except with old shells:
2370 build_os=$*
2371 IFS=$ac_save_IFS
2372 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2373
2374
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2376 $as_echo_n "checking host system type... " >&6; }
2377 if ${ac_cv_host+:} false; then :
2378 $as_echo_n "(cached) " >&6
2379 else
2380 if test "x$host_alias" = x; then
2381 ac_cv_host=$ac_cv_build
2382 else
2383 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2384 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2385 fi
2386
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2389 $as_echo "$ac_cv_host" >&6; }
2390 case $ac_cv_host in
2391 *-*-*) ;;
2392 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2393 esac
2394 host=$ac_cv_host
2395 ac_save_IFS=$IFS; IFS='-'
2396 set x $ac_cv_host
2397 shift
2398 host_cpu=$1
2399 host_vendor=$2
2400 shift; shift
2401 # Remember, the first character of IFS is used to create $*,
2402 # except with old shells:
2403 host_os=$*
2404 IFS=$ac_save_IFS
2405 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2406
2407
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2409 $as_echo_n "checking target system type... " >&6; }
2410 if ${ac_cv_target+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 if test "x$target_alias" = x; then
2414 ac_cv_target=$ac_cv_host
2415 else
2416 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2418 fi
2419
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2422 $as_echo "$ac_cv_target" >&6; }
2423 case $ac_cv_target in
2424 *-*-*) ;;
2425 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2426 esac
2427 target=$ac_cv_target
2428 ac_save_IFS=$IFS; IFS='-'
2429 set x $ac_cv_target
2430 shift
2431 target_cpu=$1
2432 target_vendor=$2
2433 shift; shift
2434 # Remember, the first character of IFS is used to create $*,
2435 # except with old shells:
2436 target_os=$*
2437 IFS=$ac_save_IFS
2438 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2439
2440
2441 # The aliases save the names the user supplied, while $host etc.
2442 # will get canonicalized.
2443 test -n "$target_alias" &&
2444 test "$program_prefix$program_suffix$program_transform_name" = \
2445 NONENONEs,x,x, &&
2446 program_prefix=${target_alias}-
2447
2448 am__api_version='1.15'
2449
2450 # Find a good install program. We prefer a C program (faster),
2451 # so one script is as good as another. But avoid the broken or
2452 # incompatible versions:
2453 # SysV /etc/install, /usr/sbin/install
2454 # SunOS /usr/etc/install
2455 # IRIX /sbin/install
2456 # AIX /bin/install
2457 # AmigaOS /C/install, which installs bootblocks on floppy discs
2458 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2459 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2460 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2461 # OS/2's system install, which has a completely different semantic
2462 # ./install, which can be erroneously created by make from ./install.sh.
2463 # Reject install programs that cannot install multiple files.
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2465 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2466 if test -z "$INSTALL"; then
2467 if ${ac_cv_path_install+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 # Account for people who put trailing slashes in PATH elements.
2476 case $as_dir/ in #((
2477 ./ | .// | /[cC]/* | \
2478 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2479 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2480 /usr/ucb/* ) ;;
2481 *)
2482 # OSF1 and SCO ODT 3.0 have their own names for install.
2483 # Don't use installbsd from OSF since it installs stuff as root
2484 # by default.
2485 for ac_prog in ginstall scoinst install; do
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2488 if test $ac_prog = install &&
2489 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490 # AIX install. It has an incompatible calling convention.
2491 :
2492 elif test $ac_prog = install &&
2493 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2494 # program-specific install script used by HP pwplus--don't use.
2495 :
2496 else
2497 rm -rf conftest.one conftest.two conftest.dir
2498 echo one > conftest.one
2499 echo two > conftest.two
2500 mkdir conftest.dir
2501 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2502 test -s conftest.one && test -s conftest.two &&
2503 test -s conftest.dir/conftest.one &&
2504 test -s conftest.dir/conftest.two
2505 then
2506 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2507 break 3
2508 fi
2509 fi
2510 fi
2511 done
2512 done
2513 ;;
2514 esac
2515
2516 done
2517 IFS=$as_save_IFS
2518
2519 rm -rf conftest.one conftest.two conftest.dir
2520
2521 fi
2522 if test "${ac_cv_path_install+set}" = set; then
2523 INSTALL=$ac_cv_path_install
2524 else
2525 # As a last resort, use the slow shell script. Don't cache a
2526 # value for INSTALL within a source directory, because that will
2527 # break other packages using the cache if that directory is
2528 # removed, or if the value is a relative name.
2529 INSTALL=$ac_install_sh
2530 fi
2531 fi
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2533 $as_echo "$INSTALL" >&6; }
2534
2535 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2536 # It thinks the first close brace ends the variable substitution.
2537 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2538
2539 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2540
2541 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2542
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2544 $as_echo_n "checking whether build environment is sane... " >&6; }
2545 # Reject unsafe characters in $srcdir or the absolute working directory
2546 # name. Accept space and tab only in the latter.
2547 am_lf='
2548 '
2549 case `pwd` in
2550 *[\\\"\#\$\&\'\`$am_lf]*)
2551 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2552 esac
2553 case $srcdir in
2554 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2555 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2556 esac
2557
2558 # Do 'set' in a subshell so we don't clobber the current shell's
2559 # arguments. Must try -L first in case configure is actually a
2560 # symlink; some systems play weird games with the mod time of symlinks
2561 # (eg FreeBSD returns the mod time of the symlink's containing
2562 # directory).
2563 if (
2564 am_has_slept=no
2565 for am_try in 1 2; do
2566 echo "timestamp, slept: $am_has_slept" > conftest.file
2567 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2568 if test "$*" = "X"; then
2569 # -L didn't work.
2570 set X `ls -t "$srcdir/configure" conftest.file`
2571 fi
2572 if test "$*" != "X $srcdir/configure conftest.file" \
2573 && test "$*" != "X conftest.file $srcdir/configure"; then
2574
2575 # If neither matched, then we have a broken ls. This can happen
2576 # if, for instance, CONFIG_SHELL is bash and it inherits a
2577 # broken ls alias from the environment. This has actually
2578 # happened. Such a system could not be considered "sane".
2579 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2580 alias in your environment" "$LINENO" 5
2581 fi
2582 if test "$2" = conftest.file || test $am_try -eq 2; then
2583 break
2584 fi
2585 # Just in case.
2586 sleep 1
2587 am_has_slept=yes
2588 done
2589 test "$2" = conftest.file
2590 )
2591 then
2592 # Ok.
2593 :
2594 else
2595 as_fn_error $? "newly created file is older than distributed files!
2596 Check your system clock" "$LINENO" 5
2597 fi
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2599 $as_echo "yes" >&6; }
2600 # If we didn't sleep, we still need to ensure time stamps of config.status and
2601 # generated files are strictly newer.
2602 am_sleep_pid=
2603 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2604 ( sleep 1 ) &
2605 am_sleep_pid=$!
2606 fi
2607
2608 rm -f conftest.file
2609
2610 test "$program_prefix" != NONE &&
2611 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2612 # Use a double $ so make ignores it.
2613 test "$program_suffix" != NONE &&
2614 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2615 # Double any \ or $.
2616 # By default was `s,x,x', remove it if useless.
2617 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2618 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2619
2620 # Expand $ac_aux_dir to an absolute path.
2621 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2622
2623 if test x"${MISSING+set}" != xset; then
2624 case $am_aux_dir in
2625 *\ * | *\ *)
2626 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2627 *)
2628 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2629 esac
2630 fi
2631 # Use eval to expand $SHELL
2632 if eval "$MISSING --is-lightweight"; then
2633 am_missing_run="$MISSING "
2634 else
2635 am_missing_run=
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2637 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2638 fi
2639
2640 if test x"${install_sh+set}" != xset; then
2641 case $am_aux_dir in
2642 *\ * | *\ *)
2643 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2644 *)
2645 install_sh="\${SHELL} $am_aux_dir/install-sh"
2646 esac
2647 fi
2648
2649 # Installed binaries are usually stripped using 'strip' when the user
2650 # run "make install-strip". However 'strip' might not be the right
2651 # tool to use in cross-compilation environments, therefore Automake
2652 # will honor the 'STRIP' environment variable to overrule this program.
2653 if test "$cross_compiling" != no; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}strip; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_STRIP+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$STRIP"; then
2663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 STRIP=$ac_cv_prog_STRIP
2683 if test -n "$STRIP"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2685 $as_echo "$STRIP" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 fi
2690
2691
2692 fi
2693 if test -z "$ac_cv_prog_STRIP"; then
2694 ac_ct_STRIP=$STRIP
2695 # Extract the first word of "strip", so it can be a program name with args.
2696 set dummy strip; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$ac_ct_STRIP"; then
2703 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_ac_ct_STRIP="strip"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2723 if test -n "$ac_ct_STRIP"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2725 $as_echo "$ac_ct_STRIP" >&6; }
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731 if test "x$ac_ct_STRIP" = x; then
2732 STRIP=":"
2733 else
2734 case $cross_compiling:$ac_tool_warned in
2735 yes:)
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2738 ac_tool_warned=yes ;;
2739 esac
2740 STRIP=$ac_ct_STRIP
2741 fi
2742 else
2743 STRIP="$ac_cv_prog_STRIP"
2744 fi
2745
2746 fi
2747 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2750 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2751 if test -z "$MKDIR_P"; then
2752 if ${ac_cv_path_mkdir+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2757 do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_prog in mkdir gmkdir; do
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2763 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2764 'mkdir (GNU coreutils) '* | \
2765 'mkdir (coreutils) '* | \
2766 'mkdir (fileutils) '4.1*)
2767 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2768 break 3;;
2769 esac
2770 done
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776
2777 test -d ./--version && rmdir ./--version
2778 if test "${ac_cv_path_mkdir+set}" = set; then
2779 MKDIR_P="$ac_cv_path_mkdir -p"
2780 else
2781 # As a last resort, use the slow shell script. Don't cache a
2782 # value for MKDIR_P within a source directory, because that will
2783 # break other packages using the cache if that directory is
2784 # removed, or if the value is a relative name.
2785 MKDIR_P="$ac_install_sh -d"
2786 fi
2787 fi
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2789 $as_echo "$MKDIR_P" >&6; }
2790
2791 for ac_prog in gawk mawk nawk awk
2792 do
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy $ac_prog; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_AWK+:} false; then :
2798 $as_echo_n "(cached) " >&6
2799 else
2800 if test -n "$AWK"; then
2801 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2802 else
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 for as_dir in $PATH
2805 do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_AWK="$ac_prog"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819 fi
2820 AWK=$ac_cv_prog_AWK
2821 if test -n "$AWK"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2823 $as_echo "$AWK" >&6; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 fi
2828
2829
2830 test -n "$AWK" && break
2831 done
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2834 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2835 set x ${MAKE-make}
2836 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2837 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 cat >conftest.make <<\_ACEOF
2841 SHELL = /bin/sh
2842 all:
2843 @echo '@@@%%%=$(MAKE)=@@@%%%'
2844 _ACEOF
2845 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2846 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2847 *@@@%%%=?*=@@@%%%*)
2848 eval ac_cv_prog_make_${ac_make}_set=yes;;
2849 *)
2850 eval ac_cv_prog_make_${ac_make}_set=no;;
2851 esac
2852 rm -f conftest.make
2853 fi
2854 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 $as_echo "yes" >&6; }
2857 SET_MAKE=
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 SET_MAKE="MAKE=${MAKE-make}"
2862 fi
2863
2864 rm -rf .tst 2>/dev/null
2865 mkdir .tst 2>/dev/null
2866 if test -d .tst; then
2867 am__leading_dot=.
2868 else
2869 am__leading_dot=_
2870 fi
2871 rmdir .tst 2>/dev/null
2872
2873 # Check whether --enable-silent-rules was given.
2874 if test "${enable_silent_rules+set}" = set; then :
2875 enableval=$enable_silent_rules;
2876 fi
2877
2878 case $enable_silent_rules in # (((
2879 yes) AM_DEFAULT_VERBOSITY=0;;
2880 no) AM_DEFAULT_VERBOSITY=1;;
2881 *) AM_DEFAULT_VERBOSITY=1;;
2882 esac
2883 am_make=${MAKE-make}
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2885 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2886 if ${am_cv_make_support_nested_variables+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if $as_echo 'TRUE=$(BAR$(V))
2890 BAR0=false
2891 BAR1=true
2892 V=1
2893 am__doit:
2894 @$(TRUE)
2895 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2896 am_cv_make_support_nested_variables=yes
2897 else
2898 am_cv_make_support_nested_variables=no
2899 fi
2900 fi
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2902 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2903 if test $am_cv_make_support_nested_variables = yes; then
2904 AM_V='$(V)'
2905 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2906 else
2907 AM_V=$AM_DEFAULT_VERBOSITY
2908 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2909 fi
2910 AM_BACKSLASH='\'
2911
2912 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2913 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2914 # is not polluted with repeated "-I."
2915 am__isrc=' -I$(srcdir)'
2916 # test to see if srcdir already configured
2917 if test -f $srcdir/config.status; then
2918 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2919 fi
2920 fi
2921
2922 # test whether we have cygpath
2923 if test -z "$CYGPATH_W"; then
2924 if (cygpath --version) >/dev/null 2>/dev/null; then
2925 CYGPATH_W='cygpath -w'
2926 else
2927 CYGPATH_W=echo
2928 fi
2929 fi
2930
2931
2932 # Define the identity of the package.
2933 PACKAGE='opcodes'
2934 VERSION='2.37.50'
2935
2936
2937 cat >>confdefs.h <<_ACEOF
2938 #define PACKAGE "$PACKAGE"
2939 _ACEOF
2940
2941
2942 cat >>confdefs.h <<_ACEOF
2943 #define VERSION "$VERSION"
2944 _ACEOF
2945
2946 # Some tools Automake needs.
2947
2948 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2949
2950
2951 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2952
2953
2954 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2955
2956
2957 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2958
2959
2960 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2961
2962 # For better backward compatibility. To be removed once Automake 1.9.x
2963 # dies out for good. For more background, see:
2964 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2965 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2966 mkdir_p='$(MKDIR_P)'
2967
2968 # We need awk for the "check" target (and possibly the TAP driver). The
2969 # system "awk" is bad on some platforms.
2970 # Always define AMTAR for backward compatibility. Yes, it's still used
2971 # in the wild :-( We should find a proper way to deprecate it ...
2972 AMTAR='$${TAR-tar}'
2973
2974
2975 # We'll loop over all known methods to create a tar archive until one works.
2976 _am_tools='gnutar pax cpio none'
2977
2978 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2979
2980
2981
2982
2983
2984
2985 # POSIX will say in a future version that running "rm -f" with no argument
2986 # is OK; and we want to be able to make that assumption in our Makefile
2987 # recipes. So use an aggressive probe to check that the usage we want is
2988 # actually supported "in the wild" to an acceptable degree.
2989 # See automake bug#10828.
2990 # To make any issue more visible, cause the running configure to be aborted
2991 # by default if the 'rm' program in use doesn't match our expectations; the
2992 # user can still override this though.
2993 if rm -f && rm -fr && rm -rf; then : OK; else
2994 cat >&2 <<'END'
2995 Oops!
2996
2997 Your 'rm' program seems unable to run without file operands specified
2998 on the command line, even when the '-f' option is present. This is contrary
2999 to the behaviour of most rm programs out there, and not conforming with
3000 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3001
3002 Please tell bug-automake@gnu.org about your system, including the value
3003 of your $PATH and any error possibly output before this message. This
3004 can help us improve future automake versions.
3005
3006 END
3007 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3008 echo 'Configuration will proceed anyway, since you have set the' >&2
3009 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3010 echo >&2
3011 else
3012 cat >&2 <<'END'
3013 Aborting the configuration process, to ensure you take notice of the issue.
3014
3015 You can download and install GNU coreutils to get an 'rm' implementation
3016 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3017
3018 If you want to complete the configuration process using your problematic
3019 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3020 to "yes", and re-run configure.
3021
3022 END
3023 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3024 fi
3025 fi
3026
3027 # Check whether --enable-silent-rules was given.
3028 if test "${enable_silent_rules+set}" = set; then :
3029 enableval=$enable_silent_rules;
3030 fi
3031
3032 case $enable_silent_rules in # (((
3033 yes) AM_DEFAULT_VERBOSITY=0;;
3034 no) AM_DEFAULT_VERBOSITY=1;;
3035 *) AM_DEFAULT_VERBOSITY=0;;
3036 esac
3037 am_make=${MAKE-make}
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3039 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3040 if ${am_cv_make_support_nested_variables+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if $as_echo 'TRUE=$(BAR$(V))
3044 BAR0=false
3045 BAR1=true
3046 V=1
3047 am__doit:
3048 @$(TRUE)
3049 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3050 am_cv_make_support_nested_variables=yes
3051 else
3052 am_cv_make_support_nested_variables=no
3053 fi
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3056 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3057 if test $am_cv_make_support_nested_variables = yes; then
3058 AM_V='$(V)'
3059 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3060 else
3061 AM_V=$AM_DEFAULT_VERBOSITY
3062 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3063 fi
3064 AM_BACKSLASH='\'
3065
3066
3067 ac_ext=c
3068 ac_cpp='$CPP $CPPFLAGS'
3069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3072 if test -n "$ac_tool_prefix"; then
3073 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3074 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110 fi
3111 if test -z "$ac_cv_prog_CC"; then
3112 ac_ct_CC=$CC
3113 # Extract the first word of "gcc", so it can be a program name with args.
3114 set dummy gcc; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 if test -n "$ac_ct_CC"; then
3121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3122 else
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3125 do
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_ac_ct_CC="gcc"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 break 2
3133 fi
3134 done
3135 done
3136 IFS=$as_save_IFS
3137
3138 fi
3139 fi
3140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3141 if test -n "$ac_ct_CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3143 $as_echo "$ac_ct_CC" >&6; }
3144 else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147 fi
3148
3149 if test "x$ac_ct_CC" = x; then
3150 CC=""
3151 else
3152 case $cross_compiling:$ac_tool_warned in
3153 yes:)
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3156 ac_tool_warned=yes ;;
3157 esac
3158 CC=$ac_ct_CC
3159 fi
3160 else
3161 CC="$ac_cv_prog_CC"
3162 fi
3163
3164 if test -z "$CC"; then
3165 if test -n "$ac_tool_prefix"; then
3166 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3167 set dummy ${ac_tool_prefix}cc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_CC+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_CC="${ac_tool_prefix}cc"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187 done
3188 done
3189 IFS=$as_save_IFS
3190
3191 fi
3192 fi
3193 CC=$ac_cv_prog_CC
3194 if test -n "$CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 $as_echo "$CC" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 fi
3201
3202
3203 fi
3204 fi
3205 if test -z "$CC"; then
3206 # Extract the first word of "cc", so it can be a program name with args.
3207 set dummy cc; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if ${ac_cv_prog_CC+:} false; then :
3211 $as_echo_n "(cached) " >&6
3212 else
3213 if test -n "$CC"; then
3214 ac_cv_prog_CC="$CC" # Let the user override the test.
3215 else
3216 ac_prog_rejected=no
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3225 ac_prog_rejected=yes
3226 continue
3227 fi
3228 ac_cv_prog_CC="cc"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 if test $ac_prog_rejected = yes; then
3237 # We found a bogon in the path, so make sure we never use it.
3238 set dummy $ac_cv_prog_CC
3239 shift
3240 if test $# != 0; then
3241 # We chose a different compiler from the bogus one.
3242 # However, it has the same basename, so the bogon will be chosen
3243 # first if we set CC to just the basename; use the full file name.
3244 shift
3245 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3246 fi
3247 fi
3248 fi
3249 fi
3250 CC=$ac_cv_prog_CC
3251 if test -n "$CC"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3253 $as_echo "$CC" >&6; }
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 fi
3258
3259
3260 fi
3261 if test -z "$CC"; then
3262 if test -n "$ac_tool_prefix"; then
3263 for ac_prog in cl.exe
3264 do
3265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3266 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_CC+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286 done
3287 done
3288 IFS=$as_save_IFS
3289
3290 fi
3291 fi
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295 $as_echo "$CC" >&6; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301
3302 test -n "$CC" && break
3303 done
3304 fi
3305 if test -z "$CC"; then
3306 ac_ct_CC=$CC
3307 for ac_prog in cl.exe
3308 do
3309 # Extract the first word of "$ac_prog", so it can be a program name with args.
3310 set dummy $ac_prog; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_ac_ct_CC="$ac_prog"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337 if test -n "$ac_ct_CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3339 $as_echo "$ac_ct_CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346 test -n "$ac_ct_CC" && break
3347 done
3348
3349 if test "x$ac_ct_CC" = x; then
3350 CC=""
3351 else
3352 case $cross_compiling:$ac_tool_warned in
3353 yes:)
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3356 ac_tool_warned=yes ;;
3357 esac
3358 CC=$ac_ct_CC
3359 fi
3360 fi
3361
3362 fi
3363
3364
3365 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error $? "no acceptable C compiler found in \$PATH
3368 See \`config.log' for more details" "$LINENO" 5; }
3369
3370 # Provide some information about the compiler.
3371 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3372 set X $ac_compile
3373 ac_compiler=$2
3374 for ac_option in --version -v -V -qversion; do
3375 { { ac_try="$ac_compiler $ac_option >&5"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3383 ac_status=$?
3384 if test -s conftest.err; then
3385 sed '10a\
3386 ... rest of stderr output deleted ...
3387 10q' conftest.err >conftest.er1
3388 cat conftest.er1 >&5
3389 fi
3390 rm -f conftest.er1 conftest.err
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }
3393 done
3394
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 ac_clean_files_save=$ac_clean_files
3407 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3408 # Try to create an executable without -o first, disregard a.out.
3409 # It will help us diagnose broken compilers, and finding out an intuition
3410 # of exeext.
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3412 $as_echo_n "checking whether the C compiler works... " >&6; }
3413 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3414
3415 # The possible output files:
3416 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3417
3418 ac_rmfiles=
3419 for ac_file in $ac_files
3420 do
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3424 esac
3425 done
3426 rm -f $ac_rmfiles
3427
3428 if { { ac_try="$ac_link_default"
3429 case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_link_default") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
3439 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3440 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3441 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3442 # so that the user can short-circuit this test for compilers unknown to
3443 # Autoconf.
3444 for ac_file in $ac_files ''
3445 do
3446 test -f "$ac_file" || continue
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3449 ;;
3450 [ab].out )
3451 # We found the default executable, but exeext='' is most
3452 # certainly right.
3453 break;;
3454 *.* )
3455 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3456 then :; else
3457 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458 fi
3459 # We set ac_cv_exeext here because the later test for it is not
3460 # safe: cross compilers may not add the suffix if given an `-o'
3461 # argument, so we may need to know it at that point already.
3462 # Even if this section looks crufty: it has the advantage of
3463 # actually working.
3464 break;;
3465 * )
3466 break;;
3467 esac
3468 done
3469 test "$ac_cv_exeext" = no && ac_cv_exeext=
3470
3471 else
3472 ac_file=''
3473 fi
3474 if test -z "$ac_file"; then :
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3477 $as_echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3479
3480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 as_fn_error 77 "C compiler cannot create executables
3483 See \`config.log' for more details" "$LINENO" 5; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3486 $as_echo "yes" >&6; }
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3489 $as_echo_n "checking for C compiler default output file name... " >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3491 $as_echo "$ac_file" >&6; }
3492 ac_exeext=$ac_cv_exeext
3493
3494 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3495 ac_clean_files=$ac_clean_files_save
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3497 $as_echo_n "checking for suffix of executables... " >&6; }
3498 if { { ac_try="$ac_link"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_link") 2>&5
3506 ac_status=$?
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }; then :
3509 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3510 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3511 # work properly (i.e., refer to `conftest.exe'), while it won't with
3512 # `rm'.
3513 for ac_file in conftest.exe conftest conftest.*; do
3514 test -f "$ac_file" || continue
3515 case $ac_file in
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3518 break;;
3519 * ) break;;
3520 esac
3521 done
3522 else
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3526 See \`config.log' for more details" "$LINENO" 5; }
3527 fi
3528 rm -f conftest conftest$ac_cv_exeext
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3530 $as_echo "$ac_cv_exeext" >&6; }
3531
3532 rm -f conftest.$ac_ext
3533 EXEEXT=$ac_cv_exeext
3534 ac_exeext=$EXEEXT
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3537 #include <stdio.h>
3538 int
3539 main ()
3540 {
3541 FILE *f = fopen ("conftest.out", "w");
3542 return ferror (f) || fclose (f) != 0;
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 ac_clean_files="$ac_clean_files conftest.out"
3549 # Check that the compiler produces executables we can run. If not, either
3550 # the compiler is broken, or we cross compile.
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3552 $as_echo_n "checking whether we are cross compiling... " >&6; }
3553 if test "$cross_compiling" != yes; then
3554 { { ac_try="$ac_link"
3555 case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560 $as_echo "$ac_try_echo"; } >&5
3561 (eval "$ac_link") 2>&5
3562 ac_status=$?
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }
3565 if { ac_try='./conftest$ac_cv_exeext'
3566 { { case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_try") 2>&5
3573 ac_status=$?
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; }; then
3576 cross_compiling=no
3577 else
3578 if test "$cross_compiling" = maybe; then
3579 cross_compiling=yes
3580 else
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error $? "cannot run C compiled programs.
3584 If you meant to cross compile, use \`--host'.
3585 See \`config.log' for more details" "$LINENO" 5; }
3586 fi
3587 fi
3588 fi
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3590 $as_echo "$cross_compiling" >&6; }
3591
3592 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3593 ac_clean_files=$ac_clean_files_save
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3595 $as_echo_n "checking for suffix of object files... " >&6; }
3596 if ${ac_cv_objext+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601
3602 int
3603 main ()
3604 {
3605
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 rm -f conftest.o conftest.obj
3611 if { { ac_try="$ac_compile"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_compile") 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; then :
3622 for ac_file in conftest.o conftest.obj conftest.*; do
3623 test -f "$ac_file" || continue;
3624 case $ac_file in
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3626 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3627 break;;
3628 esac
3629 done
3630 else
3631 $as_echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error $? "cannot compute suffix of object files: cannot compile
3637 See \`config.log' for more details" "$LINENO" 5; }
3638 fi
3639 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3640 fi
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3642 $as_echo "$ac_cv_objext" >&6; }
3643 OBJEXT=$ac_cv_objext
3644 ac_objext=$OBJEXT
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3646 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3647 if ${ac_cv_c_compiler_gnu+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3652
3653 int
3654 main ()
3655 {
3656 #ifndef __GNUC__
3657 choke me
3658 #endif
3659
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 if ac_fn_c_try_compile "$LINENO"; then :
3665 ac_compiler_gnu=yes
3666 else
3667 ac_compiler_gnu=no
3668 fi
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3671
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3674 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3675 if test $ac_compiler_gnu = yes; then
3676 GCC=yes
3677 else
3678 GCC=
3679 fi
3680 ac_test_CFLAGS=${CFLAGS+set}
3681 ac_save_CFLAGS=$CFLAGS
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3683 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3684 if ${ac_cv_prog_cc_g+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 ac_save_c_werror_flag=$ac_c_werror_flag
3688 ac_c_werror_flag=yes
3689 ac_cv_prog_cc_g=no
3690 CFLAGS="-g"
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693
3694 int
3695 main ()
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 if ac_fn_c_try_compile "$LINENO"; then :
3703 ac_cv_prog_cc_g=yes
3704 else
3705 CFLAGS=""
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708
3709 int
3710 main ()
3711 {
3712
3713 ;
3714 return 0;
3715 }
3716 _ACEOF
3717 if ac_fn_c_try_compile "$LINENO"; then :
3718
3719 else
3720 ac_c_werror_flag=$ac_save_c_werror_flag
3721 CFLAGS="-g"
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724
3725 int
3726 main ()
3727 {
3728
3729 ;
3730 return 0;
3731 }
3732 _ACEOF
3733 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_cv_prog_cc_g=yes
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 ac_c_werror_flag=$ac_save_c_werror_flag
3742 fi
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3744 $as_echo "$ac_cv_prog_cc_g" >&6; }
3745 if test "$ac_test_CFLAGS" = set; then
3746 CFLAGS=$ac_save_CFLAGS
3747 elif test $ac_cv_prog_cc_g = yes; then
3748 if test "$GCC" = yes; then
3749 CFLAGS="-g -O2"
3750 else
3751 CFLAGS="-g"
3752 fi
3753 else
3754 if test "$GCC" = yes; then
3755 CFLAGS="-O2"
3756 else
3757 CFLAGS=
3758 fi
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3761 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3762 if ${ac_cv_prog_cc_c89+:} false; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 ac_cv_prog_cc_c89=no
3766 ac_save_CC=$CC
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3769 #include <stdarg.h>
3770 #include <stdio.h>
3771 struct stat;
3772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3773 struct buf { int x; };
3774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3775 static char *e (p, i)
3776 char **p;
3777 int i;
3778 {
3779 return p[i];
3780 }
3781 static char *f (char * (*g) (char **, int), char **p, ...)
3782 {
3783 char *s;
3784 va_list v;
3785 va_start (v,p);
3786 s = g (p, va_arg (v,int));
3787 va_end (v);
3788 return s;
3789 }
3790
3791 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3792 function prototypes and stuff, but not '\xHH' hex character constants.
3793 These don't provoke an error unfortunately, instead are silently treated
3794 as 'x'. The following induces an error, until -std is added to get
3795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3796 array size at least. It's necessary to write '\x00'==0 to get something
3797 that's true only with -std. */
3798 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3799
3800 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3801 inside strings and character constants. */
3802 #define FOO(x) 'x'
3803 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3804
3805 int test (int i, double x);
3806 struct s1 {int (*f) (int a);};
3807 struct s2 {int (*f) (double a);};
3808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3809 int argc;
3810 char **argv;
3811 int
3812 main ()
3813 {
3814 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3821 do
3822 CC="$ac_save_CC $ac_arg"
3823 if ac_fn_c_try_compile "$LINENO"; then :
3824 ac_cv_prog_cc_c89=$ac_arg
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext
3827 test "x$ac_cv_prog_cc_c89" != "xno" && break
3828 done
3829 rm -f conftest.$ac_ext
3830 CC=$ac_save_CC
3831
3832 fi
3833 # AC_CACHE_VAL
3834 case "x$ac_cv_prog_cc_c89" in
3835 x)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3837 $as_echo "none needed" >&6; } ;;
3838 xno)
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3840 $as_echo "unsupported" >&6; } ;;
3841 *)
3842 CC="$CC $ac_cv_prog_cc_c89"
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3844 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3845 esac
3846 if test "x$ac_cv_prog_cc_c89" != xno; then :
3847
3848 fi
3849
3850 ac_ext=c
3851 ac_cpp='$CPP $CPPFLAGS'
3852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3862 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3863 if ${am_cv_prog_cc_c_o+:} false; then :
3864 $as_echo_n "(cached) " >&6
3865 else
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868
3869 int
3870 main ()
3871 {
3872
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 # Make sure it works both with $CC and with simple cc.
3878 # Following AC_PROG_CC_C_O, we do the test twice because some
3879 # compilers refuse to overwrite an existing .o file with -o,
3880 # though they will create one.
3881 am_cv_prog_cc_c_o=yes
3882 for am_i in 1 2; do
3883 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3884 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); } \
3888 && test -f conftest2.$ac_objext; then
3889 : OK
3890 else
3891 am_cv_prog_cc_c_o=no
3892 break
3893 fi
3894 done
3895 rm -f core conftest*
3896 unset am_i
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3899 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3900 if test "$am_cv_prog_cc_c_o" != yes; then
3901 # Losing compiler, so override with the script.
3902 # FIXME: It is wrong to rewrite CC.
3903 # But if we don't then we get into trouble of one sort or another.
3904 # A longer-term fix would be to have automake use am__CC in this case,
3905 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3906 CC="$am_aux_dir/compile $CC"
3907 fi
3908 ac_ext=c
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913
3914 DEPDIR="${am__leading_dot}deps"
3915
3916 ac_config_commands="$ac_config_commands depfiles"
3917
3918
3919 am_make=${MAKE-make}
3920 cat > confinc << 'END'
3921 am__doit:
3922 @echo this is the am__doit target
3923 .PHONY: am__doit
3924 END
3925 # If we don't find an include directive, just comment out the code.
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3927 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3928 am__include="#"
3929 am__quote=
3930 _am_result=none
3931 # First try GNU make style include.
3932 echo "include confinc" > confmf
3933 # Ignore all kinds of additional output from 'make'.
3934 case `$am_make -s -f confmf 2> /dev/null` in #(
3935 *the\ am__doit\ target*)
3936 am__include=include
3937 am__quote=
3938 _am_result=GNU
3939 ;;
3940 esac
3941 # Now try BSD make style include.
3942 if test "$am__include" = "#"; then
3943 echo '.include "confinc"' > confmf
3944 case `$am_make -s -f confmf 2> /dev/null` in #(
3945 *the\ am__doit\ target*)
3946 am__include=.include
3947 am__quote="\""
3948 _am_result=BSD
3949 ;;
3950 esac
3951 fi
3952
3953
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3955 $as_echo "$_am_result" >&6; }
3956 rm -f confinc confmf
3957
3958 # Check whether --enable-dependency-tracking was given.
3959 if test "${enable_dependency_tracking+set}" = set; then :
3960 enableval=$enable_dependency_tracking;
3961 fi
3962
3963 if test "x$enable_dependency_tracking" != xno; then
3964 am_depcomp="$ac_aux_dir/depcomp"
3965 AMDEPBACKSLASH='\'
3966 am__nodep='_no'
3967 fi
3968 if test "x$enable_dependency_tracking" != xno; then
3969 AMDEP_TRUE=
3970 AMDEP_FALSE='#'
3971 else
3972 AMDEP_TRUE='#'
3973 AMDEP_FALSE=
3974 fi
3975
3976
3977
3978 depcc="$CC" am_compiler_list=
3979
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3981 $as_echo_n "checking dependency style of $depcc... " >&6; }
3982 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3986 # We make a subdir and do the tests there. Otherwise we can end up
3987 # making bogus files that we don't know about and never remove. For
3988 # instance it was reported that on HP-UX the gcc test will end up
3989 # making a dummy file named 'D' -- because '-MD' means "put the output
3990 # in D".
3991 rm -rf conftest.dir
3992 mkdir conftest.dir
3993 # Copy depcomp to subdir because otherwise we won't find it if we're
3994 # using a relative directory.
3995 cp "$am_depcomp" conftest.dir
3996 cd conftest.dir
3997 # We will build objects and dependencies in a subdirectory because
3998 # it helps to detect inapplicable dependency modes. For instance
3999 # both Tru64's cc and ICC support -MD to output dependencies as a
4000 # side effect of compilation, but ICC will put the dependencies in
4001 # the current directory while Tru64 will put them in the object
4002 # directory.
4003 mkdir sub
4004
4005 am_cv_CC_dependencies_compiler_type=none
4006 if test "$am_compiler_list" = ""; then
4007 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4008 fi
4009 am__universal=false
4010 case " $depcc " in #(
4011 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4012 esac
4013
4014 for depmode in $am_compiler_list; do
4015 # Setup a source with many dependencies, because some compilers
4016 # like to wrap large dependency lists on column 80 (with \), and
4017 # we should not choose a depcomp mode which is confused by this.
4018 #
4019 # We need to recreate these files for each test, as the compiler may
4020 # overwrite some of them when testing with obscure command lines.
4021 # This happens at least with the AIX C compiler.
4022 : > sub/conftest.c
4023 for i in 1 2 3 4 5 6; do
4024 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4025 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4026 # Solaris 10 /bin/sh.
4027 echo '/* dummy */' > sub/conftst$i.h
4028 done
4029 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4030
4031 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4032 # mode. It turns out that the SunPro C++ compiler does not properly
4033 # handle '-M -o', and we need to detect this. Also, some Intel
4034 # versions had trouble with output in subdirs.
4035 am__obj=sub/conftest.${OBJEXT-o}
4036 am__minus_obj="-o $am__obj"
4037 case $depmode in
4038 gcc)
4039 # This depmode causes a compiler race in universal mode.
4040 test "$am__universal" = false || continue
4041 ;;
4042 nosideeffect)
4043 # After this tag, mechanisms are not by side-effect, so they'll
4044 # only be used when explicitly requested.
4045 if test "x$enable_dependency_tracking" = xyes; then
4046 continue
4047 else
4048 break
4049 fi
4050 ;;
4051 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4052 # This compiler won't grok '-c -o', but also, the minuso test has
4053 # not run yet. These depmodes are late enough in the game, and
4054 # so weak that their functioning should not be impacted.
4055 am__obj=conftest.${OBJEXT-o}
4056 am__minus_obj=
4057 ;;
4058 none) break ;;
4059 esac
4060 if depmode=$depmode \
4061 source=sub/conftest.c object=$am__obj \
4062 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4063 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4064 >/dev/null 2>conftest.err &&
4065 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4066 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4067 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4068 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4069 # icc doesn't choke on unknown options, it will just issue warnings
4070 # or remarks (even with -Werror). So we grep stderr for any message
4071 # that says an option was ignored or not supported.
4072 # When given -MP, icc 7.0 and 7.1 complain thusly:
4073 # icc: Command line warning: ignoring option '-M'; no argument required
4074 # The diagnosis changed in icc 8.0:
4075 # icc: Command line remark: option '-MP' not supported
4076 if (grep 'ignoring option' conftest.err ||
4077 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4078 am_cv_CC_dependencies_compiler_type=$depmode
4079 break
4080 fi
4081 fi
4082 done
4083
4084 cd ..
4085 rm -rf conftest.dir
4086 else
4087 am_cv_CC_dependencies_compiler_type=none
4088 fi
4089
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4092 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4093 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4094
4095 if
4096 test "x$enable_dependency_tracking" != xno \
4097 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4098 am__fastdepCC_TRUE=
4099 am__fastdepCC_FALSE='#'
4100 else
4101 am__fastdepCC_TRUE='#'
4102 am__fastdepCC_FALSE=
4103 fi
4104
4105
4106
4107 ac_ext=c
4108 ac_cpp='$CPP $CPPFLAGS'
4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4113 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4114 # On Suns, sometimes $CPP names a directory.
4115 if test -n "$CPP" && test -d "$CPP"; then
4116 CPP=
4117 fi
4118 if test -z "$CPP"; then
4119 if ${ac_cv_prog_CPP+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 # Double quotes because CPP needs to be expanded
4123 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4124 do
4125 ac_preproc_ok=false
4126 for ac_c_preproc_warn_flag in '' yes
4127 do
4128 # Use a header file that comes with gcc, so configuring glibc
4129 # with a fresh cross-compiler works.
4130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 # <limits.h> exists even on freestanding compilers.
4132 # On the NeXT, cc -E runs the code through the compiler's parser,
4133 # not just through cpp. "Syntax error" is here to catch this case.
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4136 #ifdef __STDC__
4137 # include <limits.h>
4138 #else
4139 # include <assert.h>
4140 #endif
4141 Syntax error
4142 _ACEOF
4143 if ac_fn_c_try_cpp "$LINENO"; then :
4144
4145 else
4146 # Broken: fails on valid input.
4147 continue
4148 fi
4149 rm -f conftest.err conftest.i conftest.$ac_ext
4150
4151 # OK, works on sane cases. Now check whether nonexistent headers
4152 # can be detected and how.
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <ac_nonexistent.h>
4156 _ACEOF
4157 if ac_fn_c_try_cpp "$LINENO"; then :
4158 # Broken: success on invalid input.
4159 continue
4160 else
4161 # Passes both tests.
4162 ac_preproc_ok=:
4163 break
4164 fi
4165 rm -f conftest.err conftest.i conftest.$ac_ext
4166
4167 done
4168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4169 rm -f conftest.i conftest.err conftest.$ac_ext
4170 if $ac_preproc_ok; then :
4171 break
4172 fi
4173
4174 done
4175 ac_cv_prog_CPP=$CPP
4176
4177 fi
4178 CPP=$ac_cv_prog_CPP
4179 else
4180 ac_cv_prog_CPP=$CPP
4181 fi
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4183 $as_echo "$CPP" >&6; }
4184 ac_preproc_ok=false
4185 for ac_c_preproc_warn_flag in '' yes
4186 do
4187 # Use a header file that comes with gcc, so configuring glibc
4188 # with a fresh cross-compiler works.
4189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4190 # <limits.h> exists even on freestanding compilers.
4191 # On the NeXT, cc -E runs the code through the compiler's parser,
4192 # not just through cpp. "Syntax error" is here to catch this case.
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195 #ifdef __STDC__
4196 # include <limits.h>
4197 #else
4198 # include <assert.h>
4199 #endif
4200 Syntax error
4201 _ACEOF
4202 if ac_fn_c_try_cpp "$LINENO"; then :
4203
4204 else
4205 # Broken: fails on valid input.
4206 continue
4207 fi
4208 rm -f conftest.err conftest.i conftest.$ac_ext
4209
4210 # OK, works on sane cases. Now check whether nonexistent headers
4211 # can be detected and how.
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #include <ac_nonexistent.h>
4215 _ACEOF
4216 if ac_fn_c_try_cpp "$LINENO"; then :
4217 # Broken: success on invalid input.
4218 continue
4219 else
4220 # Passes both tests.
4221 ac_preproc_ok=:
4222 break
4223 fi
4224 rm -f conftest.err conftest.i conftest.$ac_ext
4225
4226 done
4227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4228 rm -f conftest.i conftest.err conftest.$ac_ext
4229 if $ac_preproc_ok; then :
4230
4231 else
4232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4234 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4235 See \`config.log' for more details" "$LINENO" 5; }
4236 fi
4237
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4246 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4247 if ${ac_cv_path_GREP+:} false; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -z "$GREP"; then
4251 ac_path_GREP_found=false
4252 # Loop through the user's path and test for each of PROGNAME-LIST
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4255 do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_prog in grep ggrep; do
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4261 as_fn_executable_p "$ac_path_GREP" || continue
4262 # Check for GNU ac_path_GREP and select it if it is found.
4263 # Check for GNU $ac_path_GREP
4264 case `"$ac_path_GREP" --version 2>&1` in
4265 *GNU*)
4266 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4267 *)
4268 ac_count=0
4269 $as_echo_n 0123456789 >"conftest.in"
4270 while :
4271 do
4272 cat "conftest.in" "conftest.in" >"conftest.tmp"
4273 mv "conftest.tmp" "conftest.in"
4274 cp "conftest.in" "conftest.nl"
4275 $as_echo 'GREP' >> "conftest.nl"
4276 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4277 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4278 as_fn_arith $ac_count + 1 && ac_count=$as_val
4279 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4280 # Best one so far, save it but keep looking for a better one
4281 ac_cv_path_GREP="$ac_path_GREP"
4282 ac_path_GREP_max=$ac_count
4283 fi
4284 # 10*(2^10) chars as input seems more than enough
4285 test $ac_count -gt 10 && break
4286 done
4287 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4288 esac
4289
4290 $ac_path_GREP_found && break 3
4291 done
4292 done
4293 done
4294 IFS=$as_save_IFS
4295 if test -z "$ac_cv_path_GREP"; then
4296 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4297 fi
4298 else
4299 ac_cv_path_GREP=$GREP
4300 fi
4301
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4304 $as_echo "$ac_cv_path_GREP" >&6; }
4305 GREP="$ac_cv_path_GREP"
4306
4307
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4309 $as_echo_n "checking for egrep... " >&6; }
4310 if ${ac_cv_path_EGREP+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4314 then ac_cv_path_EGREP="$GREP -E"
4315 else
4316 if test -z "$EGREP"; then
4317 ac_path_EGREP_found=false
4318 # Loop through the user's path and test for each of PROGNAME-LIST
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4321 do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_prog in egrep; do
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4327 as_fn_executable_p "$ac_path_EGREP" || continue
4328 # Check for GNU ac_path_EGREP and select it if it is found.
4329 # Check for GNU $ac_path_EGREP
4330 case `"$ac_path_EGREP" --version 2>&1` in
4331 *GNU*)
4332 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4333 *)
4334 ac_count=0
4335 $as_echo_n 0123456789 >"conftest.in"
4336 while :
4337 do
4338 cat "conftest.in" "conftest.in" >"conftest.tmp"
4339 mv "conftest.tmp" "conftest.in"
4340 cp "conftest.in" "conftest.nl"
4341 $as_echo 'EGREP' >> "conftest.nl"
4342 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4344 as_fn_arith $ac_count + 1 && ac_count=$as_val
4345 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4346 # Best one so far, save it but keep looking for a better one
4347 ac_cv_path_EGREP="$ac_path_EGREP"
4348 ac_path_EGREP_max=$ac_count
4349 fi
4350 # 10*(2^10) chars as input seems more than enough
4351 test $ac_count -gt 10 && break
4352 done
4353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4354 esac
4355
4356 $ac_path_EGREP_found && break 3
4357 done
4358 done
4359 done
4360 IFS=$as_save_IFS
4361 if test -z "$ac_cv_path_EGREP"; then
4362 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4363 fi
4364 else
4365 ac_cv_path_EGREP=$EGREP
4366 fi
4367
4368 fi
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4371 $as_echo "$ac_cv_path_EGREP" >&6; }
4372 EGREP="$ac_cv_path_EGREP"
4373
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4376 $as_echo_n "checking for ANSI C header files... " >&6; }
4377 if ${ac_cv_header_stdc+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 #include <stdlib.h>
4383 #include <stdarg.h>
4384 #include <string.h>
4385 #include <float.h>
4386
4387 int
4388 main ()
4389 {
4390
4391 ;
4392 return 0;
4393 }
4394 _ACEOF
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396 ac_cv_header_stdc=yes
4397 else
4398 ac_cv_header_stdc=no
4399 fi
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401
4402 if test $ac_cv_header_stdc = yes; then
4403 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 #include <string.h>
4407
4408 _ACEOF
4409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4410 $EGREP "memchr" >/dev/null 2>&1; then :
4411
4412 else
4413 ac_cv_header_stdc=no
4414 fi
4415 rm -f conftest*
4416
4417 fi
4418
4419 if test $ac_cv_header_stdc = yes; then
4420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423 #include <stdlib.h>
4424
4425 _ACEOF
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 $EGREP "free" >/dev/null 2>&1; then :
4428
4429 else
4430 ac_cv_header_stdc=no
4431 fi
4432 rm -f conftest*
4433
4434 fi
4435
4436 if test $ac_cv_header_stdc = yes; then
4437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4438 if test "$cross_compiling" = yes; then :
4439 :
4440 else
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #include <ctype.h>
4444 #include <stdlib.h>
4445 #if ((' ' & 0x0FF) == 0x020)
4446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4448 #else
4449 # define ISLOWER(c) \
4450 (('a' <= (c) && (c) <= 'i') \
4451 || ('j' <= (c) && (c) <= 'r') \
4452 || ('s' <= (c) && (c) <= 'z'))
4453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4454 #endif
4455
4456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4457 int
4458 main ()
4459 {
4460 int i;
4461 for (i = 0; i < 256; i++)
4462 if (XOR (islower (i), ISLOWER (i))
4463 || toupper (i) != TOUPPER (i))
4464 return 2;
4465 return 0;
4466 }
4467 _ACEOF
4468 if ac_fn_c_try_run "$LINENO"; then :
4469
4470 else
4471 ac_cv_header_stdc=no
4472 fi
4473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4474 conftest.$ac_objext conftest.beam conftest.$ac_ext
4475 fi
4476
4477 fi
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4480 $as_echo "$ac_cv_header_stdc" >&6; }
4481 if test $ac_cv_header_stdc = yes; then
4482
4483 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4484
4485 fi
4486
4487 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4488 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4489 inttypes.h stdint.h unistd.h
4490 do :
4491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4492 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4493 "
4494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4495 cat >>confdefs.h <<_ACEOF
4496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4497 _ACEOF
4498
4499 fi
4500
4501 done
4502
4503
4504
4505 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4506 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4507 MINIX=yes
4508 else
4509 MINIX=
4510 fi
4511
4512
4513 if test "$MINIX" = yes; then
4514
4515 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4516
4517
4518 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4519
4520
4521 $as_echo "#define _MINIX 1" >>confdefs.h
4522
4523 fi
4524
4525
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4527 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4528 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4533
4534 # define __EXTENSIONS__ 1
4535 $ac_includes_default
4536 int
4537 main ()
4538 {
4539
4540 ;
4541 return 0;
4542 }
4543 _ACEOF
4544 if ac_fn_c_try_compile "$LINENO"; then :
4545 ac_cv_safe_to_define___extensions__=yes
4546 else
4547 ac_cv_safe_to_define___extensions__=no
4548 fi
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 fi
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4552 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4553 test $ac_cv_safe_to_define___extensions__ = yes &&
4554 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4555
4556 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4557
4558 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4559
4560 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4561
4562 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4563
4564
4565
4566
4567
4568 if test -n "$ac_tool_prefix"; then
4569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4570 set dummy ${ac_tool_prefix}ar; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if ${ac_cv_prog_AR+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$AR"; then
4577 ac_cv_prog_AR="$AR" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 ac_cv_prog_AR="${ac_tool_prefix}ar"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 fi
4595 fi
4596 AR=$ac_cv_prog_AR
4597 if test -n "$AR"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4599 $as_echo "$AR" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4603 fi
4604
4605
4606 fi
4607 if test -z "$ac_cv_prog_AR"; then
4608 ac_ct_AR=$AR
4609 # Extract the first word of "ar", so it can be a program name with args.
4610 set dummy ar; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 if test -n "$ac_ct_AR"; then
4617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626 ac_cv_prog_ac_ct_AR="ar"
4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4629 fi
4630 done
4631 done
4632 IFS=$as_save_IFS
4633
4634 fi
4635 fi
4636 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4637 if test -n "$ac_ct_AR"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4639 $as_echo "$ac_ct_AR" >&6; }
4640 else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4643 fi
4644
4645 if test "x$ac_ct_AR" = x; then
4646 AR=""
4647 else
4648 case $cross_compiling:$ac_tool_warned in
4649 yes:)
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4652 ac_tool_warned=yes ;;
4653 esac
4654 AR=$ac_ct_AR
4655 fi
4656 else
4657 AR="$ac_cv_prog_AR"
4658 fi
4659
4660 if test -n "$ac_tool_prefix"; then
4661 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4662 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_prog_RANLIB+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if test -n "$RANLIB"; then
4669 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687 fi
4688 RANLIB=$ac_cv_prog_RANLIB
4689 if test -n "$RANLIB"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4691 $as_echo "$RANLIB" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4696
4697
4698 fi
4699 if test -z "$ac_cv_prog_RANLIB"; then
4700 ac_ct_RANLIB=$RANLIB
4701 # Extract the first word of "ranlib", so it can be a program name with args.
4702 set dummy ranlib; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -n "$ac_ct_RANLIB"; then
4709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_ac_ct_RANLIB="ranlib"
4719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4721 fi
4722 done
4723 done
4724 IFS=$as_save_IFS
4725
4726 fi
4727 fi
4728 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4729 if test -n "$ac_ct_RANLIB"; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4731 $as_echo "$ac_ct_RANLIB" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 fi
4736
4737 if test "x$ac_ct_RANLIB" = x; then
4738 RANLIB=":"
4739 else
4740 case $cross_compiling:$ac_tool_warned in
4741 yes:)
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4744 ac_tool_warned=yes ;;
4745 esac
4746 RANLIB=$ac_ct_RANLIB
4747 fi
4748 else
4749 RANLIB="$ac_cv_prog_RANLIB"
4750 fi
4751
4752
4753 # Check whether --enable-shared was given.
4754 if test "${enable_shared+set}" = set; then :
4755 enableval=$enable_shared; p=${PACKAGE-default}
4756 case $enableval in
4757 yes) enable_shared=yes ;;
4758 no) enable_shared=no ;;
4759 *)
4760 enable_shared=no
4761 # Look at the argument we got. We use all the common list separators.
4762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4763 for pkg in $enableval; do
4764 IFS="$lt_save_ifs"
4765 if test "X$pkg" = "X$p"; then
4766 enable_shared=yes
4767 fi
4768 done
4769 IFS="$lt_save_ifs"
4770 ;;
4771 esac
4772 else
4773 enable_shared=no
4774 fi
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785 case `pwd` in
4786 *\ * | *\ *)
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4788 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4789 esac
4790
4791
4792
4793 macro_version='2.2.7a'
4794 macro_revision='1.3134'
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808 ltmain="$ac_aux_dir/ltmain.sh"
4809
4810 # Backslashify metacharacters that are still active within
4811 # double-quoted strings.
4812 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4813
4814 # Same as above, but do not quote variable references.
4815 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4816
4817 # Sed substitution to delay expansion of an escaped shell variable in a
4818 # double_quote_subst'ed string.
4819 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4820
4821 # Sed substitution to delay expansion of an escaped single quote.
4822 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4823
4824 # Sed substitution to avoid accidental globbing in evaled expressions
4825 no_glob_subst='s/\*/\\\*/g'
4826
4827 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4828 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4829 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4832 $as_echo_n "checking how to print strings... " >&6; }
4833 # Test print first, because it will be a builtin if present.
4834 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4835 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4836 ECHO='print -r --'
4837 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4838 ECHO='printf %s\n'
4839 else
4840 # Use this function as a fallback that always works.
4841 func_fallback_echo ()
4842 {
4843 eval 'cat <<_LTECHO_EOF
4844 $1
4845 _LTECHO_EOF'
4846 }
4847 ECHO='func_fallback_echo'
4848 fi
4849
4850 # func_echo_all arg...
4851 # Invoke $ECHO with all args, space-separated.
4852 func_echo_all ()
4853 {
4854 $ECHO ""
4855 }
4856
4857 case "$ECHO" in
4858 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4859 $as_echo "printf" >&6; } ;;
4860 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4861 $as_echo "print -r" >&6; } ;;
4862 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4863 $as_echo "cat" >&6; } ;;
4864 esac
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4880 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4881 if ${ac_cv_path_SED+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4885 for ac_i in 1 2 3 4 5 6 7; do
4886 ac_script="$ac_script$as_nl$ac_script"
4887 done
4888 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4889 { ac_script=; unset ac_script;}
4890 if test -z "$SED"; then
4891 ac_path_SED_found=false
4892 # Loop through the user's path and test for each of PROGNAME-LIST
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4895 do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_prog in sed gsed; do
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4901 as_fn_executable_p "$ac_path_SED" || continue
4902 # Check for GNU ac_path_SED and select it if it is found.
4903 # Check for GNU $ac_path_SED
4904 case `"$ac_path_SED" --version 2>&1` in
4905 *GNU*)
4906 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4907 *)
4908 ac_count=0
4909 $as_echo_n 0123456789 >"conftest.in"
4910 while :
4911 do
4912 cat "conftest.in" "conftest.in" >"conftest.tmp"
4913 mv "conftest.tmp" "conftest.in"
4914 cp "conftest.in" "conftest.nl"
4915 $as_echo '' >> "conftest.nl"
4916 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4918 as_fn_arith $ac_count + 1 && ac_count=$as_val
4919 if test $ac_count -gt ${ac_path_SED_max-0}; then
4920 # Best one so far, save it but keep looking for a better one
4921 ac_cv_path_SED="$ac_path_SED"
4922 ac_path_SED_max=$ac_count
4923 fi
4924 # 10*(2^10) chars as input seems more than enough
4925 test $ac_count -gt 10 && break
4926 done
4927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4928 esac
4929
4930 $ac_path_SED_found && break 3
4931 done
4932 done
4933 done
4934 IFS=$as_save_IFS
4935 if test -z "$ac_cv_path_SED"; then
4936 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4937 fi
4938 else
4939 ac_cv_path_SED=$SED
4940 fi
4941
4942 fi
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4944 $as_echo "$ac_cv_path_SED" >&6; }
4945 SED="$ac_cv_path_SED"
4946 rm -f conftest.sed
4947
4948 test -z "$SED" && SED=sed
4949 Xsed="$SED -e 1s/^X//"
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4962 $as_echo_n "checking for fgrep... " >&6; }
4963 if ${ac_cv_path_FGREP+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4967 then ac_cv_path_FGREP="$GREP -F"
4968 else
4969 if test -z "$FGREP"; then
4970 ac_path_FGREP_found=false
4971 # Loop through the user's path and test for each of PROGNAME-LIST
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4974 do
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_prog in fgrep; do
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4980 as_fn_executable_p "$ac_path_FGREP" || continue
4981 # Check for GNU ac_path_FGREP and select it if it is found.
4982 # Check for GNU $ac_path_FGREP
4983 case `"$ac_path_FGREP" --version 2>&1` in
4984 *GNU*)
4985 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4986 *)
4987 ac_count=0
4988 $as_echo_n 0123456789 >"conftest.in"
4989 while :
4990 do
4991 cat "conftest.in" "conftest.in" >"conftest.tmp"
4992 mv "conftest.tmp" "conftest.in"
4993 cp "conftest.in" "conftest.nl"
4994 $as_echo 'FGREP' >> "conftest.nl"
4995 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4997 as_fn_arith $ac_count + 1 && ac_count=$as_val
4998 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4999 # Best one so far, save it but keep looking for a better one
5000 ac_cv_path_FGREP="$ac_path_FGREP"
5001 ac_path_FGREP_max=$ac_count
5002 fi
5003 # 10*(2^10) chars as input seems more than enough
5004 test $ac_count -gt 10 && break
5005 done
5006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5007 esac
5008
5009 $ac_path_FGREP_found && break 3
5010 done
5011 done
5012 done
5013 IFS=$as_save_IFS
5014 if test -z "$ac_cv_path_FGREP"; then
5015 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5016 fi
5017 else
5018 ac_cv_path_FGREP=$FGREP
5019 fi
5020
5021 fi
5022 fi
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5024 $as_echo "$ac_cv_path_FGREP" >&6; }
5025 FGREP="$ac_cv_path_FGREP"
5026
5027
5028 test -z "$GREP" && GREP=grep
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 # Check whether --with-gnu-ld was given.
5049 if test "${with_gnu_ld+set}" = set; then :
5050 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5051 else
5052 with_gnu_ld=no
5053 fi
5054
5055 ac_prog=ld
5056 if test "$GCC" = yes; then
5057 # Check if gcc -print-prog-name=ld gives a path.
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5059 $as_echo_n "checking for ld used by $CC... " >&6; }
5060 case $host in
5061 *-*-mingw*)
5062 # gcc leaves a trailing carriage return which upsets mingw
5063 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5064 *)
5065 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5066 esac
5067 case $ac_prog in
5068 # Accept absolute paths.
5069 [\\/]* | ?:[\\/]*)
5070 re_direlt='/[^/][^/]*/\.\./'
5071 # Canonicalize the pathname of ld
5072 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5073 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5074 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5075 done
5076 test -z "$LD" && LD="$ac_prog"
5077 ;;
5078 "")
5079 # If it fails, then pretend we aren't using GCC.
5080 ac_prog=ld
5081 ;;
5082 *)
5083 # If it is relative, then search for the first ld in PATH.
5084 with_gnu_ld=unknown
5085 ;;
5086 esac
5087 elif test "$with_gnu_ld" = yes; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5089 $as_echo_n "checking for GNU ld... " >&6; }
5090 else
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5092 $as_echo_n "checking for non-GNU ld... " >&6; }
5093 fi
5094 if ${lt_cv_path_LD+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096 else
5097 if test -z "$LD"; then
5098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5099 for ac_dir in $PATH; do
5100 IFS="$lt_save_ifs"
5101 test -z "$ac_dir" && ac_dir=.
5102 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5103 lt_cv_path_LD="$ac_dir/$ac_prog"
5104 # Check to see if the program is GNU ld. I'd rather use --version,
5105 # but apparently some variants of GNU ld only accept -v.
5106 # Break only if it was the GNU/non-GNU ld that we prefer.
5107 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5108 *GNU* | *'with BFD'*)
5109 test "$with_gnu_ld" != no && break
5110 ;;
5111 *)
5112 test "$with_gnu_ld" != yes && break
5113 ;;
5114 esac
5115 fi
5116 done
5117 IFS="$lt_save_ifs"
5118 else
5119 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5120 fi
5121 fi
5122
5123 LD="$lt_cv_path_LD"
5124 if test -n "$LD"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5126 $as_echo "$LD" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5130 fi
5131 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5133 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5134 if ${lt_cv_prog_gnu_ld+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5138 case `$LD -v 2>&1 </dev/null` in
5139 *GNU* | *'with BFD'*)
5140 lt_cv_prog_gnu_ld=yes
5141 ;;
5142 *)
5143 lt_cv_prog_gnu_ld=no
5144 ;;
5145 esac
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5148 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5149 with_gnu_ld=$lt_cv_prog_gnu_ld
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5160 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5161 if ${lt_cv_path_NM+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 if test -n "$NM"; then
5165 # Let the user override the nm to test.
5166 lt_nm_to_check="$NM"
5167 else
5168 lt_nm_to_check="${ac_tool_prefix}nm"
5169 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5170 lt_nm_to_check="$lt_nm_to_check nm"
5171 fi
5172 fi
5173 for lt_tmp_nm in $lt_nm_to_check; do
5174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5175 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5176 IFS="$lt_save_ifs"
5177 test -z "$ac_dir" && ac_dir=.
5178 case "$lt_tmp_nm" in
5179 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5180 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5181 esac
5182 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5183 # Check to see if the nm accepts a BSD-compat flag.
5184 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5185 # nm: unknown option "B" ignored
5186 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5187 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5188 break
5189 ;;
5190 *)
5191 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5192 *$tmp_nm*)
5193 lt_cv_path_NM="$tmp_nm -p"
5194 break
5195 ;;
5196 *)
5197 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5198 continue # so that we can try to find one that supports BSD flags
5199 ;;
5200 esac
5201 ;;
5202 esac
5203 fi
5204 done
5205 IFS="$lt_save_ifs"
5206 done
5207 : ${lt_cv_path_NM=no}
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5210 $as_echo "$lt_cv_path_NM" >&6; }
5211 if test "$lt_cv_path_NM" != "no"; then
5212 NM="$lt_cv_path_NM"
5213 else
5214 # Didn't find any BSD compatible name lister, look for dumpbin.
5215 if test -n "$DUMPBIN"; then :
5216 # Let the user override the test.
5217 else
5218 if test -n "$ac_tool_prefix"; then
5219 for ac_prog in dumpbin "link -dump"
5220 do
5221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_DUMPBIN+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$DUMPBIN"; then
5229 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 DUMPBIN=$ac_cv_prog_DUMPBIN
5249 if test -n "$DUMPBIN"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5251 $as_echo "$DUMPBIN" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 test -n "$DUMPBIN" && break
5259 done
5260 fi
5261 if test -z "$DUMPBIN"; then
5262 ac_ct_DUMPBIN=$DUMPBIN
5263 for ac_prog in dumpbin "link -dump"
5264 do
5265 # Extract the first word of "$ac_prog", so it can be a program name with args.
5266 set dummy $ac_prog; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$ac_ct_DUMPBIN"; then
5273 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5293 if test -n "$ac_ct_DUMPBIN"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5295 $as_echo "$ac_ct_DUMPBIN" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301
5302 test -n "$ac_ct_DUMPBIN" && break
5303 done
5304
5305 if test "x$ac_ct_DUMPBIN" = x; then
5306 DUMPBIN=":"
5307 else
5308 case $cross_compiling:$ac_tool_warned in
5309 yes:)
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5312 ac_tool_warned=yes ;;
5313 esac
5314 DUMPBIN=$ac_ct_DUMPBIN
5315 fi
5316 fi
5317
5318 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5319 *COFF*)
5320 DUMPBIN="$DUMPBIN -symbols"
5321 ;;
5322 *)
5323 DUMPBIN=:
5324 ;;
5325 esac
5326 fi
5327
5328 if test "$DUMPBIN" != ":"; then
5329 NM="$DUMPBIN"
5330 fi
5331 fi
5332 test -z "$NM" && NM=nm
5333
5334
5335
5336
5337
5338
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5340 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5341 if ${lt_cv_nm_interface+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 lt_cv_nm_interface="BSD nm"
5345 echo "int some_variable = 0;" > conftest.$ac_ext
5346 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5347 (eval "$ac_compile" 2>conftest.err)
5348 cat conftest.err >&5
5349 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5350 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5351 cat conftest.err >&5
5352 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5353 cat conftest.out >&5
5354 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5355 lt_cv_nm_interface="MS dumpbin"
5356 fi
5357 rm -f conftest*
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5360 $as_echo "$lt_cv_nm_interface" >&6; }
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5363 $as_echo_n "checking whether ln -s works... " >&6; }
5364 LN_S=$as_ln_s
5365 if test "$LN_S" = "ln -s"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5367 $as_echo "yes" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5370 $as_echo "no, using $LN_S" >&6; }
5371 fi
5372
5373 # find the maximum length of command line arguments
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5375 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5376 if ${lt_cv_sys_max_cmd_len+:} false; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 i=0
5380 teststring="ABCD"
5381
5382 case $build_os in
5383 msdosdjgpp*)
5384 # On DJGPP, this test can blow up pretty badly due to problems in libc
5385 # (any single argument exceeding 2000 bytes causes a buffer overrun
5386 # during glob expansion). Even if it were fixed, the result of this
5387 # check would be larger than it should be.
5388 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5389 ;;
5390
5391 gnu*)
5392 # Under GNU Hurd, this test is not required because there is
5393 # no limit to the length of command line arguments.
5394 # Libtool will interpret -1 as no limit whatsoever
5395 lt_cv_sys_max_cmd_len=-1;
5396 ;;
5397
5398 cygwin* | mingw* | cegcc*)
5399 # On Win9x/ME, this test blows up -- it succeeds, but takes
5400 # about 5 minutes as the teststring grows exponentially.
5401 # Worse, since 9x/ME are not pre-emptively multitasking,
5402 # you end up with a "frozen" computer, even though with patience
5403 # the test eventually succeeds (with a max line length of 256k).
5404 # Instead, let's just punt: use the minimum linelength reported by
5405 # all of the supported platforms: 8192 (on NT/2K/XP).
5406 lt_cv_sys_max_cmd_len=8192;
5407 ;;
5408
5409 mint*)
5410 # On MiNT this can take a long time and run out of memory.
5411 lt_cv_sys_max_cmd_len=8192;
5412 ;;
5413
5414 amigaos*)
5415 # On AmigaOS with pdksh, this test takes hours, literally.
5416 # So we just punt and use a minimum line length of 8192.
5417 lt_cv_sys_max_cmd_len=8192;
5418 ;;
5419
5420 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5421 # This has been around since 386BSD, at least. Likely further.
5422 if test -x /sbin/sysctl; then
5423 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5424 elif test -x /usr/sbin/sysctl; then
5425 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5426 else
5427 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5428 fi
5429 # And add a safety zone
5430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5432 ;;
5433
5434 interix*)
5435 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5436 lt_cv_sys_max_cmd_len=196608
5437 ;;
5438
5439 osf*)
5440 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5441 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5442 # nice to cause kernel panics so lets avoid the loop below.
5443 # First set a reasonable default.
5444 lt_cv_sys_max_cmd_len=16384
5445 #
5446 if test -x /sbin/sysconfig; then
5447 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5448 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5449 esac
5450 fi
5451 ;;
5452 sco3.2v5*)
5453 lt_cv_sys_max_cmd_len=102400
5454 ;;
5455 sysv5* | sco5v6* | sysv4.2uw2*)
5456 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5457 if test -n "$kargmax"; then
5458 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5459 else
5460 lt_cv_sys_max_cmd_len=32768
5461 fi
5462 ;;
5463 *)
5464 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5465 if test -n "$lt_cv_sys_max_cmd_len"; then
5466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5468 else
5469 # Make teststring a little bigger before we do anything with it.
5470 # a 1K string should be a reasonable start.
5471 for i in 1 2 3 4 5 6 7 8 ; do
5472 teststring=$teststring$teststring
5473 done
5474 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5475 # If test is not a shell built-in, we'll probably end up computing a
5476 # maximum length that is only half of the actual maximum length, but
5477 # we can't tell.
5478 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5479 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5480 test $i != 17 # 1/2 MB should be enough
5481 do
5482 i=`expr $i + 1`
5483 teststring=$teststring$teststring
5484 done
5485 # Only check the string length outside the loop.
5486 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5487 teststring=
5488 # Add a significant safety factor because C++ compilers can tack on
5489 # massive amounts of additional arguments before passing them to the
5490 # linker. It appears as though 1/2 is a usable value.
5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5492 fi
5493 ;;
5494 esac
5495
5496 fi
5497
5498 if test -n $lt_cv_sys_max_cmd_len ; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5500 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5501 else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5503 $as_echo "none" >&6; }
5504 fi
5505 max_cmd_len=$lt_cv_sys_max_cmd_len
5506
5507
5508
5509
5510
5511
5512 : ${CP="cp -f"}
5513 : ${MV="mv -f"}
5514 : ${RM="rm -f"}
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5517 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5518 # Try some XSI features
5519 xsi_shell=no
5520 ( _lt_dummy="a/b/c"
5521 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5522 = c,a/b,, \
5523 && eval 'test $(( 1 + 1 )) -eq 2 \
5524 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5525 && xsi_shell=yes
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5527 $as_echo "$xsi_shell" >&6; }
5528
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5531 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5532 lt_shell_append=no
5533 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5534 >/dev/null 2>&1 \
5535 && lt_shell_append=yes
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5537 $as_echo "$lt_shell_append" >&6; }
5538
5539
5540 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5541 lt_unset=unset
5542 else
5543 lt_unset=false
5544 fi
5545
5546
5547
5548
5549
5550 # test EBCDIC or ASCII
5551 case `echo X|tr X '\101'` in
5552 A) # ASCII based system
5553 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5554 lt_SP2NL='tr \040 \012'
5555 lt_NL2SP='tr \015\012 \040\040'
5556 ;;
5557 *) # EBCDIC based system
5558 lt_SP2NL='tr \100 \n'
5559 lt_NL2SP='tr \r\n \100\100'
5560 ;;
5561 esac
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5572 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5573 if ${lt_cv_ld_reload_flag+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 lt_cv_ld_reload_flag='-r'
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5579 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5580 reload_flag=$lt_cv_ld_reload_flag
5581 case $reload_flag in
5582 "" | " "*) ;;
5583 *) reload_flag=" $reload_flag" ;;
5584 esac
5585 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5586 case $host_os in
5587 darwin*)
5588 if test "$GCC" = yes; then
5589 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5590 else
5591 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5592 fi
5593 ;;
5594 esac
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 if test -n "$ac_tool_prefix"; then
5605 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5606 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_prog_OBJDUMP+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 if test -n "$OBJDUMP"; then
5613 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626 done
5627 done
5628 IFS=$as_save_IFS
5629
5630 fi
5631 fi
5632 OBJDUMP=$ac_cv_prog_OBJDUMP
5633 if test -n "$OBJDUMP"; then
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5635 $as_echo "$OBJDUMP" >&6; }
5636 else
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5639 fi
5640
5641
5642 fi
5643 if test -z "$ac_cv_prog_OBJDUMP"; then
5644 ac_ct_OBJDUMP=$OBJDUMP
5645 # Extract the first word of "objdump", so it can be a program name with args.
5646 set dummy objdump; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 if test -n "$ac_ct_OBJDUMP"; then
5653 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666 done
5667 done
5668 IFS=$as_save_IFS
5669
5670 fi
5671 fi
5672 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5673 if test -n "$ac_ct_OBJDUMP"; then
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5675 $as_echo "$ac_ct_OBJDUMP" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5679 fi
5680
5681 if test "x$ac_ct_OBJDUMP" = x; then
5682 OBJDUMP="false"
5683 else
5684 case $cross_compiling:$ac_tool_warned in
5685 yes:)
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5688 ac_tool_warned=yes ;;
5689 esac
5690 OBJDUMP=$ac_ct_OBJDUMP
5691 fi
5692 else
5693 OBJDUMP="$ac_cv_prog_OBJDUMP"
5694 fi
5695
5696 test -z "$OBJDUMP" && OBJDUMP=objdump
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5707 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5708 if ${lt_cv_deplibs_check_method+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 lt_cv_file_magic_cmd='$MAGIC_CMD'
5712 lt_cv_file_magic_test_file=
5713 lt_cv_deplibs_check_method='unknown'
5714 # Need to set the preceding variable on all platforms that support
5715 # interlibrary dependencies.
5716 # 'none' -- dependencies not supported.
5717 # `unknown' -- same as none, but documents that we really don't know.
5718 # 'pass_all' -- all dependencies passed with no checks.
5719 # 'test_compile' -- check by making test program.
5720 # 'file_magic [[regex]]' -- check by looking for files in library path
5721 # which responds to the $file_magic_cmd with a given extended regex.
5722 # If you have `file' or equivalent on your system and you're not sure
5723 # whether `pass_all' will *always* work, you probably want this one.
5724
5725 case $host_os in
5726 aix[4-9]*)
5727 lt_cv_deplibs_check_method=pass_all
5728 ;;
5729
5730 beos*)
5731 lt_cv_deplibs_check_method=pass_all
5732 ;;
5733
5734 bsdi[45]*)
5735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5736 lt_cv_file_magic_cmd='/usr/bin/file -L'
5737 lt_cv_file_magic_test_file=/shlib/libc.so
5738 ;;
5739
5740 cygwin*)
5741 # func_win32_libid is a shell function defined in ltmain.sh
5742 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5743 lt_cv_file_magic_cmd='func_win32_libid'
5744 ;;
5745
5746 mingw* | pw32*)
5747 # Base MSYS/MinGW do not provide the 'file' command needed by
5748 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5749 # unless we find 'file', for example because we are cross-compiling.
5750 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5751 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5752 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5753 lt_cv_file_magic_cmd='func_win32_libid'
5754 else
5755 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5756 lt_cv_file_magic_cmd='$OBJDUMP -f'
5757 fi
5758 ;;
5759
5760 cegcc*)
5761 # use the weaker test based on 'objdump'. See mingw*.
5762 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5763 lt_cv_file_magic_cmd='$OBJDUMP -f'
5764 ;;
5765
5766 darwin* | rhapsody*)
5767 lt_cv_deplibs_check_method=pass_all
5768 ;;
5769
5770 freebsd* | dragonfly*)
5771 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5772 case $host_cpu in
5773 i*86 )
5774 # Not sure whether the presence of OpenBSD here was a mistake.
5775 # Let's accept both of them until this is cleared up.
5776 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5777 lt_cv_file_magic_cmd=/usr/bin/file
5778 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5779 ;;
5780 esac
5781 else
5782 lt_cv_deplibs_check_method=pass_all
5783 fi
5784 ;;
5785
5786 gnu*)
5787 lt_cv_deplibs_check_method=pass_all
5788 ;;
5789
5790 haiku*)
5791 lt_cv_deplibs_check_method=pass_all
5792 ;;
5793
5794 hpux10.20* | hpux11*)
5795 lt_cv_file_magic_cmd=/usr/bin/file
5796 case $host_cpu in
5797 ia64*)
5798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5799 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5800 ;;
5801 hppa*64*)
5802 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]'
5803 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5804 ;;
5805 *)
5806 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5807 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5808 ;;
5809 esac
5810 ;;
5811
5812 interix[3-9]*)
5813 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5815 ;;
5816
5817 irix5* | irix6* | nonstopux*)
5818 case $LD in
5819 *-32|*"-32 ") libmagic=32-bit;;
5820 *-n32|*"-n32 ") libmagic=N32;;
5821 *-64|*"-64 ") libmagic=64-bit;;
5822 *) libmagic=never-match;;
5823 esac
5824 lt_cv_deplibs_check_method=pass_all
5825 ;;
5826
5827 # This must be Linux ELF.
5828 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
5831
5832 netbsd*)
5833 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5835 else
5836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5837 fi
5838 ;;
5839
5840 newos6*)
5841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5842 lt_cv_file_magic_cmd=/usr/bin/file
5843 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5844 ;;
5845
5846 *nto* | *qnx*)
5847 lt_cv_deplibs_check_method=pass_all
5848 ;;
5849
5850 openbsd*)
5851 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5853 else
5854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5855 fi
5856 ;;
5857
5858 osf3* | osf4* | osf5*)
5859 lt_cv_deplibs_check_method=pass_all
5860 ;;
5861
5862 rdos*)
5863 lt_cv_deplibs_check_method=pass_all
5864 ;;
5865
5866 solaris*)
5867 lt_cv_deplibs_check_method=pass_all
5868 ;;
5869
5870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5871 lt_cv_deplibs_check_method=pass_all
5872 ;;
5873
5874 sysv4 | sysv4.3*)
5875 case $host_vendor in
5876 motorola)
5877 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]'
5878 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5879 ;;
5880 ncr)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883 sequent)
5884 lt_cv_file_magic_cmd='/bin/file'
5885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5886 ;;
5887 sni)
5888 lt_cv_file_magic_cmd='/bin/file'
5889 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5890 lt_cv_file_magic_test_file=/lib/libc.so
5891 ;;
5892 siemens)
5893 lt_cv_deplibs_check_method=pass_all
5894 ;;
5895 pc)
5896 lt_cv_deplibs_check_method=pass_all
5897 ;;
5898 esac
5899 ;;
5900
5901 tpf*)
5902 lt_cv_deplibs_check_method=pass_all
5903 ;;
5904 esac
5905
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5908 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5909 file_magic_cmd=$lt_cv_file_magic_cmd
5910 deplibs_check_method=$lt_cv_deplibs_check_method
5911 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 plugin_option=
5925 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5926 for plugin in $plugin_names; do
5927 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5928 if test x$plugin_so = x$plugin; then
5929 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5930 fi
5931 if test x$plugin_so != x$plugin; then
5932 plugin_option="--plugin $plugin_so"
5933 break
5934 fi
5935 done
5936
5937 if test -n "$ac_tool_prefix"; then
5938 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5939 set dummy ${ac_tool_prefix}ar; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if ${ac_cv_prog_AR+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if test -n "$AR"; then
5946 ac_cv_prog_AR="$AR" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955 ac_cv_prog_AR="${ac_tool_prefix}ar"
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959 done
5960 done
5961 IFS=$as_save_IFS
5962
5963 fi
5964 fi
5965 AR=$ac_cv_prog_AR
5966 if test -n "$AR"; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5968 $as_echo "$AR" >&6; }
5969 else
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973
5974
5975 fi
5976 if test -z "$ac_cv_prog_AR"; then
5977 ac_ct_AR=$AR
5978 # Extract the first word of "ar", so it can be a program name with args.
5979 set dummy ar; ac_word=$2
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981 $as_echo_n "checking for $ac_word... " >&6; }
5982 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 if test -n "$ac_ct_AR"; then
5986 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5987 else
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $PATH
5990 do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5995 ac_cv_prog_ac_ct_AR="ar"
5996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999 done
6000 done
6001 IFS=$as_save_IFS
6002
6003 fi
6004 fi
6005 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6006 if test -n "$ac_ct_AR"; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6008 $as_echo "$ac_ct_AR" >&6; }
6009 else
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 $as_echo "no" >&6; }
6012 fi
6013
6014 if test "x$ac_ct_AR" = x; then
6015 AR="false"
6016 else
6017 case $cross_compiling:$ac_tool_warned in
6018 yes:)
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6021 ac_tool_warned=yes ;;
6022 esac
6023 AR=$ac_ct_AR
6024 fi
6025 else
6026 AR="$ac_cv_prog_AR"
6027 fi
6028
6029 test -z "$AR" && AR=ar
6030 if test -n "$plugin_option"; then
6031 if $AR --help 2>&1 | grep -q "\--plugin"; then
6032 touch conftest.c
6033 $AR $plugin_option rc conftest.a conftest.c
6034 if test "$?" != 0; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6036 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6037 else
6038 AR="$AR $plugin_option"
6039 fi
6040 rm -f conftest.*
6041 fi
6042 fi
6043 test -z "$AR_FLAGS" && AR_FLAGS=cru
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 if test -n "$ac_tool_prefix"; then
6056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6057 set dummy ${ac_tool_prefix}strip; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_STRIP+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 if test -n "$STRIP"; then
6064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 STRIP=$ac_cv_prog_STRIP
6084 if test -n "$STRIP"; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6086 $as_echo "$STRIP" >&6; }
6087 else
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 fi
6091
6092
6093 fi
6094 if test -z "$ac_cv_prog_STRIP"; then
6095 ac_ct_STRIP=$STRIP
6096 # Extract the first word of "strip", so it can be a program name with args.
6097 set dummy strip; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 if test -n "$ac_ct_STRIP"; then
6104 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6105 else
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_ac_ct_STRIP="strip"
6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6116 fi
6117 done
6118 done
6119 IFS=$as_save_IFS
6120
6121 fi
6122 fi
6123 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6124 if test -n "$ac_ct_STRIP"; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6126 $as_echo "$ac_ct_STRIP" >&6; }
6127 else
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6130 fi
6131
6132 if test "x$ac_ct_STRIP" = x; then
6133 STRIP=":"
6134 else
6135 case $cross_compiling:$ac_tool_warned in
6136 yes:)
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139 ac_tool_warned=yes ;;
6140 esac
6141 STRIP=$ac_ct_STRIP
6142 fi
6143 else
6144 STRIP="$ac_cv_prog_STRIP"
6145 fi
6146
6147 test -z "$STRIP" && STRIP=:
6148
6149
6150
6151
6152
6153
6154 if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if ${ac_cv_prog_RANLIB+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$RANLIB"; then
6163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 RANLIB=$ac_cv_prog_RANLIB
6183 if test -n "$RANLIB"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6185 $as_echo "$RANLIB" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 fi
6190
6191
6192 fi
6193 if test -z "$ac_cv_prog_RANLIB"; then
6194 ac_ct_RANLIB=$RANLIB
6195 # Extract the first word of "ranlib", so it can be a program name with args.
6196 set dummy ranlib; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$ac_ct_RANLIB"; then
6203 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_ac_ct_RANLIB="ranlib"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6223 if test -n "$ac_ct_RANLIB"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6225 $as_echo "$ac_ct_RANLIB" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231 if test "x$ac_ct_RANLIB" = x; then
6232 RANLIB=":"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235 yes:)
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238 ac_tool_warned=yes ;;
6239 esac
6240 RANLIB=$ac_ct_RANLIB
6241 fi
6242 else
6243 RANLIB="$ac_cv_prog_RANLIB"
6244 fi
6245
6246 test -z "$RANLIB" && RANLIB=:
6247 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6248 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6249 RANLIB="$RANLIB $plugin_option"
6250 fi
6251 fi
6252
6253
6254
6255
6256
6257
6258 # Determine commands to create old-style static archives.
6259 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6260 old_postinstall_cmds='chmod 644 $oldlib'
6261 old_postuninstall_cmds=
6262
6263 if test -n "$RANLIB"; then
6264 case $host_os in
6265 openbsd*)
6266 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6267 ;;
6268 *)
6269 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6270 ;;
6271 esac
6272 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6273 fi
6274
6275 case $host_os in
6276 darwin*)
6277 lock_old_archive_extraction=yes ;;
6278 *)
6279 lock_old_archive_extraction=no ;;
6280 esac
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
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320 # If no C compiler was specified, use CC.
6321 LTCC=${LTCC-"$CC"}
6322
6323 # If no C compiler flags were specified, use CFLAGS.
6324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6325
6326 # Allow CC to be a program name with arguments.
6327 compiler=$CC
6328
6329
6330 # Check for command to grab the raw symbol name followed by C symbol from nm.
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6332 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6333 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336
6337 # These are sane defaults that work on at least a few old systems.
6338 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6339
6340 # Character class describing NM global symbol codes.
6341 symcode='[BCDEGRST]'
6342
6343 # Regexp to match symbols that can be accessed directly from C.
6344 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6345
6346 # Define system-specific variables.
6347 case $host_os in
6348 aix*)
6349 symcode='[BCDT]'
6350 ;;
6351 cygwin* | mingw* | pw32* | cegcc*)
6352 symcode='[ABCDGISTW]'
6353 ;;
6354 hpux*)
6355 if test "$host_cpu" = ia64; then
6356 symcode='[ABCDEGRST]'
6357 fi
6358 ;;
6359 irix* | nonstopux*)
6360 symcode='[BCDEGRST]'
6361 ;;
6362 osf*)
6363 symcode='[BCDEGQRST]'
6364 ;;
6365 solaris*)
6366 symcode='[BCDRT]'
6367 ;;
6368 sco3.2v5*)
6369 symcode='[DT]'
6370 ;;
6371 sysv4.2uw2*)
6372 symcode='[DT]'
6373 ;;
6374 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6375 symcode='[ABDT]'
6376 ;;
6377 sysv4)
6378 symcode='[DFNSTU]'
6379 ;;
6380 esac
6381
6382 # If we're using GNU nm, then use its standard symbol codes.
6383 case `$NM -V 2>&1` in
6384 *GNU* | *'with BFD'*)
6385 symcode='[ABCDGIRSTW]' ;;
6386 esac
6387
6388 # Transform an extracted symbol line into a proper C declaration.
6389 # Some systems (esp. on ia64) link data and code symbols differently,
6390 # so use this general approach.
6391 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6392
6393 # Transform an extracted symbol line into symbol name and symbol address
6394 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6395 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'"
6396
6397 # Handle CRLF in mingw tool chain
6398 opt_cr=
6399 case $build_os in
6400 mingw*)
6401 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6402 ;;
6403 esac
6404
6405 # Try without a prefix underscore, then with it.
6406 for ac_symprfx in "" "_"; do
6407
6408 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6409 symxfrm="\\1 $ac_symprfx\\2 \\2"
6410
6411 # Write the raw and C identifiers.
6412 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6413 # Fake it for dumpbin and say T for any non-static function
6414 # and D for any global variable.
6415 # Also find C++ and __fastcall symbols from MSVC++,
6416 # which start with @ or ?.
6417 lt_cv_sys_global_symbol_pipe="$AWK '"\
6418 " {last_section=section; section=\$ 3};"\
6419 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6420 " \$ 0!~/External *\|/{next};"\
6421 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6422 " {if(hide[section]) next};"\
6423 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6424 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6425 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6426 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6427 " ' prfx=^$ac_symprfx"
6428 else
6429 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6430 fi
6431
6432 # Check to see that the pipe works correctly.
6433 pipe_works=no
6434
6435 rm -f conftest*
6436 cat > conftest.$ac_ext <<_LT_EOF
6437 #ifdef __cplusplus
6438 extern "C" {
6439 #endif
6440 char nm_test_var;
6441 void nm_test_func(void);
6442 void nm_test_func(void){}
6443 #ifdef __cplusplus
6444 }
6445 #endif
6446 int main(){nm_test_var='a';nm_test_func();return(0);}
6447 _LT_EOF
6448
6449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6450 (eval $ac_compile) 2>&5
6451 ac_status=$?
6452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6453 test $ac_status = 0; }; then
6454 # Now try to grab the symbols.
6455 nlist=conftest.nm
6456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6457 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6458 ac_status=$?
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460 test $ac_status = 0; } && test -s "$nlist"; then
6461 # Try sorting and uniquifying the output.
6462 if sort "$nlist" | uniq > "$nlist"T; then
6463 mv -f "$nlist"T "$nlist"
6464 else
6465 rm -f "$nlist"T
6466 fi
6467
6468 # Make sure that we snagged all the symbols we need.
6469 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6470 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6471 cat <<_LT_EOF > conftest.$ac_ext
6472 #ifdef __cplusplus
6473 extern "C" {
6474 #endif
6475
6476 _LT_EOF
6477 # Now generate the symbol file.
6478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6479
6480 cat <<_LT_EOF >> conftest.$ac_ext
6481
6482 /* The mapping between symbol names and symbols. */
6483 const struct {
6484 const char *name;
6485 void *address;
6486 }
6487 lt__PROGRAM__LTX_preloaded_symbols[] =
6488 {
6489 { "@PROGRAM@", (void *) 0 },
6490 _LT_EOF
6491 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6492 cat <<\_LT_EOF >> conftest.$ac_ext
6493 {0, (void *) 0}
6494 };
6495
6496 /* This works around a problem in FreeBSD linker */
6497 #ifdef FREEBSD_WORKAROUND
6498 static const void *lt_preloaded_setup() {
6499 return lt__PROGRAM__LTX_preloaded_symbols;
6500 }
6501 #endif
6502
6503 #ifdef __cplusplus
6504 }
6505 #endif
6506 _LT_EOF
6507 # Now try linking the two files.
6508 mv conftest.$ac_objext conftstm.$ac_objext
6509 lt_save_LIBS="$LIBS"
6510 lt_save_CFLAGS="$CFLAGS"
6511 LIBS="conftstm.$ac_objext"
6512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6514 (eval $ac_link) 2>&5
6515 ac_status=$?
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6518 pipe_works=yes
6519 fi
6520 LIBS="$lt_save_LIBS"
6521 CFLAGS="$lt_save_CFLAGS"
6522 else
6523 echo "cannot find nm_test_func in $nlist" >&5
6524 fi
6525 else
6526 echo "cannot find nm_test_var in $nlist" >&5
6527 fi
6528 else
6529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6530 fi
6531 else
6532 echo "$progname: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6534 fi
6535 rm -rf conftest* conftst*
6536
6537 # Do not use the global_symbol_pipe unless it works.
6538 if test "$pipe_works" = yes; then
6539 break
6540 else
6541 lt_cv_sys_global_symbol_pipe=
6542 fi
6543 done
6544
6545 fi
6546
6547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548 lt_cv_sys_global_symbol_to_cdecl=
6549 fi
6550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6552 $as_echo "failed" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6555 $as_echo "ok" >&6; }
6556 fi
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579 # Check whether --enable-libtool-lock was given.
6580 if test "${enable_libtool_lock+set}" = set; then :
6581 enableval=$enable_libtool_lock;
6582 fi
6583
6584 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6585
6586 # Some flags need to be propagated to the compiler or linker for good
6587 # libtool support.
6588 case $host in
6589 ia64-*-hpux*)
6590 # Find out which ABI we are using.
6591 echo 'int i;' > conftest.$ac_ext
6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593 (eval $ac_compile) 2>&5
6594 ac_status=$?
6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596 test $ac_status = 0; }; then
6597 case `/usr/bin/file conftest.$ac_objext` in
6598 *ELF-32*)
6599 HPUX_IA64_MODE="32"
6600 ;;
6601 *ELF-64*)
6602 HPUX_IA64_MODE="64"
6603 ;;
6604 esac
6605 fi
6606 rm -rf conftest*
6607 ;;
6608 *-*-irix6*)
6609 # Find out which ABI we are using.
6610 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6612 (eval $ac_compile) 2>&5
6613 ac_status=$?
6614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6615 test $ac_status = 0; }; then
6616 if test "$lt_cv_prog_gnu_ld" = yes; then
6617 case `/usr/bin/file conftest.$ac_objext` in
6618 *32-bit*)
6619 LD="${LD-ld} -melf32bsmip"
6620 ;;
6621 *N32*)
6622 LD="${LD-ld} -melf32bmipn32"
6623 ;;
6624 *64-bit*)
6625 LD="${LD-ld} -melf64bmip"
6626 ;;
6627 esac
6628 else
6629 case `/usr/bin/file conftest.$ac_objext` in
6630 *32-bit*)
6631 LD="${LD-ld} -32"
6632 ;;
6633 *N32*)
6634 LD="${LD-ld} -n32"
6635 ;;
6636 *64-bit*)
6637 LD="${LD-ld} -64"
6638 ;;
6639 esac
6640 fi
6641 fi
6642 rm -rf conftest*
6643 ;;
6644
6645 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6646 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6647 # Find out which ABI we are using.
6648 echo 'int i;' > conftest.$ac_ext
6649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6650 (eval $ac_compile) 2>&5
6651 ac_status=$?
6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653 test $ac_status = 0; }; then
6654 case `/usr/bin/file conftest.o` in
6655 *32-bit*)
6656 case $host in
6657 x86_64-*kfreebsd*-gnu)
6658 LD="${LD-ld} -m elf_i386_fbsd"
6659 ;;
6660 x86_64-*linux*)
6661 case `/usr/bin/file conftest.o` in
6662 *x86-64*)
6663 LD="${LD-ld} -m elf32_x86_64"
6664 ;;
6665 *)
6666 LD="${LD-ld} -m elf_i386"
6667 ;;
6668 esac
6669 ;;
6670 powerpc64le-*linux*)
6671 LD="${LD-ld} -m elf32lppclinux"
6672 ;;
6673 powerpc64-*linux*)
6674 LD="${LD-ld} -m elf32ppclinux"
6675 ;;
6676 s390x-*linux*)
6677 LD="${LD-ld} -m elf_s390"
6678 ;;
6679 sparc64-*linux*)
6680 LD="${LD-ld} -m elf32_sparc"
6681 ;;
6682 esac
6683 ;;
6684 *64-bit*)
6685 case $host in
6686 x86_64-*kfreebsd*-gnu)
6687 LD="${LD-ld} -m elf_x86_64_fbsd"
6688 ;;
6689 x86_64-*linux*)
6690 LD="${LD-ld} -m elf_x86_64"
6691 ;;
6692 powerpcle-*linux*)
6693 LD="${LD-ld} -m elf64lppc"
6694 ;;
6695 powerpc-*linux*)
6696 LD="${LD-ld} -m elf64ppc"
6697 ;;
6698 s390*-*linux*|s390*-*tpf*)
6699 LD="${LD-ld} -m elf64_s390"
6700 ;;
6701 sparc*-*linux*)
6702 LD="${LD-ld} -m elf64_sparc"
6703 ;;
6704 esac
6705 ;;
6706 esac
6707 fi
6708 rm -rf conftest*
6709 ;;
6710
6711 *-*-sco3.2v5*)
6712 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6713 SAVE_CFLAGS="$CFLAGS"
6714 CFLAGS="$CFLAGS -belf"
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6716 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6717 if ${lt_cv_cc_needs_belf+:} false; then :
6718 $as_echo_n "(cached) " >&6
6719 else
6720 ac_ext=c
6721 ac_cpp='$CPP $CPPFLAGS'
6722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6725
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728
6729 int
6730 main ()
6731 {
6732
6733 ;
6734 return 0;
6735 }
6736 _ACEOF
6737 if ac_fn_c_try_link "$LINENO"; then :
6738 lt_cv_cc_needs_belf=yes
6739 else
6740 lt_cv_cc_needs_belf=no
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext \
6743 conftest$ac_exeext conftest.$ac_ext
6744 ac_ext=c
6745 ac_cpp='$CPP $CPPFLAGS'
6746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6749
6750 fi
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6752 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6753 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6754 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6755 CFLAGS="$SAVE_CFLAGS"
6756 fi
6757 ;;
6758 sparc*-*solaris*)
6759 # Find out which ABI we are using.
6760 echo 'int i;' > conftest.$ac_ext
6761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6762 (eval $ac_compile) 2>&5
6763 ac_status=$?
6764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; }; then
6766 case `/usr/bin/file conftest.o` in
6767 *64-bit*)
6768 case $lt_cv_prog_gnu_ld in
6769 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6770 *)
6771 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6772 LD="${LD-ld} -64"
6773 fi
6774 ;;
6775 esac
6776 ;;
6777 esac
6778 fi
6779 rm -rf conftest*
6780 ;;
6781 esac
6782
6783 need_locks="$enable_libtool_lock"
6784
6785
6786 case $host_os in
6787 rhapsody* | darwin*)
6788 if test -n "$ac_tool_prefix"; then
6789 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6790 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792 $as_echo_n "checking for $ac_word... " >&6; }
6793 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 if test -n "$DSYMUTIL"; then
6797 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6798 else
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6801 do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810 done
6811 done
6812 IFS=$as_save_IFS
6813
6814 fi
6815 fi
6816 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6817 if test -n "$DSYMUTIL"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6819 $as_echo "$DSYMUTIL" >&6; }
6820 else
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822 $as_echo "no" >&6; }
6823 fi
6824
6825
6826 fi
6827 if test -z "$ac_cv_prog_DSYMUTIL"; then
6828 ac_ct_DSYMUTIL=$DSYMUTIL
6829 # Extract the first word of "dsymutil", so it can be a program name with args.
6830 set dummy dsymutil; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836 if test -n "$ac_ct_DSYMUTIL"; then
6837 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854 fi
6855 fi
6856 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6857 if test -n "$ac_ct_DSYMUTIL"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6859 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6860 else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6863 fi
6864
6865 if test "x$ac_ct_DSYMUTIL" = x; then
6866 DSYMUTIL=":"
6867 else
6868 case $cross_compiling:$ac_tool_warned in
6869 yes:)
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872 ac_tool_warned=yes ;;
6873 esac
6874 DSYMUTIL=$ac_ct_DSYMUTIL
6875 fi
6876 else
6877 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6878 fi
6879
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_prog_NMEDIT+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 if test -n "$NMEDIT"; then
6889 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6890 else
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902 done
6903 done
6904 IFS=$as_save_IFS
6905
6906 fi
6907 fi
6908 NMEDIT=$ac_cv_prog_NMEDIT
6909 if test -n "$NMEDIT"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6911 $as_echo "$NMEDIT" >&6; }
6912 else
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6915 fi
6916
6917
6918 fi
6919 if test -z "$ac_cv_prog_NMEDIT"; then
6920 ac_ct_NMEDIT=$NMEDIT
6921 # Extract the first word of "nmedit", so it can be a program name with args.
6922 set dummy nmedit; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 if test -n "$ac_ct_NMEDIT"; then
6929 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6941 fi
6942 done
6943 done
6944 IFS=$as_save_IFS
6945
6946 fi
6947 fi
6948 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6949 if test -n "$ac_ct_NMEDIT"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6951 $as_echo "$ac_ct_NMEDIT" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6955 fi
6956
6957 if test "x$ac_ct_NMEDIT" = x; then
6958 NMEDIT=":"
6959 else
6960 case $cross_compiling:$ac_tool_warned in
6961 yes:)
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964 ac_tool_warned=yes ;;
6965 esac
6966 NMEDIT=$ac_ct_NMEDIT
6967 fi
6968 else
6969 NMEDIT="$ac_cv_prog_NMEDIT"
6970 fi
6971
6972 if test -n "$ac_tool_prefix"; then
6973 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_LIPO+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 if test -n "$LIPO"; then
6981 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 LIPO=$ac_cv_prog_LIPO
7001 if test -n "$LIPO"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7003 $as_echo "$LIPO" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009
7010 fi
7011 if test -z "$ac_cv_prog_LIPO"; then
7012 ac_ct_LIPO=$LIPO
7013 # Extract the first word of "lipo", so it can be a program name with args.
7014 set dummy lipo; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 if test -n "$ac_ct_LIPO"; then
7021 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_ac_ct_LIPO="lipo"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038 fi
7039 fi
7040 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7041 if test -n "$ac_ct_LIPO"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7043 $as_echo "$ac_ct_LIPO" >&6; }
7044 else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7047 fi
7048
7049 if test "x$ac_ct_LIPO" = x; then
7050 LIPO=":"
7051 else
7052 case $cross_compiling:$ac_tool_warned in
7053 yes:)
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7057 esac
7058 LIPO=$ac_ct_LIPO
7059 fi
7060 else
7061 LIPO="$ac_cv_prog_LIPO"
7062 fi
7063
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}otool; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_OTOOL+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 if test -n "$OTOOL"; then
7073 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 OTOOL=$ac_cv_prog_OTOOL
7093 if test -n "$OTOOL"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7095 $as_echo "$OTOOL" >&6; }
7096 else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101
7102 fi
7103 if test -z "$ac_cv_prog_OTOOL"; then
7104 ac_ct_OTOOL=$OTOOL
7105 # Extract the first word of "otool", so it can be a program name with args.
7106 set dummy otool; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 if test -n "$ac_ct_OTOOL"; then
7113 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_ac_ct_OTOOL="otool"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130 fi
7131 fi
7132 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7133 if test -n "$ac_ct_OTOOL"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7135 $as_echo "$ac_ct_OTOOL" >&6; }
7136 else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7139 fi
7140
7141 if test "x$ac_ct_OTOOL" = x; then
7142 OTOOL=":"
7143 else
7144 case $cross_compiling:$ac_tool_warned in
7145 yes:)
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148 ac_tool_warned=yes ;;
7149 esac
7150 OTOOL=$ac_ct_OTOOL
7151 fi
7152 else
7153 OTOOL="$ac_cv_prog_OTOOL"
7154 fi
7155
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_OTOOL64+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$OTOOL64"; then
7165 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7177 fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 OTOOL64=$ac_cv_prog_OTOOL64
7185 if test -n "$OTOOL64"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7187 $as_echo "$OTOOL64" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193
7194 fi
7195 if test -z "$ac_cv_prog_OTOOL64"; then
7196 ac_ct_OTOOL64=$OTOOL64
7197 # Extract the first word of "otool64", so it can be a program name with args.
7198 set dummy otool64; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 if test -n "$ac_ct_OTOOL64"; then
7205 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_OTOOL64="otool64"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7225 if test -n "$ac_ct_OTOOL64"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7227 $as_echo "$ac_ct_OTOOL64" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233 if test "x$ac_ct_OTOOL64" = x; then
7234 OTOOL64=":"
7235 else
7236 case $cross_compiling:$ac_tool_warned in
7237 yes:)
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7241 esac
7242 OTOOL64=$ac_ct_OTOOL64
7243 fi
7244 else
7245 OTOOL64="$ac_cv_prog_OTOOL64"
7246 fi
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7275 $as_echo_n "checking for -single_module linker flag... " >&6; }
7276 if ${lt_cv_apple_cc_single_mod+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 lt_cv_apple_cc_single_mod=no
7280 if test -z "${LT_MULTI_MODULE}"; then
7281 # By default we will add the -single_module flag. You can override
7282 # by either setting the environment variable LT_MULTI_MODULE
7283 # non-empty at configure time, or by adding -multi_module to the
7284 # link flags.
7285 rm -rf libconftest.dylib*
7286 echo "int foo(void){return 1;}" > conftest.c
7287 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7288 -dynamiclib -Wl,-single_module conftest.c" >&5
7289 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7290 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7291 _lt_result=$?
7292 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7293 lt_cv_apple_cc_single_mod=yes
7294 else
7295 cat conftest.err >&5
7296 fi
7297 rm -rf libconftest.dylib*
7298 rm -f conftest.*
7299 fi
7300 fi
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7302 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7304 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7305 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 lt_cv_ld_exported_symbols_list=no
7309 save_LDFLAGS=$LDFLAGS
7310 echo "_main" > conftest.sym
7311 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314
7315 int
7316 main ()
7317 {
7318
7319 ;
7320 return 0;
7321 }
7322 _ACEOF
7323 if ac_fn_c_try_link "$LINENO"; then :
7324 lt_cv_ld_exported_symbols_list=yes
7325 else
7326 lt_cv_ld_exported_symbols_list=no
7327 fi
7328 rm -f core conftest.err conftest.$ac_objext \
7329 conftest$ac_exeext conftest.$ac_ext
7330 LDFLAGS="$save_LDFLAGS"
7331
7332 fi
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7334 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7336 $as_echo_n "checking for -force_load linker flag... " >&6; }
7337 if ${lt_cv_ld_force_load+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 lt_cv_ld_force_load=no
7341 cat > conftest.c << _LT_EOF
7342 int forced_loaded() { return 2;}
7343 _LT_EOF
7344 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7345 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7346 echo "$AR cru libconftest.a conftest.o" >&5
7347 $AR cru libconftest.a conftest.o 2>&5
7348 cat > conftest.c << _LT_EOF
7349 int main() { return 0;}
7350 _LT_EOF
7351 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7352 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7353 _lt_result=$?
7354 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7355 lt_cv_ld_force_load=yes
7356 else
7357 cat conftest.err >&5
7358 fi
7359 rm -f conftest.err libconftest.a conftest conftest.c
7360 rm -rf conftest.dSYM
7361
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7364 $as_echo "$lt_cv_ld_force_load" >&6; }
7365 case $host_os in
7366 rhapsody* | darwin1.[012])
7367 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7368 darwin1.*)
7369 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7370 darwin*) # darwin 5.x on
7371 # if running on 10.5 or later, the deployment target defaults
7372 # to the OS version, if on x86, and 10.4, the deployment
7373 # target defaults to 10.4. Don't you love it?
7374 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7375 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7376 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7377 10.[012][,.]*)
7378 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7379 10.*)
7380 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7381 esac
7382 ;;
7383 esac
7384 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7385 _lt_dar_single_mod='$single_module'
7386 fi
7387 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7388 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7389 else
7390 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7391 fi
7392 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7393 _lt_dsymutil='~$DSYMUTIL $lib || :'
7394 else
7395 _lt_dsymutil=
7396 fi
7397 ;;
7398 esac
7399
7400 for ac_header in dlfcn.h
7401 do :
7402 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7403 "
7404 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7405 cat >>confdefs.h <<_ACEOF
7406 #define HAVE_DLFCN_H 1
7407 _ACEOF
7408
7409 fi
7410
7411 done
7412
7413
7414
7415
7416
7417 # Set options
7418
7419
7420
7421 enable_dlopen=no
7422
7423
7424 enable_win32_dll=no
7425
7426
7427
7428 # Check whether --enable-static was given.
7429 if test "${enable_static+set}" = set; then :
7430 enableval=$enable_static; p=${PACKAGE-default}
7431 case $enableval in
7432 yes) enable_static=yes ;;
7433 no) enable_static=no ;;
7434 *)
7435 enable_static=no
7436 # Look at the argument we got. We use all the common list separators.
7437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7438 for pkg in $enableval; do
7439 IFS="$lt_save_ifs"
7440 if test "X$pkg" = "X$p"; then
7441 enable_static=yes
7442 fi
7443 done
7444 IFS="$lt_save_ifs"
7445 ;;
7446 esac
7447 else
7448 enable_static=yes
7449 fi
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 # Check whether --with-pic was given.
7461 if test "${with_pic+set}" = set; then :
7462 withval=$with_pic; pic_mode="$withval"
7463 else
7464 pic_mode=default
7465 fi
7466
7467
7468 test -z "$pic_mode" && pic_mode=default
7469
7470
7471
7472
7473
7474
7475
7476 # Check whether --enable-fast-install was given.
7477 if test "${enable_fast_install+set}" = set; then :
7478 enableval=$enable_fast_install; p=${PACKAGE-default}
7479 case $enableval in
7480 yes) enable_fast_install=yes ;;
7481 no) enable_fast_install=no ;;
7482 *)
7483 enable_fast_install=no
7484 # Look at the argument we got. We use all the common list separators.
7485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7486 for pkg in $enableval; do
7487 IFS="$lt_save_ifs"
7488 if test "X$pkg" = "X$p"; then
7489 enable_fast_install=yes
7490 fi
7491 done
7492 IFS="$lt_save_ifs"
7493 ;;
7494 esac
7495 else
7496 enable_fast_install=yes
7497 fi
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509 # This can be used to rebuild libtool when needed
7510 LIBTOOL_DEPS="$ltmain"
7511
7512 # Always use our own libtool.
7513 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540 test -z "$LN_S" && LN_S="ln -s"
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555 if test -n "${ZSH_VERSION+set}" ; then
7556 setopt NO_GLOB_SUBST
7557 fi
7558
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7560 $as_echo_n "checking for objdir... " >&6; }
7561 if ${lt_cv_objdir+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 rm -f .libs 2>/dev/null
7565 mkdir .libs 2>/dev/null
7566 if test -d .libs; then
7567 lt_cv_objdir=.libs
7568 else
7569 # MS-DOS does not allow filenames that begin with a dot.
7570 lt_cv_objdir=_libs
7571 fi
7572 rmdir .libs 2>/dev/null
7573 fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7575 $as_echo "$lt_cv_objdir" >&6; }
7576 objdir=$lt_cv_objdir
7577
7578
7579
7580
7581
7582 cat >>confdefs.h <<_ACEOF
7583 #define LT_OBJDIR "$lt_cv_objdir/"
7584 _ACEOF
7585
7586
7587
7588
7589 case $host_os in
7590 aix3*)
7591 # AIX sometimes has problems with the GCC collect2 program. For some
7592 # reason, if we set the COLLECT_NAMES environment variable, the problems
7593 # vanish in a puff of smoke.
7594 if test "X${COLLECT_NAMES+set}" != Xset; then
7595 COLLECT_NAMES=
7596 export COLLECT_NAMES
7597 fi
7598 ;;
7599 esac
7600
7601 # Global variables:
7602 ofile=libtool
7603 can_build_shared=yes
7604
7605 # All known linkers require a `.a' archive for static linking (except MSVC,
7606 # which needs '.lib').
7607 libext=a
7608
7609 with_gnu_ld="$lt_cv_prog_gnu_ld"
7610
7611 old_CC="$CC"
7612 old_CFLAGS="$CFLAGS"
7613
7614 # Set sane defaults for various variables
7615 test -z "$CC" && CC=cc
7616 test -z "$LTCC" && LTCC=$CC
7617 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7618 test -z "$LD" && LD=ld
7619 test -z "$ac_objext" && ac_objext=o
7620
7621 for cc_temp in $compiler""; do
7622 case $cc_temp in
7623 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7624 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7625 \-*) ;;
7626 *) break;;
7627 esac
7628 done
7629 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7630
7631
7632 # Only perform the check for file, if the check method requires it
7633 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7634 case $deplibs_check_method in
7635 file_magic*)
7636 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7638 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7639 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 case $MAGIC_CMD in
7643 [\\/*] | ?:[\\/]*)
7644 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7645 ;;
7646 *)
7647 lt_save_MAGIC_CMD="$MAGIC_CMD"
7648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7649 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7650 for ac_dir in $ac_dummy; do
7651 IFS="$lt_save_ifs"
7652 test -z "$ac_dir" && ac_dir=.
7653 if test -f $ac_dir/${ac_tool_prefix}file; then
7654 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7655 if test -n "$file_magic_test_file"; then
7656 case $deplibs_check_method in
7657 "file_magic "*)
7658 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7659 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7661 $EGREP "$file_magic_regex" > /dev/null; then
7662 :
7663 else
7664 cat <<_LT_EOF 1>&2
7665
7666 *** Warning: the command libtool uses to detect shared libraries,
7667 *** $file_magic_cmd, produces output that libtool cannot recognize.
7668 *** The result is that libtool may fail to recognize shared libraries
7669 *** as such. This will affect the creation of libtool libraries that
7670 *** depend on shared libraries, but programs linked with such libtool
7671 *** libraries will work regardless of this problem. Nevertheless, you
7672 *** may want to report the problem to your system manager and/or to
7673 *** bug-libtool@gnu.org
7674
7675 _LT_EOF
7676 fi ;;
7677 esac
7678 fi
7679 break
7680 fi
7681 done
7682 IFS="$lt_save_ifs"
7683 MAGIC_CMD="$lt_save_MAGIC_CMD"
7684 ;;
7685 esac
7686 fi
7687
7688 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7689 if test -n "$MAGIC_CMD"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7691 $as_echo "$MAGIC_CMD" >&6; }
7692 else
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697
7698
7699
7700
7701 if test -z "$lt_cv_path_MAGIC_CMD"; then
7702 if test -n "$ac_tool_prefix"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7704 $as_echo_n "checking for file... " >&6; }
7705 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 case $MAGIC_CMD in
7709 [\\/*] | ?:[\\/]*)
7710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7711 ;;
7712 *)
7713 lt_save_MAGIC_CMD="$MAGIC_CMD"
7714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7715 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7716 for ac_dir in $ac_dummy; do
7717 IFS="$lt_save_ifs"
7718 test -z "$ac_dir" && ac_dir=.
7719 if test -f $ac_dir/file; then
7720 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7721 if test -n "$file_magic_test_file"; then
7722 case $deplibs_check_method in
7723 "file_magic "*)
7724 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7726 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7727 $EGREP "$file_magic_regex" > /dev/null; then
7728 :
7729 else
7730 cat <<_LT_EOF 1>&2
7731
7732 *** Warning: the command libtool uses to detect shared libraries,
7733 *** $file_magic_cmd, produces output that libtool cannot recognize.
7734 *** The result is that libtool may fail to recognize shared libraries
7735 *** as such. This will affect the creation of libtool libraries that
7736 *** depend on shared libraries, but programs linked with such libtool
7737 *** libraries will work regardless of this problem. Nevertheless, you
7738 *** may want to report the problem to your system manager and/or to
7739 *** bug-libtool@gnu.org
7740
7741 _LT_EOF
7742 fi ;;
7743 esac
7744 fi
7745 break
7746 fi
7747 done
7748 IFS="$lt_save_ifs"
7749 MAGIC_CMD="$lt_save_MAGIC_CMD"
7750 ;;
7751 esac
7752 fi
7753
7754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7755 if test -n "$MAGIC_CMD"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7757 $as_echo "$MAGIC_CMD" >&6; }
7758 else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7761 fi
7762
7763
7764 else
7765 MAGIC_CMD=:
7766 fi
7767 fi
7768
7769 fi
7770 ;;
7771 esac
7772
7773 # Use C for the default configuration in the libtool script
7774
7775 lt_save_CC="$CC"
7776 ac_ext=c
7777 ac_cpp='$CPP $CPPFLAGS'
7778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781
7782
7783 # Source file extension for C test sources.
7784 ac_ext=c
7785
7786 # Object file extension for compiled C test sources.
7787 objext=o
7788 objext=$objext
7789
7790 # Code to be used in simple compile tests
7791 lt_simple_compile_test_code="int some_variable = 0;"
7792
7793 # Code to be used in simple link tests
7794 lt_simple_link_test_code='int main(){return(0);}'
7795
7796
7797
7798
7799
7800
7801
7802 # If no C compiler was specified, use CC.
7803 LTCC=${LTCC-"$CC"}
7804
7805 # If no C compiler flags were specified, use CFLAGS.
7806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7807
7808 # Allow CC to be a program name with arguments.
7809 compiler=$CC
7810
7811 # Save the default compiler, since it gets overwritten when the other
7812 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7813 compiler_DEFAULT=$CC
7814
7815 # save warnings/boilerplate of simple test code
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7819 _lt_compiler_boilerplate=`cat conftest.err`
7820 $RM conftest*
7821
7822 ac_outfile=conftest.$ac_objext
7823 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7825 _lt_linker_boilerplate=`cat conftest.err`
7826 $RM -r conftest*
7827
7828
7829 ## CAVEAT EMPTOR:
7830 ## There is no encapsulation within the following macros, do not change
7831 ## the running order or otherwise move them around unless you know exactly
7832 ## what you are doing...
7833 if test -n "$compiler"; then
7834
7835 lt_prog_compiler_no_builtin_flag=
7836
7837 if test "$GCC" = yes; then
7838 case $cc_basename in
7839 nvcc*)
7840 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7841 *)
7842 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7843 esac
7844
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7846 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7847 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 lt_cv_prog_compiler_rtti_exceptions=no
7851 ac_outfile=conftest.$ac_objext
7852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7853 lt_compiler_flag="-fno-rtti -fno-exceptions"
7854 # Insert the option either (1) after the last *FLAGS variable, or
7855 # (2) before a word containing "conftest.", or (3) at the end.
7856 # Note that $ac_compile itself does not contain backslashes and begins
7857 # with a dollar sign (not a hyphen), so the echo should work correctly.
7858 # The option is referenced via a variable to avoid confusing sed.
7859 lt_compile=`echo "$ac_compile" | $SED \
7860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7862 -e 's:$: $lt_compiler_flag:'`
7863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7864 (eval "$lt_compile" 2>conftest.err)
7865 ac_status=$?
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 if (exit $ac_status) && test -s "$ac_outfile"; then
7869 # The compiler can only warn and ignore the option if not recognized
7870 # So say no if there are warnings other than the usual output.
7871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7872 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7873 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7874 lt_cv_prog_compiler_rtti_exceptions=yes
7875 fi
7876 fi
7877 $RM conftest*
7878
7879 fi
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7881 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7882
7883 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7884 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7885 else
7886 :
7887 fi
7888
7889 fi
7890
7891
7892
7893
7894
7895
7896 lt_prog_compiler_wl=
7897 lt_prog_compiler_pic=
7898 lt_prog_compiler_static=
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7901 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7902
7903 if test "$GCC" = yes; then
7904 lt_prog_compiler_wl='-Wl,'
7905 lt_prog_compiler_static='-static'
7906
7907 case $host_os in
7908 aix*)
7909 # All AIX code is PIC.
7910 if test "$host_cpu" = ia64; then
7911 # AIX 5 now supports IA64 processor
7912 lt_prog_compiler_static='-Bstatic'
7913 fi
7914 lt_prog_compiler_pic='-fPIC'
7915 ;;
7916
7917 amigaos*)
7918 case $host_cpu in
7919 powerpc)
7920 # see comment about AmigaOS4 .so support
7921 lt_prog_compiler_pic='-fPIC'
7922 ;;
7923 m68k)
7924 # FIXME: we need at least 68020 code to build shared libraries, but
7925 # adding the `-m68020' flag to GCC prevents building anything better,
7926 # like `-m68040'.
7927 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7928 ;;
7929 esac
7930 ;;
7931
7932 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7933 # PIC is the default for these OSes.
7934 ;;
7935
7936 mingw* | cygwin* | pw32* | os2* | cegcc*)
7937 # This hack is so that the source file can tell whether it is being
7938 # built for inclusion in a dll (and should export symbols for example).
7939 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7940 # (--disable-auto-import) libraries
7941 lt_prog_compiler_pic='-DDLL_EXPORT'
7942 ;;
7943
7944 darwin* | rhapsody*)
7945 # PIC is the default on this platform
7946 # Common symbols not allowed in MH_DYLIB files
7947 lt_prog_compiler_pic='-fno-common'
7948 ;;
7949
7950 haiku*)
7951 # PIC is the default for Haiku.
7952 # The "-static" flag exists, but is broken.
7953 lt_prog_compiler_static=
7954 ;;
7955
7956 hpux*)
7957 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7958 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7959 # sets the default TLS model and affects inlining.
7960 case $host_cpu in
7961 hppa*64*)
7962 # +Z the default
7963 ;;
7964 *)
7965 lt_prog_compiler_pic='-fPIC'
7966 ;;
7967 esac
7968 ;;
7969
7970 interix[3-9]*)
7971 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7972 # Instead, we relocate shared libraries at runtime.
7973 ;;
7974
7975 msdosdjgpp*)
7976 # Just because we use GCC doesn't mean we suddenly get shared libraries
7977 # on systems that don't support them.
7978 lt_prog_compiler_can_build_shared=no
7979 enable_shared=no
7980 ;;
7981
7982 *nto* | *qnx*)
7983 # QNX uses GNU C++, but need to define -shared option too, otherwise
7984 # it will coredump.
7985 lt_prog_compiler_pic='-fPIC -shared'
7986 ;;
7987
7988 sysv4*MP*)
7989 if test -d /usr/nec; then
7990 lt_prog_compiler_pic=-Kconform_pic
7991 fi
7992 ;;
7993
7994 *)
7995 lt_prog_compiler_pic='-fPIC'
7996 ;;
7997 esac
7998
7999 case $cc_basename in
8000 nvcc*) # Cuda Compiler Driver 2.2
8001 lt_prog_compiler_wl='-Xlinker '
8002 lt_prog_compiler_pic='-Xcompiler -fPIC'
8003 ;;
8004 esac
8005 else
8006 # PORTME Check for flag to pass linker flags through the system compiler.
8007 case $host_os in
8008 aix*)
8009 lt_prog_compiler_wl='-Wl,'
8010 if test "$host_cpu" = ia64; then
8011 # AIX 5 now supports IA64 processor
8012 lt_prog_compiler_static='-Bstatic'
8013 else
8014 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8015 fi
8016 ;;
8017
8018 mingw* | cygwin* | pw32* | os2* | cegcc*)
8019 # This hack is so that the source file can tell whether it is being
8020 # built for inclusion in a dll (and should export symbols for example).
8021 lt_prog_compiler_pic='-DDLL_EXPORT'
8022 ;;
8023
8024 hpux9* | hpux10* | hpux11*)
8025 lt_prog_compiler_wl='-Wl,'
8026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8027 # not for PA HP-UX.
8028 case $host_cpu in
8029 hppa*64*|ia64*)
8030 # +Z the default
8031 ;;
8032 *)
8033 lt_prog_compiler_pic='+Z'
8034 ;;
8035 esac
8036 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8037 lt_prog_compiler_static='${wl}-a ${wl}archive'
8038 ;;
8039
8040 irix5* | irix6* | nonstopux*)
8041 lt_prog_compiler_wl='-Wl,'
8042 # PIC (with -KPIC) is the default.
8043 lt_prog_compiler_static='-non_shared'
8044 ;;
8045
8046 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8047 case $cc_basename in
8048 # old Intel for x86_64 which still supported -KPIC.
8049 ecc*)
8050 lt_prog_compiler_wl='-Wl,'
8051 lt_prog_compiler_pic='-KPIC'
8052 lt_prog_compiler_static='-static'
8053 ;;
8054 # icc used to be incompatible with GCC.
8055 # ICC 10 doesn't accept -KPIC any more.
8056 icc* | ifort*)
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-fPIC'
8059 lt_prog_compiler_static='-static'
8060 ;;
8061 # Lahey Fortran 8.1.
8062 lf95*)
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='--shared'
8065 lt_prog_compiler_static='--static'
8066 ;;
8067 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8068 # Portland Group compilers (*not* the Pentium gcc compiler,
8069 # which looks to be a dead project)
8070 lt_prog_compiler_wl='-Wl,'
8071 lt_prog_compiler_pic='-fpic'
8072 lt_prog_compiler_static='-Bstatic'
8073 ;;
8074 ccc*)
8075 lt_prog_compiler_wl='-Wl,'
8076 # All Alpha code is PIC.
8077 lt_prog_compiler_static='-non_shared'
8078 ;;
8079 xl* | bgxl* | bgf* | mpixl*)
8080 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_pic='-qpic'
8083 lt_prog_compiler_static='-qstaticlink'
8084 ;;
8085 *)
8086 case `$CC -V 2>&1 | sed 5q` in
8087 *Sun\ F* | *Sun*Fortran*)
8088 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8089 lt_prog_compiler_pic='-KPIC'
8090 lt_prog_compiler_static='-Bstatic'
8091 lt_prog_compiler_wl=''
8092 ;;
8093 *Sun\ C*)
8094 # Sun C 5.9
8095 lt_prog_compiler_pic='-KPIC'
8096 lt_prog_compiler_static='-Bstatic'
8097 lt_prog_compiler_wl='-Wl,'
8098 ;;
8099 esac
8100 ;;
8101 esac
8102 ;;
8103
8104 newsos6)
8105 lt_prog_compiler_pic='-KPIC'
8106 lt_prog_compiler_static='-Bstatic'
8107 ;;
8108
8109 *nto* | *qnx*)
8110 # QNX uses GNU C++, but need to define -shared option too, otherwise
8111 # it will coredump.
8112 lt_prog_compiler_pic='-fPIC -shared'
8113 ;;
8114
8115 osf3* | osf4* | osf5*)
8116 lt_prog_compiler_wl='-Wl,'
8117 # All OSF/1 code is PIC.
8118 lt_prog_compiler_static='-non_shared'
8119 ;;
8120
8121 rdos*)
8122 lt_prog_compiler_static='-non_shared'
8123 ;;
8124
8125 solaris*)
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 case $cc_basename in
8129 f77* | f90* | f95*)
8130 lt_prog_compiler_wl='-Qoption ld ';;
8131 *)
8132 lt_prog_compiler_wl='-Wl,';;
8133 esac
8134 ;;
8135
8136 sunos4*)
8137 lt_prog_compiler_wl='-Qoption ld '
8138 lt_prog_compiler_pic='-PIC'
8139 lt_prog_compiler_static='-Bstatic'
8140 ;;
8141
8142 sysv4 | sysv4.2uw2* | sysv4.3*)
8143 lt_prog_compiler_wl='-Wl,'
8144 lt_prog_compiler_pic='-KPIC'
8145 lt_prog_compiler_static='-Bstatic'
8146 ;;
8147
8148 sysv4*MP*)
8149 if test -d /usr/nec ;then
8150 lt_prog_compiler_pic='-Kconform_pic'
8151 lt_prog_compiler_static='-Bstatic'
8152 fi
8153 ;;
8154
8155 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8156 lt_prog_compiler_wl='-Wl,'
8157 lt_prog_compiler_pic='-KPIC'
8158 lt_prog_compiler_static='-Bstatic'
8159 ;;
8160
8161 unicos*)
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_can_build_shared=no
8164 ;;
8165
8166 uts4*)
8167 lt_prog_compiler_pic='-pic'
8168 lt_prog_compiler_static='-Bstatic'
8169 ;;
8170
8171 *)
8172 lt_prog_compiler_can_build_shared=no
8173 ;;
8174 esac
8175 fi
8176
8177 case $host_os in
8178 # For platforms which do not support PIC, -DPIC is meaningless:
8179 *djgpp*)
8180 lt_prog_compiler_pic=
8181 ;;
8182 *)
8183 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8184 ;;
8185 esac
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8187 $as_echo "$lt_prog_compiler_pic" >&6; }
8188
8189
8190
8191
8192
8193
8194 #
8195 # Check to make sure the PIC flag actually works.
8196 #
8197 if test -n "$lt_prog_compiler_pic"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8199 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8200 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 lt_cv_prog_compiler_pic_works=no
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8207 # Insert the option either (1) after the last *FLAGS variable, or
8208 # (2) before a word containing "conftest.", or (3) at the end.
8209 # Note that $ac_compile itself does not contain backslashes and begins
8210 # with a dollar sign (not a hyphen), so the echo should work correctly.
8211 # The option is referenced via a variable to avoid confusing sed.
8212 lt_compile=`echo "$ac_compile" | $SED \
8213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215 -e 's:$: $lt_compiler_flag:'`
8216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217 (eval "$lt_compile" 2>conftest.err)
8218 ac_status=$?
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 if (exit $ac_status) && test -s "$ac_outfile"; then
8222 # The compiler can only warn and ignore the option if not recognized
8223 # So say no if there are warnings other than the usual output.
8224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8227 lt_cv_prog_compiler_pic_works=yes
8228 fi
8229 fi
8230 $RM conftest*
8231
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8234 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8235
8236 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8237 case $lt_prog_compiler_pic in
8238 "" | " "*) ;;
8239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8240 esac
8241 else
8242 lt_prog_compiler_pic=
8243 lt_prog_compiler_can_build_shared=no
8244 fi
8245
8246 fi
8247
8248
8249
8250
8251
8252
8253 #
8254 # Check to make sure the static flag actually works.
8255 #
8256 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8258 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8259 if ${lt_cv_prog_compiler_static_works+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 lt_cv_prog_compiler_static_works=no
8263 save_LDFLAGS="$LDFLAGS"
8264 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8265 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8266 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8267 # The linker can only warn and ignore the option if not recognized
8268 # So say no if there are warnings
8269 if test -s conftest.err; then
8270 # Append any errors to the config.log.
8271 cat conftest.err 1>&5
8272 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274 if diff conftest.exp conftest.er2 >/dev/null; then
8275 lt_cv_prog_compiler_static_works=yes
8276 fi
8277 else
8278 lt_cv_prog_compiler_static_works=yes
8279 fi
8280 fi
8281 $RM -r conftest*
8282 LDFLAGS="$save_LDFLAGS"
8283
8284 fi
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8286 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8287
8288 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8289 :
8290 else
8291 lt_prog_compiler_static=
8292 fi
8293
8294
8295
8296
8297
8298
8299
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8301 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8302 if ${lt_cv_prog_compiler_c_o+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 lt_cv_prog_compiler_c_o=no
8306 $RM -r conftest 2>/dev/null
8307 mkdir conftest
8308 cd conftest
8309 mkdir out
8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8311
8312 lt_compiler_flag="-o out/conftest2.$ac_objext"
8313 # Insert the option either (1) after the last *FLAGS variable, or
8314 # (2) before a word containing "conftest.", or (3) at the end.
8315 # Note that $ac_compile itself does not contain backslashes and begins
8316 # with a dollar sign (not a hyphen), so the echo should work correctly.
8317 lt_compile=`echo "$ac_compile" | $SED \
8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320 -e 's:$: $lt_compiler_flag:'`
8321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8322 (eval "$lt_compile" 2>out/conftest.err)
8323 ac_status=$?
8324 cat out/conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8327 then
8328 # The compiler can only warn and ignore the option if not recognized
8329 # So say no if there are warnings
8330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8333 lt_cv_prog_compiler_c_o=yes
8334 fi
8335 fi
8336 chmod u+w . 2>&5
8337 $RM conftest*
8338 # SGI C++ compiler will create directory out/ii_files/ for
8339 # template instantiation
8340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8341 $RM out/* && rmdir out
8342 cd ..
8343 $RM -r conftest
8344 $RM conftest*
8345
8346 fi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8348 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8349
8350
8351
8352
8353
8354
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8357 if ${lt_cv_prog_compiler_c_o+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 lt_cv_prog_compiler_c_o=no
8361 $RM -r conftest 2>/dev/null
8362 mkdir conftest
8363 cd conftest
8364 mkdir out
8365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8366
8367 lt_compiler_flag="-o out/conftest2.$ac_objext"
8368 # Insert the option either (1) after the last *FLAGS variable, or
8369 # (2) before a word containing "conftest.", or (3) at the end.
8370 # Note that $ac_compile itself does not contain backslashes and begins
8371 # with a dollar sign (not a hyphen), so the echo should work correctly.
8372 lt_compile=`echo "$ac_compile" | $SED \
8373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375 -e 's:$: $lt_compiler_flag:'`
8376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8377 (eval "$lt_compile" 2>out/conftest.err)
8378 ac_status=$?
8379 cat out/conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8382 then
8383 # The compiler can only warn and ignore the option if not recognized
8384 # So say no if there are warnings
8385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8388 lt_cv_prog_compiler_c_o=yes
8389 fi
8390 fi
8391 chmod u+w . 2>&5
8392 $RM conftest*
8393 # SGI C++ compiler will create directory out/ii_files/ for
8394 # template instantiation
8395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8396 $RM out/* && rmdir out
8397 cd ..
8398 $RM -r conftest
8399 $RM conftest*
8400
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8404
8405
8406
8407
8408 hard_links="nottested"
8409 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8410 # do not overwrite the value of need_locks provided by the user
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8412 $as_echo_n "checking if we can lock with hard links... " >&6; }
8413 hard_links=yes
8414 $RM conftest*
8415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8416 touch conftest.a
8417 ln conftest.a conftest.b 2>&5 || hard_links=no
8418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8420 $as_echo "$hard_links" >&6; }
8421 if test "$hard_links" = no; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8423 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8424 need_locks=warn
8425 fi
8426 else
8427 need_locks=no
8428 fi
8429
8430
8431
8432
8433
8434
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8436 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8437
8438 runpath_var=
8439 allow_undefined_flag=
8440 always_export_symbols=no
8441 archive_cmds=
8442 archive_expsym_cmds=
8443 compiler_needs_object=no
8444 enable_shared_with_static_runtimes=no
8445 export_dynamic_flag_spec=
8446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8447 hardcode_automatic=no
8448 hardcode_direct=no
8449 hardcode_direct_absolute=no
8450 hardcode_libdir_flag_spec=
8451 hardcode_libdir_flag_spec_ld=
8452 hardcode_libdir_separator=
8453 hardcode_minus_L=no
8454 hardcode_shlibpath_var=unsupported
8455 inherit_rpath=no
8456 link_all_deplibs=unknown
8457 module_cmds=
8458 module_expsym_cmds=
8459 old_archive_from_new_cmds=
8460 old_archive_from_expsyms_cmds=
8461 thread_safe_flag_spec=
8462 whole_archive_flag_spec=
8463 # include_expsyms should be a list of space-separated symbols to be *always*
8464 # included in the symbol list
8465 include_expsyms=
8466 # exclude_expsyms can be an extended regexp of symbols to exclude
8467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8469 # as well as any symbol that contains `d'.
8470 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8472 # platforms (ab)use it in PIC code, but their linkers get confused if
8473 # the symbol is explicitly referenced. Since portable code cannot
8474 # rely on this symbol name, it's probably fine to never include it in
8475 # preloaded symbol tables.
8476 # Exclude shared library initialization/finalization symbols.
8477 extract_expsyms_cmds=
8478
8479 case $host_os in
8480 cygwin* | mingw* | pw32* | cegcc*)
8481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8482 # When not using gcc, we currently assume that we are using
8483 # Microsoft Visual C++.
8484 if test "$GCC" != yes; then
8485 with_gnu_ld=no
8486 fi
8487 ;;
8488 interix*)
8489 # we just hope/assume this is gcc and not c89 (= MSVC++)
8490 with_gnu_ld=yes
8491 ;;
8492 openbsd*)
8493 with_gnu_ld=no
8494 ;;
8495 esac
8496
8497 ld_shlibs=yes
8498
8499 # On some targets, GNU ld is compatible enough with the native linker
8500 # that we're better off using the native interface for both.
8501 lt_use_gnu_ld_interface=no
8502 if test "$with_gnu_ld" = yes; then
8503 case $host_os in
8504 aix*)
8505 # The AIX port of GNU ld has always aspired to compatibility
8506 # with the native linker. However, as the warning in the GNU ld
8507 # block says, versions before 2.19.5* couldn't really create working
8508 # shared libraries, regardless of the interface used.
8509 case `$LD -v 2>&1` in
8510 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8511 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8512 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8513 *)
8514 lt_use_gnu_ld_interface=yes
8515 ;;
8516 esac
8517 ;;
8518 *)
8519 lt_use_gnu_ld_interface=yes
8520 ;;
8521 esac
8522 fi
8523
8524 if test "$lt_use_gnu_ld_interface" = yes; then
8525 # If archive_cmds runs LD, not CC, wlarc should be empty
8526 wlarc='${wl}'
8527
8528 # Set some defaults for GNU ld with shared library support. These
8529 # are reset later if shared libraries are not supported. Putting them
8530 # here allows them to be overridden if necessary.
8531 runpath_var=LD_RUN_PATH
8532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533 export_dynamic_flag_spec='${wl}--export-dynamic'
8534 # ancient GNU ld didn't support --whole-archive et. al.
8535 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8536 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8537 else
8538 whole_archive_flag_spec=
8539 fi
8540 supports_anon_versioning=no
8541 case `$LD -v 2>&1` in
8542 *GNU\ gold*) supports_anon_versioning=yes ;;
8543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8546 *\ 2.11.*) ;; # other 2.11 versions
8547 *) supports_anon_versioning=yes ;;
8548 esac
8549
8550 # See if GNU ld supports shared libraries.
8551 case $host_os in
8552 aix[3-9]*)
8553 # On AIX/PPC, the GNU linker is very broken
8554 if test "$host_cpu" != ia64; then
8555 ld_shlibs=no
8556 cat <<_LT_EOF 1>&2
8557
8558 *** Warning: the GNU linker, at least up to release 2.19, is reported
8559 *** to be unable to reliably create shared libraries on AIX.
8560 *** Therefore, libtool is disabling shared libraries support. If you
8561 *** really care for shared libraries, you may want to install binutils
8562 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8563 *** You will then need to restart the configuration process.
8564
8565 _LT_EOF
8566 fi
8567 ;;
8568
8569 amigaos*)
8570 case $host_cpu in
8571 powerpc)
8572 # see comment about AmigaOS4 .so support
8573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574 archive_expsym_cmds=''
8575 ;;
8576 m68k)
8577 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)'
8578 hardcode_libdir_flag_spec='-L$libdir'
8579 hardcode_minus_L=yes
8580 ;;
8581 esac
8582 ;;
8583
8584 beos*)
8585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8586 allow_undefined_flag=unsupported
8587 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8588 # support --undefined. This deserves some investigation. FIXME
8589 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590 else
8591 ld_shlibs=no
8592 fi
8593 ;;
8594
8595 cygwin* | mingw* | pw32* | cegcc*)
8596 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8597 # as there is no search path for DLLs.
8598 hardcode_libdir_flag_spec='-L$libdir'
8599 export_dynamic_flag_spec='${wl}--export-all-symbols'
8600 allow_undefined_flag=unsupported
8601 always_export_symbols=no
8602 enable_shared_with_static_runtimes=yes
8603 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8604
8605 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8607 # If the export-symbols file already is a .def file (1st line
8608 # is EXPORTS), use it as is; otherwise, prepend...
8609 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8610 cp $export_symbols $output_objdir/$soname.def;
8611 else
8612 echo EXPORTS > $output_objdir/$soname.def;
8613 cat $export_symbols >> $output_objdir/$soname.def;
8614 fi~
8615 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8616 else
8617 ld_shlibs=no
8618 fi
8619 ;;
8620
8621 haiku*)
8622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623 link_all_deplibs=yes
8624 ;;
8625
8626 interix[3-9]*)
8627 hardcode_direct=no
8628 hardcode_shlibpath_var=no
8629 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8630 export_dynamic_flag_spec='${wl}-E'
8631 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8632 # Instead, shared libraries are loaded at an image base (0x10000000 by
8633 # default) and relocated if they conflict, which is a slow very memory
8634 # consuming and fragmenting process. To avoid this, we pick a random,
8635 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8636 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8637 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8638 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'
8639 ;;
8640
8641 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8642 tmp_diet=no
8643 if test "$host_os" = linux-dietlibc; then
8644 case $cc_basename in
8645 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8646 esac
8647 fi
8648 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8649 && test "$tmp_diet" = no
8650 then
8651 tmp_addflag=' $pic_flag'
8652 tmp_sharedflag='-shared'
8653 case $cc_basename,$host_cpu in
8654 pgcc*) # Portland Group C compiler
8655 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'
8656 tmp_addflag=' $pic_flag'
8657 ;;
8658 pgf77* | pgf90* | pgf95* | pgfortran*)
8659 # Portland Group f77 and f90 compilers
8660 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'
8661 tmp_addflag=' $pic_flag -Mnomain' ;;
8662 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8663 tmp_addflag=' -i_dynamic' ;;
8664 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8665 tmp_addflag=' -i_dynamic -nofor_main' ;;
8666 ifc* | ifort*) # Intel Fortran compiler
8667 tmp_addflag=' -nofor_main' ;;
8668 lf95*) # Lahey Fortran 8.1
8669 whole_archive_flag_spec=
8670 tmp_sharedflag='--shared' ;;
8671 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8672 tmp_sharedflag='-qmkshrobj'
8673 tmp_addflag= ;;
8674 nvcc*) # Cuda Compiler Driver 2.2
8675 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'
8676 compiler_needs_object=yes
8677 ;;
8678 esac
8679 case `$CC -V 2>&1 | sed 5q` in
8680 *Sun\ C*) # Sun C 5.9
8681 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'
8682 compiler_needs_object=yes
8683 tmp_sharedflag='-G' ;;
8684 *Sun\ F*) # Sun Fortran 8.3
8685 tmp_sharedflag='-G' ;;
8686 esac
8687 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8688
8689 if test "x$supports_anon_versioning" = xyes; then
8690 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8691 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8692 echo "local: *; };" >> $output_objdir/$libname.ver~
8693 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8694 fi
8695
8696 case $cc_basename in
8697 xlf* | bgf* | bgxlf* | mpixlf*)
8698 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8699 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8700 hardcode_libdir_flag_spec=
8701 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8702 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8703 if test "x$supports_anon_versioning" = xyes; then
8704 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8706 echo "local: *; };" >> $output_objdir/$libname.ver~
8707 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8708 fi
8709 ;;
8710 esac
8711 else
8712 ld_shlibs=no
8713 fi
8714 ;;
8715
8716 netbsd*)
8717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8718 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8719 wlarc=
8720 else
8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723 fi
8724 ;;
8725
8726 solaris*)
8727 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8728 ld_shlibs=no
8729 cat <<_LT_EOF 1>&2
8730
8731 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8732 *** create shared libraries on Solaris systems. Therefore, libtool
8733 *** is disabling shared libraries support. We urge you to upgrade GNU
8734 *** binutils to release 2.9.1 or newer. Another option is to modify
8735 *** your PATH or compiler configuration so that the native linker is
8736 *** used, and then restart.
8737
8738 _LT_EOF
8739 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742 else
8743 ld_shlibs=no
8744 fi
8745 ;;
8746
8747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8748 case `$LD -v 2>&1` in
8749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8750 ld_shlibs=no
8751 cat <<_LT_EOF 1>&2
8752
8753 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8754 *** reliably create shared libraries on SCO systems. Therefore, libtool
8755 *** is disabling shared libraries support. We urge you to upgrade GNU
8756 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8757 *** your PATH or compiler configuration so that the native linker is
8758 *** used, and then restart.
8759
8760 _LT_EOF
8761 ;;
8762 *)
8763 # For security reasons, it is highly recommended that you always
8764 # use absolute paths for naming shared libraries, and exclude the
8765 # DT_RUNPATH tag from executables and libraries. But doing so
8766 # requires that you compile everything twice, which is a pain.
8767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8771 else
8772 ld_shlibs=no
8773 fi
8774 ;;
8775 esac
8776 ;;
8777
8778 sunos4*)
8779 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8780 wlarc=
8781 hardcode_direct=yes
8782 hardcode_shlibpath_var=no
8783 ;;
8784
8785 *)
8786 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8789 else
8790 ld_shlibs=no
8791 fi
8792 ;;
8793 esac
8794
8795 if test "$ld_shlibs" = no; then
8796 runpath_var=
8797 hardcode_libdir_flag_spec=
8798 export_dynamic_flag_spec=
8799 whole_archive_flag_spec=
8800 fi
8801 else
8802 # PORTME fill in a description of your system's linker (not GNU ld)
8803 case $host_os in
8804 aix3*)
8805 allow_undefined_flag=unsupported
8806 always_export_symbols=yes
8807 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'
8808 # Note: this linker hardcodes the directories in LIBPATH if there
8809 # are no directories specified by -L.
8810 hardcode_minus_L=yes
8811 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8812 # Neither direct hardcoding nor static linking is supported with a
8813 # broken collect2.
8814 hardcode_direct=unsupported
8815 fi
8816 ;;
8817
8818 aix[4-9]*)
8819 if test "$host_cpu" = ia64; then
8820 # On IA64, the linker does run time linking by default, so we don't
8821 # have to do anything special.
8822 aix_use_runtimelinking=no
8823 exp_sym_flag='-Bexport'
8824 no_entry_flag=""
8825 else
8826 # If we're using GNU nm, then we don't want the "-C" option.
8827 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8828 # Also, AIX nm treats weak defined symbols like other global
8829 # defined symbols, whereas GNU nm marks them as "W".
8830 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8831 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'
8832 else
8833 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'
8834 fi
8835 aix_use_runtimelinking=no
8836
8837 # Test if we are trying to use run time linking or normal
8838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8839 # need to do runtime linking.
8840 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8841 for ld_flag in $LDFLAGS; do
8842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8843 aix_use_runtimelinking=yes
8844 break
8845 fi
8846 done
8847 ;;
8848 esac
8849
8850 exp_sym_flag='-bexport'
8851 no_entry_flag='-bnoentry'
8852 fi
8853
8854 # When large executables or shared objects are built, AIX ld can
8855 # have problems creating the table of contents. If linking a library
8856 # or program results in "error TOC overflow" add -mminimal-toc to
8857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8859
8860 archive_cmds=''
8861 hardcode_direct=yes
8862 hardcode_direct_absolute=yes
8863 hardcode_libdir_separator=':'
8864 link_all_deplibs=yes
8865 file_list_spec='${wl}-f,'
8866
8867 if test "$GCC" = yes; then
8868 case $host_os in aix4.[012]|aix4.[012].*)
8869 # We only want to do this on AIX 4.2 and lower, the check
8870 # below for broken collect2 doesn't work under 4.3+
8871 collect2name=`${CC} -print-prog-name=collect2`
8872 if test -f "$collect2name" &&
8873 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8874 then
8875 # We have reworked collect2
8876 :
8877 else
8878 # We have old collect2
8879 hardcode_direct=unsupported
8880 # It fails to find uninstalled libraries when the uninstalled
8881 # path is not listed in the libpath. Setting hardcode_minus_L
8882 # to unsupported forces relinking
8883 hardcode_minus_L=yes
8884 hardcode_libdir_flag_spec='-L$libdir'
8885 hardcode_libdir_separator=
8886 fi
8887 ;;
8888 esac
8889 shared_flag='-shared'
8890 if test "$aix_use_runtimelinking" = yes; then
8891 shared_flag="$shared_flag "'${wl}-G'
8892 fi
8893 else
8894 # not using gcc
8895 if test "$host_cpu" = ia64; then
8896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8897 # chokes on -Wl,-G. The following line is correct:
8898 shared_flag='-G'
8899 else
8900 if test "$aix_use_runtimelinking" = yes; then
8901 shared_flag='${wl}-G'
8902 else
8903 shared_flag='${wl}-bM:SRE'
8904 fi
8905 fi
8906 fi
8907
8908 export_dynamic_flag_spec='${wl}-bexpall'
8909 # It seems that -bexpall does not export symbols beginning with
8910 # underscore (_), so it is better to generate a list of symbols to export.
8911 always_export_symbols=yes
8912 if test "$aix_use_runtimelinking" = yes; then
8913 # Warning - without using the other runtime loading flags (-brtl),
8914 # -berok will link without error, but may produce a broken library.
8915 allow_undefined_flag='-berok'
8916 # Determine the default libpath from the value encoded in an
8917 # empty executable.
8918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920
8921 int
8922 main ()
8923 {
8924
8925 ;
8926 return 0;
8927 }
8928 _ACEOF
8929 if ac_fn_c_try_link "$LINENO"; then :
8930
8931 lt_aix_libpath_sed='
8932 /Import File Strings/,/^$/ {
8933 /^0/ {
8934 s/^0 *\(.*\)$/\1/
8935 p
8936 }
8937 }'
8938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8939 # Check for a 64-bit object if we didn't find anything.
8940 if test -z "$aix_libpath"; then
8941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8942 fi
8943 fi
8944 rm -f core conftest.err conftest.$ac_objext \
8945 conftest$ac_exeext conftest.$ac_ext
8946 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8947
8948 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8949 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"
8950 else
8951 if test "$host_cpu" = ia64; then
8952 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8953 allow_undefined_flag="-z nodefs"
8954 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"
8955 else
8956 # Determine the default libpath from the value encoded in an
8957 # empty executable.
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960
8961 int
8962 main ()
8963 {
8964
8965 ;
8966 return 0;
8967 }
8968 _ACEOF
8969 if ac_fn_c_try_link "$LINENO"; then :
8970
8971 lt_aix_libpath_sed='
8972 /Import File Strings/,/^$/ {
8973 /^0/ {
8974 s/^0 *\(.*\)$/\1/
8975 p
8976 }
8977 }'
8978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979 # Check for a 64-bit object if we didn't find anything.
8980 if test -z "$aix_libpath"; then
8981 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8982 fi
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8987
8988 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8989 # Warning - without using the other run time loading flags,
8990 # -berok will link without error, but may produce a broken library.
8991 no_undefined_flag=' ${wl}-bernotok'
8992 allow_undefined_flag=' ${wl}-berok'
8993 if test "$with_gnu_ld" = yes; then
8994 # We only use this code for GNU lds that support --whole-archive.
8995 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8996 else
8997 # Exported symbols can be pulled into shared objects from archives
8998 whole_archive_flag_spec='$convenience'
8999 fi
9000 archive_cmds_need_lc=yes
9001 # This is similar to how AIX traditionally builds its shared libraries.
9002 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'
9003 fi
9004 fi
9005 ;;
9006
9007 amigaos*)
9008 case $host_cpu in
9009 powerpc)
9010 # see comment about AmigaOS4 .so support
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012 archive_expsym_cmds=''
9013 ;;
9014 m68k)
9015 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)'
9016 hardcode_libdir_flag_spec='-L$libdir'
9017 hardcode_minus_L=yes
9018 ;;
9019 esac
9020 ;;
9021
9022 bsdi[45]*)
9023 export_dynamic_flag_spec=-rdynamic
9024 ;;
9025
9026 cygwin* | mingw* | pw32* | cegcc*)
9027 # When not using gcc, we currently assume that we are using
9028 # Microsoft Visual C++.
9029 # hardcode_libdir_flag_spec is actually meaningless, as there is
9030 # no search path for DLLs.
9031 hardcode_libdir_flag_spec=' '
9032 allow_undefined_flag=unsupported
9033 # Tell ltmain to make .lib files, not .a files.
9034 libext=lib
9035 # Tell ltmain to make .dll files, not .so files.
9036 shrext_cmds=".dll"
9037 # FIXME: Setting linknames here is a bad hack.
9038 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9039 # The linker will automatically build a .lib file if we build a DLL.
9040 old_archive_from_new_cmds='true'
9041 # FIXME: Should let the user specify the lib program.
9042 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9043 fix_srcfile_path='`cygpath -w "$srcfile"`'
9044 enable_shared_with_static_runtimes=yes
9045 ;;
9046
9047 darwin* | rhapsody*)
9048
9049
9050 archive_cmds_need_lc=no
9051 hardcode_direct=no
9052 hardcode_automatic=yes
9053 hardcode_shlibpath_var=unsupported
9054 if test "$lt_cv_ld_force_load" = "yes"; then
9055 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\"`'
9056 else
9057 whole_archive_flag_spec=''
9058 fi
9059 link_all_deplibs=yes
9060 allow_undefined_flag="$_lt_dar_allow_undefined"
9061 case $cc_basename in
9062 ifort*) _lt_dar_can_shared=yes ;;
9063 *) _lt_dar_can_shared=$GCC ;;
9064 esac
9065 if test "$_lt_dar_can_shared" = "yes"; then
9066 output_verbose_link_cmd=func_echo_all
9067 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9068 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9069 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}"
9070 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}"
9071
9072 else
9073 ld_shlibs=no
9074 fi
9075
9076 ;;
9077
9078 dgux*)
9079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_shlibpath_var=no
9082 ;;
9083
9084 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9085 # support. Future versions do this automatically, but an explicit c++rt0.o
9086 # does not break anything, and helps significantly (at the cost of a little
9087 # extra space).
9088 freebsd2.2*)
9089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9090 hardcode_libdir_flag_spec='-R$libdir'
9091 hardcode_direct=yes
9092 hardcode_shlibpath_var=no
9093 ;;
9094
9095 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9096 freebsd2.*)
9097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_direct=yes
9099 hardcode_minus_L=yes
9100 hardcode_shlibpath_var=no
9101 ;;
9102
9103 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9104 freebsd* | dragonfly*)
9105 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9106 hardcode_libdir_flag_spec='-R$libdir'
9107 hardcode_direct=yes
9108 hardcode_shlibpath_var=no
9109 ;;
9110
9111 hpux9*)
9112 if test "$GCC" = yes; then
9113 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'
9114 else
9115 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'
9116 fi
9117 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9118 hardcode_libdir_separator=:
9119 hardcode_direct=yes
9120
9121 # hardcode_minus_L: Not really in the search PATH,
9122 # but as the default location of the library.
9123 hardcode_minus_L=yes
9124 export_dynamic_flag_spec='${wl}-E'
9125 ;;
9126
9127 hpux10*)
9128 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9129 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9130 else
9131 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9132 fi
9133 if test "$with_gnu_ld" = no; then
9134 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9135 hardcode_libdir_flag_spec_ld='+b $libdir'
9136 hardcode_libdir_separator=:
9137 hardcode_direct=yes
9138 hardcode_direct_absolute=yes
9139 export_dynamic_flag_spec='${wl}-E'
9140 # hardcode_minus_L: Not really in the search PATH,
9141 # but as the default location of the library.
9142 hardcode_minus_L=yes
9143 fi
9144 ;;
9145
9146 hpux11*)
9147 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9148 case $host_cpu in
9149 hppa*64*)
9150 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9151 ;;
9152 ia64*)
9153 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9154 ;;
9155 *)
9156 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9157 ;;
9158 esac
9159 else
9160 case $host_cpu in
9161 hppa*64*)
9162 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9163 ;;
9164 ia64*)
9165 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9166 ;;
9167 *)
9168
9169 # Older versions of the 11.00 compiler do not understand -b yet
9170 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9172 $as_echo_n "checking if $CC understands -b... " >&6; }
9173 if ${lt_cv_prog_compiler__b+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 lt_cv_prog_compiler__b=no
9177 save_LDFLAGS="$LDFLAGS"
9178 LDFLAGS="$LDFLAGS -b"
9179 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9180 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9181 # The linker can only warn and ignore the option if not recognized
9182 # So say no if there are warnings
9183 if test -s conftest.err; then
9184 # Append any errors to the config.log.
9185 cat conftest.err 1>&5
9186 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9188 if diff conftest.exp conftest.er2 >/dev/null; then
9189 lt_cv_prog_compiler__b=yes
9190 fi
9191 else
9192 lt_cv_prog_compiler__b=yes
9193 fi
9194 fi
9195 $RM -r conftest*
9196 LDFLAGS="$save_LDFLAGS"
9197
9198 fi
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9200 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9201
9202 if test x"$lt_cv_prog_compiler__b" = xyes; then
9203 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9204 else
9205 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9206 fi
9207
9208 ;;
9209 esac
9210 fi
9211 if test "$with_gnu_ld" = no; then
9212 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9213 hardcode_libdir_separator=:
9214
9215 case $host_cpu in
9216 hppa*64*|ia64*)
9217 hardcode_direct=no
9218 hardcode_shlibpath_var=no
9219 ;;
9220 *)
9221 hardcode_direct=yes
9222 hardcode_direct_absolute=yes
9223 export_dynamic_flag_spec='${wl}-E'
9224
9225 # hardcode_minus_L: Not really in the search PATH,
9226 # but as the default location of the library.
9227 hardcode_minus_L=yes
9228 ;;
9229 esac
9230 fi
9231 ;;
9232
9233 irix5* | irix6* | nonstopux*)
9234 if test "$GCC" = yes; then
9235 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'
9236 # Try to use the -exported_symbol ld option, if it does not
9237 # work, assume that -exports_file does not work either and
9238 # implicitly export all symbols.
9239 save_LDFLAGS="$LDFLAGS"
9240 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9243 int foo(void) {}
9244 _ACEOF
9245 if ac_fn_c_try_link "$LINENO"; then :
9246 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'
9247
9248 fi
9249 rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251 LDFLAGS="$save_LDFLAGS"
9252 else
9253 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'
9254 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'
9255 fi
9256 archive_cmds_need_lc='no'
9257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9258 hardcode_libdir_separator=:
9259 inherit_rpath=yes
9260 link_all_deplibs=yes
9261 ;;
9262
9263 netbsd*)
9264 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9266 else
9267 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9268 fi
9269 hardcode_libdir_flag_spec='-R$libdir'
9270 hardcode_direct=yes
9271 hardcode_shlibpath_var=no
9272 ;;
9273
9274 newsos6)
9275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_direct=yes
9277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9278 hardcode_libdir_separator=:
9279 hardcode_shlibpath_var=no
9280 ;;
9281
9282 *nto* | *qnx*)
9283 ;;
9284
9285 openbsd*)
9286 if test -f /usr/libexec/ld.so; then
9287 hardcode_direct=yes
9288 hardcode_shlibpath_var=no
9289 hardcode_direct_absolute=yes
9290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9292 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9293 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9294 export_dynamic_flag_spec='${wl}-E'
9295 else
9296 case $host_os in
9297 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9299 hardcode_libdir_flag_spec='-R$libdir'
9300 ;;
9301 *)
9302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9304 ;;
9305 esac
9306 fi
9307 else
9308 ld_shlibs=no
9309 fi
9310 ;;
9311
9312 os2*)
9313 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_minus_L=yes
9315 allow_undefined_flag=unsupported
9316 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'
9317 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9318 ;;
9319
9320 osf3*)
9321 if test "$GCC" = yes; then
9322 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9323 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'
9324 else
9325 allow_undefined_flag=' -expect_unresolved \*'
9326 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'
9327 fi
9328 archive_cmds_need_lc='no'
9329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9330 hardcode_libdir_separator=:
9331 ;;
9332
9333 osf4* | osf5*) # as osf3* with the addition of -msym flag
9334 if test "$GCC" = yes; then
9335 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9336 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'
9337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338 else
9339 allow_undefined_flag=' -expect_unresolved \*'
9340 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'
9341 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~
9342 $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'
9343
9344 # Both c and cxx compiler support -rpath directly
9345 hardcode_libdir_flag_spec='-rpath $libdir'
9346 fi
9347 archive_cmds_need_lc='no'
9348 hardcode_libdir_separator=:
9349 ;;
9350
9351 solaris*)
9352 no_undefined_flag=' -z defs'
9353 if test "$GCC" = yes; then
9354 wlarc='${wl}'
9355 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9357 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9358 else
9359 case `$CC -V 2>&1` in
9360 *"Compilers 5.0"*)
9361 wlarc=''
9362 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9363 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9364 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9365 ;;
9366 *)
9367 wlarc='${wl}'
9368 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9369 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9370 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9371 ;;
9372 esac
9373 fi
9374 hardcode_libdir_flag_spec='-R$libdir'
9375 hardcode_shlibpath_var=no
9376 case $host_os in
9377 solaris2.[0-5] | solaris2.[0-5].*) ;;
9378 *)
9379 # The compiler driver will combine and reorder linker options,
9380 # but understands `-z linker_flag'. GCC discards it without `$wl',
9381 # but is careful enough not to reorder.
9382 # Supported since Solaris 2.6 (maybe 2.5.1?)
9383 if test "$GCC" = yes; then
9384 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9385 else
9386 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9387 fi
9388 ;;
9389 esac
9390 link_all_deplibs=yes
9391 ;;
9392
9393 sunos4*)
9394 if test "x$host_vendor" = xsequent; then
9395 # Use $CC to link under sequent, because it throws in some extra .o
9396 # files that make .init and .fini sections work.
9397 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9398 else
9399 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9400 fi
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 hardcode_direct=yes
9403 hardcode_minus_L=yes
9404 hardcode_shlibpath_var=no
9405 ;;
9406
9407 sysv4)
9408 case $host_vendor in
9409 sni)
9410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411 hardcode_direct=yes # is this really true???
9412 ;;
9413 siemens)
9414 ## LD is ld it makes a PLAMLIB
9415 ## CC just makes a GrossModule.
9416 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9417 reload_cmds='$CC -r -o $output$reload_objs'
9418 hardcode_direct=no
9419 ;;
9420 motorola)
9421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9423 ;;
9424 esac
9425 runpath_var='LD_RUN_PATH'
9426 hardcode_shlibpath_var=no
9427 ;;
9428
9429 sysv4.3*)
9430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9431 hardcode_shlibpath_var=no
9432 export_dynamic_flag_spec='-Bexport'
9433 ;;
9434
9435 sysv4*MP*)
9436 if test -d /usr/nec; then
9437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9438 hardcode_shlibpath_var=no
9439 runpath_var=LD_RUN_PATH
9440 hardcode_runpath_var=yes
9441 ld_shlibs=yes
9442 fi
9443 ;;
9444
9445 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9446 no_undefined_flag='${wl}-z,text'
9447 archive_cmds_need_lc=no
9448 hardcode_shlibpath_var=no
9449 runpath_var='LD_RUN_PATH'
9450
9451 if test "$GCC" = yes; then
9452 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 else
9455 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 fi
9458 ;;
9459
9460 sysv5* | sco3.2v5* | sco5v6*)
9461 # Note: We can NOT use -z defs as we might desire, because we do not
9462 # link with -lc, and that would cause any symbols used from libc to
9463 # always be unresolved, which means just about no library would
9464 # ever link correctly. If we're not using GNU ld we use -z text
9465 # though, which does catch some bad symbols but isn't as heavy-handed
9466 # as -z defs.
9467 no_undefined_flag='${wl}-z,text'
9468 allow_undefined_flag='${wl}-z,nodefs'
9469 archive_cmds_need_lc=no
9470 hardcode_shlibpath_var=no
9471 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9472 hardcode_libdir_separator=':'
9473 link_all_deplibs=yes
9474 export_dynamic_flag_spec='${wl}-Bexport'
9475 runpath_var='LD_RUN_PATH'
9476
9477 if test "$GCC" = yes; then
9478 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480 else
9481 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9482 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 fi
9484 ;;
9485
9486 uts4*)
9487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9488 hardcode_libdir_flag_spec='-L$libdir'
9489 hardcode_shlibpath_var=no
9490 ;;
9491
9492 *)
9493 ld_shlibs=no
9494 ;;
9495 esac
9496
9497 if test x$host_vendor = xsni; then
9498 case $host in
9499 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9500 export_dynamic_flag_spec='${wl}-Blargedynsym'
9501 ;;
9502 esac
9503 fi
9504 fi
9505
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9507 $as_echo "$ld_shlibs" >&6; }
9508 test "$ld_shlibs" = no && can_build_shared=no
9509
9510 with_gnu_ld=$with_gnu_ld
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526 #
9527 # Do we need to explicitly link libc?
9528 #
9529 case "x$archive_cmds_need_lc" in
9530 x|xyes)
9531 # Assume -lc should be added
9532 archive_cmds_need_lc=yes
9533
9534 if test "$enable_shared" = yes && test "$GCC" = yes; then
9535 case $archive_cmds in
9536 *'~'*)
9537 # FIXME: we may have to deal with multi-command sequences.
9538 ;;
9539 '$CC '*)
9540 # Test whether the compiler implicitly links with -lc since on some
9541 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9542 # to ld, don't add -lc before -lgcc.
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9544 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9545 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 $RM conftest*
9549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9550
9551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9552 (eval $ac_compile) 2>&5
9553 ac_status=$?
9554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9555 test $ac_status = 0; } 2>conftest.err; then
9556 soname=conftest
9557 lib=conftest
9558 libobjs=conftest.$ac_objext
9559 deplibs=
9560 wl=$lt_prog_compiler_wl
9561 pic_flag=$lt_prog_compiler_pic
9562 compiler_flags=-v
9563 linker_flags=-v
9564 verstring=
9565 output_objdir=.
9566 libname=conftest
9567 lt_save_allow_undefined_flag=$allow_undefined_flag
9568 allow_undefined_flag=
9569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9570 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9571 ac_status=$?
9572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9573 test $ac_status = 0; }
9574 then
9575 lt_cv_archive_cmds_need_lc=no
9576 else
9577 lt_cv_archive_cmds_need_lc=yes
9578 fi
9579 allow_undefined_flag=$lt_save_allow_undefined_flag
9580 else
9581 cat conftest.err 1>&5
9582 fi
9583 $RM conftest*
9584
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9587 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9588 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9589 ;;
9590 esac
9591 fi
9592 ;;
9593 esac
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
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9752 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9753
9754 if test "$GCC" = yes; then
9755 case $host_os in
9756 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9757 *) lt_awk_arg="/^libraries:/" ;;
9758 esac
9759 case $host_os in
9760 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9761 *) lt_sed_strip_eq="s,=/,/,g" ;;
9762 esac
9763 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9764 case $lt_search_path_spec in
9765 *\;*)
9766 # if the path contains ";" then we assume it to be the separator
9767 # otherwise default to the standard path separator (i.e. ":") - it is
9768 # assumed that no part of a normal pathname contains ";" but that should
9769 # okay in the real world where ";" in dirpaths is itself problematic.
9770 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9771 ;;
9772 *)
9773 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9774 ;;
9775 esac
9776 # Ok, now we have the path, separated by spaces, we can step through it
9777 # and add multilib dir if necessary.
9778 lt_tmp_lt_search_path_spec=
9779 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9780 for lt_sys_path in $lt_search_path_spec; do
9781 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9782 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9783 else
9784 test -d "$lt_sys_path" && \
9785 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9786 fi
9787 done
9788 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9789 BEGIN {RS=" "; FS="/|\n";} {
9790 lt_foo="";
9791 lt_count=0;
9792 for (lt_i = NF; lt_i > 0; lt_i--) {
9793 if ($lt_i != "" && $lt_i != ".") {
9794 if ($lt_i == "..") {
9795 lt_count++;
9796 } else {
9797 if (lt_count == 0) {
9798 lt_foo="/" $lt_i lt_foo;
9799 } else {
9800 lt_count--;
9801 }
9802 }
9803 }
9804 }
9805 if (lt_foo != "") { lt_freq[lt_foo]++; }
9806 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9807 }'`
9808 # AWK program above erroneously prepends '/' to C:/dos/paths
9809 # for these hosts.
9810 case $host_os in
9811 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9812 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9813 esac
9814 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9815 else
9816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9817 fi
9818 library_names_spec=
9819 libname_spec='lib$name'
9820 soname_spec=
9821 shrext_cmds=".so"
9822 postinstall_cmds=
9823 postuninstall_cmds=
9824 finish_cmds=
9825 finish_eval=
9826 shlibpath_var=
9827 shlibpath_overrides_runpath=unknown
9828 version_type=none
9829 dynamic_linker="$host_os ld.so"
9830 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9831 need_lib_prefix=unknown
9832 hardcode_into_libs=no
9833
9834 # when you set need_version to no, make sure it does not cause -set_version
9835 # flags to be left without arguments
9836 need_version=unknown
9837
9838 case $host_os in
9839 aix3*)
9840 version_type=linux
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9842 shlibpath_var=LIBPATH
9843
9844 # AIX 3 has no versioning support, so we append a major version to the name.
9845 soname_spec='${libname}${release}${shared_ext}$major'
9846 ;;
9847
9848 aix[4-9]*)
9849 version_type=linux
9850 need_lib_prefix=no
9851 need_version=no
9852 hardcode_into_libs=yes
9853 if test "$host_cpu" = ia64; then
9854 # AIX 5 supports IA64
9855 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 else
9858 # With GCC up to 2.95.x, collect2 would create an import file
9859 # for dependence libraries. The import file would start with
9860 # the line `#! .'. This would cause the generated library to
9861 # depend on `.', always an invalid library. This was fixed in
9862 # development snapshots of GCC prior to 3.0.
9863 case $host_os in
9864 aix4 | aix4.[01] | aix4.[01].*)
9865 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9866 echo ' yes '
9867 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9868 :
9869 else
9870 can_build_shared=no
9871 fi
9872 ;;
9873 esac
9874 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9875 # soname into executable. Probably we can add versioning support to
9876 # collect2, so additional links can be useful in future.
9877 if test "$aix_use_runtimelinking" = yes; then
9878 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9879 # instead of lib<name>.a to let people know that these are not
9880 # typical AIX shared libraries.
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882 else
9883 # We preserve .a as extension for shared libraries through AIX4.2
9884 # and later when we are not doing run time linking.
9885 library_names_spec='${libname}${release}.a $libname.a'
9886 soname_spec='${libname}${release}${shared_ext}$major'
9887 fi
9888 shlibpath_var=LIBPATH
9889 fi
9890 ;;
9891
9892 amigaos*)
9893 case $host_cpu in
9894 powerpc)
9895 # Since July 2007 AmigaOS4 officially supports .so libraries.
9896 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898 ;;
9899 m68k)
9900 library_names_spec='$libname.ixlibrary $libname.a'
9901 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9902 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'
9903 ;;
9904 esac
9905 ;;
9906
9907 beos*)
9908 library_names_spec='${libname}${shared_ext}'
9909 dynamic_linker="$host_os ld.so"
9910 shlibpath_var=LIBRARY_PATH
9911 ;;
9912
9913 bsdi[45]*)
9914 version_type=linux
9915 need_version=no
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917 soname_spec='${libname}${release}${shared_ext}$major'
9918 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9921 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9922 # the default ld.so.conf also contains /usr/contrib/lib and
9923 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9924 # libtool to hard-code these into programs
9925 ;;
9926
9927 cygwin* | mingw* | pw32* | cegcc*)
9928 version_type=windows
9929 shrext_cmds=".dll"
9930 need_version=no
9931 need_lib_prefix=no
9932
9933 case $GCC,$host_os in
9934 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9935 library_names_spec='$libname.dll.a'
9936 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9937 postinstall_cmds='base_file=`basename \${file}`~
9938 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9939 dldir=$destdir/`dirname \$dlpath`~
9940 test -d \$dldir || mkdir -p \$dldir~
9941 $install_prog $dir/$dlname \$dldir/$dlname~
9942 chmod a+x \$dldir/$dlname~
9943 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9944 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9945 fi'
9946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9947 dlpath=$dir/\$dldll~
9948 $RM \$dlpath'
9949 shlibpath_overrides_runpath=yes
9950
9951 case $host_os in
9952 cygwin*)
9953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9954 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9955
9956 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9957 ;;
9958 mingw* | cegcc*)
9959 # MinGW DLLs use traditional 'lib' prefix
9960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9961 ;;
9962 pw32*)
9963 # pw32 DLLs use 'pw' prefix rather than 'lib'
9964 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9965 ;;
9966 esac
9967 ;;
9968
9969 *)
9970 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9971 ;;
9972 esac
9973 dynamic_linker='Win32 ld.exe'
9974 # FIXME: first we should search . and the directory the executable is in
9975 shlibpath_var=PATH
9976 ;;
9977
9978 darwin* | rhapsody*)
9979 dynamic_linker="$host_os dyld"
9980 version_type=darwin
9981 need_lib_prefix=no
9982 need_version=no
9983 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9984 soname_spec='${libname}${release}${major}$shared_ext'
9985 shlibpath_overrides_runpath=yes
9986 shlibpath_var=DYLD_LIBRARY_PATH
9987 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9988
9989 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9991 ;;
9992
9993 dgux*)
9994 version_type=linux
9995 need_lib_prefix=no
9996 need_version=no
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 shlibpath_var=LD_LIBRARY_PATH
10000 ;;
10001
10002 freebsd* | dragonfly*)
10003 # DragonFly does not have aout. When/if they implement a new
10004 # versioning mechanism, adjust this.
10005 if test -x /usr/bin/objformat; then
10006 objformat=`/usr/bin/objformat`
10007 else
10008 case $host_os in
10009 freebsd[23].*) objformat=aout ;;
10010 *) objformat=elf ;;
10011 esac
10012 fi
10013 version_type=freebsd-$objformat
10014 case $version_type in
10015 freebsd-elf*)
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10017 need_version=no
10018 need_lib_prefix=no
10019 ;;
10020 freebsd-*)
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10022 need_version=yes
10023 ;;
10024 esac
10025 shlibpath_var=LD_LIBRARY_PATH
10026 case $host_os in
10027 freebsd2.*)
10028 shlibpath_overrides_runpath=yes
10029 ;;
10030 freebsd3.[01]* | freebsdelf3.[01]*)
10031 shlibpath_overrides_runpath=yes
10032 hardcode_into_libs=yes
10033 ;;
10034 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10035 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10036 shlibpath_overrides_runpath=no
10037 hardcode_into_libs=yes
10038 ;;
10039 *) # from 4.6 on, and DragonFly
10040 shlibpath_overrides_runpath=yes
10041 hardcode_into_libs=yes
10042 ;;
10043 esac
10044 ;;
10045
10046 haiku*)
10047 version_type=linux
10048 need_lib_prefix=no
10049 need_version=no
10050 dynamic_linker="$host_os runtime_loader"
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 shlibpath_var=LIBRARY_PATH
10054 shlibpath_overrides_runpath=yes
10055 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10056 hardcode_into_libs=yes
10057 ;;
10058
10059 hpux9* | hpux10* | hpux11*)
10060 # Give a soname corresponding to the major version so that dld.sl refuses to
10061 # link against other versions.
10062 version_type=sunos
10063 need_lib_prefix=no
10064 need_version=no
10065 case $host_cpu in
10066 ia64*)
10067 shrext_cmds='.so'
10068 hardcode_into_libs=yes
10069 dynamic_linker="$host_os dld.so"
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073 soname_spec='${libname}${release}${shared_ext}$major'
10074 if test "X$HPUX_IA64_MODE" = X32; then
10075 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10076 else
10077 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10078 fi
10079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10080 ;;
10081 hppa*64*)
10082 shrext_cmds='.sl'
10083 hardcode_into_libs=yes
10084 dynamic_linker="$host_os dld.sl"
10085 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10088 soname_spec='${libname}${release}${shared_ext}$major'
10089 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10091 ;;
10092 *)
10093 shrext_cmds='.sl'
10094 dynamic_linker="$host_os dld.sl"
10095 shlibpath_var=SHLIB_PATH
10096 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 ;;
10100 esac
10101 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10102 postinstall_cmds='chmod 555 $lib'
10103 # or fails outright, so override atomically:
10104 install_override_mode=555
10105 ;;
10106
10107 interix[3-9]*)
10108 version_type=linux
10109 need_lib_prefix=no
10110 need_version=no
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 shlibpath_overrides_runpath=no
10116 hardcode_into_libs=yes
10117 ;;
10118
10119 irix5* | irix6* | nonstopux*)
10120 case $host_os in
10121 nonstopux*) version_type=nonstopux ;;
10122 *)
10123 if test "$lt_cv_prog_gnu_ld" = yes; then
10124 version_type=linux
10125 else
10126 version_type=irix
10127 fi ;;
10128 esac
10129 need_lib_prefix=no
10130 need_version=no
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10133 case $host_os in
10134 irix5* | nonstopux*)
10135 libsuff= shlibsuff=
10136 ;;
10137 *)
10138 case $LD in # libtool.m4 will add one of these switches to LD
10139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10140 libsuff= shlibsuff= libmagic=32-bit;;
10141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10142 libsuff=32 shlibsuff=N32 libmagic=N32;;
10143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10144 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10145 *) libsuff= shlibsuff= libmagic=never-match;;
10146 esac
10147 ;;
10148 esac
10149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10150 shlibpath_overrides_runpath=no
10151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10153 hardcode_into_libs=yes
10154 ;;
10155
10156 # No shared lib support for Linux oldld, aout, or coff.
10157 linux*oldld* | linux*aout* | linux*coff*)
10158 dynamic_linker=no
10159 ;;
10160
10161 # This must be Linux ELF.
10162 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10163 version_type=linux
10164 need_lib_prefix=no
10165 need_version=no
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167 soname_spec='${libname}${release}${shared_ext}$major'
10168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10169 shlibpath_var=LD_LIBRARY_PATH
10170 shlibpath_overrides_runpath=no
10171
10172 # Some binutils ld are patched to set DT_RUNPATH
10173 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 lt_cv_shlibpath_overrides_runpath=no
10177 save_LDFLAGS=$LDFLAGS
10178 save_libdir=$libdir
10179 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10180 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10183
10184 int
10185 main ()
10186 {
10187
10188 ;
10189 return 0;
10190 }
10191 _ACEOF
10192 if ac_fn_c_try_link "$LINENO"; then :
10193 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10194 lt_cv_shlibpath_overrides_runpath=yes
10195 fi
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 LDFLAGS=$save_LDFLAGS
10200 libdir=$save_libdir
10201
10202 fi
10203
10204 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10205
10206 # This implies no fast_install, which is unacceptable.
10207 # Some rework will be needed to allow for fast_install
10208 # before this can be enabled.
10209 hardcode_into_libs=yes
10210
10211 # Append ld.so.conf contents to the search path
10212 if test -f /etc/ld.so.conf; then
10213 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' ' '`
10214 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10215 fi
10216
10217 # We used to test for /lib/ld.so.1 and disable shared libraries on
10218 # powerpc, because MkLinux only supported shared libraries with the
10219 # GNU dynamic linker. Since this was broken with cross compilers,
10220 # most powerpc-linux boxes support dynamic linking these days and
10221 # people can always --disable-shared, the test was removed, and we
10222 # assume the GNU/Linux dynamic linker is in use.
10223 dynamic_linker='GNU/Linux ld.so'
10224 ;;
10225
10226 netbsd*)
10227 version_type=sunos
10228 need_lib_prefix=no
10229 need_version=no
10230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10233 dynamic_linker='NetBSD (a.out) ld.so'
10234 else
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 dynamic_linker='NetBSD ld.elf_so'
10238 fi
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=yes
10241 hardcode_into_libs=yes
10242 ;;
10243
10244 newsos6)
10245 version_type=linux
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 shlibpath_var=LD_LIBRARY_PATH
10248 shlibpath_overrides_runpath=yes
10249 ;;
10250
10251 *nto* | *qnx*)
10252 version_type=qnx
10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 shlibpath_var=LD_LIBRARY_PATH
10258 shlibpath_overrides_runpath=no
10259 hardcode_into_libs=yes
10260 dynamic_linker='ldqnx.so'
10261 ;;
10262
10263 openbsd*)
10264 version_type=sunos
10265 sys_lib_dlsearch_path_spec="/usr/lib"
10266 need_lib_prefix=no
10267 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10268 case $host_os in
10269 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10270 *) need_version=no ;;
10271 esac
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10274 shlibpath_var=LD_LIBRARY_PATH
10275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10276 case $host_os in
10277 openbsd2.[89] | openbsd2.[89].*)
10278 shlibpath_overrides_runpath=no
10279 ;;
10280 *)
10281 shlibpath_overrides_runpath=yes
10282 ;;
10283 esac
10284 else
10285 shlibpath_overrides_runpath=yes
10286 fi
10287 ;;
10288
10289 os2*)
10290 libname_spec='$name'
10291 shrext_cmds=".dll"
10292 need_lib_prefix=no
10293 library_names_spec='$libname${shared_ext} $libname.a'
10294 dynamic_linker='OS/2 ld.exe'
10295 shlibpath_var=LIBPATH
10296 ;;
10297
10298 osf3* | osf4* | osf5*)
10299 version_type=osf
10300 need_lib_prefix=no
10301 need_version=no
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10306 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10307 ;;
10308
10309 rdos*)
10310 dynamic_linker=no
10311 ;;
10312
10313 solaris*)
10314 version_type=linux
10315 need_lib_prefix=no
10316 need_version=no
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes
10321 hardcode_into_libs=yes
10322 # ldd complains unless libraries are executable
10323 postinstall_cmds='chmod +x $lib'
10324 ;;
10325
10326 sunos4*)
10327 version_type=sunos
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10329 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes
10332 if test "$with_gnu_ld" = yes; then
10333 need_lib_prefix=no
10334 fi
10335 need_version=yes
10336 ;;
10337
10338 sysv4 | sysv4.3*)
10339 version_type=linux
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 case $host_vendor in
10344 sni)
10345 shlibpath_overrides_runpath=no
10346 need_lib_prefix=no
10347 runpath_var=LD_RUN_PATH
10348 ;;
10349 siemens)
10350 need_lib_prefix=no
10351 ;;
10352 motorola)
10353 need_lib_prefix=no
10354 need_version=no
10355 shlibpath_overrides_runpath=no
10356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10357 ;;
10358 esac
10359 ;;
10360
10361 sysv4*MP*)
10362 if test -d /usr/nec ;then
10363 version_type=linux
10364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10365 soname_spec='$libname${shared_ext}.$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 fi
10368 ;;
10369
10370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10371 version_type=freebsd-elf
10372 need_lib_prefix=no
10373 need_version=no
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=yes
10378 hardcode_into_libs=yes
10379 if test "$with_gnu_ld" = yes; then
10380 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10381 else
10382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10383 case $host_os in
10384 sco3.2v5*)
10385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10386 ;;
10387 esac
10388 fi
10389 sys_lib_dlsearch_path_spec='/usr/lib'
10390 ;;
10391
10392 tpf*)
10393 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10394 version_type=linux
10395 need_lib_prefix=no
10396 need_version=no
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=no
10400 hardcode_into_libs=yes
10401 ;;
10402
10403 uts4*)
10404 version_type=linux
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 ;;
10409
10410 *)
10411 dynamic_linker=no
10412 ;;
10413 esac
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10415 $as_echo "$dynamic_linker" >&6; }
10416 test "$dynamic_linker" = no && can_build_shared=no
10417
10418 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10419 if test "$GCC" = yes; then
10420 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10421 fi
10422
10423 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10424 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10425 fi
10426 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10427 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10428 fi
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
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10522 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10523 hardcode_action=
10524 if test -n "$hardcode_libdir_flag_spec" ||
10525 test -n "$runpath_var" ||
10526 test "X$hardcode_automatic" = "Xyes" ; then
10527
10528 # We can hardcode non-existent directories.
10529 if test "$hardcode_direct" != no &&
10530 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10531 # have to relink, otherwise we might link with an installed library
10532 # when we should be linking with a yet-to-be-installed one
10533 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10534 test "$hardcode_minus_L" != no; then
10535 # Linking always hardcodes the temporary library directory.
10536 hardcode_action=relink
10537 else
10538 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10539 hardcode_action=immediate
10540 fi
10541 else
10542 # We cannot hardcode anything, or else we can only hardcode existing
10543 # directories.
10544 hardcode_action=unsupported
10545 fi
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10547 $as_echo "$hardcode_action" >&6; }
10548
10549 if test "$hardcode_action" = relink ||
10550 test "$inherit_rpath" = yes; then
10551 # Fast installation is not supported
10552 enable_fast_install=no
10553 elif test "$shlibpath_overrides_runpath" = yes ||
10554 test "$enable_shared" = no; then
10555 # Fast installation is not necessary
10556 enable_fast_install=needless
10557 fi
10558
10559
10560
10561
10562
10563
10564 if test "x$enable_dlopen" != xyes; then
10565 enable_dlopen=unknown
10566 enable_dlopen_self=unknown
10567 enable_dlopen_self_static=unknown
10568 else
10569 lt_cv_dlopen=no
10570 lt_cv_dlopen_libs=
10571
10572 case $host_os in
10573 beos*)
10574 lt_cv_dlopen="load_add_on"
10575 lt_cv_dlopen_libs=
10576 lt_cv_dlopen_self=yes
10577 ;;
10578
10579 mingw* | pw32* | cegcc*)
10580 lt_cv_dlopen="LoadLibrary"
10581 lt_cv_dlopen_libs=
10582 ;;
10583
10584 cygwin*)
10585 lt_cv_dlopen="dlopen"
10586 lt_cv_dlopen_libs=
10587 ;;
10588
10589 darwin*)
10590 # if libdl is installed we need to link against it
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10592 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10593 if ${ac_cv_lib_dl_dlopen+:} false; then :
10594 $as_echo_n "(cached) " >&6
10595 else
10596 ac_check_lib_save_LIBS=$LIBS
10597 LIBS="-ldl $LIBS"
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10600
10601 /* Override any GCC internal prototype to avoid an error.
10602 Use char because int might match the return type of a GCC
10603 builtin and then its argument prototype would still apply. */
10604 #ifdef __cplusplus
10605 extern "C"
10606 #endif
10607 char dlopen ();
10608 int
10609 main ()
10610 {
10611 return dlopen ();
10612 ;
10613 return 0;
10614 }
10615 _ACEOF
10616 if ac_fn_c_try_link "$LINENO"; then :
10617 ac_cv_lib_dl_dlopen=yes
10618 else
10619 ac_cv_lib_dl_dlopen=no
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10624 fi
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10626 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10627 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10629 else
10630
10631 lt_cv_dlopen="dyld"
10632 lt_cv_dlopen_libs=
10633 lt_cv_dlopen_self=yes
10634
10635 fi
10636
10637 ;;
10638
10639 *)
10640 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10641 if test "x$ac_cv_func_shl_load" = xyes; then :
10642 lt_cv_dlopen="shl_load"
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10645 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10646 if ${ac_cv_lib_dld_shl_load+:} false; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 ac_check_lib_save_LIBS=$LIBS
10650 LIBS="-ldld $LIBS"
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10653
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10657 #ifdef __cplusplus
10658 extern "C"
10659 #endif
10660 char shl_load ();
10661 int
10662 main ()
10663 {
10664 return shl_load ();
10665 ;
10666 return 0;
10667 }
10668 _ACEOF
10669 if ac_fn_c_try_link "$LINENO"; then :
10670 ac_cv_lib_dld_shl_load=yes
10671 else
10672 ac_cv_lib_dld_shl_load=no
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 LIBS=$ac_check_lib_save_LIBS
10677 fi
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10679 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10680 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10681 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10682 else
10683 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10684 if test "x$ac_cv_func_dlopen" = xyes; then :
10685 lt_cv_dlopen="dlopen"
10686 else
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10688 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10689 if ${ac_cv_lib_dl_dlopen+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-ldl $LIBS"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char dlopen ();
10704 int
10705 main ()
10706 {
10707 return dlopen ();
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_dl_dlopen=yes
10714 else
10715 ac_cv_lib_dl_dlopen=no
10716 fi
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10720 fi
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10722 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10723 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10727 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10728 if ${ac_cv_lib_svld_dlopen+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lsvld $LIBS"
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char dlopen ();
10743 int
10744 main ()
10745 {
10746 return dlopen ();
10747 ;
10748 return 0;
10749 }
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 ac_cv_lib_svld_dlopen=yes
10753 else
10754 ac_cv_lib_svld_dlopen=no
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10759 fi
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10761 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10762 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10763 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10764 else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10766 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10767 if ${ac_cv_lib_dld_dld_link+:} false; then :
10768 $as_echo_n "(cached) " >&6
10769 else
10770 ac_check_lib_save_LIBS=$LIBS
10771 LIBS="-ldld $LIBS"
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10778 #ifdef __cplusplus
10779 extern "C"
10780 #endif
10781 char dld_link ();
10782 int
10783 main ()
10784 {
10785 return dld_link ();
10786 ;
10787 return 0;
10788 }
10789 _ACEOF
10790 if ac_fn_c_try_link "$LINENO"; then :
10791 ac_cv_lib_dld_dld_link=yes
10792 else
10793 ac_cv_lib_dld_dld_link=no
10794 fi
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LIBS=$ac_check_lib_save_LIBS
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10800 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10801 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10802 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10803 fi
10804
10805
10806 fi
10807
10808
10809 fi
10810
10811
10812 fi
10813
10814
10815 fi
10816
10817
10818 fi
10819
10820 ;;
10821 esac
10822
10823 if test "x$lt_cv_dlopen" != xno; then
10824 enable_dlopen=yes
10825 else
10826 enable_dlopen=no
10827 fi
10828
10829 case $lt_cv_dlopen in
10830 dlopen)
10831 save_CPPFLAGS="$CPPFLAGS"
10832 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10833
10834 save_LDFLAGS="$LDFLAGS"
10835 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10836
10837 save_LIBS="$LIBS"
10838 LIBS="$lt_cv_dlopen_libs $LIBS"
10839
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10841 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10842 if ${lt_cv_dlopen_self+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 if test "$cross_compiling" = yes; then :
10846 lt_cv_dlopen_self=cross
10847 else
10848 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10849 lt_status=$lt_dlunknown
10850 cat > conftest.$ac_ext <<_LT_EOF
10851 #line 10851 "configure"
10852 #include "confdefs.h"
10853
10854 #if HAVE_DLFCN_H
10855 #include <dlfcn.h>
10856 #endif
10857
10858 #include <stdio.h>
10859
10860 #ifdef RTLD_GLOBAL
10861 # define LT_DLGLOBAL RTLD_GLOBAL
10862 #else
10863 # ifdef DL_GLOBAL
10864 # define LT_DLGLOBAL DL_GLOBAL
10865 # else
10866 # define LT_DLGLOBAL 0
10867 # endif
10868 #endif
10869
10870 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10871 find out it does not work in some platform. */
10872 #ifndef LT_DLLAZY_OR_NOW
10873 # ifdef RTLD_LAZY
10874 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10875 # else
10876 # ifdef DL_LAZY
10877 # define LT_DLLAZY_OR_NOW DL_LAZY
10878 # else
10879 # ifdef RTLD_NOW
10880 # define LT_DLLAZY_OR_NOW RTLD_NOW
10881 # else
10882 # ifdef DL_NOW
10883 # define LT_DLLAZY_OR_NOW DL_NOW
10884 # else
10885 # define LT_DLLAZY_OR_NOW 0
10886 # endif
10887 # endif
10888 # endif
10889 # endif
10890 #endif
10891
10892 /* When -fvisbility=hidden is used, assume the code has been annotated
10893 correspondingly for the symbols needed. */
10894 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10895 void fnord () __attribute__((visibility("default")));
10896 #endif
10897
10898 void fnord () { int i=42; }
10899 int main ()
10900 {
10901 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10902 int status = $lt_dlunknown;
10903
10904 if (self)
10905 {
10906 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10907 else
10908 {
10909 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10910 else puts (dlerror ());
10911 }
10912 /* dlclose (self); */
10913 }
10914 else
10915 puts (dlerror ());
10916
10917 return status;
10918 }
10919 _LT_EOF
10920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10921 (eval $ac_link) 2>&5
10922 ac_status=$?
10923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10924 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10925 (./conftest; exit; ) >&5 2>/dev/null
10926 lt_status=$?
10927 case x$lt_status in
10928 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10929 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10930 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10931 esac
10932 else :
10933 # compilation failed
10934 lt_cv_dlopen_self=no
10935 fi
10936 fi
10937 rm -fr conftest*
10938
10939
10940 fi
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10942 $as_echo "$lt_cv_dlopen_self" >&6; }
10943
10944 if test "x$lt_cv_dlopen_self" = xyes; then
10945 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10947 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10948 if ${lt_cv_dlopen_self_static+:} false; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 if test "$cross_compiling" = yes; then :
10952 lt_cv_dlopen_self_static=cross
10953 else
10954 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10955 lt_status=$lt_dlunknown
10956 cat > conftest.$ac_ext <<_LT_EOF
10957 #line 10957 "configure"
10958 #include "confdefs.h"
10959
10960 #if HAVE_DLFCN_H
10961 #include <dlfcn.h>
10962 #endif
10963
10964 #include <stdio.h>
10965
10966 #ifdef RTLD_GLOBAL
10967 # define LT_DLGLOBAL RTLD_GLOBAL
10968 #else
10969 # ifdef DL_GLOBAL
10970 # define LT_DLGLOBAL DL_GLOBAL
10971 # else
10972 # define LT_DLGLOBAL 0
10973 # endif
10974 #endif
10975
10976 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10977 find out it does not work in some platform. */
10978 #ifndef LT_DLLAZY_OR_NOW
10979 # ifdef RTLD_LAZY
10980 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10981 # else
10982 # ifdef DL_LAZY
10983 # define LT_DLLAZY_OR_NOW DL_LAZY
10984 # else
10985 # ifdef RTLD_NOW
10986 # define LT_DLLAZY_OR_NOW RTLD_NOW
10987 # else
10988 # ifdef DL_NOW
10989 # define LT_DLLAZY_OR_NOW DL_NOW
10990 # else
10991 # define LT_DLLAZY_OR_NOW 0
10992 # endif
10993 # endif
10994 # endif
10995 # endif
10996 #endif
10997
10998 /* When -fvisbility=hidden is used, assume the code has been annotated
10999 correspondingly for the symbols needed. */
11000 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11001 void fnord () __attribute__((visibility("default")));
11002 #endif
11003
11004 void fnord () { int i=42; }
11005 int main ()
11006 {
11007 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11008 int status = $lt_dlunknown;
11009
11010 if (self)
11011 {
11012 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11013 else
11014 {
11015 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11016 else puts (dlerror ());
11017 }
11018 /* dlclose (self); */
11019 }
11020 else
11021 puts (dlerror ());
11022
11023 return status;
11024 }
11025 _LT_EOF
11026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11027 (eval $ac_link) 2>&5
11028 ac_status=$?
11029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11030 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11031 (./conftest; exit; ) >&5 2>/dev/null
11032 lt_status=$?
11033 case x$lt_status in
11034 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11035 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11036 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11037 esac
11038 else :
11039 # compilation failed
11040 lt_cv_dlopen_self_static=no
11041 fi
11042 fi
11043 rm -fr conftest*
11044
11045
11046 fi
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11048 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11049 fi
11050
11051 CPPFLAGS="$save_CPPFLAGS"
11052 LDFLAGS="$save_LDFLAGS"
11053 LIBS="$save_LIBS"
11054 ;;
11055 esac
11056
11057 case $lt_cv_dlopen_self in
11058 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11059 *) enable_dlopen_self=unknown ;;
11060 esac
11061
11062 case $lt_cv_dlopen_self_static in
11063 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11064 *) enable_dlopen_self_static=unknown ;;
11065 esac
11066 fi
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084 striplib=
11085 old_striplib=
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11087 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11088 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11089 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11090 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11092 $as_echo "yes" >&6; }
11093 else
11094 # FIXME - insert some real tests, host_os isn't really good enough
11095 case $host_os in
11096 darwin*)
11097 if test -n "$STRIP" ; then
11098 striplib="$STRIP -x"
11099 old_striplib="$STRIP -S"
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11101 $as_echo "yes" >&6; }
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 $as_echo "no" >&6; }
11105 fi
11106 ;;
11107 *)
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; }
11110 ;;
11111 esac
11112 fi
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125 # Report which library types will actually be built
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11127 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11129 $as_echo "$can_build_shared" >&6; }
11130
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11132 $as_echo_n "checking whether to build shared libraries... " >&6; }
11133 test "$can_build_shared" = "no" && enable_shared=no
11134
11135 # On AIX, shared libraries and static libraries use the same namespace, and
11136 # are all built from PIC.
11137 case $host_os in
11138 aix3*)
11139 test "$enable_shared" = yes && enable_static=no
11140 if test -n "$RANLIB"; then
11141 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11142 postinstall_cmds='$RANLIB $lib'
11143 fi
11144 ;;
11145
11146 aix[4-9]*)
11147 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11148 test "$enable_shared" = yes && enable_static=no
11149 fi
11150 ;;
11151 esac
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11153 $as_echo "$enable_shared" >&6; }
11154
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11156 $as_echo_n "checking whether to build static libraries... " >&6; }
11157 # Make sure either enable_shared or enable_static is yes.
11158 test "$enable_shared" = yes || enable_static=yes
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11160 $as_echo "$enable_static" >&6; }
11161
11162
11163
11164
11165 fi
11166 ac_ext=c
11167 ac_cpp='$CPP $CPPFLAGS'
11168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11171
11172 CC="$lt_save_CC"
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186 ac_config_commands="$ac_config_commands libtool"
11187
11188
11189
11190
11191 # Only expand once:
11192
11193
11194
11195 ac_checking=
11196 . ${srcdir}/../bfd/development.sh
11197 test "$development" = true && ac_checking=yes
11198 # Check whether --enable-checking was given.
11199 if test "${enable_checking+set}" = set; then :
11200 enableval=$enable_checking; case "${enableval}" in
11201 no|none) ac_checking= ;;
11202 *) ac_checking=yes ;;
11203 esac
11204 fi
11205 if test x$ac_checking != x ; then
11206
11207 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11208
11209 fi
11210
11211 # Check whether --enable-targets was given.
11212 if test "${enable_targets+set}" = set; then :
11213 enableval=$enable_targets; case "${enableval}" in
11214 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11215 ;;
11216 no) enable_targets= ;;
11217 *) enable_targets=$enableval ;;
11218 esac
11219 fi
11220
11221
11222 # Set the 'development' global.
11223 . $srcdir/../bfd/development.sh
11224
11225 # Set acp_cpp_for_build variable
11226 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11227
11228 # Default set of GCC warnings to enable.
11229 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11230 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11231
11232 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235 __GNUC__
11236 _ACEOF
11237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11238 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11239
11240 else
11241 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11242 fi
11243 rm -f conftest*
11244
11245
11246 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 __GNUC__
11250 _ACEOF
11251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11252 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11253
11254 else
11255 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11256 fi
11257 rm -f conftest*
11258
11259
11260 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11261 WARN_WRITE_STRINGS=""
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11264 __GNUC__
11265 _ACEOF
11266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11267 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11268
11269 else
11270 WARN_WRITE_STRINGS="-Wwrite-strings"
11271 fi
11272 rm -f conftest*
11273
11274
11275 # Verify CC_FOR_BUILD to be compatible with warning flags
11276
11277 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280 __GNUC__
11281 _ACEOF
11282 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11283 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11284
11285 else
11286 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11287 fi
11288 rm -f conftest*
11289
11290
11291 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294 __GNUC__
11295 _ACEOF
11296 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11297 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11298
11299 else
11300 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11301 fi
11302 rm -f conftest*
11303
11304
11305 # Check whether --enable-werror was given.
11306 if test "${enable_werror+set}" = set; then :
11307 enableval=$enable_werror; case "${enableval}" in
11308 yes | y) ERROR_ON_WARNING="yes" ;;
11309 no | n) ERROR_ON_WARNING="no" ;;
11310 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11311 esac
11312 fi
11313
11314
11315 # Disable -Wformat by default when using gcc on mingw
11316 case "${host}" in
11317 *-*-mingw32*)
11318 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11319 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11320 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
11321 fi
11322 ;;
11323 *) ;;
11324 esac
11325
11326 # Enable -Werror by default when using gcc. Turn it off for releases.
11327 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11328 ERROR_ON_WARNING=yes
11329 fi
11330
11331 NO_WERROR=
11332 if test "${ERROR_ON_WARNING}" = yes ; then
11333 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11334 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
11335 NO_WERROR="-Wno-error"
11336 fi
11337
11338 if test "${GCC}" = yes ; then
11339 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11340 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
11341 fi
11342
11343 # Check whether --enable-build-warnings was given.
11344 if test "${enable_build_warnings+set}" = set; then :
11345 enableval=$enable_build_warnings; case "${enableval}" in
11346 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11347 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
11348 no) if test "${GCC}" = yes ; then
11349 WARN_CFLAGS="-w"
11350 WARN_CFLAGS_FOR_BUILD="-w"
11351 fi;;
11352 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11353 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
11354 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
11355 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11356 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
11357 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11358 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
11359 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11360 esac
11361 fi
11362
11363
11364 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11365 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11366 fi
11367
11368
11369
11370
11371
11372
11373
11374 ac_config_headers="$ac_config_headers config.h:config.in"
11375
11376
11377 # PR 14072
11378
11379
11380 if test -z "$target" ; then
11381 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
11382 fi
11383
11384
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11386 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11387 # Check whether --enable-maintainer-mode was given.
11388 if test "${enable_maintainer_mode+set}" = set; then :
11389 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11390 else
11391 USE_MAINTAINER_MODE=no
11392 fi
11393
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11395 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11396 if test $USE_MAINTAINER_MODE = yes; then
11397 MAINTAINER_MODE_TRUE=
11398 MAINTAINER_MODE_FALSE='#'
11399 else
11400 MAINTAINER_MODE_TRUE='#'
11401 MAINTAINER_MODE_FALSE=
11402 fi
11403
11404 MAINT=$MAINTAINER_MODE_TRUE
11405
11406
11407 case ${build_alias} in
11408 "") build_noncanonical=${build} ;;
11409 *) build_noncanonical=${build_alias} ;;
11410 esac
11411
11412 case ${host_alias} in
11413 "") host_noncanonical=${build_noncanonical} ;;
11414 *) host_noncanonical=${host_alias} ;;
11415 esac
11416
11417 case ${target_alias} in
11418 "") target_noncanonical=${host_noncanonical} ;;
11419 *) target_noncanonical=${target_alias} ;;
11420 esac
11421
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
11423 $as_echo_n "checking whether to install libbfd... " >&6; }
11424 # Check whether --enable-install-libbfd was given.
11425 if test "${enable_install_libbfd+set}" = set; then :
11426 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
11427 else
11428 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11429 install_libbfd_p=yes
11430 else
11431 install_libbfd_p=no
11432 fi
11433 fi
11434
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
11436 $as_echo "$install_libbfd_p" >&6; }
11437 if test $install_libbfd_p = yes; then
11438 INSTALL_LIBBFD_TRUE=
11439 INSTALL_LIBBFD_FALSE='#'
11440 else
11441 INSTALL_LIBBFD_TRUE='#'
11442 INSTALL_LIBBFD_FALSE=
11443 fi
11444
11445 # Need _noncanonical variables for this.
11446
11447
11448
11449
11450 # libbfd.a is a host library containing target dependent code
11451 bfdlibdir='$(libdir)'
11452 bfdincludedir='$(includedir)'
11453 if test "${host}" != "${target}"; then
11454 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11455 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11456 fi
11457
11458
11459
11460
11461
11462
11463
11464
11465 # host-specific stuff:
11466
11467 ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN"
11468 # If we haven't got the data from the intl directory,
11469 # assume NLS is disabled.
11470 USE_NLS=no
11471 LIBINTL=
11472 LIBINTL_DEP=
11473 INCINTL=
11474 XGETTEXT=
11475 GMSGFMT=
11476 POSUB=
11477
11478 if test -f ../intl/config.intl; then
11479 . ../intl/config.intl
11480 fi
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11482 $as_echo_n "checking whether NLS is requested... " >&6; }
11483 if test x"$USE_NLS" != xyes; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11488 $as_echo "yes" >&6; }
11489
11490 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11491
11492
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11494 $as_echo_n "checking for catalogs to be installed... " >&6; }
11495 # Look for .po and .gmo files in the source directory.
11496 CATALOGS=
11497 XLINGUAS=
11498 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11499 # If there aren't any .gmo files the shell will give us the
11500 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11501 # weeded out.
11502 case "$cat" in *\**)
11503 continue;;
11504 esac
11505 # The quadruple backslash is collapsed to a double backslash
11506 # by the backticks, then collapsed again by the double quotes,
11507 # leaving us with one backslash in the sed expression (right
11508 # before the dot that mustn't act as a wildcard).
11509 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11510 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11511 # The user is allowed to set LINGUAS to a list of languages to
11512 # install catalogs for. If it's empty that means "all of them."
11513 if test "x$LINGUAS" = x; then
11514 CATALOGS="$CATALOGS $cat"
11515 XLINGUAS="$XLINGUAS $lang"
11516 else
11517 case "$LINGUAS" in *$lang*)
11518 CATALOGS="$CATALOGS $cat"
11519 XLINGUAS="$XLINGUAS $lang"
11520 ;;
11521 esac
11522 fi
11523 done
11524 LINGUAS="$XLINGUAS"
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11526 $as_echo "$LINGUAS" >&6; }
11527
11528
11529 DATADIRNAME=share
11530
11531 INSTOBJEXT=.mo
11532
11533 GENCAT=gencat
11534
11535 CATOBJEXT=.gmo
11536
11537 fi
11538
11539 MKINSTALLDIRS=
11540 if test -n "$ac_aux_dir"; then
11541 case "$ac_aux_dir" in
11542 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11543 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11544 esac
11545 fi
11546 if test -z "$MKINSTALLDIRS"; then
11547 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11548 fi
11549
11550
11551
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11553 $as_echo_n "checking whether NLS is requested... " >&6; }
11554 # Check whether --enable-nls was given.
11555 if test "${enable_nls+set}" = set; then :
11556 enableval=$enable_nls; USE_NLS=$enableval
11557 else
11558 USE_NLS=yes
11559 fi
11560
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11562 $as_echo "$USE_NLS" >&6; }
11563
11564
11565
11566
11567
11568
11569 # Prepare PATH_SEPARATOR.
11570 # The user is always right.
11571 if test "${PATH_SEPARATOR+set}" != set; then
11572 echo "#! /bin/sh" >conf$$.sh
11573 echo "exit 0" >>conf$$.sh
11574 chmod +x conf$$.sh
11575 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11576 PATH_SEPARATOR=';'
11577 else
11578 PATH_SEPARATOR=:
11579 fi
11580 rm -f conf$$.sh
11581 fi
11582
11583 # Find out how to test for executable files. Don't use a zero-byte file,
11584 # as systems may use methods other than mode bits to determine executability.
11585 cat >conf$$.file <<_ASEOF
11586 #! /bin/sh
11587 exit 0
11588 _ASEOF
11589 chmod +x conf$$.file
11590 if test -x conf$$.file >/dev/null 2>&1; then
11591 ac_executable_p="test -x"
11592 else
11593 ac_executable_p="test -f"
11594 fi
11595 rm -f conf$$.file
11596
11597 # Extract the first word of "msgfmt", so it can be a program name with args.
11598 set dummy msgfmt; ac_word=$2
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600 $as_echo_n "checking for $ac_word... " >&6; }
11601 if ${ac_cv_path_MSGFMT+:} false; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604 case "$MSGFMT" in
11605 [\\/]* | ?:[\\/]*)
11606 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11607 ;;
11608 *)
11609 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11610 for ac_dir in $PATH; do
11611 IFS="$ac_save_IFS"
11612 test -z "$ac_dir" && ac_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11615 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11616 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11617 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11618 break 2
11619 fi
11620 fi
11621 done
11622 done
11623 IFS="$ac_save_IFS"
11624 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11625 ;;
11626 esac
11627 fi
11628 MSGFMT="$ac_cv_path_MSGFMT"
11629 if test "$MSGFMT" != ":"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11631 $as_echo "$MSGFMT" >&6; }
11632 else
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11635 fi
11636
11637 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11638 set dummy gmsgfmt; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if ${ac_cv_path_GMSGFMT+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 case $GMSGFMT in
11645 [\\/]* | ?:[\\/]*)
11646 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11647 ;;
11648 *)
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11651 do
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11656 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658 break 2
11659 fi
11660 done
11661 done
11662 IFS=$as_save_IFS
11663
11664 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11665 ;;
11666 esac
11667 fi
11668 GMSGFMT=$ac_cv_path_GMSGFMT
11669 if test -n "$GMSGFMT"; then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11671 $as_echo "$GMSGFMT" >&6; }
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 $as_echo "no" >&6; }
11675 fi
11676
11677
11678
11679
11680 # Prepare PATH_SEPARATOR.
11681 # The user is always right.
11682 if test "${PATH_SEPARATOR+set}" != set; then
11683 echo "#! /bin/sh" >conf$$.sh
11684 echo "exit 0" >>conf$$.sh
11685 chmod +x conf$$.sh
11686 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11687 PATH_SEPARATOR=';'
11688 else
11689 PATH_SEPARATOR=:
11690 fi
11691 rm -f conf$$.sh
11692 fi
11693
11694 # Find out how to test for executable files. Don't use a zero-byte file,
11695 # as systems may use methods other than mode bits to determine executability.
11696 cat >conf$$.file <<_ASEOF
11697 #! /bin/sh
11698 exit 0
11699 _ASEOF
11700 chmod +x conf$$.file
11701 if test -x conf$$.file >/dev/null 2>&1; then
11702 ac_executable_p="test -x"
11703 else
11704 ac_executable_p="test -f"
11705 fi
11706 rm -f conf$$.file
11707
11708 # Extract the first word of "xgettext", so it can be a program name with args.
11709 set dummy xgettext; ac_word=$2
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711 $as_echo_n "checking for $ac_word... " >&6; }
11712 if ${ac_cv_path_XGETTEXT+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 case "$XGETTEXT" in
11716 [\\/]* | ?:[\\/]*)
11717 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11718 ;;
11719 *)
11720 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11721 for ac_dir in $PATH; do
11722 IFS="$ac_save_IFS"
11723 test -z "$ac_dir" && ac_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11726 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11727 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11728 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11729 break 2
11730 fi
11731 fi
11732 done
11733 done
11734 IFS="$ac_save_IFS"
11735 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11736 ;;
11737 esac
11738 fi
11739 XGETTEXT="$ac_cv_path_XGETTEXT"
11740 if test "$XGETTEXT" != ":"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11742 $as_echo "$XGETTEXT" >&6; }
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746 fi
11747
11748 rm -f messages.po
11749
11750
11751 # Prepare PATH_SEPARATOR.
11752 # The user is always right.
11753 if test "${PATH_SEPARATOR+set}" != set; then
11754 echo "#! /bin/sh" >conf$$.sh
11755 echo "exit 0" >>conf$$.sh
11756 chmod +x conf$$.sh
11757 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11758 PATH_SEPARATOR=';'
11759 else
11760 PATH_SEPARATOR=:
11761 fi
11762 rm -f conf$$.sh
11763 fi
11764
11765 # Find out how to test for executable files. Don't use a zero-byte file,
11766 # as systems may use methods other than mode bits to determine executability.
11767 cat >conf$$.file <<_ASEOF
11768 #! /bin/sh
11769 exit 0
11770 _ASEOF
11771 chmod +x conf$$.file
11772 if test -x conf$$.file >/dev/null 2>&1; then
11773 ac_executable_p="test -x"
11774 else
11775 ac_executable_p="test -f"
11776 fi
11777 rm -f conf$$.file
11778
11779 # Extract the first word of "msgmerge", so it can be a program name with args.
11780 set dummy msgmerge; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782 $as_echo_n "checking for $ac_word... " >&6; }
11783 if ${ac_cv_path_MSGMERGE+:} false; then :
11784 $as_echo_n "(cached) " >&6
11785 else
11786 case "$MSGMERGE" in
11787 [\\/]* | ?:[\\/]*)
11788 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11789 ;;
11790 *)
11791 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11792 for ac_dir in $PATH; do
11793 IFS="$ac_save_IFS"
11794 test -z "$ac_dir" && ac_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11797 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11798 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11799 break 2
11800 fi
11801 fi
11802 done
11803 done
11804 IFS="$ac_save_IFS"
11805 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11806 ;;
11807 esac
11808 fi
11809 MSGMERGE="$ac_cv_path_MSGMERGE"
11810 if test "$MSGMERGE" != ":"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11812 $as_echo "$MSGMERGE" >&6; }
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816 fi
11817
11818
11819 if test "$GMSGFMT" != ":"; then
11820 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11821 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11822 : ;
11823 else
11824 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11826 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11827 GMSGFMT=":"
11828 fi
11829 fi
11830
11831 if test "$XGETTEXT" != ":"; then
11832 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11833 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11834 : ;
11835 else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11837 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11838 XGETTEXT=":"
11839 fi
11840 rm -f messages.po
11841 fi
11842
11843 ac_config_commands="$ac_config_commands default-1"
11844
11845
11846
11847 . ${srcdir}/../bfd/configure.host
11848
11849 # Put a plausible default for CC_FOR_BUILD in Makefile.
11850 if test -z "$CC_FOR_BUILD"; then
11851 if test "x$cross_compiling" = "xno"; then
11852 CC_FOR_BUILD='$(CC)'
11853 else
11854 CC_FOR_BUILD=gcc
11855 fi
11856 fi
11857
11858 # Also set EXEEXT_FOR_BUILD.
11859 if test "x$cross_compiling" = "xno"; then
11860 EXEEXT_FOR_BUILD='$(EXEEXT)'
11861 else
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
11863 $as_echo_n "checking for build system executable suffix... " >&6; }
11864 if ${bfd_cv_build_exeext+:} false; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 rm -f conftest*
11868 echo 'int main () { return 0; }' > conftest.c
11869 bfd_cv_build_exeext=
11870 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11871 for file in conftest.*; do
11872 case $file in
11873 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11874 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11875 esac
11876 done
11877 rm -f conftest*
11878 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
11881 $as_echo "$bfd_cv_build_exeext" >&6; }
11882 EXEEXT_FOR_BUILD=""
11883 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11884 fi
11885
11886
11887
11888
11889
11890 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
11891 if test "x$ac_cv_have_decl_basename" = xyes; then :
11892 ac_have_decl=1
11893 else
11894 ac_have_decl=0
11895 fi
11896
11897 cat >>confdefs.h <<_ACEOF
11898 #define HAVE_DECL_BASENAME $ac_have_decl
11899 _ACEOF
11900 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
11901 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
11902 ac_have_decl=1
11903 else
11904 ac_have_decl=0
11905 fi
11906
11907 cat >>confdefs.h <<_ACEOF
11908 #define HAVE_DECL_STPCPY $ac_have_decl
11909 _ACEOF
11910
11911
11912 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
11913 # since sigsetjmp might only be defined as a macro.
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11915 $as_echo_n "checking for sigsetjmp... " >&6; }
11916 if ${gdb_cv_func_sigsetjmp+:} false; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11921
11922 #include <setjmp.h>
11923
11924 int
11925 main ()
11926 {
11927 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 if ac_fn_c_try_compile "$LINENO"; then :
11933 bfd_cv_func_sigsetjmp=yes
11934 else
11935 bfd_cv_func_sigsetjmp=no
11936 fi
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938 fi
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11940 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11941 if test $bfd_cv_func_sigsetjmp = yes; then
11942
11943 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11944
11945 fi
11946
11947 cgen_maint=no
11948 cgendir='$(srcdir)/../cgen'
11949
11950 # Check whether --enable-cgen-maint was given.
11951 if test "${enable_cgen_maint+set}" = set; then :
11952 enableval=$enable_cgen_maint; case "${enableval}" in
11953 yes) cgen_maint=yes ;;
11954 no) cgen_maint=no ;;
11955 *)
11956 # Argument is a directory where cgen can be found. In some
11957 # future world cgen could be installable, but right now this
11958 # is not the case. Instead we assume the directory is a path
11959 # to the cgen source tree.
11960 cgen_maint=yes
11961 if test -r ${enableval}/iformat.scm; then
11962 # This looks like a cgen source tree.
11963 cgendir=${enableval}
11964 else
11965 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
11966 fi
11967 ;;
11968 esac
11969 fi
11970 if test x${cgen_maint} = xyes; then
11971 CGEN_MAINT_TRUE=
11972 CGEN_MAINT_FALSE='#'
11973 else
11974 CGEN_MAINT_TRUE='#'
11975 CGEN_MAINT_FALSE=
11976 fi
11977
11978
11979
11980 using_cgen=no
11981
11982 # Check if linker supports --as-needed and --no-as-needed options
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
11984 $as_echo_n "checking linker --as-needed support... " >&6; }
11985 if ${bfd_cv_ld_as_needed+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 bfd_cv_ld_as_needed=no
11989 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
11990 bfd_cv_ld_as_needed=yes
11991 fi
11992
11993 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
11995 $as_echo "$bfd_cv_ld_as_needed" >&6; }
11996
11997 LIBM=
11998 case $host in
11999 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
12000 # These system don't have libm, or don't need it
12001 ;;
12002 *-ncr-sysv4.3*)
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12004 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12005 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008 ac_check_lib_save_LIBS=$LIBS
12009 LIBS="-lmw $LIBS"
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012
12013 /* Override any GCC internal prototype to avoid an error.
12014 Use char because int might match the return type of a GCC
12015 builtin and then its argument prototype would still apply. */
12016 #ifdef __cplusplus
12017 extern "C"
12018 #endif
12019 char _mwvalidcheckl ();
12020 int
12021 main ()
12022 {
12023 return _mwvalidcheckl ();
12024 ;
12025 return 0;
12026 }
12027 _ACEOF
12028 if ac_fn_c_try_link "$LINENO"; then :
12029 ac_cv_lib_mw__mwvalidcheckl=yes
12030 else
12031 ac_cv_lib_mw__mwvalidcheckl=no
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035 LIBS=$ac_check_lib_save_LIBS
12036 fi
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12038 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12039 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
12040 LIBM="-lmw"
12041 fi
12042
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12044 $as_echo_n "checking for cos in -lm... " >&6; }
12045 if ${ac_cv_lib_m_cos+:} false; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 ac_check_lib_save_LIBS=$LIBS
12049 LIBS="-lm $LIBS"
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12052
12053 /* Override any GCC internal prototype to avoid an error.
12054 Use char because int might match the return type of a GCC
12055 builtin and then its argument prototype would still apply. */
12056 #ifdef __cplusplus
12057 extern "C"
12058 #endif
12059 char cos ();
12060 int
12061 main ()
12062 {
12063 return cos ();
12064 ;
12065 return 0;
12066 }
12067 _ACEOF
12068 if ac_fn_c_try_link "$LINENO"; then :
12069 ac_cv_lib_m_cos=yes
12070 else
12071 ac_cv_lib_m_cos=no
12072 fi
12073 rm -f core conftest.err conftest.$ac_objext \
12074 conftest$ac_exeext conftest.$ac_ext
12075 LIBS=$ac_check_lib_save_LIBS
12076 fi
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12078 $as_echo "$ac_cv_lib_m_cos" >&6; }
12079 if test "x$ac_cv_lib_m_cos" = xyes; then :
12080 LIBM="$LIBM -lm"
12081 fi
12082
12083 ;;
12084 *)
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12086 $as_echo_n "checking for cos in -lm... " >&6; }
12087 if ${ac_cv_lib_m_cos+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 ac_check_lib_save_LIBS=$LIBS
12091 LIBS="-lm $LIBS"
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12094
12095 /* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */
12098 #ifdef __cplusplus
12099 extern "C"
12100 #endif
12101 char cos ();
12102 int
12103 main ()
12104 {
12105 return cos ();
12106 ;
12107 return 0;
12108 }
12109 _ACEOF
12110 if ac_fn_c_try_link "$LINENO"; then :
12111 ac_cv_lib_m_cos=yes
12112 else
12113 ac_cv_lib_m_cos=no
12114 fi
12115 rm -f core conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS
12118 fi
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12120 $as_echo "$ac_cv_lib_m_cos" >&6; }
12121 if test "x$ac_cv_lib_m_cos" = xyes; then :
12122 LIBM="-lm"
12123 fi
12124
12125 ;;
12126 esac
12127
12128
12129
12130 #Libs for generator progs
12131 if test "x$cross_compiling" = "xno"; then
12132 BUILD_LIBS=../libiberty/libiberty.a
12133 BUILD_LIB_DEPS=$BUILD_LIBS
12134 else
12135 # if cross-compiling, assume that the system provides -liberty
12136 # and that the version is compatible with new headers.
12137 BUILD_LIBS=-liberty
12138 BUILD_LIB_DEPS=
12139 fi
12140 BUILD_LIBS="$BUILD_LIBS $LIBINTL"
12141 BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
12142
12143
12144
12145
12146 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12147 SHARED_LDFLAGS=
12148 SHARED_LIBADD=
12149 SHARED_DEPENDENCIES=
12150 if test "$enable_shared" = "yes"; then
12151 # When building a shared libopcodes, link against the pic version of libiberty
12152 # so that apps that use libopcodes won't need libiberty just to satisfy any
12153 # libopcodes references.
12154 # We can't do that if a pic libiberty is unavailable since including non-pic
12155 # code would insert text relocations into libopcodes.
12156 # Note that linking against libbfd as we do here, which is itself linked
12157 # against libiberty, may not satisfy all the libopcodes libiberty references
12158 # since libbfd may not pull in the entirety of libiberty.
12159 # Also, jam libintl into the right place in all of this: after libiberty,
12160 # which uses it, but before -lcygwin, which it uses.
12161 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12162 if test -n "$x"; then
12163 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12164 fi
12165 fi
12166
12167 SHARED_LIBADD="$SHARED_LIBADD $LIBINTL"
12168
12169 if test "$enable_shared" = "yes"; then
12170 case "${host}" in
12171 *-*-cygwin*)
12172 SHARED_LDFLAGS="-no-undefined"
12173 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD"
12174 ;;
12175 *)
12176 SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}"
12177 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12178 ;;
12179 esac
12180
12181 if test -n "$SHARED_LIBADD"; then
12182 if test -n "$LIBM"; then
12183 if test x"$bfd_cv_ld_as_needed" = xyes; then
12184 # Link against libm only when needed. Put -lc, -lm inside -Wl
12185 # to stop libtool reordering these options.
12186 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12187 else
12188 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12189 fi
12190 fi
12191 fi
12192 fi
12193
12194
12195
12196
12197 # target-specific stuff:
12198
12199 # Canonicalize the secondary target names.
12200 if test -n "$enable_targets" ; then
12201 for targ in `echo $enable_targets | sed 's/,/ /g'`
12202 do
12203 result=`$ac_config_sub $targ 2>/dev/null`
12204 if test -n "$result" ; then
12205 canon_targets="$canon_targets $result"
12206 else
12207 # Allow targets that config.sub doesn't recognize, like "all".
12208 canon_targets="$canon_targets $targ"
12209 fi
12210 done
12211 fi
12212
12213 all_targets=false
12214 selarchs=
12215 for targ in $target $canon_targets
12216 do
12217 if test "x$targ" = "xall" ; then
12218 all_targets=true
12219 else
12220 . $srcdir/../bfd/config.bfd
12221 selarchs="$selarchs $targ_archs"
12222 fi
12223 done
12224
12225 # Utility var, documents generic cgen support files.
12226
12227 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
12228
12229 # We don't do any links based on the target system, just makefile config.
12230
12231 if test x${all_targets} = xfalse ; then
12232
12233 # Target architecture .o files.
12234 ta=
12235
12236 for arch in $selarchs
12237 do
12238 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12239 archdefs="$archdefs -DARCH_$ad"
12240 case "$arch" in
12241 bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;;
12242 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
12243 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
12244 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
12245 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
12246 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
12247 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
12248 bfd_cris_arch) ta="$ta cris-desc.lo cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
12249 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
12250 bfd_csky_arch) ta="$ta csky-dis.lo" ;;
12251 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12252 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
12253 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
12254 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
12255 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
12256 bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;;
12257 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
12258 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
12259 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
12260 bfd_i386_arch|bfd_iamcu_arch|bfd_l1om_arch|bfd_k1om_arch)
12261 ta="$ta i386-dis.lo i386-opc.lo" ;;
12262 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
12263 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
12264 bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
12265 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
12266 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
12267 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
12268 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
12269 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12270 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12271 bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12272 bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12273 bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;;
12274 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
12275 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
12276 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
12277 bfd_metag_arch) ta="$ta metag-dis.lo" ;;
12278 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
12279 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;;
12280 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
12281 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12282 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
12283 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
12284 bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;;
12285 bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;;
12286 bfd_nfp_arch) ta="$ta nfp-dis.lo" ;;
12287 bfd_nios2_arch) ta="$ta nios2-dis.lo nios2-opc.lo" ;;
12288 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
12289 bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;;
12290 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
12291 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
12292 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12293 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12294 bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;;
12295 bfd_pyramid_arch) ;;
12296 bfd_romp_arch) ;;
12297 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;;
12298 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12299 bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";;
12300 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";;
12301 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
12302 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
12303 bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;;
12304 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
12305 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
12306 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
12307 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
12308 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
12309 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;;
12310 bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;;
12311 bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;;
12312 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12313 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12314 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12315 bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12316 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
12317 bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;;
12318 bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;;
12319 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
12320 bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;;
12321 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
12322 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
12323 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
12324 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
12325 bfd_bpf_arch) ta="$ta bpf-asm.lo bpf-desc.lo bpf-dis.lo bpf-ibld.lo bpf-opc.lo" using_cgen=yes ;;
12326 bfd_loongarch_arch) ta="$ta loongarch-dis.lo loongarch-opc.lo loongarch-coder.lo" ;;
12327
12328 "") ;;
12329 *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;;
12330 esac
12331 done
12332
12333 if test $using_cgen = yes ; then
12334 ta="$ta $cgen_files"
12335 fi
12336
12337 # Weed out duplicate .o files.
12338 f=""
12339 for i in $ta ; do
12340 case " $f " in
12341 *" $i "*) ;;
12342 *) f="$f $i" ;;
12343 esac
12344 done
12345 ta="$f"
12346
12347 # And duplicate -D flags.
12348 f=""
12349 for i in $archdefs ; do
12350 case " $f " in
12351 *" $i "*) ;;
12352 *) f="$f $i" ;;
12353 esac
12354 done
12355 archdefs="$f"
12356
12357 BFD_MACHINES="$ta"
12358
12359 else # all_targets is true
12360 archdefs=-DARCH_all
12361 if grep '#define BFD_ARCH_SIZE 64' ../bfd/bfd-in3.h > /dev/null; then
12362 BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)'
12363 else
12364 BFD_MACHINES='$(ALL32_MACHINES)'
12365 fi
12366 fi
12367
12368
12369
12370
12371 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12372
12373 cat >confcache <<\_ACEOF
12374 # This file is a shell script that caches the results of configure
12375 # tests run on this system so they can be shared between configure
12376 # scripts and configure runs, see configure's option --config-cache.
12377 # It is not useful on other systems. If it contains results you don't
12378 # want to keep, you may remove or edit it.
12379 #
12380 # config.status only pays attention to the cache file if you give it
12381 # the --recheck option to rerun configure.
12382 #
12383 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12384 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12385 # following values.
12386
12387 _ACEOF
12388
12389 # The following way of writing the cache mishandles newlines in values,
12390 # but we know of no workaround that is simple, portable, and efficient.
12391 # So, we kill variables containing newlines.
12392 # Ultrix sh set writes to stderr and can't be redirected directly,
12393 # and sets the high bit in the cache file unless we assign to the vars.
12394 (
12395 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12396 eval ac_val=\$$ac_var
12397 case $ac_val in #(
12398 *${as_nl}*)
12399 case $ac_var in #(
12400 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12401 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12402 esac
12403 case $ac_var in #(
12404 _ | IFS | as_nl) ;; #(
12405 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12406 *) { eval $ac_var=; unset $ac_var;} ;;
12407 esac ;;
12408 esac
12409 done
12410
12411 (set) 2>&1 |
12412 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12413 *${as_nl}ac_space=\ *)
12414 # `set' does not quote correctly, so add quotes: double-quote
12415 # substitution turns \\\\ into \\, and sed turns \\ into \.
12416 sed -n \
12417 "s/'/'\\\\''/g;
12418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12419 ;; #(
12420 *)
12421 # `set' quotes correctly as required by POSIX, so do not add quotes.
12422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12423 ;;
12424 esac |
12425 sort
12426 ) |
12427 sed '
12428 /^ac_cv_env_/b end
12429 t clear
12430 :clear
12431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12432 t end
12433 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12434 :end' >>confcache
12435 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12436 if test -w "$cache_file"; then
12437 if test "x$cache_file" != "x/dev/null"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12439 $as_echo "$as_me: updating cache $cache_file" >&6;}
12440 if test ! -f "$cache_file" || test -h "$cache_file"; then
12441 cat confcache >"$cache_file"
12442 else
12443 case $cache_file in #(
12444 */* | ?:*)
12445 mv -f confcache "$cache_file"$$ &&
12446 mv -f "$cache_file"$$ "$cache_file" ;; #(
12447 *)
12448 mv -f confcache "$cache_file" ;;
12449 esac
12450 fi
12451 fi
12452 else
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12454 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12455 fi
12456 fi
12457 rm -f confcache
12458
12459 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12460 # Let make expand exec_prefix.
12461 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12462
12463 DEFS=-DHAVE_CONFIG_H
12464
12465 ac_libobjs=
12466 ac_ltlibobjs=
12467 U=
12468 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12469 # 1. Remove the extension, and $U if already installed.
12470 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12471 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12472 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12473 # will be set to the directory where LIBOBJS objects are built.
12474 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12475 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12476 done
12477 LIBOBJS=$ac_libobjs
12478
12479 LTLIBOBJS=$ac_ltlibobjs
12480
12481
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12483 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12484 if test -n "$am_sleep_pid"; then
12485 # Hide warnings about reused PIDs.
12486 wait $am_sleep_pid 2>/dev/null
12487 fi
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12489 $as_echo "done" >&6; }
12490 if test -n "$EXEEXT"; then
12491 am__EXEEXT_TRUE=
12492 am__EXEEXT_FALSE='#'
12493 else
12494 am__EXEEXT_TRUE='#'
12495 am__EXEEXT_FALSE=
12496 fi
12497
12498 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12499 as_fn_error $? "conditional \"AMDEP\" was never defined.
12500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12501 fi
12502 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12503 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12505 fi
12506 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12507 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12509 fi
12510 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12511 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
12512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12513 fi
12514 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
12515 as_fn_error $? "conditional \"CGEN_MAINT\" was never defined.
12516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12517 fi
12518
12519 : "${CONFIG_STATUS=./config.status}"
12520 ac_write_fail=0
12521 ac_clean_files_save=$ac_clean_files
12522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12524 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12525 as_write_fail=0
12526 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12527 #! $SHELL
12528 # Generated by $as_me.
12529 # Run this file to recreate the current configuration.
12530 # Compiler output produced by configure, useful for debugging
12531 # configure, is in config.log if it exists.
12532
12533 debug=false
12534 ac_cs_recheck=false
12535 ac_cs_silent=false
12536
12537 SHELL=\${CONFIG_SHELL-$SHELL}
12538 export SHELL
12539 _ASEOF
12540 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12541 ## -------------------- ##
12542 ## M4sh Initialization. ##
12543 ## -------------------- ##
12544
12545 # Be more Bourne compatible
12546 DUALCASE=1; export DUALCASE # for MKS sh
12547 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12548 emulate sh
12549 NULLCMD=:
12550 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12551 # is contrary to our usage. Disable this feature.
12552 alias -g '${1+"$@"}'='"$@"'
12553 setopt NO_GLOB_SUBST
12554 else
12555 case `(set -o) 2>/dev/null` in #(
12556 *posix*) :
12557 set -o posix ;; #(
12558 *) :
12559 ;;
12560 esac
12561 fi
12562
12563
12564 as_nl='
12565 '
12566 export as_nl
12567 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12568 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12569 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12571 # Prefer a ksh shell builtin over an external printf program on Solaris,
12572 # but without wasting forks for bash or zsh.
12573 if test -z "$BASH_VERSION$ZSH_VERSION" \
12574 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12575 as_echo='print -r --'
12576 as_echo_n='print -rn --'
12577 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12578 as_echo='printf %s\n'
12579 as_echo_n='printf %s'
12580 else
12581 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12582 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12583 as_echo_n='/usr/ucb/echo -n'
12584 else
12585 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12586 as_echo_n_body='eval
12587 arg=$1;
12588 case $arg in #(
12589 *"$as_nl"*)
12590 expr "X$arg" : "X\\(.*\\)$as_nl";
12591 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12592 esac;
12593 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12594 '
12595 export as_echo_n_body
12596 as_echo_n='sh -c $as_echo_n_body as_echo'
12597 fi
12598 export as_echo_body
12599 as_echo='sh -c $as_echo_body as_echo'
12600 fi
12601
12602 # The user is always right.
12603 if test "${PATH_SEPARATOR+set}" != set; then
12604 PATH_SEPARATOR=:
12605 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12606 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12607 PATH_SEPARATOR=';'
12608 }
12609 fi
12610
12611
12612 # IFS
12613 # We need space, tab and new line, in precisely that order. Quoting is
12614 # there to prevent editors from complaining about space-tab.
12615 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12616 # splitting by setting IFS to empty value.)
12617 IFS=" "" $as_nl"
12618
12619 # Find who we are. Look in the path if we contain no directory separator.
12620 as_myself=
12621 case $0 in #((
12622 *[\\/]* ) as_myself=$0 ;;
12623 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12624 for as_dir in $PATH
12625 do
12626 IFS=$as_save_IFS
12627 test -z "$as_dir" && as_dir=.
12628 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12629 done
12630 IFS=$as_save_IFS
12631
12632 ;;
12633 esac
12634 # We did not find ourselves, most probably we were run as `sh COMMAND'
12635 # in which case we are not to be found in the path.
12636 if test "x$as_myself" = x; then
12637 as_myself=$0
12638 fi
12639 if test ! -f "$as_myself"; then
12640 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12641 exit 1
12642 fi
12643
12644 # Unset variables that we do not need and which cause bugs (e.g. in
12645 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12646 # suppresses any "Segmentation fault" message there. '((' could
12647 # trigger a bug in pdksh 5.2.14.
12648 for as_var in BASH_ENV ENV MAIL MAILPATH
12649 do eval test x\${$as_var+set} = xset \
12650 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12651 done
12652 PS1='$ '
12653 PS2='> '
12654 PS4='+ '
12655
12656 # NLS nuisances.
12657 LC_ALL=C
12658 export LC_ALL
12659 LANGUAGE=C
12660 export LANGUAGE
12661
12662 # CDPATH.
12663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12664
12665
12666 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12667 # ----------------------------------------
12668 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12669 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12670 # script with STATUS, using 1 if that was 0.
12671 as_fn_error ()
12672 {
12673 as_status=$1; test $as_status -eq 0 && as_status=1
12674 if test "$4"; then
12675 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12676 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12677 fi
12678 $as_echo "$as_me: error: $2" >&2
12679 as_fn_exit $as_status
12680 } # as_fn_error
12681
12682
12683 # as_fn_set_status STATUS
12684 # -----------------------
12685 # Set $? to STATUS, without forking.
12686 as_fn_set_status ()
12687 {
12688 return $1
12689 } # as_fn_set_status
12690
12691 # as_fn_exit STATUS
12692 # -----------------
12693 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12694 as_fn_exit ()
12695 {
12696 set +e
12697 as_fn_set_status $1
12698 exit $1
12699 } # as_fn_exit
12700
12701 # as_fn_unset VAR
12702 # ---------------
12703 # Portably unset VAR.
12704 as_fn_unset ()
12705 {
12706 { eval $1=; unset $1;}
12707 }
12708 as_unset=as_fn_unset
12709 # as_fn_append VAR VALUE
12710 # ----------------------
12711 # Append the text in VALUE to the end of the definition contained in VAR. Take
12712 # advantage of any shell optimizations that allow amortized linear growth over
12713 # repeated appends, instead of the typical quadratic growth present in naive
12714 # implementations.
12715 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12716 eval 'as_fn_append ()
12717 {
12718 eval $1+=\$2
12719 }'
12720 else
12721 as_fn_append ()
12722 {
12723 eval $1=\$$1\$2
12724 }
12725 fi # as_fn_append
12726
12727 # as_fn_arith ARG...
12728 # ------------------
12729 # Perform arithmetic evaluation on the ARGs, and store the result in the
12730 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12731 # must be portable across $(()) and expr.
12732 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12733 eval 'as_fn_arith ()
12734 {
12735 as_val=$(( $* ))
12736 }'
12737 else
12738 as_fn_arith ()
12739 {
12740 as_val=`expr "$@" || test $? -eq 1`
12741 }
12742 fi # as_fn_arith
12743
12744
12745 if expr a : '\(a\)' >/dev/null 2>&1 &&
12746 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12747 as_expr=expr
12748 else
12749 as_expr=false
12750 fi
12751
12752 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12753 as_basename=basename
12754 else
12755 as_basename=false
12756 fi
12757
12758 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12759 as_dirname=dirname
12760 else
12761 as_dirname=false
12762 fi
12763
12764 as_me=`$as_basename -- "$0" ||
12765 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12766 X"$0" : 'X\(//\)$' \| \
12767 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12768 $as_echo X/"$0" |
12769 sed '/^.*\/\([^/][^/]*\)\/*$/{
12770 s//\1/
12771 q
12772 }
12773 /^X\/\(\/\/\)$/{
12774 s//\1/
12775 q
12776 }
12777 /^X\/\(\/\).*/{
12778 s//\1/
12779 q
12780 }
12781 s/.*/./; q'`
12782
12783 # Avoid depending upon Character Ranges.
12784 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12785 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12786 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12787 as_cr_digits='0123456789'
12788 as_cr_alnum=$as_cr_Letters$as_cr_digits
12789
12790 ECHO_C= ECHO_N= ECHO_T=
12791 case `echo -n x` in #(((((
12792 -n*)
12793 case `echo 'xy\c'` in
12794 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12795 xy) ECHO_C='\c';;
12796 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12797 ECHO_T=' ';;
12798 esac;;
12799 *)
12800 ECHO_N='-n';;
12801 esac
12802
12803 rm -f conf$$ conf$$.exe conf$$.file
12804 if test -d conf$$.dir; then
12805 rm -f conf$$.dir/conf$$.file
12806 else
12807 rm -f conf$$.dir
12808 mkdir conf$$.dir 2>/dev/null
12809 fi
12810 if (echo >conf$$.file) 2>/dev/null; then
12811 if ln -s conf$$.file conf$$ 2>/dev/null; then
12812 as_ln_s='ln -s'
12813 # ... but there are two gotchas:
12814 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12815 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12816 # In both cases, we have to default to `cp -pR'.
12817 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12818 as_ln_s='cp -pR'
12819 elif ln conf$$.file conf$$ 2>/dev/null; then
12820 as_ln_s=ln
12821 else
12822 as_ln_s='cp -pR'
12823 fi
12824 else
12825 as_ln_s='cp -pR'
12826 fi
12827 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12828 rmdir conf$$.dir 2>/dev/null
12829
12830
12831 # as_fn_mkdir_p
12832 # -------------
12833 # Create "$as_dir" as a directory, including parents if necessary.
12834 as_fn_mkdir_p ()
12835 {
12836
12837 case $as_dir in #(
12838 -*) as_dir=./$as_dir;;
12839 esac
12840 test -d "$as_dir" || eval $as_mkdir_p || {
12841 as_dirs=
12842 while :; do
12843 case $as_dir in #(
12844 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12845 *) as_qdir=$as_dir;;
12846 esac
12847 as_dirs="'$as_qdir' $as_dirs"
12848 as_dir=`$as_dirname -- "$as_dir" ||
12849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12850 X"$as_dir" : 'X\(//\)[^/]' \| \
12851 X"$as_dir" : 'X\(//\)$' \| \
12852 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12853 $as_echo X"$as_dir" |
12854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12855 s//\1/
12856 q
12857 }
12858 /^X\(\/\/\)[^/].*/{
12859 s//\1/
12860 q
12861 }
12862 /^X\(\/\/\)$/{
12863 s//\1/
12864 q
12865 }
12866 /^X\(\/\).*/{
12867 s//\1/
12868 q
12869 }
12870 s/.*/./; q'`
12871 test -d "$as_dir" && break
12872 done
12873 test -z "$as_dirs" || eval "mkdir $as_dirs"
12874 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12875
12876
12877 } # as_fn_mkdir_p
12878 if mkdir -p . 2>/dev/null; then
12879 as_mkdir_p='mkdir -p "$as_dir"'
12880 else
12881 test -d ./-p && rmdir ./-p
12882 as_mkdir_p=false
12883 fi
12884
12885
12886 # as_fn_executable_p FILE
12887 # -----------------------
12888 # Test if FILE is an executable regular file.
12889 as_fn_executable_p ()
12890 {
12891 test -f "$1" && test -x "$1"
12892 } # as_fn_executable_p
12893 as_test_x='test -x'
12894 as_executable_p=as_fn_executable_p
12895
12896 # Sed expression to map a string onto a valid CPP name.
12897 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12898
12899 # Sed expression to map a string onto a valid variable name.
12900 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12901
12902
12903 exec 6>&1
12904 ## ----------------------------------- ##
12905 ## Main body of $CONFIG_STATUS script. ##
12906 ## ----------------------------------- ##
12907 _ASEOF
12908 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12909
12910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12911 # Save the log message, to keep $0 and so on meaningful, and to
12912 # report actual input values of CONFIG_FILES etc. instead of their
12913 # values after options handling.
12914 ac_log="
12915 This file was extended by opcodes $as_me 2.37.50, which was
12916 generated by GNU Autoconf 2.69. Invocation command line was
12917
12918 CONFIG_FILES = $CONFIG_FILES
12919 CONFIG_HEADERS = $CONFIG_HEADERS
12920 CONFIG_LINKS = $CONFIG_LINKS
12921 CONFIG_COMMANDS = $CONFIG_COMMANDS
12922 $ $0 $@
12923
12924 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12925 "
12926
12927 _ACEOF
12928
12929 case $ac_config_files in *"
12930 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12931 esac
12932
12933 case $ac_config_headers in *"
12934 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12935 esac
12936
12937
12938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12939 # Files that config.status was made for.
12940 config_files="$ac_config_files"
12941 config_headers="$ac_config_headers"
12942 config_commands="$ac_config_commands"
12943
12944 _ACEOF
12945
12946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12947 ac_cs_usage="\
12948 \`$as_me' instantiates files and other configuration actions
12949 from templates according to the current configuration. Unless the files
12950 and actions are specified as TAGs, all are instantiated by default.
12951
12952 Usage: $0 [OPTION]... [TAG]...
12953
12954 -h, --help print this help, then exit
12955 -V, --version print version number and configuration settings, then exit
12956 --config print configuration, then exit
12957 -q, --quiet, --silent
12958 do not print progress messages
12959 -d, --debug don't remove temporary files
12960 --recheck update $as_me by reconfiguring in the same conditions
12961 --file=FILE[:TEMPLATE]
12962 instantiate the configuration file FILE
12963 --header=FILE[:TEMPLATE]
12964 instantiate the configuration header FILE
12965
12966 Configuration files:
12967 $config_files
12968
12969 Configuration headers:
12970 $config_headers
12971
12972 Configuration commands:
12973 $config_commands
12974
12975 Report bugs to the package provider."
12976
12977 _ACEOF
12978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12979 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12980 ac_cs_version="\\
12981 opcodes config.status 2.37.50
12982 configured by $0, generated by GNU Autoconf 2.69,
12983 with options \\"\$ac_cs_config\\"
12984
12985 Copyright (C) 2012 Free Software Foundation, Inc.
12986 This config.status script is free software; the Free Software Foundation
12987 gives unlimited permission to copy, distribute and modify it."
12988
12989 ac_pwd='$ac_pwd'
12990 srcdir='$srcdir'
12991 INSTALL='$INSTALL'
12992 MKDIR_P='$MKDIR_P'
12993 AWK='$AWK'
12994 test -n "\$AWK" || AWK=awk
12995 _ACEOF
12996
12997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12998 # The default lists apply if the user does not specify any file.
12999 ac_need_defaults=:
13000 while test $# != 0
13001 do
13002 case $1 in
13003 --*=?*)
13004 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13005 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13006 ac_shift=:
13007 ;;
13008 --*=)
13009 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13010 ac_optarg=
13011 ac_shift=:
13012 ;;
13013 *)
13014 ac_option=$1
13015 ac_optarg=$2
13016 ac_shift=shift
13017 ;;
13018 esac
13019
13020 case $ac_option in
13021 # Handling of the options.
13022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13023 ac_cs_recheck=: ;;
13024 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13025 $as_echo "$ac_cs_version"; exit ;;
13026 --config | --confi | --conf | --con | --co | --c )
13027 $as_echo "$ac_cs_config"; exit ;;
13028 --debug | --debu | --deb | --de | --d | -d )
13029 debug=: ;;
13030 --file | --fil | --fi | --f )
13031 $ac_shift
13032 case $ac_optarg in
13033 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13034 '') as_fn_error $? "missing file argument" ;;
13035 esac
13036 as_fn_append CONFIG_FILES " '$ac_optarg'"
13037 ac_need_defaults=false;;
13038 --header | --heade | --head | --hea )
13039 $ac_shift
13040 case $ac_optarg in
13041 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13042 esac
13043 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13044 ac_need_defaults=false;;
13045 --he | --h)
13046 # Conflict between --help and --header
13047 as_fn_error $? "ambiguous option: \`$1'
13048 Try \`$0 --help' for more information.";;
13049 --help | --hel | -h )
13050 $as_echo "$ac_cs_usage"; exit ;;
13051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13052 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13053 ac_cs_silent=: ;;
13054
13055 # This is an error.
13056 -*) as_fn_error $? "unrecognized option: \`$1'
13057 Try \`$0 --help' for more information." ;;
13058
13059 *) as_fn_append ac_config_targets " $1"
13060 ac_need_defaults=false ;;
13061
13062 esac
13063 shift
13064 done
13065
13066 ac_configure_extra_args=
13067
13068 if $ac_cs_silent; then
13069 exec 6>/dev/null
13070 ac_configure_extra_args="$ac_configure_extra_args --silent"
13071 fi
13072
13073 _ACEOF
13074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13075 if \$ac_cs_recheck; then
13076 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13077 shift
13078 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13079 CONFIG_SHELL='$SHELL'
13080 export CONFIG_SHELL
13081 exec "\$@"
13082 fi
13083
13084 _ACEOF
13085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13086 exec 5>>config.log
13087 {
13088 echo
13089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13090 ## Running $as_me. ##
13091 _ASBOX
13092 $as_echo "$ac_log"
13093 } >&5
13094
13095 _ACEOF
13096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13097 #
13098 # INIT-COMMANDS
13099 #
13100 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13101
13102
13103 # The HP-UX ksh and POSIX shell print the target directory to stdout
13104 # if CDPATH is set.
13105 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13106
13107 sed_quote_subst='$sed_quote_subst'
13108 double_quote_subst='$double_quote_subst'
13109 delay_variable_subst='$delay_variable_subst'
13110 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13111 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13112 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13113 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13114 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13115 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13116 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13117 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13118 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13119 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13120 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13121 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13122 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13123 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13124 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13125 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13126 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13127 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13128 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13129 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13130 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13131 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13132 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13133 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13134 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13135 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13136 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13137 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13138 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13139 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13140 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13141 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13142 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13143 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13144 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13145 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13146 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13147 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13148 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13149 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13150 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13151 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13152 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13153 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13154 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13155 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13156 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13157 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13158 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"`'
13159 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13160 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13161 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13162 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13163 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13164 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13165 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13166 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13167 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13168 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13169 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13170 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13171 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13172 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13173 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13174 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13175 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13176 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13177 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13178 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13179 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13180 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13181 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13182 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13183 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13184 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13185 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13186 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13187 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13188 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13189 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13190 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13191 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13192 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13193 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13194 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13195 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13196 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13197 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13198 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13199 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13200 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13201 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13202 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13203 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13204 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13205 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13206 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13207 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13208 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13209 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13210 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13211 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13212 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13213 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13214 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13215 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13216 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13217 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13218 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13219 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13220 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13221 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13222 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13223 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13224 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13225 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13226 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13227 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13228 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13229 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13230
13231 LTCC='$LTCC'
13232 LTCFLAGS='$LTCFLAGS'
13233 compiler='$compiler_DEFAULT'
13234
13235 # A function that is used when there is no print builtin or printf.
13236 func_fallback_echo ()
13237 {
13238 eval 'cat <<_LTECHO_EOF
13239 \$1
13240 _LTECHO_EOF'
13241 }
13242
13243 # Quote evaled strings.
13244 for var in SHELL \
13245 ECHO \
13246 SED \
13247 GREP \
13248 EGREP \
13249 FGREP \
13250 LD \
13251 NM \
13252 LN_S \
13253 lt_SP2NL \
13254 lt_NL2SP \
13255 reload_flag \
13256 OBJDUMP \
13257 deplibs_check_method \
13258 file_magic_cmd \
13259 AR \
13260 AR_FLAGS \
13261 STRIP \
13262 RANLIB \
13263 CC \
13264 CFLAGS \
13265 compiler \
13266 lt_cv_sys_global_symbol_pipe \
13267 lt_cv_sys_global_symbol_to_cdecl \
13268 lt_cv_sys_global_symbol_to_c_name_address \
13269 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13270 lt_prog_compiler_no_builtin_flag \
13271 lt_prog_compiler_wl \
13272 lt_prog_compiler_pic \
13273 lt_prog_compiler_static \
13274 lt_cv_prog_compiler_c_o \
13275 need_locks \
13276 DSYMUTIL \
13277 NMEDIT \
13278 LIPO \
13279 OTOOL \
13280 OTOOL64 \
13281 shrext_cmds \
13282 export_dynamic_flag_spec \
13283 whole_archive_flag_spec \
13284 compiler_needs_object \
13285 with_gnu_ld \
13286 allow_undefined_flag \
13287 no_undefined_flag \
13288 hardcode_libdir_flag_spec \
13289 hardcode_libdir_flag_spec_ld \
13290 hardcode_libdir_separator \
13291 fix_srcfile_path \
13292 exclude_expsyms \
13293 include_expsyms \
13294 file_list_spec \
13295 variables_saved_for_relink \
13296 libname_spec \
13297 library_names_spec \
13298 soname_spec \
13299 install_override_mode \
13300 finish_eval \
13301 old_striplib \
13302 striplib; do
13303 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13304 *[\\\\\\\`\\"\\\$]*)
13305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13306 ;;
13307 *)
13308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13309 ;;
13310 esac
13311 done
13312
13313 # Double-quote double-evaled strings.
13314 for var in reload_cmds \
13315 old_postinstall_cmds \
13316 old_postuninstall_cmds \
13317 old_archive_cmds \
13318 extract_expsyms_cmds \
13319 old_archive_from_new_cmds \
13320 old_archive_from_expsyms_cmds \
13321 archive_cmds \
13322 archive_expsym_cmds \
13323 module_cmds \
13324 module_expsym_cmds \
13325 export_symbols_cmds \
13326 prelink_cmds \
13327 postinstall_cmds \
13328 postuninstall_cmds \
13329 finish_cmds \
13330 sys_lib_search_path_spec \
13331 sys_lib_dlsearch_path_spec; do
13332 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13333 *[\\\\\\\`\\"\\\$]*)
13334 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13335 ;;
13336 *)
13337 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13338 ;;
13339 esac
13340 done
13341
13342 ac_aux_dir='$ac_aux_dir'
13343 xsi_shell='$xsi_shell'
13344 lt_shell_append='$lt_shell_append'
13345
13346 # See if we are running on zsh, and set the options which allow our
13347 # commands through without removal of \ escapes INIT.
13348 if test -n "\${ZSH_VERSION+set}" ; then
13349 setopt NO_GLOB_SUBST
13350 fi
13351
13352
13353 PACKAGE='$PACKAGE'
13354 VERSION='$VERSION'
13355 TIMESTAMP='$TIMESTAMP'
13356 RM='$RM'
13357 ofile='$ofile'
13358
13359
13360
13361 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13362 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13363 # from automake.
13364 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13365 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13366 LINGUAS="${LINGUAS-%UNSET%}"
13367
13368
13369 _ACEOF
13370
13371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13372
13373 # Handling of arguments.
13374 for ac_config_target in $ac_config_targets
13375 do
13376 case $ac_config_target in
13377 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13378 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13379 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13380 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13381 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13382 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13383
13384 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13385 esac
13386 done
13387
13388
13389 # If the user did not use the arguments to specify the items to instantiate,
13390 # then the envvar interface is used. Set only those that are not.
13391 # We use the long form for the default assignment because of an extremely
13392 # bizarre bug on SunOS 4.1.3.
13393 if $ac_need_defaults; then
13394 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13395 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13396 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13397 fi
13398
13399 # Have a temporary directory for convenience. Make it in the build tree
13400 # simply because there is no reason against having it here, and in addition,
13401 # creating and moving files from /tmp can sometimes cause problems.
13402 # Hook for its removal unless debugging.
13403 # Note that there is a small window in which the directory will not be cleaned:
13404 # after its creation but before its name has been assigned to `$tmp'.
13405 $debug ||
13406 {
13407 tmp= ac_tmp=
13408 trap 'exit_status=$?
13409 : "${ac_tmp:=$tmp}"
13410 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13411 ' 0
13412 trap 'as_fn_exit 1' 1 2 13 15
13413 }
13414 # Create a (secure) tmp directory for tmp files.
13415
13416 {
13417 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13418 test -d "$tmp"
13419 } ||
13420 {
13421 tmp=./conf$$-$RANDOM
13422 (umask 077 && mkdir "$tmp")
13423 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13424 ac_tmp=$tmp
13425
13426 # Set up the scripts for CONFIG_FILES section.
13427 # No need to generate them if there are no CONFIG_FILES.
13428 # This happens for instance with `./config.status config.h'.
13429 if test -n "$CONFIG_FILES"; then
13430
13431
13432 ac_cr=`echo X | tr X '\015'`
13433 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13434 # But we know of no other shell where ac_cr would be empty at this
13435 # point, so we can use a bashism as a fallback.
13436 if test "x$ac_cr" = x; then
13437 eval ac_cr=\$\'\\r\'
13438 fi
13439 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13440 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13441 ac_cs_awk_cr='\\r'
13442 else
13443 ac_cs_awk_cr=$ac_cr
13444 fi
13445
13446 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13447 _ACEOF
13448
13449
13450 {
13451 echo "cat >conf$$subs.awk <<_ACEOF" &&
13452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13453 echo "_ACEOF"
13454 } >conf$$subs.sh ||
13455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13456 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13457 ac_delim='%!_!# '
13458 for ac_last_try in false false false false false :; do
13459 . ./conf$$subs.sh ||
13460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13461
13462 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13463 if test $ac_delim_n = $ac_delim_num; then
13464 break
13465 elif $ac_last_try; then
13466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13467 else
13468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13469 fi
13470 done
13471 rm -f conf$$subs.sh
13472
13473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13474 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13475 _ACEOF
13476 sed -n '
13477 h
13478 s/^/S["/; s/!.*/"]=/
13479 p
13480 g
13481 s/^[^!]*!//
13482 :repl
13483 t repl
13484 s/'"$ac_delim"'$//
13485 t delim
13486 :nl
13487 h
13488 s/\(.\{148\}\)..*/\1/
13489 t more1
13490 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13491 p
13492 n
13493 b repl
13494 :more1
13495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13496 p
13497 g
13498 s/.\{148\}//
13499 t nl
13500 :delim
13501 h
13502 s/\(.\{148\}\)..*/\1/
13503 t more2
13504 s/["\\]/\\&/g; s/^/"/; s/$/"/
13505 p
13506 b
13507 :more2
13508 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13509 p
13510 g
13511 s/.\{148\}//
13512 t delim
13513 ' <conf$$subs.awk | sed '
13514 /^[^""]/{
13515 N
13516 s/\n//
13517 }
13518 ' >>$CONFIG_STATUS || ac_write_fail=1
13519 rm -f conf$$subs.awk
13520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13521 _ACAWK
13522 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13523 for (key in S) S_is_set[key] = 1
13524 FS = "\a"
13525
13526 }
13527 {
13528 line = $ 0
13529 nfields = split(line, field, "@")
13530 substed = 0
13531 len = length(field[1])
13532 for (i = 2; i < nfields; i++) {
13533 key = field[i]
13534 keylen = length(key)
13535 if (S_is_set[key]) {
13536 value = S[key]
13537 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13538 len += length(value) + length(field[++i])
13539 substed = 1
13540 } else
13541 len += 1 + keylen
13542 }
13543
13544 print line
13545 }
13546
13547 _ACAWK
13548 _ACEOF
13549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13550 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13551 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13552 else
13553 cat
13554 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13555 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13556 _ACEOF
13557
13558 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13559 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13560 # trailing colons and then remove the whole line if VPATH becomes empty
13561 # (actually we leave an empty line to preserve line numbers).
13562 if test "x$srcdir" = x.; then
13563 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13564 h
13565 s///
13566 s/^/:/
13567 s/[ ]*$/:/
13568 s/:\$(srcdir):/:/g
13569 s/:\${srcdir}:/:/g
13570 s/:@srcdir@:/:/g
13571 s/^:*//
13572 s/:*$//
13573 x
13574 s/\(=[ ]*\).*/\1/
13575 G
13576 s/\n//
13577 s/^[^=]*=[ ]*$//
13578 }'
13579 fi
13580
13581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13582 fi # test -n "$CONFIG_FILES"
13583
13584 # Set up the scripts for CONFIG_HEADERS section.
13585 # No need to generate them if there are no CONFIG_HEADERS.
13586 # This happens for instance with `./config.status Makefile'.
13587 if test -n "$CONFIG_HEADERS"; then
13588 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13589 BEGIN {
13590 _ACEOF
13591
13592 # Transform confdefs.h into an awk script `defines.awk', embedded as
13593 # here-document in config.status, that substitutes the proper values into
13594 # config.h.in to produce config.h.
13595
13596 # Create a delimiter string that does not exist in confdefs.h, to ease
13597 # handling of long lines.
13598 ac_delim='%!_!# '
13599 for ac_last_try in false false :; do
13600 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13601 if test -z "$ac_tt"; then
13602 break
13603 elif $ac_last_try; then
13604 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13605 else
13606 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13607 fi
13608 done
13609
13610 # For the awk script, D is an array of macro values keyed by name,
13611 # likewise P contains macro parameters if any. Preserve backslash
13612 # newline sequences.
13613
13614 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13615 sed -n '
13616 s/.\{148\}/&'"$ac_delim"'/g
13617 t rset
13618 :rset
13619 s/^[ ]*#[ ]*define[ ][ ]*/ /
13620 t def
13621 d
13622 :def
13623 s/\\$//
13624 t bsnl
13625 s/["\\]/\\&/g
13626 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13627 D["\1"]=" \3"/p
13628 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13629 d
13630 :bsnl
13631 s/["\\]/\\&/g
13632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13633 D["\1"]=" \3\\\\\\n"\\/p
13634 t cont
13635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13636 t cont
13637 d
13638 :cont
13639 n
13640 s/.\{148\}/&'"$ac_delim"'/g
13641 t clear
13642 :clear
13643 s/\\$//
13644 t bsnlc
13645 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13646 d
13647 :bsnlc
13648 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13649 b cont
13650 ' <confdefs.h | sed '
13651 s/'"$ac_delim"'/"\\\
13652 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13653
13654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13655 for (key in D) D_is_set[key] = 1
13656 FS = "\a"
13657 }
13658 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13659 line = \$ 0
13660 split(line, arg, " ")
13661 if (arg[1] == "#") {
13662 defundef = arg[2]
13663 mac1 = arg[3]
13664 } else {
13665 defundef = substr(arg[1], 2)
13666 mac1 = arg[2]
13667 }
13668 split(mac1, mac2, "(") #)
13669 macro = mac2[1]
13670 prefix = substr(line, 1, index(line, defundef) - 1)
13671 if (D_is_set[macro]) {
13672 # Preserve the white space surrounding the "#".
13673 print prefix "define", macro P[macro] D[macro]
13674 next
13675 } else {
13676 # Replace #undef with comments. This is necessary, for example,
13677 # in the case of _POSIX_SOURCE, which is predefined and required
13678 # on some systems where configure will not decide to define it.
13679 if (defundef == "undef") {
13680 print "/*", prefix defundef, macro, "*/"
13681 next
13682 }
13683 }
13684 }
13685 { print }
13686 _ACAWK
13687 _ACEOF
13688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13689 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13690 fi # test -n "$CONFIG_HEADERS"
13691
13692
13693 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13694 shift
13695 for ac_tag
13696 do
13697 case $ac_tag in
13698 :[FHLC]) ac_mode=$ac_tag; continue;;
13699 esac
13700 case $ac_mode$ac_tag in
13701 :[FHL]*:*);;
13702 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13703 :[FH]-) ac_tag=-:-;;
13704 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13705 esac
13706 ac_save_IFS=$IFS
13707 IFS=:
13708 set x $ac_tag
13709 IFS=$ac_save_IFS
13710 shift
13711 ac_file=$1
13712 shift
13713
13714 case $ac_mode in
13715 :L) ac_source=$1;;
13716 :[FH])
13717 ac_file_inputs=
13718 for ac_f
13719 do
13720 case $ac_f in
13721 -) ac_f="$ac_tmp/stdin";;
13722 *) # Look for the file first in the build tree, then in the source tree
13723 # (if the path is not absolute). The absolute path cannot be DOS-style,
13724 # because $ac_f cannot contain `:'.
13725 test -f "$ac_f" ||
13726 case $ac_f in
13727 [\\/$]*) false;;
13728 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13729 esac ||
13730 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13731 esac
13732 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13733 as_fn_append ac_file_inputs " '$ac_f'"
13734 done
13735
13736 # Let's still pretend it is `configure' which instantiates (i.e., don't
13737 # use $as_me), people would be surprised to read:
13738 # /* config.h. Generated by config.status. */
13739 configure_input='Generated from '`
13740 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13741 `' by configure.'
13742 if test x"$ac_file" != x-; then
13743 configure_input="$ac_file. $configure_input"
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13745 $as_echo "$as_me: creating $ac_file" >&6;}
13746 fi
13747 # Neutralize special characters interpreted by sed in replacement strings.
13748 case $configure_input in #(
13749 *\&* | *\|* | *\\* )
13750 ac_sed_conf_input=`$as_echo "$configure_input" |
13751 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13752 *) ac_sed_conf_input=$configure_input;;
13753 esac
13754
13755 case $ac_tag in
13756 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13758 esac
13759 ;;
13760 esac
13761
13762 ac_dir=`$as_dirname -- "$ac_file" ||
13763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13764 X"$ac_file" : 'X\(//\)[^/]' \| \
13765 X"$ac_file" : 'X\(//\)$' \| \
13766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13767 $as_echo X"$ac_file" |
13768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13769 s//\1/
13770 q
13771 }
13772 /^X\(\/\/\)[^/].*/{
13773 s//\1/
13774 q
13775 }
13776 /^X\(\/\/\)$/{
13777 s//\1/
13778 q
13779 }
13780 /^X\(\/\).*/{
13781 s//\1/
13782 q
13783 }
13784 s/.*/./; q'`
13785 as_dir="$ac_dir"; as_fn_mkdir_p
13786 ac_builddir=.
13787
13788 case "$ac_dir" in
13789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13790 *)
13791 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13792 # A ".." for each directory in $ac_dir_suffix.
13793 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13794 case $ac_top_builddir_sub in
13795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13797 esac ;;
13798 esac
13799 ac_abs_top_builddir=$ac_pwd
13800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13801 # for backward compatibility:
13802 ac_top_builddir=$ac_top_build_prefix
13803
13804 case $srcdir in
13805 .) # We are building in place.
13806 ac_srcdir=.
13807 ac_top_srcdir=$ac_top_builddir_sub
13808 ac_abs_top_srcdir=$ac_pwd ;;
13809 [\\/]* | ?:[\\/]* ) # Absolute name.
13810 ac_srcdir=$srcdir$ac_dir_suffix;
13811 ac_top_srcdir=$srcdir
13812 ac_abs_top_srcdir=$srcdir ;;
13813 *) # Relative name.
13814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13815 ac_top_srcdir=$ac_top_build_prefix$srcdir
13816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13817 esac
13818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13819
13820
13821 case $ac_mode in
13822 :F)
13823 #
13824 # CONFIG_FILE
13825 #
13826
13827 case $INSTALL in
13828 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13829 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13830 esac
13831 ac_MKDIR_P=$MKDIR_P
13832 case $MKDIR_P in
13833 [\\/$]* | ?:[\\/]* ) ;;
13834 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13835 esac
13836 _ACEOF
13837
13838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13839 # If the template does not know about datarootdir, expand it.
13840 # FIXME: This hack should be removed a few years after 2.60.
13841 ac_datarootdir_hack=; ac_datarootdir_seen=
13842 ac_sed_dataroot='
13843 /datarootdir/ {
13844 p
13845 q
13846 }
13847 /@datadir@/p
13848 /@docdir@/p
13849 /@infodir@/p
13850 /@localedir@/p
13851 /@mandir@/p'
13852 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13853 *datarootdir*) ac_datarootdir_seen=yes;;
13854 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13856 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13857 _ACEOF
13858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13859 ac_datarootdir_hack='
13860 s&@datadir@&$datadir&g
13861 s&@docdir@&$docdir&g
13862 s&@infodir@&$infodir&g
13863 s&@localedir@&$localedir&g
13864 s&@mandir@&$mandir&g
13865 s&\\\${datarootdir}&$datarootdir&g' ;;
13866 esac
13867 _ACEOF
13868
13869 # Neutralize VPATH when `$srcdir' = `.'.
13870 # Shell code in configure.ac might set extrasub.
13871 # FIXME: do we really want to maintain this feature?
13872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13873 ac_sed_extra="$ac_vpsub
13874 $extrasub
13875 _ACEOF
13876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13877 :t
13878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13879 s|@configure_input@|$ac_sed_conf_input|;t t
13880 s&@top_builddir@&$ac_top_builddir_sub&;t t
13881 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13882 s&@srcdir@&$ac_srcdir&;t t
13883 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13884 s&@top_srcdir@&$ac_top_srcdir&;t t
13885 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13886 s&@builddir@&$ac_builddir&;t t
13887 s&@abs_builddir@&$ac_abs_builddir&;t t
13888 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13889 s&@INSTALL@&$ac_INSTALL&;t t
13890 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13891 $ac_datarootdir_hack
13892 "
13893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13894 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13895
13896 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13897 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13898 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13899 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13901 which seems to be undefined. Please make sure it is defined" >&5
13902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13903 which seems to be undefined. Please make sure it is defined" >&2;}
13904
13905 rm -f "$ac_tmp/stdin"
13906 case $ac_file in
13907 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13908 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13909 esac \
13910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13911 ;;
13912 :H)
13913 #
13914 # CONFIG_HEADER
13915 #
13916 if test x"$ac_file" != x-; then
13917 {
13918 $as_echo "/* $configure_input */" \
13919 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13920 } >"$ac_tmp/config.h" \
13921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13922 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13924 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13925 else
13926 rm -f "$ac_file"
13927 mv "$ac_tmp/config.h" "$ac_file" \
13928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13929 fi
13930 else
13931 $as_echo "/* $configure_input */" \
13932 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13933 || as_fn_error $? "could not create -" "$LINENO" 5
13934 fi
13935 # Compute "$ac_file"'s index in $config_headers.
13936 _am_arg="$ac_file"
13937 _am_stamp_count=1
13938 for _am_header in $config_headers :; do
13939 case $_am_header in
13940 $_am_arg | $_am_arg:* )
13941 break ;;
13942 * )
13943 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13944 esac
13945 done
13946 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13947 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13948 X"$_am_arg" : 'X\(//\)[^/]' \| \
13949 X"$_am_arg" : 'X\(//\)$' \| \
13950 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13951 $as_echo X"$_am_arg" |
13952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13953 s//\1/
13954 q
13955 }
13956 /^X\(\/\/\)[^/].*/{
13957 s//\1/
13958 q
13959 }
13960 /^X\(\/\/\)$/{
13961 s//\1/
13962 q
13963 }
13964 /^X\(\/\).*/{
13965 s//\1/
13966 q
13967 }
13968 s/.*/./; q'`/stamp-h$_am_stamp_count
13969 ;;
13970
13971 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13972 $as_echo "$as_me: executing $ac_file commands" >&6;}
13973 ;;
13974 esac
13975
13976
13977 case $ac_file$ac_mode in
13978 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13979 # Older Autoconf quotes --file arguments for eval, but not when files
13980 # are listed without --file. Let's play safe and only enable the eval
13981 # if we detect the quoting.
13982 case $CONFIG_FILES in
13983 *\'*) eval set x "$CONFIG_FILES" ;;
13984 *) set x $CONFIG_FILES ;;
13985 esac
13986 shift
13987 for mf
13988 do
13989 # Strip MF so we end up with the name of the file.
13990 mf=`echo "$mf" | sed -e 's/:.*$//'`
13991 # Check whether this is an Automake generated Makefile or not.
13992 # We used to match only the files named 'Makefile.in', but
13993 # some people rename them; so instead we look at the file content.
13994 # Grep'ing the first line is not enough: some people post-process
13995 # each Makefile.in and add a new line on top of each file to say so.
13996 # Grep'ing the whole file is not good either: AIX grep has a line
13997 # limit of 2048, but all sed's we know have understand at least 4000.
13998 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13999 dirpart=`$as_dirname -- "$mf" ||
14000 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14001 X"$mf" : 'X\(//\)[^/]' \| \
14002 X"$mf" : 'X\(//\)$' \| \
14003 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14004 $as_echo X"$mf" |
14005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14006 s//\1/
14007 q
14008 }
14009 /^X\(\/\/\)[^/].*/{
14010 s//\1/
14011 q
14012 }
14013 /^X\(\/\/\)$/{
14014 s//\1/
14015 q
14016 }
14017 /^X\(\/\).*/{
14018 s//\1/
14019 q
14020 }
14021 s/.*/./; q'`
14022 else
14023 continue
14024 fi
14025 # Extract the definition of DEPDIR, am__include, and am__quote
14026 # from the Makefile without running 'make'.
14027 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14028 test -z "$DEPDIR" && continue
14029 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14030 test -z "$am__include" && continue
14031 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14032 # Find all dependency output files, they are included files with
14033 # $(DEPDIR) in their names. We invoke sed twice because it is the
14034 # simplest approach to changing $(DEPDIR) to its actual value in the
14035 # expansion.
14036 for file in `sed -n "
14037 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14038 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14039 # Make sure the directory exists.
14040 test -f "$dirpart/$file" && continue
14041 fdir=`$as_dirname -- "$file" ||
14042 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14043 X"$file" : 'X\(//\)[^/]' \| \
14044 X"$file" : 'X\(//\)$' \| \
14045 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14046 $as_echo X"$file" |
14047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14048 s//\1/
14049 q
14050 }
14051 /^X\(\/\/\)[^/].*/{
14052 s//\1/
14053 q
14054 }
14055 /^X\(\/\/\)$/{
14056 s//\1/
14057 q
14058 }
14059 /^X\(\/\).*/{
14060 s//\1/
14061 q
14062 }
14063 s/.*/./; q'`
14064 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14065 # echo "creating $dirpart/$file"
14066 echo '# dummy' > "$dirpart/$file"
14067 done
14068 done
14069 }
14070 ;;
14071 "libtool":C)
14072
14073 # See if we are running on zsh, and set the options which allow our
14074 # commands through without removal of \ escapes.
14075 if test -n "${ZSH_VERSION+set}" ; then
14076 setopt NO_GLOB_SUBST
14077 fi
14078
14079 cfgfile="${ofile}T"
14080 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14081 $RM "$cfgfile"
14082
14083 cat <<_LT_EOF >> "$cfgfile"
14084 #! $SHELL
14085
14086 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14087 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14088 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14089 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14090 #
14091 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14092 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14093 # Written by Gordon Matzigkeit, 1996
14094 #
14095 # This file is part of GNU Libtool.
14096 #
14097 # GNU Libtool is free software; you can redistribute it and/or
14098 # modify it under the terms of the GNU General Public License as
14099 # published by the Free Software Foundation; either version 2 of
14100 # the License, or (at your option) any later version.
14101 #
14102 # As a special exception to the GNU General Public License,
14103 # if you distribute this file as part of a program or library that
14104 # is built using GNU Libtool, you may include this file under the
14105 # same distribution terms that you use for the rest of that program.
14106 #
14107 # GNU Libtool is distributed in the hope that it will be useful,
14108 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14109 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14110 # GNU General Public License for more details.
14111 #
14112 # You should have received a copy of the GNU General Public License
14113 # along with GNU Libtool; see the file COPYING. If not, a copy
14114 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14115 # obtained by writing to the Free Software Foundation, Inc.,
14116 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14117
14118
14119 # The names of the tagged configurations supported by this script.
14120 available_tags=""
14121
14122 # ### BEGIN LIBTOOL CONFIG
14123
14124 # Whether or not to build shared libraries.
14125 build_libtool_libs=$enable_shared
14126
14127 # Which release of libtool.m4 was used?
14128 macro_version=$macro_version
14129 macro_revision=$macro_revision
14130
14131 # Whether or not to build static libraries.
14132 build_old_libs=$enable_static
14133
14134 # What type of objects to build.
14135 pic_mode=$pic_mode
14136
14137 # Whether or not to optimize for fast installation.
14138 fast_install=$enable_fast_install
14139
14140 # Shell to use when invoking shell scripts.
14141 SHELL=$lt_SHELL
14142
14143 # An echo program that protects backslashes.
14144 ECHO=$lt_ECHO
14145
14146 # The host system.
14147 host_alias=$host_alias
14148 host=$host
14149 host_os=$host_os
14150
14151 # The build system.
14152 build_alias=$build_alias
14153 build=$build
14154 build_os=$build_os
14155
14156 # A sed program that does not truncate output.
14157 SED=$lt_SED
14158
14159 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14160 Xsed="\$SED -e 1s/^X//"
14161
14162 # A grep program that handles long lines.
14163 GREP=$lt_GREP
14164
14165 # An ERE matcher.
14166 EGREP=$lt_EGREP
14167
14168 # A literal string matcher.
14169 FGREP=$lt_FGREP
14170
14171 # A BSD- or MS-compatible name lister.
14172 NM=$lt_NM
14173
14174 # Whether we need soft or hard links.
14175 LN_S=$lt_LN_S
14176
14177 # What is the maximum length of a command?
14178 max_cmd_len=$max_cmd_len
14179
14180 # Object file suffix (normally "o").
14181 objext=$ac_objext
14182
14183 # Executable file suffix (normally "").
14184 exeext=$exeext
14185
14186 # whether the shell understands "unset".
14187 lt_unset=$lt_unset
14188
14189 # turn spaces into newlines.
14190 SP2NL=$lt_lt_SP2NL
14191
14192 # turn newlines into spaces.
14193 NL2SP=$lt_lt_NL2SP
14194
14195 # An object symbol dumper.
14196 OBJDUMP=$lt_OBJDUMP
14197
14198 # Method to check whether dependent libraries are shared objects.
14199 deplibs_check_method=$lt_deplibs_check_method
14200
14201 # Command to use when deplibs_check_method == "file_magic".
14202 file_magic_cmd=$lt_file_magic_cmd
14203
14204 # The archiver.
14205 AR=$lt_AR
14206 AR_FLAGS=$lt_AR_FLAGS
14207
14208 # A symbol stripping program.
14209 STRIP=$lt_STRIP
14210
14211 # Commands used to install an old-style archive.
14212 RANLIB=$lt_RANLIB
14213 old_postinstall_cmds=$lt_old_postinstall_cmds
14214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14215
14216 # Whether to use a lock for old archive extraction.
14217 lock_old_archive_extraction=$lock_old_archive_extraction
14218
14219 # A C compiler.
14220 LTCC=$lt_CC
14221
14222 # LTCC compiler flags.
14223 LTCFLAGS=$lt_CFLAGS
14224
14225 # Take the output of nm and produce a listing of raw symbols and C names.
14226 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14227
14228 # Transform the output of nm in a proper C declaration.
14229 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14230
14231 # Transform the output of nm in a C name address pair.
14232 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14233
14234 # Transform the output of nm in a C name address pair when lib prefix is needed.
14235 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14236
14237 # The name of the directory that contains temporary libtool files.
14238 objdir=$objdir
14239
14240 # Used to examine libraries when file_magic_cmd begins with "file".
14241 MAGIC_CMD=$MAGIC_CMD
14242
14243 # Must we lock files when doing compilation?
14244 need_locks=$lt_need_locks
14245
14246 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14247 DSYMUTIL=$lt_DSYMUTIL
14248
14249 # Tool to change global to local symbols on Mac OS X.
14250 NMEDIT=$lt_NMEDIT
14251
14252 # Tool to manipulate fat objects and archives on Mac OS X.
14253 LIPO=$lt_LIPO
14254
14255 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14256 OTOOL=$lt_OTOOL
14257
14258 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14259 OTOOL64=$lt_OTOOL64
14260
14261 # Old archive suffix (normally "a").
14262 libext=$libext
14263
14264 # Shared library suffix (normally ".so").
14265 shrext_cmds=$lt_shrext_cmds
14266
14267 # The commands to extract the exported symbol list from a shared archive.
14268 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14269
14270 # Variables whose values should be saved in libtool wrapper scripts and
14271 # restored at link time.
14272 variables_saved_for_relink=$lt_variables_saved_for_relink
14273
14274 # Do we need the "lib" prefix for modules?
14275 need_lib_prefix=$need_lib_prefix
14276
14277 # Do we need a version for libraries?
14278 need_version=$need_version
14279
14280 # Library versioning type.
14281 version_type=$version_type
14282
14283 # Shared library runtime path variable.
14284 runpath_var=$runpath_var
14285
14286 # Shared library path variable.
14287 shlibpath_var=$shlibpath_var
14288
14289 # Is shlibpath searched before the hard-coded library search path?
14290 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14291
14292 # Format of library name prefix.
14293 libname_spec=$lt_libname_spec
14294
14295 # List of archive names. First name is the real one, the rest are links.
14296 # The last name is the one that the linker finds with -lNAME
14297 library_names_spec=$lt_library_names_spec
14298
14299 # The coded name of the library, if different from the real name.
14300 soname_spec=$lt_soname_spec
14301
14302 # Permission mode override for installation of shared libraries.
14303 install_override_mode=$lt_install_override_mode
14304
14305 # Command to use after installation of a shared archive.
14306 postinstall_cmds=$lt_postinstall_cmds
14307
14308 # Command to use after uninstallation of a shared archive.
14309 postuninstall_cmds=$lt_postuninstall_cmds
14310
14311 # Commands used to finish a libtool library installation in a directory.
14312 finish_cmds=$lt_finish_cmds
14313
14314 # As "finish_cmds", except a single script fragment to be evaled but
14315 # not shown.
14316 finish_eval=$lt_finish_eval
14317
14318 # Whether we should hardcode library paths into libraries.
14319 hardcode_into_libs=$hardcode_into_libs
14320
14321 # Compile-time system search path for libraries.
14322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14323
14324 # Run-time system search path for libraries.
14325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14326
14327 # Whether dlopen is supported.
14328 dlopen_support=$enable_dlopen
14329
14330 # Whether dlopen of programs is supported.
14331 dlopen_self=$enable_dlopen_self
14332
14333 # Whether dlopen of statically linked programs is supported.
14334 dlopen_self_static=$enable_dlopen_self_static
14335
14336 # Commands to strip libraries.
14337 old_striplib=$lt_old_striplib
14338 striplib=$lt_striplib
14339
14340
14341 # The linker used to build libraries.
14342 LD=$lt_LD
14343
14344 # How to create reloadable object files.
14345 reload_flag=$lt_reload_flag
14346 reload_cmds=$lt_reload_cmds
14347
14348 # Commands used to build an old-style archive.
14349 old_archive_cmds=$lt_old_archive_cmds
14350
14351 # A language specific compiler.
14352 CC=$lt_compiler
14353
14354 # Is the compiler the GNU compiler?
14355 with_gcc=$GCC
14356
14357 # Compiler flag to turn off builtin functions.
14358 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14359
14360 # How to pass a linker flag through the compiler.
14361 wl=$lt_lt_prog_compiler_wl
14362
14363 # Additional compiler flags for building library objects.
14364 pic_flag=$lt_lt_prog_compiler_pic
14365
14366 # Compiler flag to prevent dynamic linking.
14367 link_static_flag=$lt_lt_prog_compiler_static
14368
14369 # Does compiler simultaneously support -c and -o options?
14370 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14371
14372 # Whether or not to add -lc for building shared libraries.
14373 build_libtool_need_lc=$archive_cmds_need_lc
14374
14375 # Whether or not to disallow shared libs when runtime libs are static.
14376 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14377
14378 # Compiler flag to allow reflexive dlopens.
14379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14380
14381 # Compiler flag to generate shared objects directly from archives.
14382 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14383
14384 # Whether the compiler copes with passing no objects directly.
14385 compiler_needs_object=$lt_compiler_needs_object
14386
14387 # Create an old-style archive from a shared archive.
14388 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14389
14390 # Create a temporary old-style archive to link instead of a shared archive.
14391 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14392
14393 # Commands used to build a shared archive.
14394 archive_cmds=$lt_archive_cmds
14395 archive_expsym_cmds=$lt_archive_expsym_cmds
14396
14397 # Commands used to build a loadable module if different from building
14398 # a shared archive.
14399 module_cmds=$lt_module_cmds
14400 module_expsym_cmds=$lt_module_expsym_cmds
14401
14402 # Whether we are building with GNU ld or not.
14403 with_gnu_ld=$lt_with_gnu_ld
14404
14405 # Flag that allows shared libraries with undefined symbols to be built.
14406 allow_undefined_flag=$lt_allow_undefined_flag
14407
14408 # Flag that enforces no undefined symbols.
14409 no_undefined_flag=$lt_no_undefined_flag
14410
14411 # Flag to hardcode \$libdir into a binary during linking.
14412 # This must work even if \$libdir does not exist
14413 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14414
14415 # If ld is used when linking, flag to hardcode \$libdir into a binary
14416 # during linking. This must work even if \$libdir does not exist.
14417 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14418
14419 # Whether we need a single "-rpath" flag with a separated argument.
14420 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14421
14422 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14423 # DIR into the resulting binary.
14424 hardcode_direct=$hardcode_direct
14425
14426 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14427 # DIR into the resulting binary and the resulting library dependency is
14428 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14429 # library is relocated.
14430 hardcode_direct_absolute=$hardcode_direct_absolute
14431
14432 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14433 # into the resulting binary.
14434 hardcode_minus_L=$hardcode_minus_L
14435
14436 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14437 # into the resulting binary.
14438 hardcode_shlibpath_var=$hardcode_shlibpath_var
14439
14440 # Set to "yes" if building a shared library automatically hardcodes DIR
14441 # into the library and all subsequent libraries and executables linked
14442 # against it.
14443 hardcode_automatic=$hardcode_automatic
14444
14445 # Set to yes if linker adds runtime paths of dependent libraries
14446 # to runtime path list.
14447 inherit_rpath=$inherit_rpath
14448
14449 # Whether libtool must link a program against all its dependency libraries.
14450 link_all_deplibs=$link_all_deplibs
14451
14452 # Fix the shell variable \$srcfile for the compiler.
14453 fix_srcfile_path=$lt_fix_srcfile_path
14454
14455 # Set to "yes" if exported symbols are required.
14456 always_export_symbols=$always_export_symbols
14457
14458 # The commands to list exported symbols.
14459 export_symbols_cmds=$lt_export_symbols_cmds
14460
14461 # Symbols that should not be listed in the preloaded symbols.
14462 exclude_expsyms=$lt_exclude_expsyms
14463
14464 # Symbols that must always be exported.
14465 include_expsyms=$lt_include_expsyms
14466
14467 # Commands necessary for linking programs (against libraries) with templates.
14468 prelink_cmds=$lt_prelink_cmds
14469
14470 # Specify filename containing input files.
14471 file_list_spec=$lt_file_list_spec
14472
14473 # How to hardcode a shared library path into an executable.
14474 hardcode_action=$hardcode_action
14475
14476 # ### END LIBTOOL CONFIG
14477
14478 _LT_EOF
14479
14480 case $host_os in
14481 aix3*)
14482 cat <<\_LT_EOF >> "$cfgfile"
14483 # AIX sometimes has problems with the GCC collect2 program. For some
14484 # reason, if we set the COLLECT_NAMES environment variable, the problems
14485 # vanish in a puff of smoke.
14486 if test "X${COLLECT_NAMES+set}" != Xset; then
14487 COLLECT_NAMES=
14488 export COLLECT_NAMES
14489 fi
14490 _LT_EOF
14491 ;;
14492 esac
14493
14494
14495 ltmain="$ac_aux_dir/ltmain.sh"
14496
14497
14498 # We use sed instead of cat because bash on DJGPP gets confused if
14499 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14500 # text mode, it properly converts lines to CR/LF. This bash problem
14501 # is reportedly fixed, but why not run on old versions too?
14502 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14503 || (rm -f "$cfgfile"; exit 1)
14504
14505 case $xsi_shell in
14506 yes)
14507 cat << \_LT_EOF >> "$cfgfile"
14508
14509 # func_dirname file append nondir_replacement
14510 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14511 # otherwise set result to NONDIR_REPLACEMENT.
14512 func_dirname ()
14513 {
14514 case ${1} in
14515 */*) func_dirname_result="${1%/*}${2}" ;;
14516 * ) func_dirname_result="${3}" ;;
14517 esac
14518 }
14519
14520 # func_basename file
14521 func_basename ()
14522 {
14523 func_basename_result="${1##*/}"
14524 }
14525
14526 # func_dirname_and_basename file append nondir_replacement
14527 # perform func_basename and func_dirname in a single function
14528 # call:
14529 # dirname: Compute the dirname of FILE. If nonempty,
14530 # add APPEND to the result, otherwise set result
14531 # to NONDIR_REPLACEMENT.
14532 # value returned in "$func_dirname_result"
14533 # basename: Compute filename of FILE.
14534 # value retuned in "$func_basename_result"
14535 # Implementation must be kept synchronized with func_dirname
14536 # and func_basename. For efficiency, we do not delegate to
14537 # those functions but instead duplicate the functionality here.
14538 func_dirname_and_basename ()
14539 {
14540 case ${1} in
14541 */*) func_dirname_result="${1%/*}${2}" ;;
14542 * ) func_dirname_result="${3}" ;;
14543 esac
14544 func_basename_result="${1##*/}"
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_stripname ()
14553 {
14554 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14555 # positional parameters, so assign one to ordinary parameter first.
14556 func_stripname_result=${3}
14557 func_stripname_result=${func_stripname_result#"${1}"}
14558 func_stripname_result=${func_stripname_result%"${2}"}
14559 }
14560
14561 # func_opt_split
14562 func_opt_split ()
14563 {
14564 func_opt_split_opt=${1%%=*}
14565 func_opt_split_arg=${1#*=}
14566 }
14567
14568 # func_lo2o object
14569 func_lo2o ()
14570 {
14571 case ${1} in
14572 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14573 *) func_lo2o_result=${1} ;;
14574 esac
14575 }
14576
14577 # func_xform libobj-or-source
14578 func_xform ()
14579 {
14580 func_xform_result=${1%.*}.lo
14581 }
14582
14583 # func_arith arithmetic-term...
14584 func_arith ()
14585 {
14586 func_arith_result=$(( $* ))
14587 }
14588
14589 # func_len string
14590 # STRING may not start with a hyphen.
14591 func_len ()
14592 {
14593 func_len_result=${#1}
14594 }
14595
14596 _LT_EOF
14597 ;;
14598 *) # Bourne compatible functions.
14599 cat << \_LT_EOF >> "$cfgfile"
14600
14601 # func_dirname file append nondir_replacement
14602 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14603 # otherwise set result to NONDIR_REPLACEMENT.
14604 func_dirname ()
14605 {
14606 # Extract subdirectory from the argument.
14607 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14608 if test "X$func_dirname_result" = "X${1}"; then
14609 func_dirname_result="${3}"
14610 else
14611 func_dirname_result="$func_dirname_result${2}"
14612 fi
14613 }
14614
14615 # func_basename file
14616 func_basename ()
14617 {
14618 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14619 }
14620
14621
14622 # func_stripname prefix suffix name
14623 # strip PREFIX and SUFFIX off of NAME.
14624 # PREFIX and SUFFIX must not contain globbing or regex special
14625 # characters, hashes, percent signs, but SUFFIX may contain a leading
14626 # dot (in which case that matches only a dot).
14627 # func_strip_suffix prefix name
14628 func_stripname ()
14629 {
14630 case ${2} in
14631 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14632 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14633 esac
14634 }
14635
14636 # sed scripts:
14637 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14638 my_sed_long_arg='1s/^-[^=]*=//'
14639
14640 # func_opt_split
14641 func_opt_split ()
14642 {
14643 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14644 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14645 }
14646
14647 # func_lo2o object
14648 func_lo2o ()
14649 {
14650 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14651 }
14652
14653 # func_xform libobj-or-source
14654 func_xform ()
14655 {
14656 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14657 }
14658
14659 # func_arith arithmetic-term...
14660 func_arith ()
14661 {
14662 func_arith_result=`expr "$@"`
14663 }
14664
14665 # func_len string
14666 # STRING may not start with a hyphen.
14667 func_len ()
14668 {
14669 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14670 }
14671
14672 _LT_EOF
14673 esac
14674
14675 case $lt_shell_append in
14676 yes)
14677 cat << \_LT_EOF >> "$cfgfile"
14678
14679 # func_append var value
14680 # Append VALUE to the end of shell variable VAR.
14681 func_append ()
14682 {
14683 eval "$1+=\$2"
14684 }
14685 _LT_EOF
14686 ;;
14687 *)
14688 cat << \_LT_EOF >> "$cfgfile"
14689
14690 # func_append var value
14691 # Append VALUE to the end of shell variable VAR.
14692 func_append ()
14693 {
14694 eval "$1=\$$1\$2"
14695 }
14696
14697 _LT_EOF
14698 ;;
14699 esac
14700
14701
14702 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14703 || (rm -f "$cfgfile"; exit 1)
14704
14705 mv -f "$cfgfile" "$ofile" ||
14706 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14707 chmod +x "$ofile"
14708
14709 ;;
14710 "default-1":C)
14711 for ac_file in $CONFIG_FILES; do
14712 # Support "outfile[:infile[:infile...]]"
14713 case "$ac_file" in
14714 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14715 esac
14716 # PO directories have a Makefile.in generated from Makefile.in.in.
14717 case "$ac_file" in */Makefile.in)
14718 # Adjust a relative srcdir.
14719 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14720 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14721 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14722 # In autoconf-2.13 it is called $ac_given_srcdir.
14723 # In autoconf-2.50 it is called $srcdir.
14724 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14725 case "$ac_given_srcdir" in
14726 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14727 /*) top_srcdir="$ac_given_srcdir" ;;
14728 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14729 esac
14730 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14731 rm -f "$ac_dir/POTFILES"
14732 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14733 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14734 POMAKEFILEDEPS="POTFILES.in"
14735 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14736 # on $ac_dir but don't depend on user-specified configuration
14737 # parameters.
14738 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14739 # The LINGUAS file contains the set of available languages.
14740 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14741 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
14742 fi
14743 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14744 # Hide the ALL_LINGUAS assigment from automake.
14745 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14746 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14747 else
14748 # The set of available languages was given in configure.ac.
14749 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14750 fi
14751 case "$ac_given_srcdir" in
14752 .) srcdirpre= ;;
14753 *) srcdirpre='$(srcdir)/' ;;
14754 esac
14755 POFILES=
14756 GMOFILES=
14757 UPDATEPOFILES=
14758 DUMMYPOFILES=
14759 for lang in $ALL_LINGUAS; do
14760 POFILES="$POFILES $srcdirpre$lang.po"
14761 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14762 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14763 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14764 done
14765 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14766 # environment variable.
14767 INST_LINGUAS=
14768 if test -n "$ALL_LINGUAS"; then
14769 for presentlang in $ALL_LINGUAS; do
14770 useit=no
14771 if test "%UNSET%" != "$LINGUAS"; then
14772 desiredlanguages="$LINGUAS"
14773 else
14774 desiredlanguages="$ALL_LINGUAS"
14775 fi
14776 for desiredlang in $desiredlanguages; do
14777 # Use the presentlang catalog if desiredlang is
14778 # a. equal to presentlang, or
14779 # b. a variant of presentlang (because in this case,
14780 # presentlang can be used as a fallback for messages
14781 # which are not translated in the desiredlang catalog).
14782 case "$desiredlang" in
14783 "$presentlang"*) useit=yes;;
14784 esac
14785 done
14786 if test $useit = yes; then
14787 INST_LINGUAS="$INST_LINGUAS $presentlang"
14788 fi
14789 done
14790 fi
14791 CATALOGS=
14792 if test -n "$INST_LINGUAS"; then
14793 for lang in $INST_LINGUAS; do
14794 CATALOGS="$CATALOGS $lang.gmo"
14795 done
14796 fi
14797 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14798 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14799 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14800 if test -f "$f"; then
14801 case "$f" in
14802 *.orig | *.bak | *~) ;;
14803 *) cat "$f" >> "$ac_dir/Makefile" ;;
14804 esac
14805 fi
14806 done
14807 fi
14808 ;;
14809 esac
14810 done ;;
14811
14812 esac
14813 done # for ac_tag
14814
14815
14816 as_fn_exit 0
14817 _ACEOF
14818 ac_clean_files=$ac_clean_files_save
14819
14820 test $ac_write_fail = 0 ||
14821 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14822
14823
14824 # configure is writing to config.log, and then calls config.status.
14825 # config.status does its own redirection, appending to config.log.
14826 # Unfortunately, on DOS this fails, as config.log is still kept open
14827 # by configure, so config.status won't be able to write to it; its
14828 # output is simply discarded. So we exec the FD to /dev/null,
14829 # effectively closing config.log, so it can be properly (re)opened and
14830 # appended to by config.status. When coming back to configure, we
14831 # need to make the FD available again.
14832 if test "$no_create" != yes; then
14833 ac_cs_success=:
14834 ac_config_status_args=
14835 test "$silent" = yes &&
14836 ac_config_status_args="$ac_config_status_args --quiet"
14837 exec 5>/dev/null
14838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14839 exec 5>>config.log
14840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14841 # would make configure fail if this is the last instruction.
14842 $ac_cs_success || as_fn_exit 1
14843 fi
14844 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14846 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14847 fi
14848
14849
14850
14851 touch config.status.tmp
14852 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
14853 sed '/as_fn_exit 0/i \
14854 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
14855 touch --reference=Makefile Makefile.tmp \
14856 mv Makefile.tmp Makefile \
14857 ' config.status > config.status.tmp
14858 touch --reference=config.status config.status.tmp
14859 mv config.status.tmp config.status
14860 chmod +x config.status
14861 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
14862 touch --reference=Makefile Makefile.tmp
14863 mv Makefile.tmp Makefile
14864 else
14865 rm -f config.status.tmp
14866 fi