Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for NASPRO Bridge it 0.5.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (C) 2007-2014 Stefano D'Angelo
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194 else
195 exitcode=1; echo positional parameters were not saved.
196 fi
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211 test \$(( 1 + 1 )) = 2 || exit 1"
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214 else
215 as_have_required=no
216 fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219 else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 as_found=false
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237 fi
238 fi
239 done;;
240 esac
241 as_found=false
242 done
243 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi; }
247 IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253 # neutralization value for shells without unset; and this also
254 # works around shells that cannot unset nonexistent variables.
255 # Preserve -v and -x to the replacement shell.
256 BASH_ENV=/dev/null
257 ENV=/dev/null
258 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264 esac
265 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266 # Admittedly, this is quite paranoid, since all the known shells bail
267 # out after a failed `exec'.
268 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269 exit 255
270 fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell [email protected] and
280 $0: [email protected] about your system, including any
281 $0: error possibly output before this message. Then install
282 $0: a modern shell, or manually run the script under such a
283 $0: shell if you do have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 $as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413 fi # as_fn_arith
414
415
416 # as_fn_error STATUS ERROR [LINENO LOG_FD]
417 # ----------------------------------------
418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420 # script with STATUS, using 1 if that was 0.
421 as_fn_error ()
422 {
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 fi
428 $as_echo "$as_me: error: $2" >&2
429 as_fn_exit $as_status
430 } # as_fn_error
431
432 if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435 else
436 as_expr=false
437 fi
438
439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441 else
442 as_basename=false
443 fi
444
445 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447 else
448 as_dirname=false
449 fi
450
451 as_me=`$as_basename -- "$0" ||
452 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 $as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470 # Avoid depending upon Character Ranges.
471 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474 as_cr_digits='0123456789'
475 as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511 }
512
513 ECHO_C= ECHO_N= ECHO_T=
514 case `echo -n x` in #(((((
515 -n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522 *)
523 ECHO_N='-n';;
524 esac
525
526 rm -f conf$$ conf$$.exe conf$$.file
527 if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529 else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532 fi
533 if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539 # In both cases, we have to default to `cp -pR'.
540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 as_ln_s='cp -pR'
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
545 as_ln_s='cp -pR'
546 fi
547 else
548 as_ln_s='cp -pR'
549 fi
550 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551 rmdir conf$$.dir 2>/dev/null
552
553 if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555 else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558 fi
559
560 as_test_x='test -x'
561 as_executable_p=as_fn_executable_p
562
563 # Sed expression to map a string onto a valid CPP name.
564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566 # Sed expression to map a string onto a valid variable name.
567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569 SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572 test -n "$DJDIR" || exec 7<&0 </dev/null
573 exec 6>&1
574
575 # Name of the host.
576 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577 # so uname gets run too.
578 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580 #
581 # Initializations.
582 #
583 ac_default_prefix=/usr/local
584 ac_clean_files=
585 ac_config_libobj_dir=.
586 LIBOBJS=
587 cross_compiling=no
588 subdirs=
589 MFLAGS=
590 MAKEFLAGS=
591
592 # Identity of this package.
593 PACKAGE_NAME='NASPRO Bridge it'
594 PACKAGE_TARNAME='naspro-bridge-it'
595 PACKAGE_VERSION='0.5.1'
596 PACKAGE_STRING='NASPRO Bridge it 0.5.1'
597 PACKAGE_BUGREPORT='[email protected]'
598 PACKAGE_URL=''
599
600 ac_unique_file="src/internal.h"
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 LT_AGE
642 LT_REVISION
643 LT_CURRENT
644 LV2_LIBS
645 LV2_CFLAGS
646 NACORE_LIBS
647 NACORE_CFLAGS
648 PKG_CONFIG_LIBDIR
649 PKG_CONFIG_PATH
650 PKG_CONFIG
651 BUILD_DOC_FALSE
652 BUILD_DOC_TRUE
653 NATURALDOCS
654 CPP
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 MANIFEST_TOOL
661 RANLIB
662 ac_ct_AR
663 AR
664 LN_S
665 NM
666 ac_ct_DUMPBIN
667 DUMPBIN
668 LD
669 FGREP
670 EGREP
671 GREP
672 SED
673 LIBTOOL
674 OBJDUMP
675 DLLTOOL
676 AS
677 host_os
678 host_vendor
679 host_cpu
680 host
681 build_os
682 build_vendor
683 build_cpu
684 build
685 am__fastdepCC_FALSE
686 am__fastdepCC_TRUE
687 CCDEPMODE
688 am__nodep
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 DEPDIR
695 OBJEXT
696 EXEEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 pkgconfigdir
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 with_pkgconfigdir
773 enable_dependency_tracking
774 enable_shared
775 enable_static
776 with_pic
777 enable_fast_install
778 with_gnu_ld
779 with_sysroot
780 enable_libtool_lock
781 '
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CPP
791 NATURALDOCS
792 PKG_CONFIG
793 PKG_CONFIG_PATH
794 PKG_CONFIG_LIBDIR
795 NACORE_CFLAGS
796 NACORE_LIBS
797 LV2_CFLAGS
798 LV2_LIBS'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
848
849 ac_prev=
850 ac_dashdash=
851 for ac_option
852 do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
858 fi
859
860 case $ac_option in
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
864 esac
865
866 # Accept the important Cygnus configure options, so we can diagnose typos.
867
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
896
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
919
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
924
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
929
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
1149
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
1165
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1169
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1176
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1183
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1186 ;;
1187
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 esac
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1197
1198 *)
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1204 ;;
1205
1206 esac
1207 done
1208
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $? "missing argument to $ac_option"
1212 fi
1213
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 esac
1220 fi
1221
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1227 do
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1242
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1249
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1256 fi
1257 fi
1258
1259 ac_tool_prefix=
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261
1262 test "$silent" = yes && exec 6>/dev/null
1263
1264
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $? "pwd does not report name of working directory"
1271
1272
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\).*/{
1296 s//\1/
1297 q
1298 }
1299 s/.*/./; q'`
1300 srcdir=$ac_confdir
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 srcdir=..
1303 fi
1304 else
1305 ac_srcdir_defaulted=no
1306 fi
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 fi
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1318 fi
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1331
1332 #
1333 # Report the --help message.
1334 #
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339 \`configure' configures NASPRO Bridge it 0.5.1 to adapt to many kinds of systems.
1340
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1342
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1345
1346 Defaults for the options are specified in brackets.
1347
1348 Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 [PREFIX]
1364
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1369
1370 For better control, use the options below.
1371
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root
1388 [DATAROOTDIR/doc/naspro-bridge-it]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 _ACEOF
1406 fi
1407
1408 if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of NASPRO Bridge it 0.5.1:";;
1411 esac
1412 cat <<\_ACEOF
1413
1414 Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-silent-rules less verbose build output (undo: "make V=1")
1419 --disable-silent-rules verbose build output (undo: "make V=0")
1420 --enable-dependency-tracking
1421 do not reject slow dependency extractors
1422 --disable-dependency-tracking
1423 speeds up one-time build
1424 --enable-shared[=PKGS] build shared libraries [default=yes]
1425 --enable-static[=PKGS] build static libraries [default=yes]
1426 --enable-fast-install[=PKGS]
1427 optimize for fast installation [default=yes]
1428 --disable-libtool-lock avoid locking (might break parallel builds)
1429
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-pkgconfigdir=DIR where to put pkg-config's .pc files
1434 [LIBDIR/pkgconfig]
1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-sysroot=DIR Search for dependent libraries within DIR
1439 (or the compiler's sysroot if not specified).
1440
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450 NATURALDOCS path to NaturalDocs executable
1451 PKG_CONFIG path to pkg-config utility
1452 PKG_CONFIG_PATH
1453 directories to add to pkg-config's search path
1454 PKG_CONFIG_LIBDIR
1455 path overriding pkg-config's built-in search path
1456 NACORE_CFLAGS
1457 C compiler flags for NACORE, overriding pkg-config
1458 NACORE_LIBS linker flags for NACORE, overriding pkg-config
1459 LV2_CFLAGS C compiler flags for LV2, overriding pkg-config
1460 LV2_LIBS linker flags for LV2, overriding pkg-config
1461
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1464
1465 Report bugs to <[email protected]>.
1466 _ACEOF
1467 ac_status=$?
1468 fi
1469
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 continue
1476 ac_builddir=.
1477
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *)
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1493
1494 case $srcdir in
1495 .) # We are building in place.
1496 ac_srcdir=.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1518 else
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 fi || ac_status=$?
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1522 done
1523 fi
1524
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527 cat <<\_ACEOF
1528 NASPRO Bridge it configure 0.5.1
1529 generated by GNU Autoconf 2.69
1530
1531 Copyright (C) 2012 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534
1535 Copyright (C) 2007-2014 Stefano D'Angelo
1536 _ACEOF
1537 exit
1538 fi
1539
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1543
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1548 {
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576 fi
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_link ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
1609 test -x conftest$ac_exeext
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_link
1627
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638 $as_echo_n "(cached) " >&6
1639 else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 $4
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646 eval "$3=yes"
1647 else
1648 eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_header_compile
1658
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689 ac_retval=1
1690 fi
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_cpp
1695
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1700 ac_fn_c_try_run ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=$ac_status
1731 fi
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_run
1737
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1754
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1759
1760 #ifdef __STDC__
1761 # include <limits.h>
1762 #else
1763 # include <assert.h>
1764 #endif
1765
1766 #undef $2
1767
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1781
1782 int
1783 main ()
1784 {
1785 return $2 ();
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1797 fi
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_func
1804 cat >config.log <<_ACEOF
1805 This file contains any messages produced by compilers while
1806 running configure, to aid debugging if configure makes a mistake.
1807
1808 It was created by NASPRO Bridge it $as_me 0.5.1, which was
1809 generated by GNU Autoconf 2.69. Invocation command line was
1810
1811 $ $0 $@
1812
1813 _ACEOF
1814 exec 5>>config.log
1815 {
1816 cat <<_ASUNAME
1817 ## --------- ##
1818 ## Platform. ##
1819 ## --------- ##
1820
1821 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1822 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1823 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1824 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1825 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1826
1827 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1828 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1829
1830 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1831 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1832 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1833 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1834 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1835 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1836 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1837
1838 _ASUNAME
1839
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843 IFS=$as_save_IFS
1844 test -z "$as_dir" && as_dir=.
1845 $as_echo "PATH: $as_dir"
1846 done
1847 IFS=$as_save_IFS
1848
1849 } >&5
1850
1851 cat >&5 <<_ACEOF
1852
1853
1854 ## ----------- ##
1855 ## Core tests. ##
1856 ## ----------- ##
1857
1858 _ACEOF
1859
1860
1861 # Keep a trace of the command line.
1862 # Strip out --no-create and --no-recursion so they do not pile up.
1863 # Strip out --silent because we don't want to record it for future runs.
1864 # Also quote any args containing shell meta-characters.
1865 # Make two passes to allow for proper duplicate-argument suppression.
1866 ac_configure_args=
1867 ac_configure_args0=
1868 ac_configure_args1=
1869 ac_must_keep_next=false
1870 for ac_pass in 1 2
1871 do
1872 for ac_arg
1873 do
1874 case $ac_arg in
1875 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1876 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1877 | -silent | --silent | --silen | --sile | --sil)
1878 continue ;;
1879 *\'*)
1880 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1881 esac
1882 case $ac_pass in
1883 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1884 2)
1885 as_fn_append ac_configure_args1 " '$ac_arg'"
1886 if test $ac_must_keep_next = true; then
1887 ac_must_keep_next=false # Got value, back to normal.
1888 else
1889 case $ac_arg in
1890 *=* | --config-cache | -C | -disable-* | --disable-* \
1891 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1892 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1893 | -with-* | --with-* | -without-* | --without-* | --x)
1894 case "$ac_configure_args0 " in
1895 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1896 esac
1897 ;;
1898 -* ) ac_must_keep_next=true ;;
1899 esac
1900 fi
1901 as_fn_append ac_configure_args " '$ac_arg'"
1902 ;;
1903 esac
1904 done
1905 done
1906 { ac_configure_args0=; unset ac_configure_args0;}
1907 { ac_configure_args1=; unset ac_configure_args1;}
1908
1909 # When interrupted or exit'd, cleanup temporary files, and complete
1910 # config.log. We remove comments because anyway the quotes in there
1911 # would cause problems or look ugly.
1912 # WARNING: Use '\'' to represent an apostrophe within the trap.
1913 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1914 trap 'exit_status=$?
1915 # Save into config.log some information that might help in debugging.
1916 {
1917 echo
1918
1919 $as_echo "## ---------------- ##
1920 ## Cache variables. ##
1921 ## ---------------- ##"
1922 echo
1923 # The following way of writing the cache mishandles newlines in values,
1924 (
1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1926 eval ac_val=\$$ac_var
1927 case $ac_val in #(
1928 *${as_nl}*)
1929 case $ac_var in #(
1930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1932 esac
1933 case $ac_var in #(
1934 _ | IFS | as_nl) ;; #(
1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1936 *) { eval $ac_var=; unset $ac_var;} ;;
1937 esac ;;
1938 esac
1939 done
1940 (set) 2>&1 |
1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1942 *${as_nl}ac_space=\ *)
1943 sed -n \
1944 "s/'\''/'\''\\\\'\'''\''/g;
1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1946 ;; #(
1947 *)
1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1949 ;;
1950 esac |
1951 sort
1952 )
1953 echo
1954
1955 $as_echo "## ----------------- ##
1956 ## Output variables. ##
1957 ## ----------------- ##"
1958 echo
1959 for ac_var in $ac_subst_vars
1960 do
1961 eval ac_val=\$$ac_var
1962 case $ac_val in
1963 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964 esac
1965 $as_echo "$ac_var='\''$ac_val'\''"
1966 done | sort
1967 echo
1968
1969 if test -n "$ac_subst_files"; then
1970 $as_echo "## ------------------- ##
1971 ## File substitutions. ##
1972 ## ------------------- ##"
1973 echo
1974 for ac_var in $ac_subst_files
1975 do
1976 eval ac_val=\$$ac_var
1977 case $ac_val in
1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 esac
1980 $as_echo "$ac_var='\''$ac_val'\''"
1981 done | sort
1982 echo
1983 fi
1984
1985 if test -s confdefs.h; then
1986 $as_echo "## ----------- ##
1987 ## confdefs.h. ##
1988 ## ----------- ##"
1989 echo
1990 cat confdefs.h
1991 echo
1992 fi
1993 test "$ac_signal" != 0 &&
1994 $as_echo "$as_me: caught signal $ac_signal"
1995 $as_echo "$as_me: exit $exit_status"
1996 } >&5
1997 rm -f core *.core core.conftest.* &&
1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1999 exit $exit_status
2000 ' 0
2001 for ac_signal in 1 2 13 15; do
2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2003 done
2004 ac_signal=0
2005
2006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2007 rm -f -r conftest* confdefs.h
2008
2009 $as_echo "/* confdefs.h */" > confdefs.h
2010
2011 # Predefined preprocessor variables.
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_NAME "$PACKAGE_NAME"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2023 _ACEOF
2024
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_STRING "$PACKAGE_STRING"
2027 _ACEOF
2028
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2031 _ACEOF
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_URL "$PACKAGE_URL"
2035 _ACEOF
2036
2037
2038 # Let the site file select an alternate cache file if it wants to.
2039 # Prefer an explicitly selected file to automatically selected ones.
2040 ac_site_file1=NONE
2041 ac_site_file2=NONE
2042 if test -n "$CONFIG_SITE"; then
2043 # We do not want a PATH search for config.site.
2044 case $CONFIG_SITE in #((
2045 -*) ac_site_file1=./$CONFIG_SITE;;
2046 */*) ac_site_file1=$CONFIG_SITE;;
2047 *) ac_site_file1=./$CONFIG_SITE;;
2048 esac
2049 elif test "x$prefix" != xNONE; then
2050 ac_site_file1=$prefix/share/config.site
2051 ac_site_file2=$prefix/etc/config.site
2052 else
2053 ac_site_file1=$ac_default_prefix/share/config.site
2054 ac_site_file2=$ac_default_prefix/etc/config.site
2055 fi
2056 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2057 do
2058 test "x$ac_site_file" = xNONE && continue
2059 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2061 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2062 sed 's/^/| /' "$ac_site_file" >&5
2063 . "$ac_site_file" \
2064 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2066 as_fn_error $? "failed to load site script $ac_site_file
2067 See \`config.log' for more details" "$LINENO" 5; }
2068 fi
2069 done
2070
2071 if test -r "$cache_file"; then
2072 # Some versions of bash will fail to source /dev/null (special files
2073 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2074 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2076 $as_echo "$as_me: loading cache $cache_file" >&6;}
2077 case $cache_file in
2078 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2079 *) . "./$cache_file";;
2080 esac
2081 fi
2082 else
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2084 $as_echo "$as_me: creating cache $cache_file" >&6;}
2085 >$cache_file
2086 fi
2087
2088 # Check that the precious variables saved in the cache have kept the same
2089 # value.
2090 ac_cache_corrupted=false
2091 for ac_var in $ac_precious_vars; do
2092 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2093 eval ac_new_set=\$ac_env_${ac_var}_set
2094 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2095 eval ac_new_val=\$ac_env_${ac_var}_value
2096 case $ac_old_set,$ac_new_set in
2097 set,)
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2099 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2100 ac_cache_corrupted=: ;;
2101 ,set)
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2103 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2104 ac_cache_corrupted=: ;;
2105 ,);;
2106 *)
2107 if test "x$ac_old_val" != "x$ac_new_val"; then
2108 # differences in whitespace do not lead to failure.
2109 ac_old_val_w=`echo x $ac_old_val`
2110 ac_new_val_w=`echo x $ac_new_val`
2111 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2113 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2114 ac_cache_corrupted=:
2115 else
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2117 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2118 eval $ac_var=\$ac_old_val
2119 fi
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2121 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2123 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2124 fi;;
2125 esac
2126 # Pass precious variables to config.status.
2127 if test "$ac_new_set" = set; then
2128 case $ac_new_val in
2129 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2130 *) ac_arg=$ac_var=$ac_new_val ;;
2131 esac
2132 case " $ac_configure_args " in
2133 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2134 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2135 esac
2136 fi
2137 done
2138 if $ac_cache_corrupted; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2142 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2143 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2144 fi
2145 ## -------------------- ##
2146 ## Main body of script. ##
2147 ## -------------------- ##
2148
2149 ac_ext=c
2150 ac_cpp='$CPP $CPPFLAGS'
2151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2154
2155
2156
2157
2158
2159 ac_config_headers="$ac_config_headers config.h"
2160
2161
2162
2163 am__api_version='1.14'
2164
2165 ac_aux_dir=
2166 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2167 if test -f "$ac_dir/install-sh"; then
2168 ac_aux_dir=$ac_dir
2169 ac_install_sh="$ac_aux_dir/install-sh -c"
2170 break
2171 elif test -f "$ac_dir/install.sh"; then
2172 ac_aux_dir=$ac_dir
2173 ac_install_sh="$ac_aux_dir/install.sh -c"
2174 break
2175 elif test -f "$ac_dir/shtool"; then
2176 ac_aux_dir=$ac_dir
2177 ac_install_sh="$ac_aux_dir/shtool install -c"
2178 break
2179 fi
2180 done
2181 if test -z "$ac_aux_dir"; then
2182 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2183 fi
2184
2185 # These three variables are undocumented and unsupported,
2186 # and are intended to be withdrawn in a future Autoconf release.
2187 # They can cause serious problems if a builder's source tree is in a directory
2188 # whose full name contains unusual characters.
2189 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2190 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2191 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2192
2193
2194 # Find a good install program. We prefer a C program (faster),
2195 # so one script is as good as another. But avoid the broken or
2196 # incompatible versions:
2197 # SysV /etc/install, /usr/sbin/install
2198 # SunOS /usr/etc/install
2199 # IRIX /sbin/install
2200 # AIX /bin/install
2201 # AmigaOS /C/install, which installs bootblocks on floppy discs
2202 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2203 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2204 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2205 # OS/2's system install, which has a completely different semantic
2206 # ./install, which can be erroneously created by make from ./install.sh.
2207 # Reject install programs that cannot install multiple files.
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2209 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2210 if test -z "$INSTALL"; then
2211 if ${ac_cv_path_install+:} false; then :
2212 $as_echo_n "(cached) " >&6
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 # Account for people who put trailing slashes in PATH elements.
2220 case $as_dir/ in #((
2221 ./ | .// | /[cC]/* | \
2222 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2223 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2224 /usr/ucb/* ) ;;
2225 *)
2226 # OSF1 and SCO ODT 3.0 have their own names for install.
2227 # Don't use installbsd from OSF since it installs stuff as root
2228 # by default.
2229 for ac_prog in ginstall scoinst install; do
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2232 if test $ac_prog = install &&
2233 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2234 # AIX install. It has an incompatible calling convention.
2235 :
2236 elif test $ac_prog = install &&
2237 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2238 # program-specific install script used by HP pwplus--don't use.
2239 :
2240 else
2241 rm -rf conftest.one conftest.two conftest.dir
2242 echo one > conftest.one
2243 echo two > conftest.two
2244 mkdir conftest.dir
2245 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2246 test -s conftest.one && test -s conftest.two &&
2247 test -s conftest.dir/conftest.one &&
2248 test -s conftest.dir/conftest.two
2249 then
2250 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2251 break 3
2252 fi
2253 fi
2254 fi
2255 done
2256 done
2257 ;;
2258 esac
2259
2260 done
2261 IFS=$as_save_IFS
2262
2263 rm -rf conftest.one conftest.two conftest.dir
2264
2265 fi
2266 if test "${ac_cv_path_install+set}" = set; then
2267 INSTALL=$ac_cv_path_install
2268 else
2269 # As a last resort, use the slow shell script. Don't cache a
2270 # value for INSTALL within a source directory, because that will
2271 # break other packages using the cache if that directory is
2272 # removed, or if the value is a relative name.
2273 INSTALL=$ac_install_sh
2274 fi
2275 fi
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2277 $as_echo "$INSTALL" >&6; }
2278
2279 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2280 # It thinks the first close brace ends the variable substitution.
2281 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2282
2283 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2284
2285 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2286
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2288 $as_echo_n "checking whether build environment is sane... " >&6; }
2289 # Reject unsafe characters in $srcdir or the absolute working directory
2290 # name. Accept space and tab only in the latter.
2291 am_lf='
2292 '
2293 case `pwd` in
2294 *[\\\"\#\$\&\'\`$am_lf]*)
2295 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2296 esac
2297 case $srcdir in
2298 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2299 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2300 esac
2301
2302 # Do 'set' in a subshell so we don't clobber the current shell's
2303 # arguments. Must try -L first in case configure is actually a
2304 # symlink; some systems play weird games with the mod time of symlinks
2305 # (eg FreeBSD returns the mod time of the symlink's containing
2306 # directory).
2307 if (
2308 am_has_slept=no
2309 for am_try in 1 2; do
2310 echo "timestamp, slept: $am_has_slept" > conftest.file
2311 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2312 if test "$*" = "X"; then
2313 # -L didn't work.
2314 set X `ls -t "$srcdir/configure" conftest.file`
2315 fi
2316 if test "$*" != "X $srcdir/configure conftest.file" \
2317 && test "$*" != "X conftest.file $srcdir/configure"; then
2318
2319 # If neither matched, then we have a broken ls. This can happen
2320 # if, for instance, CONFIG_SHELL is bash and it inherits a
2321 # broken ls alias from the environment. This has actually
2322 # happened. Such a system could not be considered "sane".
2323 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2324 alias in your environment" "$LINENO" 5
2325 fi
2326 if test "$2" = conftest.file || test $am_try -eq 2; then
2327 break
2328 fi
2329 # Just in case.
2330 sleep 1
2331 am_has_slept=yes
2332 done
2333 test "$2" = conftest.file
2334 )
2335 then
2336 # Ok.
2337 :
2338 else
2339 as_fn_error $? "newly created file is older than distributed files!
2340 Check your system clock" "$LINENO" 5
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2343 $as_echo "yes" >&6; }
2344 # If we didn't sleep, we still need to ensure time stamps of config.status and
2345 # generated files are strictly newer.
2346 am_sleep_pid=
2347 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2348 ( sleep 1 ) &
2349 am_sleep_pid=$!
2350 fi
2351
2352 rm -f conftest.file
2353
2354 test "$program_prefix" != NONE &&
2355 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2356 # Use a double $ so make ignores it.
2357 test "$program_suffix" != NONE &&
2358 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2359 # Double any \ or $.
2360 # By default was `s,x,x', remove it if useless.
2361 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2362 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2363
2364 # expand $ac_aux_dir to an absolute path
2365 am_aux_dir=`cd $ac_aux_dir && pwd`
2366
2367 if test x"${MISSING+set}" != xset; then
2368 case $am_aux_dir in
2369 *\ * | *\ *)
2370 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2371 *)
2372 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2373 esac
2374 fi
2375 # Use eval to expand $SHELL
2376 if eval "$MISSING --is-lightweight"; then
2377 am_missing_run="$MISSING "
2378 else
2379 am_missing_run=
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2381 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2382 fi
2383
2384 if test x"${install_sh}" != xset; then
2385 case $am_aux_dir in
2386 *\ * | *\ *)
2387 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2388 *)
2389 install_sh="\${SHELL} $am_aux_dir/install-sh"
2390 esac
2391 fi
2392
2393 # Installed binaries are usually stripped using 'strip' when the user
2394 # run "make install-strip". However 'strip' might not be the right
2395 # tool to use in cross-compilation environments, therefore Automake
2396 # will honor the 'STRIP' environment variable to overrule this program.
2397 if test "$cross_compiling" != no; then
2398 if test -n "$ac_tool_prefix"; then
2399 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}strip; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if ${ac_cv_prog_STRIP+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test -n "$STRIP"; then
2407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2
2419 fi
2420 done
2421 done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 STRIP=$ac_cv_prog_STRIP
2427 if test -n "$STRIP"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2429 $as_echo "$STRIP" >&6; }
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2433 fi
2434
2435
2436 fi
2437 if test -z "$ac_cv_prog_STRIP"; then
2438 ac_ct_STRIP=$STRIP
2439 # Extract the first word of "strip", so it can be a program name with args.
2440 set dummy strip; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 if test -n "$ac_ct_STRIP"; then
2447 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_ac_ct_STRIP="strip"
2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 break 2
2459 fi
2460 done
2461 done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2467 if test -n "$ac_ct_STRIP"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2469 $as_echo "$ac_ct_STRIP" >&6; }
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2473 fi
2474
2475 if test "x$ac_ct_STRIP" = x; then
2476 STRIP=":"
2477 else
2478 case $cross_compiling:$ac_tool_warned in
2479 yes:)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2482 ac_tool_warned=yes ;;
2483 esac
2484 STRIP=$ac_ct_STRIP
2485 fi
2486 else
2487 STRIP="$ac_cv_prog_STRIP"
2488 fi
2489
2490 fi
2491 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2492
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2494 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2495 if test -z "$MKDIR_P"; then
2496 if ${ac_cv_path_mkdir+:} false; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2501 do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_prog in mkdir gmkdir; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2507 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2508 'mkdir (GNU coreutils) '* | \
2509 'mkdir (coreutils) '* | \
2510 'mkdir (fileutils) '4.1*)
2511 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2512 break 3;;
2513 esac
2514 done
2515 done
2516 done
2517 IFS=$as_save_IFS
2518
2519 fi
2520
2521 test -d ./--version && rmdir ./--version
2522 if test "${ac_cv_path_mkdir+set}" = set; then
2523 MKDIR_P="$ac_cv_path_mkdir -p"
2524 else
2525 # As a last resort, use the slow shell script. Don't cache a
2526 # value for MKDIR_P 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 MKDIR_P="$ac_install_sh -d"
2530 fi
2531 fi
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2533 $as_echo "$MKDIR_P" >&6; }
2534
2535 for ac_prog in gawk mawk nawk awk
2536 do
2537 # Extract the first word of "$ac_prog", so it can be a program name with args.
2538 set dummy $ac_prog; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_AWK+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$AWK"; then
2545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554 ac_cv_prog_AWK="$ac_prog"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 AWK=$ac_cv_prog_AWK
2565 if test -n "$AWK"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2567 $as_echo "$AWK" >&6; }
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2572
2573
2574 test -n "$AWK" && break
2575 done
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2578 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2579 set x ${MAKE-make}
2580 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2581 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 cat >conftest.make <<\_ACEOF
2585 SHELL = /bin/sh
2586 all:
2587 @echo '@@@%%%=$(MAKE)=@@@%%%'
2588 _ACEOF
2589 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2590 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2591 *@@@%%%=?*=@@@%%%*)
2592 eval ac_cv_prog_make_${ac_make}_set=yes;;
2593 *)
2594 eval ac_cv_prog_make_${ac_make}_set=no;;
2595 esac
2596 rm -f conftest.make
2597 fi
2598 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600 $as_echo "yes" >&6; }
2601 SET_MAKE=
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 SET_MAKE="MAKE=${MAKE-make}"
2606 fi
2607
2608 rm -rf .tst 2>/dev/null
2609 mkdir .tst 2>/dev/null
2610 if test -d .tst; then
2611 am__leading_dot=.
2612 else
2613 am__leading_dot=_
2614 fi
2615 rmdir .tst 2>/dev/null
2616
2617 # Check whether --enable-silent-rules was given.
2618 if test "${enable_silent_rules+set}" = set; then :
2619 enableval=$enable_silent_rules;
2620 fi
2621
2622 case $enable_silent_rules in # (((
2623 yes) AM_DEFAULT_VERBOSITY=0;;
2624 no) AM_DEFAULT_VERBOSITY=1;;
2625 *) AM_DEFAULT_VERBOSITY=1;;
2626 esac
2627 am_make=${MAKE-make}
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2629 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2630 if ${am_cv_make_support_nested_variables+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 if $as_echo 'TRUE=$(BAR$(V))
2634 BAR0=false
2635 BAR1=true
2636 V=1
2637 am__doit:
2638 @$(TRUE)
2639 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2640 am_cv_make_support_nested_variables=yes
2641 else
2642 am_cv_make_support_nested_variables=no
2643 fi
2644 fi
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2646 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2647 if test $am_cv_make_support_nested_variables = yes; then
2648 AM_V='$(V)'
2649 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2650 else
2651 AM_V=$AM_DEFAULT_VERBOSITY
2652 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2653 fi
2654 AM_BACKSLASH='\'
2655
2656 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2657 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2658 # is not polluted with repeated "-I."
2659 am__isrc=' -I$(srcdir)'
2660 # test to see if srcdir already configured
2661 if test -f $srcdir/config.status; then
2662 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2663 fi
2664 fi
2665
2666 # test whether we have cygpath
2667 if test -z "$CYGPATH_W"; then
2668 if (cygpath --version) >/dev/null 2>/dev/null; then
2669 CYGPATH_W='cygpath -w'
2670 else
2671 CYGPATH_W=echo
2672 fi
2673 fi
2674
2675
2676 # Define the identity of the package.
2677 PACKAGE='naspro-bridge-it'
2678 VERSION='0.5.1'
2679
2680
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE "$PACKAGE"
2683 _ACEOF
2684
2685
2686 cat >>confdefs.h <<_ACEOF
2687 #define VERSION "$VERSION"
2688 _ACEOF
2689
2690 # Some tools Automake needs.
2691
2692 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2693
2694
2695 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2696
2697
2698 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2699
2700
2701 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2702
2703
2704 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2705
2706 # For better backward compatibility. To be removed once Automake 1.9.x
2707 # dies out for good. For more background, see:
2708 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2709 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2710 mkdir_p='$(MKDIR_P)'
2711
2712 # We need awk for the "check" target. The system "awk" is bad on
2713 # some platforms.
2714 # Always define AMTAR for backward compatibility. Yes, it's still used
2715 # in the wild :-( We should find a proper way to deprecate it ...
2716 AMTAR='$${TAR-tar}'
2717
2718
2719 # We'll loop over all known methods to create a tar archive until one works.
2720 _am_tools='gnutar pax cpio none'
2721
2722 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2723
2724
2725
2726
2727
2728
2729 # POSIX will say in a future version that running "rm -f" with no argument
2730 # is OK; and we want to be able to make that assumption in our Makefile
2731 # recipes. So use an aggressive probe to check that the usage we want is
2732 # actually supported "in the wild" to an acceptable degree.
2733 # See automake bug#10828.
2734 # To make any issue more visible, cause the running configure to be aborted
2735 # by default if the 'rm' program in use doesn't match our expectations; the
2736 # user can still override this though.
2737 if rm -f && rm -fr && rm -rf; then : OK; else
2738 cat >&2 <<'END'
2739 Oops!
2740
2741 Your 'rm' program seems unable to run without file operands specified
2742 on the command line, even when the '-f' option is present. This is contrary
2743 to the behaviour of most rm programs out there, and not conforming with
2744 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2745
2746 Please tell [email protected] about your system, including the value
2747 of your $PATH and any error possibly output before this message. This
2748 can help us improve future automake versions.
2749
2750 END
2751 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2752 echo 'Configuration will proceed anyway, since you have set the' >&2
2753 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2754 echo >&2
2755 else
2756 cat >&2 <<'END'
2757 Aborting the configuration process, to ensure you take notice of the issue.
2758
2759 You can download and install GNU coreutils to get an 'rm' implementation
2760 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2761
2762 If you want to complete the configuration process using your problematic
2763 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2764 to "yes", and re-run configure.
2765
2766 END
2767 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2768 fi
2769 fi
2770
2771 # Command line options.
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to put pkg-config's .pc files" >&5
2773 $as_echo_n "checking where to put pkg-config's .pc files... " >&6; }
2774
2775 # Check whether --with-pkgconfigdir was given.
2776 if test "${with_pkgconfigdir+set}" = set; then :
2777 withval=$with_pkgconfigdir; pkgconfigdir="${withval}"
2778 else
2779 pkgconfigdir="${libdir}/pkgconfig"
2780 fi
2781
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfigdir" >&5
2784 $as_echo "$pkgconfigdir" >&6; }
2785
2786 # Checks for programs.
2787 DEPDIR="${am__leading_dot}deps"
2788
2789 ac_config_commands="$ac_config_commands depfiles"
2790
2791
2792 am_make=${MAKE-make}
2793 cat > confinc << 'END'
2794 am__doit:
2795 @echo this is the am__doit target
2796 .PHONY: am__doit
2797 END
2798 # If we don't find an include directive, just comment out the code.
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2800 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2801 am__include="#"
2802 am__quote=
2803 _am_result=none
2804 # First try GNU make style include.
2805 echo "include confinc" > confmf
2806 # Ignore all kinds of additional output from 'make'.
2807 case `$am_make -s -f confmf 2> /dev/null` in #(
2808 *the\ am__doit\ target*)
2809 am__include=include
2810 am__quote=
2811 _am_result=GNU
2812 ;;
2813 esac
2814 # Now try BSD make style include.
2815 if test "$am__include" = "#"; then
2816 echo '.include "confinc"' > confmf
2817 case `$am_make -s -f confmf 2> /dev/null` in #(
2818 *the\ am__doit\ target*)
2819 am__include=.include
2820 am__quote="\""
2821 _am_result=BSD
2822 ;;
2823 esac
2824 fi
2825
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2828 $as_echo "$_am_result" >&6; }
2829 rm -f confinc confmf
2830
2831 # Check whether --enable-dependency-tracking was given.
2832 if test "${enable_dependency_tracking+set}" = set; then :
2833 enableval=$enable_dependency_tracking;
2834 fi
2835
2836 if test "x$enable_dependency_tracking" != xno; then
2837 am_depcomp="$ac_aux_dir/depcomp"
2838 AMDEPBACKSLASH='\'
2839 am__nodep='_no'
2840 fi
2841 if test "x$enable_dependency_tracking" != xno; then
2842 AMDEP_TRUE=
2843 AMDEP_FALSE='#'
2844 else
2845 AMDEP_TRUE='#'
2846 AMDEP_FALSE=
2847 fi
2848
2849
2850 ac_ext=c
2851 ac_cpp='$CPP $CPPFLAGS'
2852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2857 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if ${ac_cv_prog_CC+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877 done
2878 done
2879 IFS=$as_save_IFS
2880
2881 fi
2882 fi
2883 CC=$ac_cv_prog_CC
2884 if test -n "$CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886 $as_echo "$CC" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2890 fi
2891
2892
2893 fi
2894 if test -z "$ac_cv_prog_CC"; then
2895 ac_ct_CC=$CC
2896 # Extract the first word of "gcc", so it can be a program name with args.
2897 set dummy gcc; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$ac_ct_CC"; then
2904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_ac_ct_CC="gcc"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2924 if test -n "$ac_ct_CC"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2926 $as_echo "$ac_ct_CC" >&6; }
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 fi
2931
2932 if test "x$ac_ct_CC" = x; then
2933 CC=""
2934 else
2935 case $cross_compiling:$ac_tool_warned in
2936 yes:)
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939 ac_tool_warned=yes ;;
2940 esac
2941 CC=$ac_ct_CC
2942 fi
2943 else
2944 CC="$ac_cv_prog_CC"
2945 fi
2946
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}cc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_CC+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_CC="${ac_tool_prefix}cc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985
2986 fi
2987 fi
2988 if test -z "$CC"; then
2989 # Extract the first word of "cc", so it can be a program name with args.
2990 set dummy cc; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if ${ac_cv_prog_CC+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 ac_prog_rejected=no
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3008 ac_prog_rejected=yes
3009 continue
3010 fi
3011 ac_cv_prog_CC="cc"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 if test $ac_prog_rejected = yes; then
3020 # We found a bogon in the path, so make sure we never use it.
3021 set dummy $ac_cv_prog_CC
3022 shift
3023 if test $# != 0; then
3024 # We chose a different compiler from the bogus one.
3025 # However, it has the same basename, so the bogon will be chosen
3026 # first if we set CC to just the basename; use the full file name.
3027 shift
3028 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3029 fi
3030 fi
3031 fi
3032 fi
3033 CC=$ac_cv_prog_CC
3034 if test -n "$CC"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3036 $as_echo "$CC" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042
3043 fi
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 for ac_prog in cl.exe
3047 do
3048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_CC+:} false; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 CC=$ac_cv_prog_CC
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085 test -n "$CC" && break
3086 done
3087 fi
3088 if test -z "$CC"; then
3089 ac_ct_CC=$CC
3090 for ac_prog in cl.exe
3091 do
3092 # Extract the first word of "$ac_prog", so it can be a program name with args.
3093 set dummy $ac_prog; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 if test -n "$ac_ct_CC"; then
3100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109 ac_cv_prog_ac_ct_CC="$ac_prog"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 fi
3118 fi
3119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120 if test -n "$ac_ct_CC"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3122 $as_echo "$ac_ct_CC" >&6; }
3123 else
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 fi
3127
3128
3129 test -n "$ac_ct_CC" && break
3130 done
3131
3132 if test "x$ac_ct_CC" = x; then
3133 CC=""
3134 else
3135 case $cross_compiling:$ac_tool_warned in
3136 yes:)
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3139 ac_tool_warned=yes ;;
3140 esac
3141 CC=$ac_ct_CC
3142 fi
3143 fi
3144
3145 fi
3146
3147
3148 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error $? "no acceptable C compiler found in \$PATH
3151 See \`config.log' for more details" "$LINENO" 5; }
3152
3153 # Provide some information about the compiler.
3154 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3155 set X $ac_compile
3156 ac_compiler=$2
3157 for ac_option in --version -v -V -qversion; do
3158 { { ac_try="$ac_compiler $ac_option >&5"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3166 ac_status=$?
3167 if test -s conftest.err; then
3168 sed '10a\
3169 ... rest of stderr output deleted ...
3170 10q' conftest.err >conftest.er1
3171 cat conftest.er1 >&5
3172 fi
3173 rm -f conftest.er1 conftest.err
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }
3176 done
3177
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3180
3181 int
3182 main ()
3183 {
3184
3185 ;
3186 return 0;
3187 }
3188 _ACEOF
3189 ac_clean_files_save=$ac_clean_files
3190 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3191 # Try to create an executable without -o first, disregard a.out.
3192 # It will help us diagnose broken compilers, and finding out an intuition
3193 # of exeext.
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3195 $as_echo_n "checking whether the C compiler works... " >&6; }
3196 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3197
3198 # The possible output files:
3199 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3200
3201 ac_rmfiles=
3202 for ac_file in $ac_files
3203 do
3204 case $ac_file in
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3207 esac
3208 done
3209 rm -f $ac_rmfiles
3210
3211 if { { ac_try="$ac_link_default"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_link_default") 2>&5
3219 ac_status=$?
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; then :
3222 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3223 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3224 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3225 # so that the user can short-circuit this test for compilers unknown to
3226 # Autoconf.
3227 for ac_file in $ac_files ''
3228 do
3229 test -f "$ac_file" || continue
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3232 ;;
3233 [ab].out )
3234 # We found the default executable, but exeext='' is most
3235 # certainly right.
3236 break;;
3237 *.* )
3238 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3239 then :; else
3240 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 fi
3242 # We set ac_cv_exeext here because the later test for it is not
3243 # safe: cross compilers may not add the suffix if given an `-o'
3244 # argument, so we may need to know it at that point already.
3245 # Even if this section looks crufty: it has the advantage of
3246 # actually working.
3247 break;;
3248 * )
3249 break;;
3250 esac
3251 done
3252 test "$ac_cv_exeext" = no && ac_cv_exeext=
3253
3254 else
3255 ac_file=''
3256 fi
3257 if test -z "$ac_file"; then :
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260 $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error 77 "C compiler cannot create executables
3266 See \`config.log' for more details" "$LINENO" 5; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3269 $as_echo "yes" >&6; }
3270 fi
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3272 $as_echo_n "checking for C compiler default output file name... " >&6; }
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3274 $as_echo "$ac_file" >&6; }
3275 ac_exeext=$ac_cv_exeext
3276
3277 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3278 ac_clean_files=$ac_clean_files_save
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3280 $as_echo_n "checking for suffix of executables... " >&6; }
3281 if { { ac_try="$ac_link"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_link") 2>&5
3289 ac_status=$?
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }; then :
3292 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3293 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3294 # work properly (i.e., refer to `conftest.exe'), while it won't with
3295 # `rm'.
3296 for ac_file in conftest.exe conftest conftest.*; do
3297 test -f "$ac_file" || continue
3298 case $ac_file in
3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3300 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301 break;;
3302 * ) break;;
3303 esac
3304 done
3305 else
3306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3309 See \`config.log' for more details" "$LINENO" 5; }
3310 fi
3311 rm -f conftest conftest$ac_cv_exeext
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3313 $as_echo "$ac_cv_exeext" >&6; }
3314
3315 rm -f conftest.$ac_ext
3316 EXEEXT=$ac_cv_exeext
3317 ac_exeext=$EXEEXT
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3320 #include <stdio.h>
3321 int
3322 main ()
3323 {
3324 FILE *f = fopen ("conftest.out", "w");
3325 return ferror (f) || fclose (f) != 0;
3326
3327 ;
3328 return 0;
3329 }
3330 _ACEOF
3331 ac_clean_files="$ac_clean_files conftest.out"
3332 # Check that the compiler produces executables we can run. If not, either
3333 # the compiler is broken, or we cross compile.
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3335 $as_echo_n "checking whether we are cross compiling... " >&6; }
3336 if test "$cross_compiling" != yes; then
3337 { { ac_try="$ac_link"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_link") 2>&5
3345 ac_status=$?
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }
3348 if { ac_try='./conftest$ac_cv_exeext'
3349 { { case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_try") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; }; then
3359 cross_compiling=no
3360 else
3361 if test "$cross_compiling" = maybe; then
3362 cross_compiling=yes
3363 else
3364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 as_fn_error $? "cannot run C compiled programs.
3367 If you meant to cross compile, use \`--host'.
3368 See \`config.log' for more details" "$LINENO" 5; }
3369 fi
3370 fi
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3373 $as_echo "$cross_compiling" >&6; }
3374
3375 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3376 ac_clean_files=$ac_clean_files_save
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3378 $as_echo_n "checking for suffix of object files... " >&6; }
3379 if ${ac_cv_objext+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h. */
3384
3385 int
3386 main ()
3387 {
3388
3389 ;
3390 return 0;
3391 }
3392 _ACEOF
3393 rm -f conftest.o conftest.obj
3394 if { { ac_try="$ac_compile"
3395 case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_compile") 2>&5
3402 ac_status=$?
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; then :
3405 for ac_file in conftest.o conftest.obj conftest.*; do
3406 test -f "$ac_file" || continue;
3407 case $ac_file in
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3409 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3410 break;;
3411 esac
3412 done
3413 else
3414 $as_echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3416
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419 as_fn_error $? "cannot compute suffix of object files: cannot compile
3420 See \`config.log' for more details" "$LINENO" 5; }
3421 fi
3422 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3425 $as_echo "$ac_cv_objext" >&6; }
3426 OBJEXT=$ac_cv_objext
3427 ac_objext=$OBJEXT
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3429 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3430 if ${ac_cv_c_compiler_gnu+:} false; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435
3436 int
3437 main ()
3438 {
3439 #ifndef __GNUC__
3440 choke me
3441 #endif
3442
3443 ;
3444 return 0;
3445 }
3446 _ACEOF
3447 if ac_fn_c_try_compile "$LINENO"; then :
3448 ac_compiler_gnu=yes
3449 else
3450 ac_compiler_gnu=no
3451 fi
3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3454
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3457 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3458 if test $ac_compiler_gnu = yes; then
3459 GCC=yes
3460 else
3461 GCC=
3462 fi
3463 ac_test_CFLAGS=${CFLAGS+set}
3464 ac_save_CFLAGS=$CFLAGS
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3466 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3467 if ${ac_cv_prog_cc_g+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 ac_save_c_werror_flag=$ac_c_werror_flag
3471 ac_c_werror_flag=yes
3472 ac_cv_prog_cc_g=no
3473 CFLAGS="-g"
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476
3477 int
3478 main ()
3479 {
3480
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 if ac_fn_c_try_compile "$LINENO"; then :
3486 ac_cv_prog_cc_g=yes
3487 else
3488 CFLAGS=""
3489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3491
3492 int
3493 main ()
3494 {
3495
3496 ;
3497 return 0;
3498 }
3499 _ACEOF
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501
3502 else
3503 ac_c_werror_flag=$ac_save_c_werror_flag
3504 CFLAGS="-g"
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507
3508 int
3509 main ()
3510 {
3511
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_g=yes
3518 fi
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 fi
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_c_werror_flag=$ac_save_c_werror_flag
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3527 $as_echo "$ac_cv_prog_cc_g" >&6; }
3528 if test "$ac_test_CFLAGS" = set; then
3529 CFLAGS=$ac_save_CFLAGS
3530 elif test $ac_cv_prog_cc_g = yes; then
3531 if test "$GCC" = yes; then
3532 CFLAGS="-g -O2"
3533 else
3534 CFLAGS="-g"
3535 fi
3536 else
3537 if test "$GCC" = yes; then
3538 CFLAGS="-O2"
3539 else
3540 CFLAGS=
3541 fi
3542 fi
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3544 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3545 if ${ac_cv_prog_cc_c89+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 ac_cv_prog_cc_c89=no
3549 ac_save_CC=$CC
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3552 #include <stdarg.h>
3553 #include <stdio.h>
3554 struct stat;
3555 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3556 struct buf { int x; };
3557 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3558 static char *e (p, i)
3559 char **p;
3560 int i;
3561 {
3562 return p[i];
3563 }
3564 static char *f (char * (*g) (char **, int), char **p, ...)
3565 {
3566 char *s;
3567 va_list v;
3568 va_start (v,p);
3569 s = g (p, va_arg (v,int));
3570 va_end (v);
3571 return s;
3572 }
3573
3574 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3575 function prototypes and stuff, but not '\xHH' hex character constants.
3576 These don't provoke an error unfortunately, instead are silently treated
3577 as 'x'. The following induces an error, until -std is added to get
3578 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3579 array size at least. It's necessary to write '\x00'==0 to get something
3580 that's true only with -std. */
3581 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3582
3583 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3584 inside strings and character constants. */
3585 #define FOO(x) 'x'
3586 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3587
3588 int test (int i, double x);
3589 struct s1 {int (*f) (int a);};
3590 struct s2 {int (*f) (double a);};
3591 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3592 int argc;
3593 char **argv;
3594 int
3595 main ()
3596 {
3597 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3603 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3604 do
3605 CC="$ac_save_CC $ac_arg"
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_cv_prog_cc_c89=$ac_arg
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext
3610 test "x$ac_cv_prog_cc_c89" != "xno" && break
3611 done
3612 rm -f conftest.$ac_ext
3613 CC=$ac_save_CC
3614
3615 fi
3616 # AC_CACHE_VAL
3617 case "x$ac_cv_prog_cc_c89" in
3618 x)
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3620 $as_echo "none needed" >&6; } ;;
3621 xno)
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3623 $as_echo "unsupported" >&6; } ;;
3624 *)
3625 CC="$CC $ac_cv_prog_cc_c89"
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3627 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3628 esac
3629 if test "x$ac_cv_prog_cc_c89" != xno; then :
3630
3631 fi
3632
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3645 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3646 if ${am_cv_prog_cc_c_o+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651
3652 int
3653 main ()
3654 {
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 # Make sure it works both with $CC and with simple cc.
3661 # Following AC_PROG_CC_C_O, we do the test twice because some
3662 # compilers refuse to overwrite an existing .o file with -o,
3663 # though they will create one.
3664 am_cv_prog_cc_c_o=yes
3665 for am_i in 1 2; do
3666 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3667 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } \
3671 && test -f conftest2.$ac_objext; then
3672 : OK
3673 else
3674 am_cv_prog_cc_c_o=no
3675 break
3676 fi
3677 done
3678 rm -f core conftest*
3679 unset am_i
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3682 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3683 if test "$am_cv_prog_cc_c_o" != yes; then
3684 # Losing compiler, so override with the script.
3685 # FIXME: It is wrong to rewrite CC.
3686 # But if we don't then we get into trouble of one sort or another.
3687 # A longer-term fix would be to have automake use am__CC in this case,
3688 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3689 CC="$am_aux_dir/compile $CC"
3690 fi
3691 ac_ext=c
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696
3697
3698 depcc="$CC" am_compiler_list=
3699
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3701 $as_echo_n "checking dependency style of $depcc... " >&6; }
3702 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3706 # We make a subdir and do the tests there. Otherwise we can end up
3707 # making bogus files that we don't know about and never remove. For
3708 # instance it was reported that on HP-UX the gcc test will end up
3709 # making a dummy file named 'D' -- because '-MD' means "put the output
3710 # in D".
3711 rm -rf conftest.dir
3712 mkdir conftest.dir
3713 # Copy depcomp to subdir because otherwise we won't find it if we're
3714 # using a relative directory.
3715 cp "$am_depcomp" conftest.dir
3716 cd conftest.dir
3717 # We will build objects and dependencies in a subdirectory because
3718 # it helps to detect inapplicable dependency modes. For instance
3719 # both Tru64's cc and ICC support -MD to output dependencies as a
3720 # side effect of compilation, but ICC will put the dependencies in
3721 # the current directory while Tru64 will put them in the object
3722 # directory.
3723 mkdir sub
3724
3725 am_cv_CC_dependencies_compiler_type=none
3726 if test "$am_compiler_list" = ""; then
3727 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3728 fi
3729 am__universal=false
3730 case " $depcc " in #(
3731 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3732 esac
3733
3734 for depmode in $am_compiler_list; do
3735 # Setup a source with many dependencies, because some compilers
3736 # like to wrap large dependency lists on column 80 (with \), and
3737 # we should not choose a depcomp mode which is confused by this.
3738 #
3739 # We need to recreate these files for each test, as the compiler may
3740 # overwrite some of them when testing with obscure command lines.
3741 # This happens at least with the AIX C compiler.
3742 : > sub/conftest.c
3743 for i in 1 2 3 4 5 6; do
3744 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3745 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3746 # Solaris 10 /bin/sh.
3747 echo '/* dummy */' > sub/conftst$i.h
3748 done
3749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3750
3751 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3752 # mode. It turns out that the SunPro C++ compiler does not properly
3753 # handle '-M -o', and we need to detect this. Also, some Intel
3754 # versions had trouble with output in subdirs.
3755 am__obj=sub/conftest.${OBJEXT-o}
3756 am__minus_obj="-o $am__obj"
3757 case $depmode in
3758 gcc)
3759 # This depmode causes a compiler race in universal mode.
3760 test "$am__universal" = false || continue
3761 ;;
3762 nosideeffect)
3763 # After this tag, mechanisms are not by side-effect, so they'll
3764 # only be used when explicitly requested.
3765 if test "x$enable_dependency_tracking" = xyes; then
3766 continue
3767 else
3768 break
3769 fi
3770 ;;
3771 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3772 # This compiler won't grok '-c -o', but also, the minuso test has
3773 # not run yet. These depmodes are late enough in the game, and
3774 # so weak that their functioning should not be impacted.
3775 am__obj=conftest.${OBJEXT-o}
3776 am__minus_obj=
3777 ;;
3778 none) break ;;
3779 esac
3780 if depmode=$depmode \
3781 source=sub/conftest.c object=$am__obj \
3782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3783 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3784 >/dev/null 2>conftest.err &&
3785 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3786 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3787 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3788 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3789 # icc doesn't choke on unknown options, it will just issue warnings
3790 # or remarks (even with -Werror). So we grep stderr for any message
3791 # that says an option was ignored or not supported.
3792 # When given -MP, icc 7.0 and 7.1 complain thusly:
3793 # icc: Command line warning: ignoring option '-M'; no argument required
3794 # The diagnosis changed in icc 8.0:
3795 # icc: Command line remark: option '-MP' not supported
3796 if (grep 'ignoring option' conftest.err ||
3797 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3798 am_cv_CC_dependencies_compiler_type=$depmode
3799 break
3800 fi
3801 fi
3802 done
3803
3804 cd ..
3805 rm -rf conftest.dir
3806 else
3807 am_cv_CC_dependencies_compiler_type=none
3808 fi
3809
3810 fi
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3812 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3813 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3814
3815 if
3816 test "x$enable_dependency_tracking" != xno \
3817 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3818 am__fastdepCC_TRUE=
3819 am__fastdepCC_FALSE='#'
3820 else
3821 am__fastdepCC_TRUE='#'
3822 am__fastdepCC_FALSE=
3823 fi
3824
3825
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3827 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3828 if ${ac_cv_prog_cc_c99+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 ac_cv_prog_cc_c99=no
3832 ac_save_CC=$CC
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835 #include <stdarg.h>
3836 #include <stdbool.h>
3837 #include <stdlib.h>
3838 #include <wchar.h>
3839 #include <stdio.h>
3840
3841 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3842 #define debug(...) fprintf (stderr, __VA_ARGS__)
3843 #define showlist(...) puts (#__VA_ARGS__)
3844 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3845 static void
3846 test_varargs_macros (void)
3847 {
3848 int x = 1234;
3849 int y = 5678;
3850 debug ("Flag");
3851 debug ("X = %d\n", x);
3852 showlist (The first, second, and third items.);
3853 report (x>y, "x is %d but y is %d", x, y);
3854 }
3855
3856 // Check long long types.
3857 #define BIG64 18446744073709551615ull
3858 #define BIG32 4294967295ul
3859 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3860 #if !BIG_OK
3861 your preprocessor is broken;
3862 #endif
3863 #if BIG_OK
3864 #else
3865 your preprocessor is broken;
3866 #endif
3867 static long long int bignum = -9223372036854775807LL;
3868 static unsigned long long int ubignum = BIG64;
3869
3870 struct incomplete_array
3871 {
3872 int datasize;
3873 double data[];
3874 };
3875
3876 struct named_init {
3877 int number;
3878 const wchar_t *name;
3879 double average;
3880 };
3881
3882 typedef const char *ccp;
3883
3884 static inline int
3885 test_restrict (ccp restrict text)
3886 {
3887 // See if C++-style comments work.
3888 // Iterate through items via the restricted pointer.
3889 // Also check for declarations in for loops.
3890 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3891 continue;
3892 return 0;
3893 }
3894
3895 // Check varargs and va_copy.
3896 static void
3897 test_varargs (const char *format, ...)
3898 {
3899 va_list args;
3900 va_start (args, format);
3901 va_list args_copy;
3902 va_copy (args_copy, args);
3903
3904 const char *str;
3905 int number;
3906 float fnumber;
3907
3908 while (*format)
3909 {
3910 switch (*format++)
3911 {
3912 case 's': // string
3913 str = va_arg (args_copy, const char *);
3914 break;
3915 case 'd': // int
3916 number = va_arg (args_copy, int);
3917 break;
3918 case 'f': // float
3919 fnumber = va_arg (args_copy, double);
3920 break;
3921 default:
3922 break;
3923 }
3924 }
3925 va_end (args_copy);
3926 va_end (args);
3927 }
3928
3929 int
3930 main ()
3931 {
3932
3933 // Check bool.
3934 _Bool success = false;
3935
3936 // Check restrict.
3937 if (test_restrict ("String literal") == 0)
3938 success = true;
3939 char *restrict newvar = "Another string";
3940
3941 // Check varargs.
3942 test_varargs ("s, d' f .", "string", 65, 34.234);
3943 test_varargs_macros ();
3944
3945 // Check flexible array members.
3946 struct incomplete_array *ia =
3947 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3948 ia->datasize = 10;
3949 for (int i = 0; i < ia->datasize; ++i)
3950 ia->data[i] = i * 1.234;
3951
3952 // Check named initializers.
3953 struct named_init ni = {
3954 .number = 34,
3955 .name = L"Test wide string",
3956 .average = 543.34343,
3957 };
3958
3959 ni.number = 58;
3960
3961 int dynamic_array[ni.number];
3962 dynamic_array[ni.number - 1] = 543;
3963
3964 // work around unused variable warnings
3965 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3966 || dynamic_array[ni.number - 1] != 543);
3967
3968 ;
3969 return 0;
3970 }
3971 _ACEOF
3972 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3973 do
3974 CC="$ac_save_CC $ac_arg"
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976 ac_cv_prog_cc_c99=$ac_arg
3977 fi
3978 rm -f core conftest.err conftest.$ac_objext
3979 test "x$ac_cv_prog_cc_c99" != "xno" && break
3980 done
3981 rm -f conftest.$ac_ext
3982 CC=$ac_save_CC
3983
3984 fi
3985 # AC_CACHE_VAL
3986 case "x$ac_cv_prog_cc_c99" in
3987 x)
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3989 $as_echo "none needed" >&6; } ;;
3990 xno)
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3992 $as_echo "unsupported" >&6; } ;;
3993 *)
3994 CC="$CC $ac_cv_prog_cc_c99"
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3996 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3997 esac
3998 if test "x$ac_cv_prog_cc_c99" != xno; then :
3999
4000 fi
4001
4002
4003 # Make sure we can run config.sub.
4004 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4005 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4006
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4008 $as_echo_n "checking build system type... " >&6; }
4009 if ${ac_cv_build+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 ac_build_alias=$build_alias
4013 test "x$ac_build_alias" = x &&
4014 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4015 test "x$ac_build_alias" = x &&
4016 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4017 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4018 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4019
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4022 $as_echo "$ac_cv_build" >&6; }
4023 case $ac_cv_build in
4024 *-*-*) ;;
4025 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4026 esac
4027 build=$ac_cv_build
4028 ac_save_IFS=$IFS; IFS='-'
4029 set x $ac_cv_build
4030 shift
4031 build_cpu=$1
4032 build_vendor=$2
4033 shift; shift
4034 # Remember, the first character of IFS is used to create $*,
4035 # except with old shells:
4036 build_os=$*
4037 IFS=$ac_save_IFS
4038 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4039
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4042 $as_echo_n "checking host system type... " >&6; }
4043 if ${ac_cv_host+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 if test "x$host_alias" = x; then
4047 ac_cv_host=$ac_cv_build
4048 else
4049 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4050 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4051 fi
4052
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4055 $as_echo "$ac_cv_host" >&6; }
4056 case $ac_cv_host in
4057 *-*-*) ;;
4058 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4059 esac
4060 host=$ac_cv_host
4061 ac_save_IFS=$IFS; IFS='-'
4062 set x $ac_cv_host
4063 shift
4064 host_cpu=$1
4065 host_vendor=$2
4066 shift; shift
4067 # Remember, the first character of IFS is used to create $*,
4068 # except with old shells:
4069 host_os=$*
4070 IFS=$ac_save_IFS
4071 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4072
4073
4074 enable_win32_dll=yes
4075
4076 case $host in
4077 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4078 if test -n "$ac_tool_prefix"; then
4079 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4080 set dummy ${ac_tool_prefix}as; ac_word=$2
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082 $as_echo_n "checking for $ac_word... " >&6; }
4083 if ${ac_cv_prog_AS+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 if test -n "$AS"; then
4087 ac_cv_prog_AS="$AS" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_AS="${ac_tool_prefix}as"
4097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100 done
4101 done
4102 IFS=$as_save_IFS
4103
4104 fi
4105 fi
4106 AS=$ac_cv_prog_AS
4107 if test -n "$AS"; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4109 $as_echo "$AS" >&6; }
4110 else
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112 $as_echo "no" >&6; }
4113 fi
4114
4115
4116 fi
4117 if test -z "$ac_cv_prog_AS"; then
4118 ac_ct_AS=$AS
4119 # Extract the first word of "as", so it can be a program name with args.
4120 set dummy as; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test -n "$ac_ct_AS"; then
4127 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_ac_ct_AS="as"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140 done
4141 done
4142 IFS=$as_save_IFS
4143
4144 fi
4145 fi
4146 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4147 if test -n "$ac_ct_AS"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4149 $as_echo "$ac_ct_AS" >&6; }
4150 else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 fi
4154
4155 if test "x$ac_ct_AS" = x; then
4156 AS="false"
4157 else
4158 case $cross_compiling:$ac_tool_warned in
4159 yes:)
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162 ac_tool_warned=yes ;;
4163 esac
4164 AS=$ac_ct_AS
4165 fi
4166 else
4167 AS="$ac_cv_prog_AS"
4168 fi
4169
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_DLLTOOL+:} false; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if test -n "$DLLTOOL"; then
4179 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4191 fi
4192 done
4193 done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 DLLTOOL=$ac_cv_prog_DLLTOOL
4199 if test -n "$DLLTOOL"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4201 $as_echo "$DLLTOOL" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207
4208 fi
4209 if test -z "$ac_cv_prog_DLLTOOL"; then
4210 ac_ct_DLLTOOL=$DLLTOOL
4211 # Extract the first word of "dlltool", so it can be a program name with args.
4212 set dummy dlltool; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$ac_ct_DLLTOOL"; then
4219 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4231 fi
4232 done
4233 done
4234 IFS=$as_save_IFS
4235
4236 fi
4237 fi
4238 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4239 if test -n "$ac_ct_DLLTOOL"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4241 $as_echo "$ac_ct_DLLTOOL" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4245 fi
4246
4247 if test "x$ac_ct_DLLTOOL" = x; then
4248 DLLTOOL="false"
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4255 esac
4256 DLLTOOL=$ac_ct_DLLTOOL
4257 fi
4258 else
4259 DLLTOOL="$ac_cv_prog_DLLTOOL"
4260 fi
4261
4262 if test -n "$ac_tool_prefix"; then
4263 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4264 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_OBJDUMP+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$OBJDUMP"; then
4271 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284 done
4285 done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 OBJDUMP=$ac_cv_prog_OBJDUMP
4291 if test -n "$OBJDUMP"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4293 $as_echo "$OBJDUMP" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299
4300 fi
4301 if test -z "$ac_cv_prog_OBJDUMP"; then
4302 ac_ct_OBJDUMP=$OBJDUMP
4303 # Extract the first word of "objdump", so it can be a program name with args.
4304 set dummy objdump; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$ac_ct_OBJDUMP"; then
4311 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4331 if test -n "$ac_ct_OBJDUMP"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4333 $as_echo "$ac_ct_OBJDUMP" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339 if test "x$ac_ct_OBJDUMP" = x; then
4340 OBJDUMP="false"
4341 else
4342 case $cross_compiling:$ac_tool_warned in
4343 yes:)
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 ac_tool_warned=yes ;;
4347 esac
4348 OBJDUMP=$ac_ct_OBJDUMP
4349 fi
4350 else
4351 OBJDUMP="$ac_cv_prog_OBJDUMP"
4352 fi
4353
4354 ;;
4355 esac
4356
4357 test -z "$AS" && AS=as
4358
4359
4360
4361
4362
4363 test -z "$DLLTOOL" && DLLTOOL=dlltool
4364
4365
4366
4367
4368
4369 test -z "$OBJDUMP" && OBJDUMP=objdump
4370
4371
4372
4373
4374
4375
4376
4377 case `pwd` in
4378 *\ * | *\ *)
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4380 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4381 esac
4382
4383
4384
4385 macro_version='2.4.2'
4386 macro_revision='1.3337'
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400 ltmain="$ac_aux_dir/ltmain.sh"
4401
4402 # Backslashify metacharacters that are still active within
4403 # double-quoted strings.
4404 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4405
4406 # Same as above, but do not quote variable references.
4407 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4408
4409 # Sed substitution to delay expansion of an escaped shell variable in a
4410 # double_quote_subst'ed string.
4411 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4412
4413 # Sed substitution to delay expansion of an escaped single quote.
4414 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4415
4416 # Sed substitution to avoid accidental globbing in evaled expressions
4417 no_glob_subst='s/\*/\\\*/g'
4418
4419 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4420 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4421 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4422
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4424 $as_echo_n "checking how to print strings... " >&6; }
4425 # Test print first, because it will be a builtin if present.
4426 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4427 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4428 ECHO='print -r --'
4429 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4430 ECHO='printf %s\n'
4431 else
4432 # Use this function as a fallback that always works.
4433 func_fallback_echo ()
4434 {
4435 eval 'cat <<_LTECHO_EOF
4436 $1
4437 _LTECHO_EOF'
4438 }
4439 ECHO='func_fallback_echo'
4440 fi
4441
4442 # func_echo_all arg...
4443 # Invoke $ECHO with all args, space-separated.
4444 func_echo_all ()
4445 {
4446 $ECHO ""
4447 }
4448
4449 case "$ECHO" in
4450 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4451 $as_echo "printf" >&6; } ;;
4452 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4453 $as_echo "print -r" >&6; } ;;
4454 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4455 $as_echo "cat" >&6; } ;;
4456 esac
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4472 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4473 if ${ac_cv_path_SED+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4477 for ac_i in 1 2 3 4 5 6 7; do
4478 ac_script="$ac_script$as_nl$ac_script"
4479 done
4480 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4481 { ac_script=; unset ac_script;}
4482 if test -z "$SED"; then
4483 ac_path_SED_found=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4487 do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_prog in sed gsed; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4493 as_fn_executable_p "$ac_path_SED" || continue
4494 # Check for GNU ac_path_SED and select it if it is found.
4495 # Check for GNU $ac_path_SED
4496 case `"$ac_path_SED" --version 2>&1` in
4497 *GNU*)
4498 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4499 *)
4500 ac_count=0
4501 $as_echo_n 0123456789 >"conftest.in"
4502 while :
4503 do
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 $as_echo '' >> "conftest.nl"
4508 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510 as_fn_arith $ac_count + 1 && ac_count=$as_val
4511 if test $ac_count -gt ${ac_path_SED_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_SED="$ac_path_SED"
4514 ac_path_SED_max=$ac_count
4515 fi
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4518 done
4519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520 esac
4521
4522 $ac_path_SED_found && break 3
4523 done
4524 done
4525 done
4526 IFS=$as_save_IFS
4527 if test -z "$ac_cv_path_SED"; then
4528 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4529 fi
4530 else
4531 ac_cv_path_SED=$SED
4532 fi
4533
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4536 $as_echo "$ac_cv_path_SED" >&6; }
4537 SED="$ac_cv_path_SED"
4538 rm -f conftest.sed
4539
4540 test -z "$SED" && SED=sed
4541 Xsed="$SED -e 1s/^X//"
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4554 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4555 if ${ac_cv_path_GREP+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -z "$GREP"; then
4559 ac_path_GREP_found=false
4560 # Loop through the user's path and test for each of PROGNAME-LIST
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_prog in grep ggrep; do
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4569 as_fn_executable_p "$ac_path_GREP" || continue
4570 # Check for GNU ac_path_GREP and select it if it is found.
4571 # Check for GNU $ac_path_GREP
4572 case `"$ac_path_GREP" --version 2>&1` in
4573 *GNU*)
4574 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4575 *)
4576 ac_count=0
4577 $as_echo_n 0123456789 >"conftest.in"
4578 while :
4579 do
4580 cat "conftest.in" "conftest.in" >"conftest.tmp"
4581 mv "conftest.tmp" "conftest.in"
4582 cp "conftest.in" "conftest.nl"
4583 $as_echo 'GREP' >> "conftest.nl"
4584 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4586 as_fn_arith $ac_count + 1 && ac_count=$as_val
4587 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4588 # Best one so far, save it but keep looking for a better one
4589 ac_cv_path_GREP="$ac_path_GREP"
4590 ac_path_GREP_max=$ac_count
4591 fi
4592 # 10*(2^10) chars as input seems more than enough
4593 test $ac_count -gt 10 && break
4594 done
4595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4596 esac
4597
4598 $ac_path_GREP_found && break 3
4599 done
4600 done
4601 done
4602 IFS=$as_save_IFS
4603 if test -z "$ac_cv_path_GREP"; then
4604 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4605 fi
4606 else
4607 ac_cv_path_GREP=$GREP
4608 fi
4609
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4612 $as_echo "$ac_cv_path_GREP" >&6; }
4613 GREP="$ac_cv_path_GREP"
4614
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4617 $as_echo_n "checking for egrep... " >&6; }
4618 if ${ac_cv_path_EGREP+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4622 then ac_cv_path_EGREP="$GREP -E"
4623 else
4624 if test -z "$EGREP"; then
4625 ac_path_EGREP_found=false
4626 # Loop through the user's path and test for each of PROGNAME-LIST
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4629 do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_prog in egrep; do
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4635 as_fn_executable_p "$ac_path_EGREP" || continue
4636 # Check for GNU ac_path_EGREP and select it if it is found.
4637 # Check for GNU $ac_path_EGREP
4638 case `"$ac_path_EGREP" --version 2>&1` in
4639 *GNU*)
4640 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4641 *)
4642 ac_count=0
4643 $as_echo_n 0123456789 >"conftest.in"
4644 while :
4645 do
4646 cat "conftest.in" "conftest.in" >"conftest.tmp"
4647 mv "conftest.tmp" "conftest.in"
4648 cp "conftest.in" "conftest.nl"
4649 $as_echo 'EGREP' >> "conftest.nl"
4650 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4652 as_fn_arith $ac_count + 1 && ac_count=$as_val
4653 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4654 # Best one so far, save it but keep looking for a better one
4655 ac_cv_path_EGREP="$ac_path_EGREP"
4656 ac_path_EGREP_max=$ac_count
4657 fi
4658 # 10*(2^10) chars as input seems more than enough
4659 test $ac_count -gt 10 && break
4660 done
4661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4662 esac
4663
4664 $ac_path_EGREP_found && break 3
4665 done
4666 done
4667 done
4668 IFS=$as_save_IFS
4669 if test -z "$ac_cv_path_EGREP"; then
4670 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4671 fi
4672 else
4673 ac_cv_path_EGREP=$EGREP
4674 fi
4675
4676 fi
4677 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4679 $as_echo "$ac_cv_path_EGREP" >&6; }
4680 EGREP="$ac_cv_path_EGREP"
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4684 $as_echo_n "checking for fgrep... " >&6; }
4685 if ${ac_cv_path_FGREP+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4689 then ac_cv_path_FGREP="$GREP -F"
4690 else
4691 if test -z "$FGREP"; then
4692 ac_path_FGREP_found=false
4693 # Loop through the user's path and test for each of PROGNAME-LIST
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_prog in fgrep; do
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4702 as_fn_executable_p "$ac_path_FGREP" || continue
4703 # Check for GNU ac_path_FGREP and select it if it is found.
4704 # Check for GNU $ac_path_FGREP
4705 case `"$ac_path_FGREP" --version 2>&1` in
4706 *GNU*)
4707 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4708 *)
4709 ac_count=0
4710 $as_echo_n 0123456789 >"conftest.in"
4711 while :
4712 do
4713 cat "conftest.in" "conftest.in" >"conftest.tmp"
4714 mv "conftest.tmp" "conftest.in"
4715 cp "conftest.in" "conftest.nl"
4716 $as_echo 'FGREP' >> "conftest.nl"
4717 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719 as_fn_arith $ac_count + 1 && ac_count=$as_val
4720 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4721 # Best one so far, save it but keep looking for a better one
4722 ac_cv_path_FGREP="$ac_path_FGREP"
4723 ac_path_FGREP_max=$ac_count
4724 fi
4725 # 10*(2^10) chars as input seems more than enough
4726 test $ac_count -gt 10 && break
4727 done
4728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729 esac
4730
4731 $ac_path_FGREP_found && break 3
4732 done
4733 done
4734 done
4735 IFS=$as_save_IFS
4736 if test -z "$ac_cv_path_FGREP"; then
4737 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4738 fi
4739 else
4740 ac_cv_path_FGREP=$FGREP
4741 fi
4742
4743 fi
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4746 $as_echo "$ac_cv_path_FGREP" >&6; }
4747 FGREP="$ac_cv_path_FGREP"
4748
4749
4750 test -z "$GREP" && GREP=grep
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770 # Check whether --with-gnu-ld was given.
4771 if test "${with_gnu_ld+set}" = set; then :
4772 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4773 else
4774 with_gnu_ld=no
4775 fi
4776
4777 ac_prog=ld
4778 if test "$GCC" = yes; then
4779 # Check if gcc -print-prog-name=ld gives a path.
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4781 $as_echo_n "checking for ld used by $CC... " >&6; }
4782 case $host in
4783 *-*-mingw*)
4784 # gcc leaves a trailing carriage return which upsets mingw
4785 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4786 *)
4787 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4788 esac
4789 case $ac_prog in
4790 # Accept absolute paths.
4791 [\\/]* | ?:[\\/]*)
4792 re_direlt='/[^/][^/]*/\.\./'
4793 # Canonicalize the pathname of ld
4794 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4795 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4796 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4797 done
4798 test -z "$LD" && LD="$ac_prog"
4799 ;;
4800 "")
4801 # If it fails, then pretend we aren't using GCC.
4802 ac_prog=ld
4803 ;;
4804 *)
4805 # If it is relative, then search for the first ld in PATH.
4806 with_gnu_ld=unknown
4807 ;;
4808 esac
4809 elif test "$with_gnu_ld" = yes; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4811 $as_echo_n "checking for GNU ld... " >&6; }
4812 else
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4814 $as_echo_n "checking for non-GNU ld... " >&6; }
4815 fi
4816 if ${lt_cv_path_LD+:} false; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -z "$LD"; then
4820 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4821 for ac_dir in $PATH; do
4822 IFS="$lt_save_ifs"
4823 test -z "$ac_dir" && ac_dir=.
4824 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4825 lt_cv_path_LD="$ac_dir/$ac_prog"
4826 # Check to see if the program is GNU ld. I'd rather use --version,
4827 # but apparently some variants of GNU ld only accept -v.
4828 # Break only if it was the GNU/non-GNU ld that we prefer.
4829 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4830 *GNU* | *'with BFD'*)
4831 test "$with_gnu_ld" != no && break
4832 ;;
4833 *)
4834 test "$with_gnu_ld" != yes && break
4835 ;;
4836 esac
4837 fi
4838 done
4839 IFS="$lt_save_ifs"
4840 else
4841 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4842 fi
4843 fi
4844
4845 LD="$lt_cv_path_LD"
4846 if test -n "$LD"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4848 $as_echo "$LD" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4855 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4856 if ${lt_cv_prog_gnu_ld+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4860 case `$LD -v 2>&1 </dev/null` in
4861 *GNU* | *'with BFD'*)
4862 lt_cv_prog_gnu_ld=yes
4863 ;;
4864 *)
4865 lt_cv_prog_gnu_ld=no
4866 ;;
4867 esac
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4870 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4871 with_gnu_ld=$lt_cv_prog_gnu_ld
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4882 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4883 if ${lt_cv_path_NM+:} false; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$NM"; then
4887 # Let the user override the test.
4888 lt_cv_path_NM="$NM"
4889 else
4890 lt_nm_to_check="${ac_tool_prefix}nm"
4891 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4892 lt_nm_to_check="$lt_nm_to_check nm"
4893 fi
4894 for lt_tmp_nm in $lt_nm_to_check; do
4895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4896 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4897 IFS="$lt_save_ifs"
4898 test -z "$ac_dir" && ac_dir=.
4899 tmp_nm="$ac_dir/$lt_tmp_nm"
4900 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4901 # Check to see if the nm accepts a BSD-compat flag.
4902 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4903 # nm: unknown option "B" ignored
4904 # Tru64's nm complains that /dev/null is an invalid object file
4905 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4906 */dev/null* | *'Invalid file or object type'*)
4907 lt_cv_path_NM="$tmp_nm -B"
4908 break
4909 ;;
4910 *)
4911 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4912 */dev/null*)
4913 lt_cv_path_NM="$tmp_nm -p"
4914 break
4915 ;;
4916 *)
4917 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4918 continue # so that we can try to find one that supports BSD flags
4919 ;;
4920 esac
4921 ;;
4922 esac
4923 fi
4924 done
4925 IFS="$lt_save_ifs"
4926 done
4927 : ${lt_cv_path_NM=no}
4928 fi
4929 fi
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4931 $as_echo "$lt_cv_path_NM" >&6; }
4932 if test "$lt_cv_path_NM" != "no"; then
4933 NM="$lt_cv_path_NM"
4934 else
4935 # Didn't find any BSD compatible name lister, look for dumpbin.
4936 if test -n "$DUMPBIN"; then :
4937 # Let the user override the test.
4938 else
4939 if test -n "$ac_tool_prefix"; then
4940 for ac_prog in dumpbin "link -dump"
4941 do
4942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if ${ac_cv_prog_DUMPBIN+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$DUMPBIN"; then
4950 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 DUMPBIN=$ac_cv_prog_DUMPBIN
4970 if test -n "$DUMPBIN"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4972 $as_echo "$DUMPBIN" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977
4978
4979 test -n "$DUMPBIN" && break
4980 done
4981 fi
4982 if test -z "$DUMPBIN"; then
4983 ac_ct_DUMPBIN=$DUMPBIN
4984 for ac_prog in dumpbin "link -dump"
4985 do
4986 # Extract the first word of "$ac_prog", so it can be a program name with args.
4987 set dummy $ac_prog; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 if test -n "$ac_ct_DUMPBIN"; then
4994 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 break 2
5006 fi
5007 done
5008 done
5009 IFS=$as_save_IFS
5010
5011 fi
5012 fi
5013 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5014 if test -n "$ac_ct_DUMPBIN"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5016 $as_echo "$ac_ct_DUMPBIN" >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020 fi
5021
5022
5023 test -n "$ac_ct_DUMPBIN" && break
5024 done
5025
5026 if test "x$ac_ct_DUMPBIN" = x; then
5027 DUMPBIN=":"
5028 else
5029 case $cross_compiling:$ac_tool_warned in
5030 yes:)
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5033 ac_tool_warned=yes ;;
5034 esac
5035 DUMPBIN=$ac_ct_DUMPBIN
5036 fi
5037 fi
5038
5039 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5040 *COFF*)
5041 DUMPBIN="$DUMPBIN -symbols"
5042 ;;
5043 *)
5044 DUMPBIN=:
5045 ;;
5046 esac
5047 fi
5048
5049 if test "$DUMPBIN" != ":"; then
5050 NM="$DUMPBIN"
5051 fi
5052 fi
5053 test -z "$NM" && NM=nm
5054
5055
5056
5057
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5061 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5062 if ${lt_cv_nm_interface+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 lt_cv_nm_interface="BSD nm"
5066 echo "int some_variable = 0;" > conftest.$ac_ext
5067 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5068 (eval "$ac_compile" 2>conftest.err)
5069 cat conftest.err >&5
5070 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5071 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5072 cat conftest.err >&5
5073 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5074 cat conftest.out >&5
5075 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5076 lt_cv_nm_interface="MS dumpbin"
5077 fi
5078 rm -f conftest*
5079 fi
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5081 $as_echo "$lt_cv_nm_interface" >&6; }
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5084 $as_echo_n "checking whether ln -s works... " >&6; }
5085 LN_S=$as_ln_s
5086 if test "$LN_S" = "ln -s"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5088 $as_echo "yes" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5091 $as_echo "no, using $LN_S" >&6; }
5092 fi
5093
5094 # find the maximum length of command line arguments
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5096 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5097 if ${lt_cv_sys_max_cmd_len+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 i=0
5101 teststring="ABCD"
5102
5103 case $build_os in
5104 msdosdjgpp*)
5105 # On DJGPP, this test can blow up pretty badly due to problems in libc
5106 # (any single argument exceeding 2000 bytes causes a buffer overrun
5107 # during glob expansion). Even if it were fixed, the result of this
5108 # check would be larger than it should be.
5109 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5110 ;;
5111
5112 gnu*)
5113 # Under GNU Hurd, this test is not required because there is
5114 # no limit to the length of command line arguments.
5115 # Libtool will interpret -1 as no limit whatsoever
5116 lt_cv_sys_max_cmd_len=-1;
5117 ;;
5118
5119 cygwin* | mingw* | cegcc*)
5120 # On Win9x/ME, this test blows up -- it succeeds, but takes
5121 # about 5 minutes as the teststring grows exponentially.
5122 # Worse, since 9x/ME are not pre-emptively multitasking,
5123 # you end up with a "frozen" computer, even though with patience
5124 # the test eventually succeeds (with a max line length of 256k).
5125 # Instead, let's just punt: use the minimum linelength reported by
5126 # all of the supported platforms: 8192 (on NT/2K/XP).
5127 lt_cv_sys_max_cmd_len=8192;
5128 ;;
5129
5130 mint*)
5131 # On MiNT this can take a long time and run out of memory.
5132 lt_cv_sys_max_cmd_len=8192;
5133 ;;
5134
5135 amigaos*)
5136 # On AmigaOS with pdksh, this test takes hours, literally.
5137 # So we just punt and use a minimum line length of 8192.
5138 lt_cv_sys_max_cmd_len=8192;
5139 ;;
5140
5141 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5142 # This has been around since 386BSD, at least. Likely further.
5143 if test -x /sbin/sysctl; then
5144 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5145 elif test -x /usr/sbin/sysctl; then
5146 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5147 else
5148 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5149 fi
5150 # And add a safety zone
5151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5153 ;;
5154
5155 interix*)
5156 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5157 lt_cv_sys_max_cmd_len=196608
5158 ;;
5159
5160 os2*)
5161 # The test takes a long time on OS/2.
5162 lt_cv_sys_max_cmd_len=8192
5163 ;;
5164
5165 osf*)
5166 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5167 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5168 # nice to cause kernel panics so lets avoid the loop below.
5169 # First set a reasonable default.
5170 lt_cv_sys_max_cmd_len=16384
5171 #
5172 if test -x /sbin/sysconfig; then
5173 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5174 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5175 esac
5176 fi
5177 ;;
5178 sco3.2v5*)
5179 lt_cv_sys_max_cmd_len=102400
5180 ;;
5181 sysv5* | sco5v6* | sysv4.2uw2*)
5182 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5183 if test -n "$kargmax"; then
5184 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5185 else
5186 lt_cv_sys_max_cmd_len=32768
5187 fi
5188 ;;
5189 *)
5190 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5191 if test -n "$lt_cv_sys_max_cmd_len"; then
5192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5194 else
5195 # Make teststring a little bigger before we do anything with it.
5196 # a 1K string should be a reasonable start.
5197 for i in 1 2 3 4 5 6 7 8 ; do
5198 teststring=$teststring$teststring
5199 done
5200 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5201 # If test is not a shell built-in, we'll probably end up computing a
5202 # maximum length that is only half of the actual maximum length, but
5203 # we can't tell.
5204 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5205 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5206 test $i != 17 # 1/2 MB should be enough
5207 do
5208 i=`expr $i + 1`
5209 teststring=$teststring$teststring
5210 done
5211 # Only check the string length outside the loop.
5212 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5213 teststring=
5214 # Add a significant safety factor because C++ compilers can tack on
5215 # massive amounts of additional arguments before passing them to the
5216 # linker. It appears as though 1/2 is a usable value.
5217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5218 fi
5219 ;;
5220 esac
5221
5222 fi
5223
5224 if test -n $lt_cv_sys_max_cmd_len ; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5226 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5229 $as_echo "none" >&6; }
5230 fi
5231 max_cmd_len=$lt_cv_sys_max_cmd_len
5232
5233
5234
5235
5236
5237
5238 : ${CP="cp -f"}
5239 : ${MV="mv -f"}
5240 : ${RM="rm -f"}
5241
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5243 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5244 # Try some XSI features
5245 xsi_shell=no
5246 ( _lt_dummy="a/b/c"
5247 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5248 = c,a/b,b/c, \
5249 && eval 'test $(( 1 + 1 )) -eq 2 \
5250 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5251 && xsi_shell=yes
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5253 $as_echo "$xsi_shell" >&6; }
5254
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5257 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5258 lt_shell_append=no
5259 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5260 >/dev/null 2>&1 \
5261 && lt_shell_append=yes
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5263 $as_echo "$lt_shell_append" >&6; }
5264
5265
5266 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5267 lt_unset=unset
5268 else
5269 lt_unset=false
5270 fi
5271
5272
5273
5274
5275
5276 # test EBCDIC or ASCII
5277 case `echo X|tr X '\101'` in
5278 A) # ASCII based system
5279 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5280 lt_SP2NL='tr \040 \012'
5281 lt_NL2SP='tr \015\012 \040\040'
5282 ;;
5283 *) # EBCDIC based system
5284 lt_SP2NL='tr \100 \n'
5285 lt_NL2SP='tr \r\n \100\100'
5286 ;;
5287 esac
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5298 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5299 if ${lt_cv_to_host_file_cmd+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 case $host in
5303 *-*-mingw* )
5304 case $build in
5305 *-*-mingw* ) # actually msys
5306 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5307 ;;
5308 *-*-cygwin* )
5309 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5310 ;;
5311 * ) # otherwise, assume *nix
5312 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5313 ;;
5314 esac
5315 ;;
5316 *-*-cygwin* )
5317 case $build in
5318 *-*-mingw* ) # actually msys
5319 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5320 ;;
5321 *-*-cygwin* )
5322 lt_cv_to_host_file_cmd=func_convert_file_noop
5323 ;;
5324 * ) # otherwise, assume *nix
5325 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5326 ;;
5327 esac
5328 ;;
5329 * ) # unhandled hosts (and "normal" native builds)
5330 lt_cv_to_host_file_cmd=func_convert_file_noop
5331 ;;
5332 esac
5333
5334 fi
5335
5336 to_host_file_cmd=$lt_cv_to_host_file_cmd
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5338 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5339
5340
5341
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5345 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5346 if ${lt_cv_to_tool_file_cmd+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 #assume ordinary cross tools, or native build.
5350 lt_cv_to_tool_file_cmd=func_convert_file_noop
5351 case $host in
5352 *-*-mingw* )
5353 case $build in
5354 *-*-mingw* ) # actually msys
5355 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5356 ;;
5357 esac
5358 ;;
5359 esac
5360
5361 fi
5362
5363 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5365 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5366
5367
5368
5369
5370
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5372 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5373 if ${lt_cv_ld_reload_flag+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 lt_cv_ld_reload_flag='-r'
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5379 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5380 reload_flag=$lt_cv_ld_reload_flag
5381 case $reload_flag in
5382 "" | " "*) ;;
5383 *) reload_flag=" $reload_flag" ;;
5384 esac
5385 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5386 case $host_os in
5387 cygwin* | mingw* | pw32* | cegcc*)
5388 if test "$GCC" != yes; then
5389 reload_cmds=false
5390 fi
5391 ;;
5392 darwin*)
5393 if test "$GCC" = yes; then
5394 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5395 else
5396 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5397 fi
5398 ;;
5399 esac
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409 if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5411 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_prog_OBJDUMP+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 if test -n "$OBJDUMP"; then
5418 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5430 fi
5431 done
5432 done
5433 IFS=$as_save_IFS
5434
5435 fi
5436 fi
5437 OBJDUMP=$ac_cv_prog_OBJDUMP
5438 if test -n "$OBJDUMP"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5440 $as_echo "$OBJDUMP" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5444 fi
5445
5446
5447 fi
5448 if test -z "$ac_cv_prog_OBJDUMP"; then
5449 ac_ct_OBJDUMP=$OBJDUMP
5450 # Extract the first word of "objdump", so it can be a program name with args.
5451 set dummy objdump; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$ac_ct_OBJDUMP"; then
5458 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471 done
5472 done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5478 if test -n "$ac_ct_OBJDUMP"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5480 $as_echo "$ac_ct_OBJDUMP" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486 if test "x$ac_ct_OBJDUMP" = x; then
5487 OBJDUMP="false"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490 yes:)
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5494 esac
5495 OBJDUMP=$ac_ct_OBJDUMP
5496 fi
5497 else
5498 OBJDUMP="$ac_cv_prog_OBJDUMP"
5499 fi
5500
5501 test -z "$OBJDUMP" && OBJDUMP=objdump
5502
5503
5504
5505
5506
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5509 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5510 if ${lt_cv_deplibs_check_method+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 lt_cv_file_magic_cmd='$MAGIC_CMD'
5514 lt_cv_file_magic_test_file=
5515 lt_cv_deplibs_check_method='unknown'
5516 # Need to set the preceding variable on all platforms that support
5517 # interlibrary dependencies.
5518 # 'none' -- dependencies not supported.
5519 # `unknown' -- same as none, but documents that we really don't know.
5520 # 'pass_all' -- all dependencies passed with no checks.
5521 # 'test_compile' -- check by making test program.
5522 # 'file_magic [[regex]]' -- check by looking for files in library path
5523 # which responds to the $file_magic_cmd with a given extended regex.
5524 # If you have `file' or equivalent on your system and you're not sure
5525 # whether `pass_all' will *always* work, you probably want this one.
5526
5527 case $host_os in
5528 aix[4-9]*)
5529 lt_cv_deplibs_check_method=pass_all
5530 ;;
5531
5532 beos*)
5533 lt_cv_deplibs_check_method=pass_all
5534 ;;
5535
5536 bsdi[45]*)
5537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5538 lt_cv_file_magic_cmd='/usr/bin/file -L'
5539 lt_cv_file_magic_test_file=/shlib/libc.so
5540 ;;
5541
5542 cygwin*)
5543 # func_win32_libid is a shell function defined in ltmain.sh
5544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5545 lt_cv_file_magic_cmd='func_win32_libid'
5546 ;;
5547
5548 mingw* | pw32*)
5549 # Base MSYS/MinGW do not provide the 'file' command needed by
5550 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5551 # unless we find 'file', for example because we are cross-compiling.
5552 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5553 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5554 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5555 lt_cv_file_magic_cmd='func_win32_libid'
5556 else
5557 # Keep this pattern in sync with the one in func_win32_libid.
5558 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5559 lt_cv_file_magic_cmd='$OBJDUMP -f'
5560 fi
5561 ;;
5562
5563 cegcc*)
5564 # use the weaker test based on 'objdump'. See mingw*.
5565 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5566 lt_cv_file_magic_cmd='$OBJDUMP -f'
5567 ;;
5568
5569 darwin* | rhapsody*)
5570 lt_cv_deplibs_check_method=pass_all
5571 ;;
5572
5573 freebsd* | dragonfly*)
5574 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5575 case $host_cpu in
5576 i*86 )
5577 # Not sure whether the presence of OpenBSD here was a mistake.
5578 # Let's accept both of them until this is cleared up.
5579 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5580 lt_cv_file_magic_cmd=/usr/bin/file
5581 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5582 ;;
5583 esac
5584 else
5585 lt_cv_deplibs_check_method=pass_all
5586 fi
5587 ;;
5588
5589 gnu*)
5590 lt_cv_deplibs_check_method=pass_all
5591 ;;
5592
5593 haiku*)
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597 hpux10.20* | hpux11*)
5598 lt_cv_file_magic_cmd=/usr/bin/file
5599 case $host_cpu in
5600 ia64*)
5601 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5602 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5603 ;;
5604 hppa*64*)
5605 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]'
5606 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5607 ;;
5608 *)
5609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5610 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5611 ;;
5612 esac
5613 ;;
5614
5615 interix[3-9]*)
5616 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5618 ;;
5619
5620 irix5* | irix6* | nonstopux*)
5621 case $LD in
5622 *-32|*"-32 ") libmagic=32-bit;;
5623 *-n32|*"-n32 ") libmagic=N32;;
5624 *-64|*"-64 ") libmagic=64-bit;;
5625 *) libmagic=never-match;;
5626 esac
5627 lt_cv_deplibs_check_method=pass_all
5628 ;;
5629
5630 # This must be glibc/ELF.
5631 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5632 lt_cv_deplibs_check_method=pass_all
5633 ;;
5634
5635 netbsd*)
5636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5638 else
5639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5640 fi
5641 ;;
5642
5643 newos6*)
5644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5645 lt_cv_file_magic_cmd=/usr/bin/file
5646 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5647 ;;
5648
5649 *nto* | *qnx*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653 openbsd*)
5654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5656 else
5657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5658 fi
5659 ;;
5660
5661 osf3* | osf4* | osf5*)
5662 lt_cv_deplibs_check_method=pass_all
5663 ;;
5664
5665 rdos*)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668
5669 solaris*)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672
5673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5674 lt_cv_deplibs_check_method=pass_all
5675 ;;
5676
5677 sysv4 | sysv4.3*)
5678 case $host_vendor in
5679 motorola)
5680 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]'
5681 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5682 ;;
5683 ncr)
5684 lt_cv_deplibs_check_method=pass_all
5685 ;;
5686 sequent)
5687 lt_cv_file_magic_cmd='/bin/file'
5688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5689 ;;
5690 sni)
5691 lt_cv_file_magic_cmd='/bin/file'
5692 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5693 lt_cv_file_magic_test_file=/lib/libc.so
5694 ;;
5695 siemens)
5696 lt_cv_deplibs_check_method=pass_all
5697 ;;
5698 pc)
5699 lt_cv_deplibs_check_method=pass_all
5700 ;;
5701 esac
5702 ;;
5703
5704 tpf*)
5705 lt_cv_deplibs_check_method=pass_all
5706 ;;
5707 esac
5708
5709 fi
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5711 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5712
5713 file_magic_glob=
5714 want_nocaseglob=no
5715 if test "$build" = "$host"; then
5716 case $host_os in
5717 mingw* | pw32*)
5718 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5719 want_nocaseglob=yes
5720 else
5721 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5722 fi
5723 ;;
5724 esac
5725 fi
5726
5727 file_magic_cmd=$lt_cv_file_magic_cmd
5728 deplibs_check_method=$lt_cv_deplibs_check_method
5729 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752 if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_DLLTOOL+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if test -n "$DLLTOOL"; then
5761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 DLLTOOL=$ac_cv_prog_DLLTOOL
5781 if test -n "$DLLTOOL"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5783 $as_echo "$DLLTOOL" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789
5790 fi
5791 if test -z "$ac_cv_prog_DLLTOOL"; then
5792 ac_ct_DLLTOOL=$DLLTOOL
5793 # Extract the first word of "dlltool", so it can be a program name with args.
5794 set dummy dlltool; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$ac_ct_DLLTOOL"; then
5801 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814 done
5815 done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5821 if test -n "$ac_ct_DLLTOOL"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5823 $as_echo "$ac_ct_DLLTOOL" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829 if test "x$ac_ct_DLLTOOL" = x; then
5830 DLLTOOL="false"
5831 else
5832 case $cross_compiling:$ac_tool_warned in
5833 yes:)
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5837 esac
5838 DLLTOOL=$ac_ct_DLLTOOL
5839 fi
5840 else
5841 DLLTOOL="$ac_cv_prog_DLLTOOL"
5842 fi
5843
5844 test -z "$DLLTOOL" && DLLTOOL=dlltool
5845
5846
5847
5848
5849
5850
5851
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5853 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5854 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 lt_cv_sharedlib_from_linklib_cmd='unknown'
5858
5859 case $host_os in
5860 cygwin* | mingw* | pw32* | cegcc*)
5861 # two different shell functions defined in ltmain.sh
5862 # decide which to use based on capabilities of $DLLTOOL
5863 case `$DLLTOOL --help 2>&1` in
5864 *--identify-strict*)
5865 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5866 ;;
5867 *)
5868 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5869 ;;
5870 esac
5871 ;;
5872 *)
5873 # fallback: assume linklib IS sharedlib
5874 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5875 ;;
5876 esac
5877
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5880 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5881 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5882 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5883
5884
5885
5886
5887
5888
5889
5890
5891 if test -n "$ac_tool_prefix"; then
5892 for ac_prog in ar
5893 do
5894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if ${ac_cv_prog_AR+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$AR"; then
5902 ac_cv_prog_AR="$AR" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5911 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915 done
5916 done
5917 IFS=$as_save_IFS
5918
5919 fi
5920 fi
5921 AR=$ac_cv_prog_AR
5922 if test -n "$AR"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5924 $as_echo "$AR" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929
5930
5931 test -n "$AR" && break
5932 done
5933 fi
5934 if test -z "$AR"; then
5935 ac_ct_AR=$AR
5936 for ac_prog in ar
5937 do
5938 # Extract the first word of "$ac_prog", so it can be a program name with args.
5939 set dummy $ac_prog; 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_ac_ct_AR+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if test -n "$ac_ct_AR"; then
5946 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="$ac_prog"
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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5966 if test -n "$ac_ct_AR"; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5968 $as_echo "$ac_ct_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 test -n "$ac_ct_AR" && break
5976 done
5977
5978 if test "x$ac_ct_AR" = x; then
5979 AR="false"
5980 else
5981 case $cross_compiling:$ac_tool_warned in
5982 yes:)
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5985 ac_tool_warned=yes ;;
5986 esac
5987 AR=$ac_ct_AR
5988 fi
5989 fi
5990
5991 : ${AR=ar}
5992 : ${AR_FLAGS=cru}
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6005 $as_echo_n "checking for archiver @FILE support... " >&6; }
6006 if ${lt_cv_ar_at_file+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 lt_cv_ar_at_file=no
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012
6013 int
6014 main ()
6015 {
6016
6017 ;
6018 return 0;
6019 }
6020 _ACEOF
6021 if ac_fn_c_try_compile "$LINENO"; then :
6022 echo conftest.$ac_objext > conftest.lst
6023 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6025 (eval $lt_ar_try) 2>&5
6026 ac_status=$?
6027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6028 test $ac_status = 0; }
6029 if test "$ac_status" -eq 0; then
6030 # Ensure the archiver fails upon bogus file names.
6031 rm -f conftest.$ac_objext libconftest.a
6032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6033 (eval $lt_ar_try) 2>&5
6034 ac_status=$?
6035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036 test $ac_status = 0; }
6037 if test "$ac_status" -ne 0; then
6038 lt_cv_ar_at_file=@
6039 fi
6040 fi
6041 rm -f conftest.* libconftest.a
6042
6043 fi
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045
6046 fi
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6048 $as_echo "$lt_cv_ar_at_file" >&6; }
6049
6050 if test "x$lt_cv_ar_at_file" = xno; then
6051 archiver_list_spec=
6052 else
6053 archiver_list_spec=$lt_cv_ar_at_file
6054 fi
6055
6056
6057
6058
6059
6060
6061
6062 if test -n "$ac_tool_prefix"; then
6063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6064 set dummy ${ac_tool_prefix}strip; ac_word=$2
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066 $as_echo_n "checking for $ac_word... " >&6; }
6067 if ${ac_cv_prog_STRIP+:} false; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if test -n "$STRIP"; then
6071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6072 else
6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 for as_dir in $PATH
6075 do
6076 IFS=$as_save_IFS
6077 test -z "$as_dir" && as_dir=.
6078 for ac_exec_ext in '' $ac_executable_extensions; do
6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 break 2
6083 fi
6084 done
6085 done
6086 IFS=$as_save_IFS
6087
6088 fi
6089 fi
6090 STRIP=$ac_cv_prog_STRIP
6091 if test -n "$STRIP"; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6093 $as_echo "$STRIP" >&6; }
6094 else
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096 $as_echo "no" >&6; }
6097 fi
6098
6099
6100 fi
6101 if test -z "$ac_cv_prog_STRIP"; then
6102 ac_ct_STRIP=$STRIP
6103 # Extract the first word of "strip", so it can be a program name with args.
6104 set dummy strip; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 if test -n "$ac_ct_STRIP"; then
6111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120 ac_cv_prog_ac_ct_STRIP="strip"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124 done
6125 done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6131 if test -n "$ac_ct_STRIP"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6133 $as_echo "$ac_ct_STRIP" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138
6139 if test "x$ac_ct_STRIP" = x; then
6140 STRIP=":"
6141 else
6142 case $cross_compiling:$ac_tool_warned in
6143 yes:)
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6146 ac_tool_warned=yes ;;
6147 esac
6148 STRIP=$ac_ct_STRIP
6149 fi
6150 else
6151 STRIP="$ac_cv_prog_STRIP"
6152 fi
6153
6154 test -z "$STRIP" && STRIP=:
6155
6156
6157
6158
6159
6160
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_RANLIB+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$RANLIB"; then
6170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6182 fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 RANLIB=$ac_cv_prog_RANLIB
6190 if test -n "$RANLIB"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6192 $as_echo "$RANLIB" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6196 fi
6197
6198
6199 fi
6200 if test -z "$ac_cv_prog_RANLIB"; then
6201 ac_ct_RANLIB=$RANLIB
6202 # Extract the first word of "ranlib", so it can be a program name with args.
6203 set dummy ranlib; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$ac_ct_RANLIB"; then
6210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_ac_ct_RANLIB="ranlib"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6230 if test -n "$ac_ct_RANLIB"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6232 $as_echo "$ac_ct_RANLIB" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238 if test "x$ac_ct_RANLIB" = x; then
6239 RANLIB=":"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247 RANLIB=$ac_ct_RANLIB
6248 fi
6249 else
6250 RANLIB="$ac_cv_prog_RANLIB"
6251 fi
6252
6253 test -z "$RANLIB" && RANLIB=:
6254
6255
6256
6257
6258
6259
6260 # Determine commands to create old-style static archives.
6261 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6262 old_postinstall_cmds='chmod 644 $oldlib'
6263 old_postuninstall_cmds=
6264
6265 if test -n "$RANLIB"; then
6266 case $host_os in
6267 openbsd*)
6268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6269 ;;
6270 *)
6271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6272 ;;
6273 esac
6274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6275 fi
6276
6277 case $host_os in
6278 darwin*)
6279 lock_old_archive_extraction=yes ;;
6280 *)
6281 lock_old_archive_extraction=no ;;
6282 esac
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
6321
6322 # If no C compiler was specified, use CC.
6323 LTCC=${LTCC-"$CC"}
6324
6325 # If no C compiler flags were specified, use CFLAGS.
6326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6327
6328 # Allow CC to be a program name with arguments.
6329 compiler=$CC
6330
6331
6332 # Check for command to grab the raw symbol name followed by C symbol from nm.
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6334 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6335 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338
6339 # These are sane defaults that work on at least a few old systems.
6340 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6341
6342 # Character class describing NM global symbol codes.
6343 symcode='[BCDEGRST]'
6344
6345 # Regexp to match symbols that can be accessed directly from C.
6346 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6347
6348 # Define system-specific variables.
6349 case $host_os in
6350 aix*)
6351 symcode='[BCDT]'
6352 ;;
6353 cygwin* | mingw* | pw32* | cegcc*)
6354 symcode='[ABCDGISTW]'
6355 ;;
6356 hpux*)
6357 if test "$host_cpu" = ia64; then
6358 symcode='[ABCDEGRST]'
6359 fi
6360 ;;
6361 irix* | nonstopux*)
6362 symcode='[BCDEGRST]'
6363 ;;
6364 osf*)
6365 symcode='[BCDEGQRST]'
6366 ;;
6367 solaris*)
6368 symcode='[BDRT]'
6369 ;;
6370 sco3.2v5*)
6371 symcode='[DT]'
6372 ;;
6373 sysv4.2uw2*)
6374 symcode='[DT]'
6375 ;;
6376 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6377 symcode='[ABDT]'
6378 ;;
6379 sysv4)
6380 symcode='[DFNSTU]'
6381 ;;
6382 esac
6383
6384 # If we're using GNU nm, then use its standard symbol codes.
6385 case `$NM -V 2>&1` in
6386 *GNU* | *'with BFD'*)
6387 symcode='[ABCDGIRSTW]' ;;
6388 esac
6389
6390 # Transform an extracted symbol line into a proper C declaration.
6391 # Some systems (esp. on ia64) link data and code symbols differently,
6392 # so use this general approach.
6393 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6394
6395 # Transform an extracted symbol line into symbol name and symbol address
6396 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6397 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'"
6398
6399 # Handle CRLF in mingw tool chain
6400 opt_cr=
6401 case $build_os in
6402 mingw*)
6403 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6404 ;;
6405 esac
6406
6407 # Try without a prefix underscore, then with it.
6408 for ac_symprfx in "" "_"; do
6409
6410 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6411 symxfrm="\\1 $ac_symprfx\\2 \\2"
6412
6413 # Write the raw and C identifiers.
6414 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6415 # Fake it for dumpbin and say T for any non-static function
6416 # and D for any global variable.
6417 # Also find C++ and __fastcall symbols from MSVC++,
6418 # which start with @ or ?.
6419 lt_cv_sys_global_symbol_pipe="$AWK '"\
6420 " {last_section=section; section=\$ 3};"\
6421 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6422 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6423 " \$ 0!~/External *\|/{next};"\
6424 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6425 " {if(hide[section]) next};"\
6426 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6427 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6428 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6429 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6430 " ' prfx=^$ac_symprfx"
6431 else
6432 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6433 fi
6434 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6435
6436 # Check to see that the pipe works correctly.
6437 pipe_works=no
6438
6439 rm -f conftest*
6440 cat > conftest.$ac_ext <<_LT_EOF
6441 #ifdef __cplusplus
6442 extern "C" {
6443 #endif
6444 char nm_test_var;
6445 void nm_test_func(void);
6446 void nm_test_func(void){}
6447 #ifdef __cplusplus
6448 }
6449 #endif
6450 int main(){nm_test_var='a';nm_test_func();return(0);}
6451 _LT_EOF
6452
6453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6454 (eval $ac_compile) 2>&5
6455 ac_status=$?
6456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6457 test $ac_status = 0; }; then
6458 # Now try to grab the symbols.
6459 nlist=conftest.nm
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6461 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; } && test -s "$nlist"; then
6465 # Try sorting and uniquifying the output.
6466 if sort "$nlist" | uniq > "$nlist"T; then
6467 mv -f "$nlist"T "$nlist"
6468 else
6469 rm -f "$nlist"T
6470 fi
6471
6472 # Make sure that we snagged all the symbols we need.
6473 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6474 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6475 cat <<_LT_EOF > conftest.$ac_ext
6476 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6477 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6478 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6479 relocations are performed -- see ld's documentation on pseudo-relocs. */
6480 # define LT_DLSYM_CONST
6481 #elif defined(__osf__)
6482 /* This system does not cope well with relocations in const data. */
6483 # define LT_DLSYM_CONST
6484 #else
6485 # define LT_DLSYM_CONST const
6486 #endif
6487
6488 #ifdef __cplusplus
6489 extern "C" {
6490 #endif
6491
6492 _LT_EOF
6493 # Now generate the symbol file.
6494 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6495
6496 cat <<_LT_EOF >> conftest.$ac_ext
6497
6498 /* The mapping between symbol names and symbols. */
6499 LT_DLSYM_CONST struct {
6500 const char *name;
6501 void *address;
6502 }
6503 lt__PROGRAM__LTX_preloaded_symbols[] =
6504 {
6505 { "@PROGRAM@", (void *) 0 },
6506 _LT_EOF
6507 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6508 cat <<\_LT_EOF >> conftest.$ac_ext
6509 {0, (void *) 0}
6510 };
6511
6512 /* This works around a problem in FreeBSD linker */
6513 #ifdef FREEBSD_WORKAROUND
6514 static const void *lt_preloaded_setup() {
6515 return lt__PROGRAM__LTX_preloaded_symbols;
6516 }
6517 #endif
6518
6519 #ifdef __cplusplus
6520 }
6521 #endif
6522 _LT_EOF
6523 # Now try linking the two files.
6524 mv conftest.$ac_objext conftstm.$ac_objext
6525 lt_globsym_save_LIBS=$LIBS
6526 lt_globsym_save_CFLAGS=$CFLAGS
6527 LIBS="conftstm.$ac_objext"
6528 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6530 (eval $ac_link) 2>&5
6531 ac_status=$?
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6534 pipe_works=yes
6535 fi
6536 LIBS=$lt_globsym_save_LIBS
6537 CFLAGS=$lt_globsym_save_CFLAGS
6538 else
6539 echo "cannot find nm_test_func in $nlist" >&5
6540 fi
6541 else
6542 echo "cannot find nm_test_var in $nlist" >&5
6543 fi
6544 else
6545 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6546 fi
6547 else
6548 echo "$progname: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6550 fi
6551 rm -rf conftest* conftst*
6552
6553 # Do not use the global_symbol_pipe unless it works.
6554 if test "$pipe_works" = yes; then
6555 break
6556 else
6557 lt_cv_sys_global_symbol_pipe=
6558 fi
6559 done
6560
6561 fi
6562
6563 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6564 lt_cv_sys_global_symbol_to_cdecl=
6565 fi
6566 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6568 $as_echo "failed" >&6; }
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6571 $as_echo "ok" >&6; }
6572 fi
6573
6574 # Response file support.
6575 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6576 nm_file_list_spec='@'
6577 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6578 nm_file_list_spec='@'
6579 fi
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6608 $as_echo_n "checking for sysroot... " >&6; }
6609
6610 # Check whether --with-sysroot was given.
6611 if test "${with_sysroot+set}" = set; then :
6612 withval=$with_sysroot;
6613 else
6614 with_sysroot=no
6615 fi
6616
6617
6618 lt_sysroot=
6619 case ${with_sysroot} in #(
6620 yes)
6621 if test "$GCC" = yes; then
6622 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6623 fi
6624 ;; #(
6625 /*)
6626 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6627 ;; #(
6628 no|'')
6629 ;; #(
6630 *)
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6632 $as_echo "${with_sysroot}" >&6; }
6633 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6634 ;;
6635 esac
6636
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6638 $as_echo "${lt_sysroot:-no}" >&6; }
6639
6640
6641
6642
6643
6644 # Check whether --enable-libtool-lock was given.
6645 if test "${enable_libtool_lock+set}" = set; then :
6646 enableval=$enable_libtool_lock;
6647 fi
6648
6649 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6650
6651 # Some flags need to be propagated to the compiler or linker for good
6652 # libtool support.
6653 case $host in
6654 ia64-*-hpux*)
6655 # Find out which ABI we are using.
6656 echo 'int i;' > conftest.$ac_ext
6657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6658 (eval $ac_compile) 2>&5
6659 ac_status=$?
6660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6661 test $ac_status = 0; }; then
6662 case `/usr/bin/file conftest.$ac_objext` in
6663 *ELF-32*)
6664 HPUX_IA64_MODE="32"
6665 ;;
6666 *ELF-64*)
6667 HPUX_IA64_MODE="64"
6668 ;;
6669 esac
6670 fi
6671 rm -rf conftest*
6672 ;;
6673 *-*-irix6*)
6674 # Find out which ABI we are using.
6675 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6677 (eval $ac_compile) 2>&5
6678 ac_status=$?
6679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6680 test $ac_status = 0; }; then
6681 if test "$lt_cv_prog_gnu_ld" = yes; then
6682 case `/usr/bin/file conftest.$ac_objext` in
6683 *32-bit*)
6684 LD="${LD-ld} -melf32bsmip"
6685 ;;
6686 *N32*)
6687 LD="${LD-ld} -melf32bmipn32"
6688 ;;
6689 *64-bit*)
6690 LD="${LD-ld} -melf64bmip"
6691 ;;
6692 esac
6693 else
6694 case `/usr/bin/file conftest.$ac_objext` in
6695 *32-bit*)
6696 LD="${LD-ld} -32"
6697 ;;
6698 *N32*)
6699 LD="${LD-ld} -n32"
6700 ;;
6701 *64-bit*)
6702 LD="${LD-ld} -64"
6703 ;;
6704 esac
6705 fi
6706 fi
6707 rm -rf conftest*
6708 ;;
6709
6710 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6711 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6712 # Find out which ABI we are using.
6713 echo 'int i;' > conftest.$ac_ext
6714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6715 (eval $ac_compile) 2>&5
6716 ac_status=$?
6717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6718 test $ac_status = 0; }; then
6719 case `/usr/bin/file conftest.o` in
6720 *32-bit*)
6721 case $host in
6722 x86_64-*kfreebsd*-gnu)
6723 LD="${LD-ld} -m elf_i386_fbsd"
6724 ;;
6725 x86_64-*linux*)
6726 LD="${LD-ld} -m elf_i386"
6727 ;;
6728 ppc64-*linux*|powerpc64-*linux*)
6729 LD="${LD-ld} -m elf32ppclinux"
6730 ;;
6731 s390x-*linux*)
6732 LD="${LD-ld} -m elf_s390"
6733 ;;
6734 sparc64-*linux*)
6735 LD="${LD-ld} -m elf32_sparc"
6736 ;;
6737 esac
6738 ;;
6739 *64-bit*)
6740 case $host in
6741 x86_64-*kfreebsd*-gnu)
6742 LD="${LD-ld} -m elf_x86_64_fbsd"
6743 ;;
6744 x86_64-*linux*)
6745 LD="${LD-ld} -m elf_x86_64"
6746 ;;
6747 ppc*-*linux*|powerpc*-*linux*)
6748 LD="${LD-ld} -m elf64ppc"
6749 ;;
6750 s390*-*linux*|s390*-*tpf*)
6751 LD="${LD-ld} -m elf64_s390"
6752 ;;
6753 sparc*-*linux*)
6754 LD="${LD-ld} -m elf64_sparc"
6755 ;;
6756 esac
6757 ;;
6758 esac
6759 fi
6760 rm -rf conftest*
6761 ;;
6762
6763 *-*-sco3.2v5*)
6764 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6765 SAVE_CFLAGS="$CFLAGS"
6766 CFLAGS="$CFLAGS -belf"
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6768 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6769 if ${lt_cv_cc_needs_belf+:} false; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 ac_ext=c
6773 ac_cpp='$CPP $CPPFLAGS'
6774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6777
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780
6781 int
6782 main ()
6783 {
6784
6785 ;
6786 return 0;
6787 }
6788 _ACEOF
6789 if ac_fn_c_try_link "$LINENO"; then :
6790 lt_cv_cc_needs_belf=yes
6791 else
6792 lt_cv_cc_needs_belf=no
6793 fi
6794 rm -f core conftest.err conftest.$ac_objext \
6795 conftest$ac_exeext conftest.$ac_ext
6796 ac_ext=c
6797 ac_cpp='$CPP $CPPFLAGS'
6798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6801
6802 fi
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6804 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6805 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6806 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6807 CFLAGS="$SAVE_CFLAGS"
6808 fi
6809 ;;
6810 *-*solaris*)
6811 # Find out which ABI we are using.
6812 echo 'int i;' > conftest.$ac_ext
6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6814 (eval $ac_compile) 2>&5
6815 ac_status=$?
6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817 test $ac_status = 0; }; then
6818 case `/usr/bin/file conftest.o` in
6819 *64-bit*)
6820 case $lt_cv_prog_gnu_ld in
6821 yes*)
6822 case $host in
6823 i?86-*-solaris*)
6824 LD="${LD-ld} -m elf_x86_64"
6825 ;;
6826 sparc*-*-solaris*)
6827 LD="${LD-ld} -m elf64_sparc"
6828 ;;
6829 esac
6830 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6831 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6832 LD="${LD-ld}_sol2"
6833 fi
6834 ;;
6835 *)
6836 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6837 LD="${LD-ld} -64"
6838 fi
6839 ;;
6840 esac
6841 ;;
6842 esac
6843 fi
6844 rm -rf conftest*
6845 ;;
6846 esac
6847
6848 need_locks="$enable_libtool_lock"
6849
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}mt; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$MANIFEST_TOOL"; then
6859 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6879 if test -n "$MANIFEST_TOOL"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6881 $as_echo "$MANIFEST_TOOL" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887
6888 fi
6889 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6890 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6891 # Extract the first word of "mt", so it can be a program name with args.
6892 set dummy mt; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$ac_ct_MANIFEST_TOOL"; then
6899 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6919 if test -n "$ac_ct_MANIFEST_TOOL"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6921 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6928 MANIFEST_TOOL=":"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931 yes:)
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934 ac_tool_warned=yes ;;
6935 esac
6936 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6937 fi
6938 else
6939 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6940 fi
6941
6942 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6944 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6945 if ${lt_cv_path_mainfest_tool+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 lt_cv_path_mainfest_tool=no
6949 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6950 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6951 cat conftest.err >&5
6952 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6953 lt_cv_path_mainfest_tool=yes
6954 fi
6955 rm -f conftest*
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6958 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6959 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6960 MANIFEST_TOOL=:
6961 fi
6962
6963
6964
6965
6966
6967
6968 case $host_os in
6969 rhapsody* | darwin*)
6970 if test -n "$ac_tool_prefix"; then
6971 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6972 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 if test -n "$DSYMUTIL"; then
6979 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996 fi
6997 fi
6998 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6999 if test -n "$DSYMUTIL"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7001 $as_echo "$DSYMUTIL" >&6; }
7002 else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7005 fi
7006
7007
7008 fi
7009 if test -z "$ac_cv_prog_DSYMUTIL"; then
7010 ac_ct_DSYMUTIL=$DSYMUTIL
7011 # Extract the first word of "dsymutil", so it can be a program name with args.
7012 set dummy dsymutil; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 if test -n "$ac_ct_DSYMUTIL"; then
7019 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024 IFS=$as_save_IFS
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7028 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 break 2
7031 fi
7032 done
7033 done
7034 IFS=$as_save_IFS
7035
7036 fi
7037 fi
7038 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7039 if test -n "$ac_ct_DSYMUTIL"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7041 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7045 fi
7046
7047 if test "x$ac_ct_DSYMUTIL" = x; then
7048 DSYMUTIL=":"
7049 else
7050 case $cross_compiling:$ac_tool_warned in
7051 yes:)
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054 ac_tool_warned=yes ;;
7055 esac
7056 DSYMUTIL=$ac_ct_DSYMUTIL
7057 fi
7058 else
7059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7060 fi
7061
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_NMEDIT+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 if test -n "$NMEDIT"; then
7071 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7083 fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 NMEDIT=$ac_cv_prog_NMEDIT
7091 if test -n "$NMEDIT"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7093 $as_echo "$NMEDIT" >&6; }
7094 else
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_NMEDIT"; then
7102 ac_ct_NMEDIT=$NMEDIT
7103 # Extract the first word of "nmedit", so it can be a program name with args.
7104 set dummy nmedit; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 if test -n "$ac_ct_NMEDIT"; then
7111 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7131 if test -n "$ac_ct_NMEDIT"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7133 $as_echo "$ac_ct_NMEDIT" >&6; }
7134 else
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137 fi
7138
7139 if test "x$ac_ct_NMEDIT" = x; then
7140 NMEDIT=":"
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7147 esac
7148 NMEDIT=$ac_ct_NMEDIT
7149 fi
7150 else
7151 NMEDIT="$ac_cv_prog_NMEDIT"
7152 fi
7153
7154 if test -n "$ac_tool_prefix"; then
7155 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7156 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if ${ac_cv_prog_LIPO+:} false; then :
7160 $as_echo_n "(cached) " >&6
7161 else
7162 if test -n "$LIPO"; then
7163 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7175 fi
7176 done
7177 done
7178 IFS=$as_save_IFS
7179
7180 fi
7181 fi
7182 LIPO=$ac_cv_prog_LIPO
7183 if test -n "$LIPO"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7185 $as_echo "$LIPO" >&6; }
7186 else
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190
7191
7192 fi
7193 if test -z "$ac_cv_prog_LIPO"; then
7194 ac_ct_LIPO=$LIPO
7195 # Extract the first word of "lipo", so it can be a program name with args.
7196 set dummy lipo; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 if test -n "$ac_ct_LIPO"; then
7203 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_ac_ct_LIPO="lipo"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7223 if test -n "$ac_ct_LIPO"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7225 $as_echo "$ac_ct_LIPO" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231 if test "x$ac_ct_LIPO" = x; then
7232 LIPO=":"
7233 else
7234 case $cross_compiling:$ac_tool_warned in
7235 yes:)
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238 ac_tool_warned=yes ;;
7239 esac
7240 LIPO=$ac_ct_LIPO
7241 fi
7242 else
7243 LIPO="$ac_cv_prog_LIPO"
7244 fi
7245
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}otool; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_OTOOL+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 if test -n "$OTOOL"; then
7255 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 OTOOL=$ac_cv_prog_OTOOL
7275 if test -n "$OTOOL"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7277 $as_echo "$OTOOL" >&6; }
7278 else
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284 fi
7285 if test -z "$ac_cv_prog_OTOOL"; then
7286 ac_ct_OTOOL=$OTOOL
7287 # Extract the first word of "otool", so it can be a program name with args.
7288 set dummy otool; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 if test -n "$ac_ct_OTOOL"; then
7295 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304 ac_cv_prog_ac_ct_OTOOL="otool"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7307 fi
7308 done
7309 done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7315 if test -n "$ac_ct_OTOOL"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7317 $as_echo "$ac_ct_OTOOL" >&6; }
7318 else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323 if test "x$ac_ct_OTOOL" = x; then
7324 OTOOL=":"
7325 else
7326 case $cross_compiling:$ac_tool_warned in
7327 yes:)
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7331 esac
7332 OTOOL=$ac_ct_OTOOL
7333 fi
7334 else
7335 OTOOL="$ac_cv_prog_OTOOL"
7336 fi
7337
7338 if test -n "$ac_tool_prefix"; then
7339 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7340 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if ${ac_cv_prog_OTOOL64+:} false; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 if test -n "$OTOOL64"; then
7347 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364 fi
7365 fi
7366 OTOOL64=$ac_cv_prog_OTOOL64
7367 if test -n "$OTOOL64"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7369 $as_echo "$OTOOL64" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375
7376 fi
7377 if test -z "$ac_cv_prog_OTOOL64"; then
7378 ac_ct_OTOOL64=$OTOOL64
7379 # Extract the first word of "otool64", so it can be a program name with args.
7380 set dummy otool64; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 if test -n "$ac_ct_OTOOL64"; then
7387 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_ac_ct_OTOOL64="otool64"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404 fi
7405 fi
7406 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7407 if test -n "$ac_ct_OTOOL64"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7409 $as_echo "$ac_ct_OTOOL64" >&6; }
7410 else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413 fi
7414
7415 if test "x$ac_ct_OTOOL64" = x; then
7416 OTOOL64=":"
7417 else
7418 case $cross_compiling:$ac_tool_warned in
7419 yes:)
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422 ac_tool_warned=yes ;;
7423 esac
7424 OTOOL64=$ac_ct_OTOOL64
7425 fi
7426 else
7427 OTOOL64="$ac_cv_prog_OTOOL64"
7428 fi
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7457 $as_echo_n "checking for -single_module linker flag... " >&6; }
7458 if ${lt_cv_apple_cc_single_mod+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 lt_cv_apple_cc_single_mod=no
7462 if test -z "${LT_MULTI_MODULE}"; then
7463 # By default we will add the -single_module flag. You can override
7464 # by either setting the environment variable LT_MULTI_MODULE
7465 # non-empty at configure time, or by adding -multi_module to the
7466 # link flags.
7467 rm -rf libconftest.dylib*
7468 echo "int foo(void){return 1;}" > conftest.c
7469 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7470 -dynamiclib -Wl,-single_module conftest.c" >&5
7471 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7472 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7473 _lt_result=$?
7474 # If there is a non-empty error log, and "single_module"
7475 # appears in it, assume the flag caused a linker warning
7476 if test -s conftest.err && $GREP single_module conftest.err; then
7477 cat conftest.err >&5
7478 # Otherwise, if the output was created with a 0 exit code from
7479 # the compiler, it worked.
7480 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7481 lt_cv_apple_cc_single_mod=yes
7482 else
7483 cat conftest.err >&5
7484 fi
7485 rm -rf libconftest.dylib*
7486 rm -f conftest.*
7487 fi
7488 fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7490 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7491
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7493 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7494 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 lt_cv_ld_exported_symbols_list=no
7498 save_LDFLAGS=$LDFLAGS
7499 echo "_main" > conftest.sym
7500 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503
7504 int
7505 main ()
7506 {
7507
7508 ;
7509 return 0;
7510 }
7511 _ACEOF
7512 if ac_fn_c_try_link "$LINENO"; then :
7513 lt_cv_ld_exported_symbols_list=yes
7514 else
7515 lt_cv_ld_exported_symbols_list=no
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
7519 LDFLAGS="$save_LDFLAGS"
7520
7521 fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7523 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7524
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7526 $as_echo_n "checking for -force_load linker flag... " >&6; }
7527 if ${lt_cv_ld_force_load+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529 else
7530 lt_cv_ld_force_load=no
7531 cat > conftest.c << _LT_EOF
7532 int forced_loaded() { return 2;}
7533 _LT_EOF
7534 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7535 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7536 echo "$AR cru libconftest.a conftest.o" >&5
7537 $AR cru libconftest.a conftest.o 2>&5
7538 echo "$RANLIB libconftest.a" >&5
7539 $RANLIB libconftest.a 2>&5
7540 cat > conftest.c << _LT_EOF
7541 int main() { return 0;}
7542 _LT_EOF
7543 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7544 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7545 _lt_result=$?
7546 if test -s conftest.err && $GREP force_load conftest.err; then
7547 cat conftest.err >&5
7548 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7549 lt_cv_ld_force_load=yes
7550 else
7551 cat conftest.err >&5
7552 fi
7553 rm -f conftest.err libconftest.a conftest conftest.c
7554 rm -rf conftest.dSYM
7555
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7558 $as_echo "$lt_cv_ld_force_load" >&6; }
7559 case $host_os in
7560 rhapsody* | darwin1.[012])
7561 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7562 darwin1.*)
7563 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7564 darwin*) # darwin 5.x on
7565 # if running on 10.5 or later, the deployment target defaults
7566 # to the OS version, if on x86, and 10.4, the deployment
7567 # target defaults to 10.4. Don't you love it?
7568 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7569 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7570 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7571 10.[012]*)
7572 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7573 10.*)
7574 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7575 esac
7576 ;;
7577 esac
7578 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7579 _lt_dar_single_mod='$single_module'
7580 fi
7581 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7582 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7583 else
7584 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7585 fi
7586 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7587 _lt_dsymutil='~$DSYMUTIL $lib || :'
7588 else
7589 _lt_dsymutil=
7590 fi
7591 ;;
7592 esac
7593
7594 ac_ext=c
7595 ac_cpp='$CPP $CPPFLAGS'
7596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7600 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7601 # On Suns, sometimes $CPP names a directory.
7602 if test -n "$CPP" && test -d "$CPP"; then
7603 CPP=
7604 fi
7605 if test -z "$CPP"; then
7606 if ${ac_cv_prog_CPP+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 # Double quotes because CPP needs to be expanded
7610 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7611 do
7612 ac_preproc_ok=false
7613 for ac_c_preproc_warn_flag in '' yes
7614 do
7615 # Use a header file that comes with gcc, so configuring glibc
7616 # with a fresh cross-compiler works.
7617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7618 # <limits.h> exists even on freestanding compilers.
7619 # On the NeXT, cc -E runs the code through the compiler's parser,
7620 # not just through cpp. "Syntax error" is here to catch this case.
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #ifdef __STDC__
7624 # include <limits.h>
7625 #else
7626 # include <assert.h>
7627 #endif
7628 Syntax error
7629 _ACEOF
7630 if ac_fn_c_try_cpp "$LINENO"; then :
7631
7632 else
7633 # Broken: fails on valid input.
7634 continue
7635 fi
7636 rm -f conftest.err conftest.i conftest.$ac_ext
7637
7638 # OK, works on sane cases. Now check whether nonexistent headers
7639 # can be detected and how.
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 #include <ac_nonexistent.h>
7643 _ACEOF
7644 if ac_fn_c_try_cpp "$LINENO"; then :
7645 # Broken: success on invalid input.
7646 continue
7647 else
7648 # Passes both tests.
7649 ac_preproc_ok=:
7650 break
7651 fi
7652 rm -f conftest.err conftest.i conftest.$ac_ext
7653
7654 done
7655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7656 rm -f conftest.i conftest.err conftest.$ac_ext
7657 if $ac_preproc_ok; then :
7658 break
7659 fi
7660
7661 done
7662 ac_cv_prog_CPP=$CPP
7663
7664 fi
7665 CPP=$ac_cv_prog_CPP
7666 else
7667 ac_cv_prog_CPP=$CPP
7668 fi
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7670 $as_echo "$CPP" >&6; }
7671 ac_preproc_ok=false
7672 for ac_c_preproc_warn_flag in '' yes
7673 do
7674 # Use a header file that comes with gcc, so configuring glibc
7675 # with a fresh cross-compiler works.
7676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7677 # <limits.h> exists even on freestanding compilers.
7678 # On the NeXT, cc -E runs the code through the compiler's parser,
7679 # not just through cpp. "Syntax error" is here to catch this case.
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 #ifdef __STDC__
7683 # include <limits.h>
7684 #else
7685 # include <assert.h>
7686 #endif
7687 Syntax error
7688 _ACEOF
7689 if ac_fn_c_try_cpp "$LINENO"; then :
7690
7691 else
7692 # Broken: fails on valid input.
7693 continue
7694 fi
7695 rm -f conftest.err conftest.i conftest.$ac_ext
7696
7697 # OK, works on sane cases. Now check whether nonexistent headers
7698 # can be detected and how.
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 #include <ac_nonexistent.h>
7702 _ACEOF
7703 if ac_fn_c_try_cpp "$LINENO"; then :
7704 # Broken: success on invalid input.
7705 continue
7706 else
7707 # Passes both tests.
7708 ac_preproc_ok=:
7709 break
7710 fi
7711 rm -f conftest.err conftest.i conftest.$ac_ext
7712
7713 done
7714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7715 rm -f conftest.i conftest.err conftest.$ac_ext
7716 if $ac_preproc_ok; then :
7717
7718 else
7719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7721 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7722 See \`config.log' for more details" "$LINENO" 5; }
7723 fi
7724
7725 ac_ext=c
7726 ac_cpp='$CPP $CPPFLAGS'
7727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730
7731
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7733 $as_echo_n "checking for ANSI C header files... " >&6; }
7734 if ${ac_cv_header_stdc+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 #include <stdlib.h>
7740 #include <stdarg.h>
7741 #include <string.h>
7742 #include <float.h>
7743
7744 int
7745 main ()
7746 {
7747
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 ac_cv_header_stdc=yes
7754 else
7755 ac_cv_header_stdc=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758
7759 if test $ac_cv_header_stdc = yes; then
7760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7763 #include <string.h>
7764
7765 _ACEOF
7766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7767 $EGREP "memchr" >/dev/null 2>&1; then :
7768
7769 else
7770 ac_cv_header_stdc=no
7771 fi
7772 rm -f conftest*
7773
7774 fi
7775
7776 if test $ac_cv_header_stdc = yes; then
7777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 #include <stdlib.h>
7781
7782 _ACEOF
7783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7784 $EGREP "free" >/dev/null 2>&1; then :
7785
7786 else
7787 ac_cv_header_stdc=no
7788 fi
7789 rm -f conftest*
7790
7791 fi
7792
7793 if test $ac_cv_header_stdc = yes; then
7794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7795 if test "$cross_compiling" = yes; then :
7796 :
7797 else
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 #include <ctype.h>
7801 #include <stdlib.h>
7802 #if ((' ' & 0x0FF) == 0x020)
7803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7805 #else
7806 # define ISLOWER(c) \
7807 (('a' <= (c) && (c) <= 'i') \
7808 || ('j' <= (c) && (c) <= 'r') \
7809 || ('s' <= (c) && (c) <= 'z'))
7810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7811 #endif
7812
7813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7814 int
7815 main ()
7816 {
7817 int i;
7818 for (i = 0; i < 256; i++)
7819 if (XOR (islower (i), ISLOWER (i))
7820 || toupper (i) != TOUPPER (i))
7821 return 2;
7822 return 0;
7823 }
7824 _ACEOF
7825 if ac_fn_c_try_run "$LINENO"; then :
7826
7827 else
7828 ac_cv_header_stdc=no
7829 fi
7830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7831 conftest.$ac_objext conftest.beam conftest.$ac_ext
7832 fi
7833
7834 fi
7835 fi
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7837 $as_echo "$ac_cv_header_stdc" >&6; }
7838 if test $ac_cv_header_stdc = yes; then
7839
7840 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7841
7842 fi
7843
7844 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7845 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7846 inttypes.h stdint.h unistd.h
7847 do :
7848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7849 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7850 "
7851 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7852 cat >>confdefs.h <<_ACEOF
7853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7854 _ACEOF
7855
7856 fi
7857
7858 done
7859
7860
7861 for ac_header in dlfcn.h
7862 do :
7863 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7864 "
7865 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7866 cat >>confdefs.h <<_ACEOF
7867 #define HAVE_DLFCN_H 1
7868 _ACEOF
7869
7870 fi
7871
7872 done
7873
7874
7875
7876
7877
7878 # Set options
7879
7880
7881
7882 enable_dlopen=no
7883
7884
7885
7886 # Check whether --enable-shared was given.
7887 if test "${enable_shared+set}" = set; then :
7888 enableval=$enable_shared; p=${PACKAGE-default}
7889 case $enableval in
7890 yes) enable_shared=yes ;;
7891 no) enable_shared=no ;;
7892 *)
7893 enable_shared=no
7894 # Look at the argument we got. We use all the common list separators.
7895 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7896 for pkg in $enableval; do
7897 IFS="$lt_save_ifs"
7898 if test "X$pkg" = "X$p"; then
7899 enable_shared=yes
7900 fi
7901 done
7902 IFS="$lt_save_ifs"
7903 ;;
7904 esac
7905 else
7906 enable_shared=yes
7907 fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917 # Check whether --enable-static was given.
7918 if test "${enable_static+set}" = set; then :
7919 enableval=$enable_static; p=${PACKAGE-default}
7920 case $enableval in
7921 yes) enable_static=yes ;;
7922 no) enable_static=no ;;
7923 *)
7924 enable_static=no
7925 # Look at the argument we got. We use all the common list separators.
7926 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7927 for pkg in $enableval; do
7928 IFS="$lt_save_ifs"
7929 if test "X$pkg" = "X$p"; then
7930 enable_static=yes
7931 fi
7932 done
7933 IFS="$lt_save_ifs"
7934 ;;
7935 esac
7936 else
7937 enable_static=yes
7938 fi
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949 # Check whether --with-pic was given.
7950 if test "${with_pic+set}" = set; then :
7951 withval=$with_pic; lt_p=${PACKAGE-default}
7952 case $withval in
7953 yes|no) pic_mode=$withval ;;
7954 *)
7955 pic_mode=default
7956 # Look at the argument we got. We use all the common list separators.
7957 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7958 for lt_pkg in $withval; do
7959 IFS="$lt_save_ifs"
7960 if test "X$lt_pkg" = "X$lt_p"; then
7961 pic_mode=yes
7962 fi
7963 done
7964 IFS="$lt_save_ifs"
7965 ;;
7966 esac
7967 else
7968 pic_mode=default
7969 fi
7970
7971
7972 test -z "$pic_mode" && pic_mode=default
7973
7974
7975
7976
7977
7978
7979
7980 # Check whether --enable-fast-install was given.
7981 if test "${enable_fast_install+set}" = set; then :
7982 enableval=$enable_fast_install; p=${PACKAGE-default}
7983 case $enableval in
7984 yes) enable_fast_install=yes ;;
7985 no) enable_fast_install=no ;;
7986 *)
7987 enable_fast_install=no
7988 # Look at the argument we got. We use all the common list separators.
7989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7990 for pkg in $enableval; do
7991 IFS="$lt_save_ifs"
7992 if test "X$pkg" = "X$p"; then
7993 enable_fast_install=yes
7994 fi
7995 done
7996 IFS="$lt_save_ifs"
7997 ;;
7998 esac
7999 else
8000 enable_fast_install=yes
8001 fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013 # This can be used to rebuild libtool when needed
8014 LIBTOOL_DEPS="$ltmain"
8015
8016 # Always use our own libtool.
8017 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048 test -z "$LN_S" && LN_S="ln -s"
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063 if test -n "${ZSH_VERSION+set}" ; then
8064 setopt NO_GLOB_SUBST
8065 fi
8066
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8068 $as_echo_n "checking for objdir... " >&6; }
8069 if ${lt_cv_objdir+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 rm -f .libs 2>/dev/null
8073 mkdir .libs 2>/dev/null
8074 if test -d .libs; then
8075 lt_cv_objdir=.libs
8076 else
8077 # MS-DOS does not allow filenames that begin with a dot.
8078 lt_cv_objdir=_libs
8079 fi
8080 rmdir .libs 2>/dev/null
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8083 $as_echo "$lt_cv_objdir" >&6; }
8084 objdir=$lt_cv_objdir
8085
8086
8087
8088
8089
8090 cat >>confdefs.h <<_ACEOF
8091 #define LT_OBJDIR "$lt_cv_objdir/"
8092 _ACEOF
8093
8094
8095
8096
8097 case $host_os in
8098 aix3*)
8099 # AIX sometimes has problems with the GCC collect2 program. For some
8100 # reason, if we set the COLLECT_NAMES environment variable, the problems
8101 # vanish in a puff of smoke.
8102 if test "X${COLLECT_NAMES+set}" != Xset; then
8103 COLLECT_NAMES=
8104 export COLLECT_NAMES
8105 fi
8106 ;;
8107 esac
8108
8109 # Global variables:
8110 ofile=libtool
8111 can_build_shared=yes
8112
8113 # All known linkers require a `.a' archive for static linking (except MSVC,
8114 # which needs '.lib').
8115 libext=a
8116
8117 with_gnu_ld="$lt_cv_prog_gnu_ld"
8118
8119 old_CC="$CC"
8120 old_CFLAGS="$CFLAGS"
8121
8122 # Set sane defaults for various variables
8123 test -z "$CC" && CC=cc
8124 test -z "$LTCC" && LTCC=$CC
8125 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8126 test -z "$LD" && LD=ld
8127 test -z "$ac_objext" && ac_objext=o
8128
8129 for cc_temp in $compiler""; do
8130 case $cc_temp in
8131 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8132 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8133 \-*) ;;
8134 *) break;;
8135 esac
8136 done
8137 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8138
8139
8140 # Only perform the check for file, if the check method requires it
8141 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8142 case $deplibs_check_method in
8143 file_magic*)
8144 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8146 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8147 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 case $MAGIC_CMD in
8151 [\\/*] | ?:[\\/]*)
8152 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8153 ;;
8154 *)
8155 lt_save_MAGIC_CMD="$MAGIC_CMD"
8156 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8157 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8158 for ac_dir in $ac_dummy; do
8159 IFS="$lt_save_ifs"
8160 test -z "$ac_dir" && ac_dir=.
8161 if test -f $ac_dir/${ac_tool_prefix}file; then
8162 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8163 if test -n "$file_magic_test_file"; then
8164 case $deplibs_check_method in
8165 "file_magic "*)
8166 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8168 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8169 $EGREP "$file_magic_regex" > /dev/null; then
8170 :
8171 else
8172 cat <<_LT_EOF 1>&2
8173
8174 *** Warning: the command libtool uses to detect shared libraries,
8175 *** $file_magic_cmd, produces output that libtool cannot recognize.
8176 *** The result is that libtool may fail to recognize shared libraries
8177 *** as such. This will affect the creation of libtool libraries that
8178 *** depend on shared libraries, but programs linked with such libtool
8179 *** libraries will work regardless of this problem. Nevertheless, you
8180 *** may want to report the problem to your system manager and/or to
8181 *** [email protected]
8182
8183 _LT_EOF
8184 fi ;;
8185 esac
8186 fi
8187 break
8188 fi
8189 done
8190 IFS="$lt_save_ifs"
8191 MAGIC_CMD="$lt_save_MAGIC_CMD"
8192 ;;
8193 esac
8194 fi
8195
8196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8197 if test -n "$MAGIC_CMD"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8199 $as_echo "$MAGIC_CMD" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8203 fi
8204
8205
8206
8207
8208
8209 if test -z "$lt_cv_path_MAGIC_CMD"; then
8210 if test -n "$ac_tool_prefix"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8212 $as_echo_n "checking for file... " >&6; }
8213 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 case $MAGIC_CMD in
8217 [\\/*] | ?:[\\/]*)
8218 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8219 ;;
8220 *)
8221 lt_save_MAGIC_CMD="$MAGIC_CMD"
8222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8223 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8224 for ac_dir in $ac_dummy; do
8225 IFS="$lt_save_ifs"
8226 test -z "$ac_dir" && ac_dir=.
8227 if test -f $ac_dir/file; then
8228 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8229 if test -n "$file_magic_test_file"; then
8230 case $deplibs_check_method in
8231 "file_magic "*)
8232 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8235 $EGREP "$file_magic_regex" > /dev/null; then
8236 :
8237 else
8238 cat <<_LT_EOF 1>&2
8239
8240 *** Warning: the command libtool uses to detect shared libraries,
8241 *** $file_magic_cmd, produces output that libtool cannot recognize.
8242 *** The result is that libtool may fail to recognize shared libraries
8243 *** as such. This will affect the creation of libtool libraries that
8244 *** depend on shared libraries, but programs linked with such libtool
8245 *** libraries will work regardless of this problem. Nevertheless, you
8246 *** may want to report the problem to your system manager and/or to
8247 *** [email protected]
8248
8249 _LT_EOF
8250 fi ;;
8251 esac
8252 fi
8253 break
8254 fi
8255 done
8256 IFS="$lt_save_ifs"
8257 MAGIC_CMD="$lt_save_MAGIC_CMD"
8258 ;;
8259 esac
8260 fi
8261
8262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8263 if test -n "$MAGIC_CMD"; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8265 $as_echo "$MAGIC_CMD" >&6; }
8266 else
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8269 fi
8270
8271
8272 else
8273 MAGIC_CMD=:
8274 fi
8275 fi
8276
8277 fi
8278 ;;
8279 esac
8280
8281 # Use C for the default configuration in the libtool script
8282
8283 lt_save_CC="$CC"
8284 ac_ext=c
8285 ac_cpp='$CPP $CPPFLAGS'
8286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8289
8290
8291 # Source file extension for C test sources.
8292 ac_ext=c
8293
8294 # Object file extension for compiled C test sources.
8295 objext=o
8296 objext=$objext
8297
8298 # Code to be used in simple compile tests
8299 lt_simple_compile_test_code="int some_variable = 0;"
8300
8301 # Code to be used in simple link tests
8302 lt_simple_link_test_code='int main(){return(0);}'
8303
8304
8305
8306
8307
8308
8309
8310 # If no C compiler was specified, use CC.
8311 LTCC=${LTCC-"$CC"}
8312
8313 # If no C compiler flags were specified, use CFLAGS.
8314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8315
8316 # Allow CC to be a program name with arguments.
8317 compiler=$CC
8318
8319 # Save the default compiler, since it gets overwritten when the other
8320 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8321 compiler_DEFAULT=$CC
8322
8323 # save warnings/boilerplate of simple test code
8324 ac_outfile=conftest.$ac_objext
8325 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8326 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8327 _lt_compiler_boilerplate=`cat conftest.err`
8328 $RM conftest*
8329
8330 ac_outfile=conftest.$ac_objext
8331 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8332 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8333 _lt_linker_boilerplate=`cat conftest.err`
8334 $RM -r conftest*
8335
8336
8337 if test -n "$compiler"; then
8338
8339 lt_prog_compiler_no_builtin_flag=
8340
8341 if test "$GCC" = yes; then
8342 case $cc_basename in
8343 nvcc*)
8344 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8345 *)
8346 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8347 esac
8348
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8350 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8351 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 lt_cv_prog_compiler_rtti_exceptions=no
8355 ac_outfile=conftest.$ac_objext
8356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8357 lt_compiler_flag="-fno-rtti -fno-exceptions"
8358 # Insert the option either (1) after the last *FLAGS variable, or
8359 # (2) before a word containing "conftest.", or (3) at the end.
8360 # Note that $ac_compile itself does not contain backslashes and begins
8361 # with a dollar sign (not a hyphen), so the echo should work correctly.
8362 # The option is referenced via a variable to avoid confusing sed.
8363 lt_compile=`echo "$ac_compile" | $SED \
8364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8366 -e 's:$: $lt_compiler_flag:'`
8367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8368 (eval "$lt_compile" 2>conftest.err)
8369 ac_status=$?
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 if (exit $ac_status) && test -s "$ac_outfile"; then
8373 # The compiler can only warn and ignore the option if not recognized
8374 # So say no if there are warnings other than the usual output.
8375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8377 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8378 lt_cv_prog_compiler_rtti_exceptions=yes
8379 fi
8380 fi
8381 $RM conftest*
8382
8383 fi
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8385 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8386
8387 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8388 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8389 else
8390 :
8391 fi
8392
8393 fi
8394
8395
8396
8397
8398
8399
8400 lt_prog_compiler_wl=
8401 lt_prog_compiler_pic=
8402 lt_prog_compiler_static=
8403
8404
8405 if test "$GCC" = yes; then
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_static='-static'
8408
8409 case $host_os in
8410 aix*)
8411 # All AIX code is PIC.
8412 if test "$host_cpu" = ia64; then
8413 # AIX 5 now supports IA64 processor
8414 lt_prog_compiler_static='-Bstatic'
8415 fi
8416 ;;
8417
8418 amigaos*)
8419 case $host_cpu in
8420 powerpc)
8421 # see comment about AmigaOS4 .so support
8422 lt_prog_compiler_pic='-fPIC'
8423 ;;
8424 m68k)
8425 # FIXME: we need at least 68020 code to build shared libraries, but
8426 # adding the `-m68020' flag to GCC prevents building anything better,
8427 # like `-m68040'.
8428 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8429 ;;
8430 esac
8431 ;;
8432
8433 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8434 # PIC is the default for these OSes.
8435 ;;
8436
8437 mingw* | cygwin* | pw32* | os2* | cegcc*)
8438 # This hack is so that the source file can tell whether it is being
8439 # built for inclusion in a dll (and should export symbols for example).
8440 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8441 # (--disable-auto-import) libraries
8442 lt_prog_compiler_pic='-DDLL_EXPORT'
8443 ;;
8444
8445 darwin* | rhapsody*)
8446 # PIC is the default on this platform
8447 # Common symbols not allowed in MH_DYLIB files
8448 lt_prog_compiler_pic='-fno-common'
8449 ;;
8450
8451 haiku*)
8452 # PIC is the default for Haiku.
8453 # The "-static" flag exists, but is broken.
8454 lt_prog_compiler_static=
8455 ;;
8456
8457 hpux*)
8458 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8459 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8460 # sets the default TLS model and affects inlining.
8461 case $host_cpu in
8462 hppa*64*)
8463 # +Z the default
8464 ;;
8465 *)
8466 lt_prog_compiler_pic='-fPIC'
8467 ;;
8468 esac
8469 ;;
8470
8471 interix[3-9]*)
8472 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8473 # Instead, we relocate shared libraries at runtime.
8474 ;;
8475
8476 msdosdjgpp*)
8477 # Just because we use GCC doesn't mean we suddenly get shared libraries
8478 # on systems that don't support them.
8479 lt_prog_compiler_can_build_shared=no
8480 enable_shared=no
8481 ;;
8482
8483 *nto* | *qnx*)
8484 # QNX uses GNU C++, but need to define -shared option too, otherwise
8485 # it will coredump.
8486 lt_prog_compiler_pic='-fPIC -shared'
8487 ;;
8488
8489 sysv4*MP*)
8490 if test -d /usr/nec; then
8491 lt_prog_compiler_pic=-Kconform_pic
8492 fi
8493 ;;
8494
8495 *)
8496 lt_prog_compiler_pic='-fPIC'
8497 ;;
8498 esac
8499
8500 case $cc_basename in
8501 nvcc*) # Cuda Compiler Driver 2.2
8502 lt_prog_compiler_wl='-Xlinker '
8503 if test -n "$lt_prog_compiler_pic"; then
8504 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8505 fi
8506 ;;
8507 esac
8508 else
8509 # PORTME Check for flag to pass linker flags through the system compiler.
8510 case $host_os in
8511 aix*)
8512 lt_prog_compiler_wl='-Wl,'
8513 if test "$host_cpu" = ia64; then
8514 # AIX 5 now supports IA64 processor
8515 lt_prog_compiler_static='-Bstatic'
8516 else
8517 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8518 fi
8519 ;;
8520
8521 mingw* | cygwin* | pw32* | os2* | cegcc*)
8522 # This hack is so that the source file can tell whether it is being
8523 # built for inclusion in a dll (and should export symbols for example).
8524 lt_prog_compiler_pic='-DDLL_EXPORT'
8525 ;;
8526
8527 hpux9* | hpux10* | hpux11*)
8528 lt_prog_compiler_wl='-Wl,'
8529 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8530 # not for PA HP-UX.
8531 case $host_cpu in
8532 hppa*64*|ia64*)
8533 # +Z the default
8534 ;;
8535 *)
8536 lt_prog_compiler_pic='+Z'
8537 ;;
8538 esac
8539 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8540 lt_prog_compiler_static='${wl}-a ${wl}archive'
8541 ;;
8542
8543 irix5* | irix6* | nonstopux*)
8544 lt_prog_compiler_wl='-Wl,'
8545 # PIC (with -KPIC) is the default.
8546 lt_prog_compiler_static='-non_shared'
8547 ;;
8548
8549 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8550 case $cc_basename in
8551 # old Intel for x86_64 which still supported -KPIC.
8552 ecc*)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-KPIC'
8555 lt_prog_compiler_static='-static'
8556 ;;
8557 # icc used to be incompatible with GCC.
8558 # ICC 10 doesn't accept -KPIC any more.
8559 icc* | ifort*)
8560 lt_prog_compiler_wl='-Wl,'
8561 lt_prog_compiler_pic='-fPIC'
8562 lt_prog_compiler_static='-static'
8563 ;;
8564 # Lahey Fortran 8.1.
8565 lf95*)
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_pic='--shared'
8568 lt_prog_compiler_static='--static'
8569 ;;
8570 nagfor*)
8571 # NAG Fortran compiler
8572 lt_prog_compiler_wl='-Wl,-Wl,,'
8573 lt_prog_compiler_pic='-PIC'
8574 lt_prog_compiler_static='-Bstatic'
8575 ;;
8576 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8577 # Portland Group compilers (*not* the Pentium gcc compiler,
8578 # which looks to be a dead project)
8579 lt_prog_compiler_wl='-Wl,'
8580 lt_prog_compiler_pic='-fpic'
8581 lt_prog_compiler_static='-Bstatic'
8582 ;;
8583 ccc*)
8584 lt_prog_compiler_wl='-Wl,'
8585 # All Alpha code is PIC.
8586 lt_prog_compiler_static='-non_shared'
8587 ;;
8588 xl* | bgxl* | bgf* | mpixl*)
8589 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-qpic'
8592 lt_prog_compiler_static='-qstaticlink'
8593 ;;
8594 *)
8595 case `$CC -V 2>&1 | sed 5q` in
8596 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8597 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8598 lt_prog_compiler_pic='-KPIC'
8599 lt_prog_compiler_static='-Bstatic'
8600 lt_prog_compiler_wl=''
8601 ;;
8602 *Sun\ F* | *Sun*Fortran*)
8603 lt_prog_compiler_pic='-KPIC'
8604 lt_prog_compiler_static='-Bstatic'
8605 lt_prog_compiler_wl='-Qoption ld '
8606 ;;
8607 *Sun\ C*)
8608 # Sun C 5.9
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 lt_prog_compiler_wl='-Wl,'
8612 ;;
8613 *Intel*\ [CF]*Compiler*)
8614 lt_prog_compiler_wl='-Wl,'
8615 lt_prog_compiler_pic='-fPIC'
8616 lt_prog_compiler_static='-static'
8617 ;;
8618 *Portland\ Group*)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-fpic'
8621 lt_prog_compiler_static='-Bstatic'
8622 ;;
8623 esac
8624 ;;
8625 esac
8626 ;;
8627
8628 newsos6)
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 ;;
8632
8633 *nto* | *qnx*)
8634 # QNX uses GNU C++, but need to define -shared option too, otherwise
8635 # it will coredump.
8636 lt_prog_compiler_pic='-fPIC -shared'
8637 ;;
8638
8639 osf3* | osf4* | osf5*)
8640 lt_prog_compiler_wl='-Wl,'
8641 # All OSF/1 code is PIC.
8642 lt_prog_compiler_static='-non_shared'
8643 ;;
8644
8645 rdos*)
8646 lt_prog_compiler_static='-non_shared'
8647 ;;
8648
8649 solaris*)
8650 lt_prog_compiler_pic='-KPIC'
8651 lt_prog_compiler_static='-Bstatic'
8652 case $cc_basename in
8653 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8654 lt_prog_compiler_wl='-Qoption ld ';;
8655 *)
8656 lt_prog_compiler_wl='-Wl,';;
8657 esac
8658 ;;
8659
8660 sunos4*)
8661 lt_prog_compiler_wl='-Qoption ld '
8662 lt_prog_compiler_pic='-PIC'
8663 lt_prog_compiler_static='-Bstatic'
8664 ;;
8665
8666 sysv4 | sysv4.2uw2* | sysv4.3*)
8667 lt_prog_compiler_wl='-Wl,'
8668 lt_prog_compiler_pic='-KPIC'
8669 lt_prog_compiler_static='-Bstatic'
8670 ;;
8671
8672 sysv4*MP*)
8673 if test -d /usr/nec ;then
8674 lt_prog_compiler_pic='-Kconform_pic'
8675 lt_prog_compiler_static='-Bstatic'
8676 fi
8677 ;;
8678
8679 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8680 lt_prog_compiler_wl='-Wl,'
8681 lt_prog_compiler_pic='-KPIC'
8682 lt_prog_compiler_static='-Bstatic'
8683 ;;
8684
8685 unicos*)
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_can_build_shared=no
8688 ;;
8689
8690 uts4*)
8691 lt_prog_compiler_pic='-pic'
8692 lt_prog_compiler_static='-Bstatic'
8693 ;;
8694
8695 *)
8696 lt_prog_compiler_can_build_shared=no
8697 ;;
8698 esac
8699 fi
8700
8701 case $host_os in
8702 # For platforms which do not support PIC, -DPIC is meaningless:
8703 *djgpp*)
8704 lt_prog_compiler_pic=
8705 ;;
8706 *)
8707 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8708 ;;
8709 esac
8710
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8712 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8713 if ${lt_cv_prog_compiler_pic+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8719 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8720 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8721
8722 #
8723 # Check to make sure the PIC flag actually works.
8724 #
8725 if test -n "$lt_prog_compiler_pic"; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8727 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8728 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 lt_cv_prog_compiler_pic_works=no
8732 ac_outfile=conftest.$ac_objext
8733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8734 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8735 # Insert the option either (1) after the last *FLAGS variable, or
8736 # (2) before a word containing "conftest.", or (3) at the end.
8737 # Note that $ac_compile itself does not contain backslashes and begins
8738 # with a dollar sign (not a hyphen), so the echo should work correctly.
8739 # The option is referenced via a variable to avoid confusing sed.
8740 lt_compile=`echo "$ac_compile" | $SED \
8741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8743 -e 's:$: $lt_compiler_flag:'`
8744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8745 (eval "$lt_compile" 2>conftest.err)
8746 ac_status=$?
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 if (exit $ac_status) && test -s "$ac_outfile"; then
8750 # The compiler can only warn and ignore the option if not recognized
8751 # So say no if there are warnings other than the usual output.
8752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8755 lt_cv_prog_compiler_pic_works=yes
8756 fi
8757 fi
8758 $RM conftest*
8759
8760 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8762 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8763
8764 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8765 case $lt_prog_compiler_pic in
8766 "" | " "*) ;;
8767 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8768 esac
8769 else
8770 lt_prog_compiler_pic=
8771 lt_prog_compiler_can_build_shared=no
8772 fi
8773
8774 fi
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786 #
8787 # Check to make sure the static flag actually works.
8788 #
8789 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8791 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8792 if ${lt_cv_prog_compiler_static_works+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 lt_cv_prog_compiler_static_works=no
8796 save_LDFLAGS="$LDFLAGS"
8797 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8798 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8799 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8800 # The linker can only warn and ignore the option if not recognized
8801 # So say no if there are warnings
8802 if test -s conftest.err; then
8803 # Append any errors to the config.log.
8804 cat conftest.err 1>&5
8805 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8807 if diff conftest.exp conftest.er2 >/dev/null; then
8808 lt_cv_prog_compiler_static_works=yes
8809 fi
8810 else
8811 lt_cv_prog_compiler_static_works=yes
8812 fi
8813 fi
8814 $RM -r conftest*
8815 LDFLAGS="$save_LDFLAGS"
8816
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8819 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8820
8821 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8822 :
8823 else
8824 lt_prog_compiler_static=
8825 fi
8826
8827
8828
8829
8830
8831
8832
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8834 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8835 if ${lt_cv_prog_compiler_c_o+:} false; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 lt_cv_prog_compiler_c_o=no
8839 $RM -r conftest 2>/dev/null
8840 mkdir conftest
8841 cd conftest
8842 mkdir out
8843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8844
8845 lt_compiler_flag="-o out/conftest2.$ac_objext"
8846 # Insert the option either (1) after the last *FLAGS variable, or
8847 # (2) before a word containing "conftest.", or (3) at the end.
8848 # Note that $ac_compile itself does not contain backslashes and begins
8849 # with a dollar sign (not a hyphen), so the echo should work correctly.
8850 lt_compile=`echo "$ac_compile" | $SED \
8851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8853 -e 's:$: $lt_compiler_flag:'`
8854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8855 (eval "$lt_compile" 2>out/conftest.err)
8856 ac_status=$?
8857 cat out/conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8860 then
8861 # The compiler can only warn and ignore the option if not recognized
8862 # So say no if there are warnings
8863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8864 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8865 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8866 lt_cv_prog_compiler_c_o=yes
8867 fi
8868 fi
8869 chmod u+w . 2>&5
8870 $RM conftest*
8871 # SGI C++ compiler will create directory out/ii_files/ for
8872 # template instantiation
8873 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8874 $RM out/* && rmdir out
8875 cd ..
8876 $RM -r conftest
8877 $RM conftest*
8878
8879 fi
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8881 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8882
8883
8884
8885
8886
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8890 if ${lt_cv_prog_compiler_c_o+:} false; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 lt_cv_prog_compiler_c_o=no
8894 $RM -r conftest 2>/dev/null
8895 mkdir conftest
8896 cd conftest
8897 mkdir out
8898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8899
8900 lt_compiler_flag="-o out/conftest2.$ac_objext"
8901 # Insert the option either (1) after the last *FLAGS variable, or
8902 # (2) before a word containing "conftest.", or (3) at the end.
8903 # Note that $ac_compile itself does not contain backslashes and begins
8904 # with a dollar sign (not a hyphen), so the echo should work correctly.
8905 lt_compile=`echo "$ac_compile" | $SED \
8906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8908 -e 's:$: $lt_compiler_flag:'`
8909 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8910 (eval "$lt_compile" 2>out/conftest.err)
8911 ac_status=$?
8912 cat out/conftest.err >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8915 then
8916 # The compiler can only warn and ignore the option if not recognized
8917 # So say no if there are warnings
8918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8921 lt_cv_prog_compiler_c_o=yes
8922 fi
8923 fi
8924 chmod u+w . 2>&5
8925 $RM conftest*
8926 # SGI C++ compiler will create directory out/ii_files/ for
8927 # template instantiation
8928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8929 $RM out/* && rmdir out
8930 cd ..
8931 $RM -r conftest
8932 $RM conftest*
8933
8934 fi
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8936 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8937
8938
8939
8940
8941 hard_links="nottested"
8942 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8943 # do not overwrite the value of need_locks provided by the user
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8945 $as_echo_n "checking if we can lock with hard links... " >&6; }
8946 hard_links=yes
8947 $RM conftest*
8948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8949 touch conftest.a
8950 ln conftest.a conftest.b 2>&5 || hard_links=no
8951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8953 $as_echo "$hard_links" >&6; }
8954 if test "$hard_links" = no; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8956 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8957 need_locks=warn
8958 fi
8959 else
8960 need_locks=no
8961 fi
8962
8963
8964
8965
8966
8967
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8969 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8970
8971 runpath_var=
8972 allow_undefined_flag=
8973 always_export_symbols=no
8974 archive_cmds=
8975 archive_expsym_cmds=
8976 compiler_needs_object=no
8977 enable_shared_with_static_runtimes=no
8978 export_dynamic_flag_spec=
8979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8980 hardcode_automatic=no
8981 hardcode_direct=no
8982 hardcode_direct_absolute=no
8983 hardcode_libdir_flag_spec=
8984 hardcode_libdir_separator=
8985 hardcode_minus_L=no
8986 hardcode_shlibpath_var=unsupported
8987 inherit_rpath=no
8988 link_all_deplibs=unknown
8989 module_cmds=
8990 module_expsym_cmds=
8991 old_archive_from_new_cmds=
8992 old_archive_from_expsyms_cmds=
8993 thread_safe_flag_spec=
8994 whole_archive_flag_spec=
8995 # include_expsyms should be a list of space-separated symbols to be *always*
8996 # included in the symbol list
8997 include_expsyms=
8998 # exclude_expsyms can be an extended regexp of symbols to exclude
8999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9001 # as well as any symbol that contains `d'.
9002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9004 # platforms (ab)use it in PIC code, but their linkers get confused if
9005 # the symbol is explicitly referenced. Since portable code cannot
9006 # rely on this symbol name, it's probably fine to never include it in
9007 # preloaded symbol tables.
9008 # Exclude shared library initialization/finalization symbols.
9009 extract_expsyms_cmds=
9010
9011 case $host_os in
9012 cygwin* | mingw* | pw32* | cegcc*)
9013 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9014 # When not using gcc, we currently assume that we are using
9015 # Microsoft Visual C++.
9016 if test "$GCC" != yes; then
9017 with_gnu_ld=no
9018 fi
9019 ;;
9020 interix*)
9021 # we just hope/assume this is gcc and not c89 (= MSVC++)
9022 with_gnu_ld=yes
9023 ;;
9024 openbsd*)
9025 with_gnu_ld=no
9026 ;;
9027 esac
9028
9029 ld_shlibs=yes
9030
9031 # On some targets, GNU ld is compatible enough with the native linker
9032 # that we're better off using the native interface for both.
9033 lt_use_gnu_ld_interface=no
9034 if test "$with_gnu_ld" = yes; then
9035 case $host_os in
9036 aix*)
9037 # The AIX port of GNU ld has always aspired to compatibility
9038 # with the native linker. However, as the warning in the GNU ld
9039 # block says, versions before 2.19.5* couldn't really create working
9040 # shared libraries, regardless of the interface used.
9041 case `$LD -v 2>&1` in
9042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9044 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9045 *)
9046 lt_use_gnu_ld_interface=yes
9047 ;;
9048 esac
9049 ;;
9050 *)
9051 lt_use_gnu_ld_interface=yes
9052 ;;
9053 esac
9054 fi
9055
9056 if test "$lt_use_gnu_ld_interface" = yes; then
9057 # If archive_cmds runs LD, not CC, wlarc should be empty
9058 wlarc='${wl}'
9059
9060 # Set some defaults for GNU ld with shared library support. These
9061 # are reset later if shared libraries are not supported. Putting them
9062 # here allows them to be overridden if necessary.
9063 runpath_var=LD_RUN_PATH
9064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9065 export_dynamic_flag_spec='${wl}--export-dynamic'
9066 # ancient GNU ld didn't support --whole-archive et. al.
9067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9068 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9069 else
9070 whole_archive_flag_spec=
9071 fi
9072 supports_anon_versioning=no
9073 case `$LD -v 2>&1` in
9074 *GNU\ gold*) supports_anon_versioning=yes ;;
9075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9078 *\ 2.11.*) ;; # other 2.11 versions
9079 *) supports_anon_versioning=yes ;;
9080 esac
9081
9082 # See if GNU ld supports shared libraries.
9083 case $host_os in
9084 aix[3-9]*)
9085 # On AIX/PPC, the GNU linker is very broken
9086 if test "$host_cpu" != ia64; then
9087 ld_shlibs=no
9088 cat <<_LT_EOF 1>&2
9089
9090 *** Warning: the GNU linker, at least up to release 2.19, is reported
9091 *** to be unable to reliably create shared libraries on AIX.
9092 *** Therefore, libtool is disabling shared libraries support. If you
9093 *** really care for shared libraries, you may want to install binutils
9094 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9095 *** You will then need to restart the configuration process.
9096
9097 _LT_EOF
9098 fi
9099 ;;
9100
9101 amigaos*)
9102 case $host_cpu in
9103 powerpc)
9104 # see comment about AmigaOS4 .so support
9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9106 archive_expsym_cmds=''
9107 ;;
9108 m68k)
9109 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)'
9110 hardcode_libdir_flag_spec='-L$libdir'
9111 hardcode_minus_L=yes
9112 ;;
9113 esac
9114 ;;
9115
9116 beos*)
9117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9118 allow_undefined_flag=unsupported
9119 # Joseph Beckenbach <[email protected]> says some releases of gcc
9120 # support --undefined. This deserves some investigation. FIXME
9121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 else
9123 ld_shlibs=no
9124 fi
9125 ;;
9126
9127 cygwin* | mingw* | pw32* | cegcc*)
9128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9129 # as there is no search path for DLLs.
9130 hardcode_libdir_flag_spec='-L$libdir'
9131 export_dynamic_flag_spec='${wl}--export-all-symbols'
9132 allow_undefined_flag=unsupported
9133 always_export_symbols=no
9134 enable_shared_with_static_runtimes=yes
9135 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9136 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9137
9138 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9140 # If the export-symbols file already is a .def file (1st line
9141 # is EXPORTS), use it as is; otherwise, prepend...
9142 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9143 cp $export_symbols $output_objdir/$soname.def;
9144 else
9145 echo EXPORTS > $output_objdir/$soname.def;
9146 cat $export_symbols >> $output_objdir/$soname.def;
9147 fi~
9148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9149 else
9150 ld_shlibs=no
9151 fi
9152 ;;
9153
9154 haiku*)
9155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9156 link_all_deplibs=yes
9157 ;;
9158
9159 interix[3-9]*)
9160 hardcode_direct=no
9161 hardcode_shlibpath_var=no
9162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9163 export_dynamic_flag_spec='${wl}-E'
9164 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9165 # Instead, shared libraries are loaded at an image base (0x10000000 by
9166 # default) and relocated if they conflict, which is a slow very memory
9167 # consuming and fragmenting process. To avoid this, we pick a random,
9168 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9169 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9170 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9171 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'
9172 ;;
9173
9174 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9175 tmp_diet=no
9176 if test "$host_os" = linux-dietlibc; then
9177 case $cc_basename in
9178 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9179 esac
9180 fi
9181 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9182 && test "$tmp_diet" = no
9183 then
9184 tmp_addflag=' $pic_flag'
9185 tmp_sharedflag='-shared'
9186 case $cc_basename,$host_cpu in
9187 pgcc*) # Portland Group C compiler
9188 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'
9189 tmp_addflag=' $pic_flag'
9190 ;;
9191 pgf77* | pgf90* | pgf95* | pgfortran*)
9192 # Portland Group f77 and f90 compilers
9193 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'
9194 tmp_addflag=' $pic_flag -Mnomain' ;;
9195 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9196 tmp_addflag=' -i_dynamic' ;;
9197 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9198 tmp_addflag=' -i_dynamic -nofor_main' ;;
9199 ifc* | ifort*) # Intel Fortran compiler
9200 tmp_addflag=' -nofor_main' ;;
9201 lf95*) # Lahey Fortran 8.1
9202 whole_archive_flag_spec=
9203 tmp_sharedflag='--shared' ;;
9204 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9205 tmp_sharedflag='-qmkshrobj'
9206 tmp_addflag= ;;
9207 nvcc*) # Cuda Compiler Driver 2.2
9208 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'
9209 compiler_needs_object=yes
9210 ;;
9211 esac
9212 case `$CC -V 2>&1 | sed 5q` in
9213 *Sun\ C*) # Sun C 5.9
9214 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'
9215 compiler_needs_object=yes
9216 tmp_sharedflag='-G' ;;
9217 *Sun\ F*) # Sun Fortran 8.3
9218 tmp_sharedflag='-G' ;;
9219 esac
9220 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221
9222 if test "x$supports_anon_versioning" = xyes; then
9223 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9225 echo "local: *; };" >> $output_objdir/$libname.ver~
9226 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9227 fi
9228
9229 case $cc_basename in
9230 xlf* | bgf* | bgxlf* | mpixlf*)
9231 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9232 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9235 if test "x$supports_anon_versioning" = xyes; then
9236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238 echo "local: *; };" >> $output_objdir/$libname.ver~
9239 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9240 fi
9241 ;;
9242 esac
9243 else
9244 ld_shlibs=no
9245 fi
9246 ;;
9247
9248 netbsd*)
9249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9251 wlarc=
9252 else
9253 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9255 fi
9256 ;;
9257
9258 solaris*)
9259 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9260 ld_shlibs=no
9261 cat <<_LT_EOF 1>&2
9262
9263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9264 *** create shared libraries on Solaris systems. Therefore, libtool
9265 *** is disabling shared libraries support. We urge you to upgrade GNU
9266 *** binutils to release 2.9.1 or newer. Another option is to modify
9267 *** your PATH or compiler configuration so that the native linker is
9268 *** used, and then restart.
9269
9270 _LT_EOF
9271 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9274 else
9275 ld_shlibs=no
9276 fi
9277 ;;
9278
9279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9280 case `$LD -v 2>&1` in
9281 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9282 ld_shlibs=no
9283 cat <<_LT_EOF 1>&2
9284
9285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9286 *** reliably create shared libraries on SCO systems. Therefore, libtool
9287 *** is disabling shared libraries support. We urge you to upgrade GNU
9288 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9289 *** your PATH or compiler configuration so that the native linker is
9290 *** used, and then restart.
9291
9292 _LT_EOF
9293 ;;
9294 *)
9295 # For security reasons, it is highly recommended that you always
9296 # use absolute paths for naming shared libraries, and exclude the
9297 # DT_RUNPATH tag from executables and libraries. But doing so
9298 # requires that you compile everything twice, which is a pain.
9299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9303 else
9304 ld_shlibs=no
9305 fi
9306 ;;
9307 esac
9308 ;;
9309
9310 sunos4*)
9311 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9312 wlarc=
9313 hardcode_direct=yes
9314 hardcode_shlibpath_var=no
9315 ;;
9316
9317 *)
9318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9321 else
9322 ld_shlibs=no
9323 fi
9324 ;;
9325 esac
9326
9327 if test "$ld_shlibs" = no; then
9328 runpath_var=
9329 hardcode_libdir_flag_spec=
9330 export_dynamic_flag_spec=
9331 whole_archive_flag_spec=
9332 fi
9333 else
9334 # PORTME fill in a description of your system's linker (not GNU ld)
9335 case $host_os in
9336 aix3*)
9337 allow_undefined_flag=unsupported
9338 always_export_symbols=yes
9339 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'
9340 # Note: this linker hardcodes the directories in LIBPATH if there
9341 # are no directories specified by -L.
9342 hardcode_minus_L=yes
9343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9344 # Neither direct hardcoding nor static linking is supported with a
9345 # broken collect2.
9346 hardcode_direct=unsupported
9347 fi
9348 ;;
9349
9350 aix[4-9]*)
9351 if test "$host_cpu" = ia64; then
9352 # On IA64, the linker does run time linking by default, so we don't
9353 # have to do anything special.
9354 aix_use_runtimelinking=no
9355 exp_sym_flag='-Bexport'
9356 no_entry_flag=""
9357 else
9358 # If we're using GNU nm, then we don't want the "-C" option.
9359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9360 # Also, AIX nm treats weak defined symbols like other global
9361 # defined symbols, whereas GNU nm marks them as "W".
9362 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9363 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'
9364 else
9365 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9366 fi
9367 aix_use_runtimelinking=no
9368
9369 # Test if we are trying to use run time linking or normal
9370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9371 # need to do runtime linking.
9372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9373 for ld_flag in $LDFLAGS; do
9374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9375 aix_use_runtimelinking=yes
9376 break
9377 fi
9378 done
9379 ;;
9380 esac
9381
9382 exp_sym_flag='-bexport'
9383 no_entry_flag='-bnoentry'
9384 fi
9385
9386 # When large executables or shared objects are built, AIX ld can
9387 # have problems creating the table of contents. If linking a library
9388 # or program results in "error TOC overflow" add -mminimal-toc to
9389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9391
9392 archive_cmds=''
9393 hardcode_direct=yes
9394 hardcode_direct_absolute=yes
9395 hardcode_libdir_separator=':'
9396 link_all_deplibs=yes
9397 file_list_spec='${wl}-f,'
9398
9399 if test "$GCC" = yes; then
9400 case $host_os in aix4.[012]|aix4.[012].*)
9401 # We only want to do this on AIX 4.2 and lower, the check
9402 # below for broken collect2 doesn't work under 4.3+
9403 collect2name=`${CC} -print-prog-name=collect2`
9404 if test -f "$collect2name" &&
9405 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9406 then
9407 # We have reworked collect2
9408 :
9409 else
9410 # We have old collect2
9411 hardcode_direct=unsupported
9412 # It fails to find uninstalled libraries when the uninstalled
9413 # path is not listed in the libpath. Setting hardcode_minus_L
9414 # to unsupported forces relinking
9415 hardcode_minus_L=yes
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_libdir_separator=
9418 fi
9419 ;;
9420 esac
9421 shared_flag='-shared'
9422 if test "$aix_use_runtimelinking" = yes; then
9423 shared_flag="$shared_flag "'${wl}-G'
9424 fi
9425 else
9426 # not using gcc
9427 if test "$host_cpu" = ia64; then
9428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9429 # chokes on -Wl,-G. The following line is correct:
9430 shared_flag='-G'
9431 else
9432 if test "$aix_use_runtimelinking" = yes; then
9433 shared_flag='${wl}-G'
9434 else
9435 shared_flag='${wl}-bM:SRE'
9436 fi
9437 fi
9438 fi
9439
9440 export_dynamic_flag_spec='${wl}-bexpall'
9441 # It seems that -bexpall does not export symbols beginning with
9442 # underscore (_), so it is better to generate a list of symbols to export.
9443 always_export_symbols=yes
9444 if test "$aix_use_runtimelinking" = yes; then
9445 # Warning - without using the other runtime loading flags (-brtl),
9446 # -berok will link without error, but may produce a broken library.
9447 allow_undefined_flag='-berok'
9448 # Determine the default libpath from the value encoded in an
9449 # empty executable.
9450 if test "${lt_cv_aix_libpath+set}" = set; then
9451 aix_libpath=$lt_cv_aix_libpath
9452 else
9453 if ${lt_cv_aix_libpath_+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458
9459 int
9460 main ()
9461 {
9462
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 if ac_fn_c_try_link "$LINENO"; then :
9468
9469 lt_aix_libpath_sed='
9470 /Import File Strings/,/^$/ {
9471 /^0/ {
9472 s/^0 *\([^ ]*\) *$/\1/
9473 p
9474 }
9475 }'
9476 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9477 # Check for a 64-bit object if we didn't find anything.
9478 if test -z "$lt_cv_aix_libpath_"; then
9479 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480 fi
9481 fi
9482 rm -f core conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9484 if test -z "$lt_cv_aix_libpath_"; then
9485 lt_cv_aix_libpath_="/usr/lib:/lib"
9486 fi
9487
9488 fi
9489
9490 aix_libpath=$lt_cv_aix_libpath_
9491 fi
9492
9493 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9494 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"
9495 else
9496 if test "$host_cpu" = ia64; then
9497 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9498 allow_undefined_flag="-z nodefs"
9499 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"
9500 else
9501 # Determine the default libpath from the value encoded in an
9502 # empty executable.
9503 if test "${lt_cv_aix_libpath+set}" = set; then
9504 aix_libpath=$lt_cv_aix_libpath
9505 else
9506 if ${lt_cv_aix_libpath_+:} false; then :
9507 $as_echo_n "(cached) " >&6
9508 else
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511
9512 int
9513 main ()
9514 {
9515
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 if ac_fn_c_try_link "$LINENO"; then :
9521
9522 lt_aix_libpath_sed='
9523 /Import File Strings/,/^$/ {
9524 /^0/ {
9525 s/^0 *\([^ ]*\) *$/\1/
9526 p
9527 }
9528 }'
9529 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9530 # Check for a 64-bit object if we didn't find anything.
9531 if test -z "$lt_cv_aix_libpath_"; then
9532 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9533 fi
9534 fi
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 if test -z "$lt_cv_aix_libpath_"; then
9538 lt_cv_aix_libpath_="/usr/lib:/lib"
9539 fi
9540
9541 fi
9542
9543 aix_libpath=$lt_cv_aix_libpath_
9544 fi
9545
9546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9547 # Warning - without using the other run time loading flags,
9548 # -berok will link without error, but may produce a broken library.
9549 no_undefined_flag=' ${wl}-bernotok'
9550 allow_undefined_flag=' ${wl}-berok'
9551 if test "$with_gnu_ld" = yes; then
9552 # We only use this code for GNU lds that support --whole-archive.
9553 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9554 else
9555 # Exported symbols can be pulled into shared objects from archives
9556 whole_archive_flag_spec='$convenience'
9557 fi
9558 archive_cmds_need_lc=yes
9559 # This is similar to how AIX traditionally builds its shared libraries.
9560 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'
9561 fi
9562 fi
9563 ;;
9564
9565 amigaos*)
9566 case $host_cpu in
9567 powerpc)
9568 # see comment about AmigaOS4 .so support
9569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570 archive_expsym_cmds=''
9571 ;;
9572 m68k)
9573 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)'
9574 hardcode_libdir_flag_spec='-L$libdir'
9575 hardcode_minus_L=yes
9576 ;;
9577 esac
9578 ;;
9579
9580 bsdi[45]*)
9581 export_dynamic_flag_spec=-rdynamic
9582 ;;
9583
9584 cygwin* | mingw* | pw32* | cegcc*)
9585 # When not using gcc, we currently assume that we are using
9586 # Microsoft Visual C++.
9587 # hardcode_libdir_flag_spec is actually meaningless, as there is
9588 # no search path for DLLs.
9589 case $cc_basename in
9590 cl*)
9591 # Native MSVC
9592 hardcode_libdir_flag_spec=' '
9593 allow_undefined_flag=unsupported
9594 always_export_symbols=yes
9595 file_list_spec='@'
9596 # Tell ltmain to make .lib files, not .a files.
9597 libext=lib
9598 # Tell ltmain to make .dll files, not .so files.
9599 shrext_cmds=".dll"
9600 # FIXME: Setting linknames here is a bad hack.
9601 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9602 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9603 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9604 else
9605 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9606 fi~
9607 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9608 linknames='
9609 # The linker will not automatically build a static lib if we build a DLL.
9610 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9611 enable_shared_with_static_runtimes=yes
9612 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9613 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9614 # Don't use ranlib
9615 old_postinstall_cmds='chmod 644 $oldlib'
9616 postlink_cmds='lt_outputfile="@OUTPUT@"~
9617 lt_tool_outputfile="@TOOL_OUTPUT@"~
9618 case $lt_outputfile in
9619 *.exe|*.EXE) ;;
9620 *)
9621 lt_outputfile="$lt_outputfile.exe"
9622 lt_tool_outputfile="$lt_tool_outputfile.exe"
9623 ;;
9624 esac~
9625 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9626 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9627 $RM "$lt_outputfile.manifest";
9628 fi'
9629 ;;
9630 *)
9631 # Assume MSVC wrapper
9632 hardcode_libdir_flag_spec=' '
9633 allow_undefined_flag=unsupported
9634 # Tell ltmain to make .lib files, not .a files.
9635 libext=lib
9636 # Tell ltmain to make .dll files, not .so files.
9637 shrext_cmds=".dll"
9638 # FIXME: Setting linknames here is a bad hack.
9639 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9640 # The linker will automatically build a .lib file if we build a DLL.
9641 old_archive_from_new_cmds='true'
9642 # FIXME: Should let the user specify the lib program.
9643 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9644 enable_shared_with_static_runtimes=yes
9645 ;;
9646 esac
9647 ;;
9648
9649 darwin* | rhapsody*)
9650
9651
9652 archive_cmds_need_lc=no
9653 hardcode_direct=no
9654 hardcode_automatic=yes
9655 hardcode_shlibpath_var=unsupported
9656 if test "$lt_cv_ld_force_load" = "yes"; then
9657 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\"`'
9658
9659 else
9660 whole_archive_flag_spec=''
9661 fi
9662 link_all_deplibs=yes
9663 allow_undefined_flag="$_lt_dar_allow_undefined"
9664 case $cc_basename in
9665 ifort*) _lt_dar_can_shared=yes ;;
9666 *) _lt_dar_can_shared=$GCC ;;
9667 esac
9668 if test "$_lt_dar_can_shared" = "yes"; then
9669 output_verbose_link_cmd=func_echo_all
9670 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9671 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9672 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}"
9673 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}"
9674
9675 else
9676 ld_shlibs=no
9677 fi
9678
9679 ;;
9680
9681 dgux*)
9682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_shlibpath_var=no
9685 ;;
9686
9687 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9688 # support. Future versions do this automatically, but an explicit c++rt0.o
9689 # does not break anything, and helps significantly (at the cost of a little
9690 # extra space).
9691 freebsd2.2*)
9692 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9693 hardcode_libdir_flag_spec='-R$libdir'
9694 hardcode_direct=yes
9695 hardcode_shlibpath_var=no
9696 ;;
9697
9698 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9699 freebsd2.*)
9700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_direct=yes
9702 hardcode_minus_L=yes
9703 hardcode_shlibpath_var=no
9704 ;;
9705
9706 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9707 freebsd* | dragonfly*)
9708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9709 hardcode_libdir_flag_spec='-R$libdir'
9710 hardcode_direct=yes
9711 hardcode_shlibpath_var=no
9712 ;;
9713
9714 hpux9*)
9715 if test "$GCC" = yes; then
9716 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9717 else
9718 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'
9719 fi
9720 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9721 hardcode_libdir_separator=:
9722 hardcode_direct=yes
9723
9724 # hardcode_minus_L: Not really in the search PATH,
9725 # but as the default location of the library.
9726 hardcode_minus_L=yes
9727 export_dynamic_flag_spec='${wl}-E'
9728 ;;
9729
9730 hpux10*)
9731 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9732 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9733 else
9734 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9735 fi
9736 if test "$with_gnu_ld" = no; then
9737 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9738 hardcode_libdir_separator=:
9739 hardcode_direct=yes
9740 hardcode_direct_absolute=yes
9741 export_dynamic_flag_spec='${wl}-E'
9742 # hardcode_minus_L: Not really in the search PATH,
9743 # but as the default location of the library.
9744 hardcode_minus_L=yes
9745 fi
9746 ;;
9747
9748 hpux11*)
9749 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9750 case $host_cpu in
9751 hppa*64*)
9752 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 ;;
9754 ia64*)
9755 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9756 ;;
9757 *)
9758 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9759 ;;
9760 esac
9761 else
9762 case $host_cpu in
9763 hppa*64*)
9764 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 ;;
9766 ia64*)
9767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9768 ;;
9769 *)
9770
9771 # Older versions of the 11.00 compiler do not understand -b yet
9772 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9774 $as_echo_n "checking if $CC understands -b... " >&6; }
9775 if ${lt_cv_prog_compiler__b+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777 else
9778 lt_cv_prog_compiler__b=no
9779 save_LDFLAGS="$LDFLAGS"
9780 LDFLAGS="$LDFLAGS -b"
9781 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9783 # The linker can only warn and ignore the option if not recognized
9784 # So say no if there are warnings
9785 if test -s conftest.err; then
9786 # Append any errors to the config.log.
9787 cat conftest.err 1>&5
9788 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9790 if diff conftest.exp conftest.er2 >/dev/null; then
9791 lt_cv_prog_compiler__b=yes
9792 fi
9793 else
9794 lt_cv_prog_compiler__b=yes
9795 fi
9796 fi
9797 $RM -r conftest*
9798 LDFLAGS="$save_LDFLAGS"
9799
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9802 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9803
9804 if test x"$lt_cv_prog_compiler__b" = xyes; then
9805 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9806 else
9807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9808 fi
9809
9810 ;;
9811 esac
9812 fi
9813 if test "$with_gnu_ld" = no; then
9814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9815 hardcode_libdir_separator=:
9816
9817 case $host_cpu in
9818 hppa*64*|ia64*)
9819 hardcode_direct=no
9820 hardcode_shlibpath_var=no
9821 ;;
9822 *)
9823 hardcode_direct=yes
9824 hardcode_direct_absolute=yes
9825 export_dynamic_flag_spec='${wl}-E'
9826
9827 # hardcode_minus_L: Not really in the search PATH,
9828 # but as the default location of the library.
9829 hardcode_minus_L=yes
9830 ;;
9831 esac
9832 fi
9833 ;;
9834
9835 irix5* | irix6* | nonstopux*)
9836 if test "$GCC" = yes; then
9837 archive_cmds='$CC -shared $pic_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'
9838 # Try to use the -exported_symbol ld option, if it does not
9839 # work, assume that -exports_file does not work either and
9840 # implicitly export all symbols.
9841 # This should be the same for all languages, so no per-tag cache variable.
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9843 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9844 if ${lt_cv_irix_exported_symbol+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 save_LDFLAGS="$LDFLAGS"
9848 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9851 int foo (void) { return 0; }
9852 _ACEOF
9853 if ac_fn_c_try_link "$LINENO"; then :
9854 lt_cv_irix_exported_symbol=yes
9855 else
9856 lt_cv_irix_exported_symbol=no
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LDFLAGS="$save_LDFLAGS"
9861 fi
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9863 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9864 if test "$lt_cv_irix_exported_symbol" = yes; then
9865 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9866 fi
9867 else
9868 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'
9869 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'
9870 fi
9871 archive_cmds_need_lc='no'
9872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9873 hardcode_libdir_separator=:
9874 inherit_rpath=yes
9875 link_all_deplibs=yes
9876 ;;
9877
9878 netbsd*)
9879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9881 else
9882 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9883 fi
9884 hardcode_libdir_flag_spec='-R$libdir'
9885 hardcode_direct=yes
9886 hardcode_shlibpath_var=no
9887 ;;
9888
9889 newsos6)
9890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9891 hardcode_direct=yes
9892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9893 hardcode_libdir_separator=:
9894 hardcode_shlibpath_var=no
9895 ;;
9896
9897 *nto* | *qnx*)
9898 ;;
9899
9900 openbsd*)
9901 if test -f /usr/libexec/ld.so; then
9902 hardcode_direct=yes
9903 hardcode_shlibpath_var=no
9904 hardcode_direct_absolute=yes
9905 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9906 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9907 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9908 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9909 export_dynamic_flag_spec='${wl}-E'
9910 else
9911 case $host_os in
9912 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_libdir_flag_spec='-R$libdir'
9915 ;;
9916 *)
9917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9919 ;;
9920 esac
9921 fi
9922 else
9923 ld_shlibs=no
9924 fi
9925 ;;
9926
9927 os2*)
9928 hardcode_libdir_flag_spec='-L$libdir'
9929 hardcode_minus_L=yes
9930 allow_undefined_flag=unsupported
9931 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'
9932 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9933 ;;
9934
9935 osf3*)
9936 if test "$GCC" = yes; then
9937 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9938 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'
9939 else
9940 allow_undefined_flag=' -expect_unresolved \*'
9941 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'
9942 fi
9943 archive_cmds_need_lc='no'
9944 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9945 hardcode_libdir_separator=:
9946 ;;
9947
9948 osf4* | osf5*) # as osf3* with the addition of -msym flag
9949 if test "$GCC" = yes; then
9950 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9951 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
9952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9953 else
9954 allow_undefined_flag=' -expect_unresolved \*'
9955 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'
9956 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~
9957 $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'
9958
9959 # Both c and cxx compiler support -rpath directly
9960 hardcode_libdir_flag_spec='-rpath $libdir'
9961 fi
9962 archive_cmds_need_lc='no'
9963 hardcode_libdir_separator=:
9964 ;;
9965
9966 solaris*)
9967 no_undefined_flag=' -z defs'
9968 if test "$GCC" = yes; then
9969 wlarc='${wl}'
9970 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9972 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9973 else
9974 case `$CC -V 2>&1` in
9975 *"Compilers 5.0"*)
9976 wlarc=''
9977 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9979 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9980 ;;
9981 *)
9982 wlarc='${wl}'
9983 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9985 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9986 ;;
9987 esac
9988 fi
9989 hardcode_libdir_flag_spec='-R$libdir'
9990 hardcode_shlibpath_var=no
9991 case $host_os in
9992 solaris2.[0-5] | solaris2.[0-5].*) ;;
9993 *)
9994 # The compiler driver will combine and reorder linker options,
9995 # but understands `-z linker_flag'. GCC discards it without `$wl',
9996 # but is careful enough not to reorder.
9997 # Supported since Solaris 2.6 (maybe 2.5.1?)
9998 if test "$GCC" = yes; then
9999 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10000 else
10001 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10002 fi
10003 ;;
10004 esac
10005 link_all_deplibs=yes
10006 ;;
10007
10008 sunos4*)
10009 if test "x$host_vendor" = xsequent; then
10010 # Use $CC to link under sequent, because it throws in some extra .o
10011 # files that make .init and .fini sections work.
10012 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10013 else
10014 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10015 fi
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 hardcode_direct=yes
10018 hardcode_minus_L=yes
10019 hardcode_shlibpath_var=no
10020 ;;
10021
10022 sysv4)
10023 case $host_vendor in
10024 sni)
10025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026 hardcode_direct=yes # is this really true???
10027 ;;
10028 siemens)
10029 ## LD is ld it makes a PLAMLIB
10030 ## CC just makes a GrossModule.
10031 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10032 reload_cmds='$CC -r -o $output$reload_objs'
10033 hardcode_direct=no
10034 ;;
10035 motorola)
10036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10038 ;;
10039 esac
10040 runpath_var='LD_RUN_PATH'
10041 hardcode_shlibpath_var=no
10042 ;;
10043
10044 sysv4.3*)
10045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046 hardcode_shlibpath_var=no
10047 export_dynamic_flag_spec='-Bexport'
10048 ;;
10049
10050 sysv4*MP*)
10051 if test -d /usr/nec; then
10052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053 hardcode_shlibpath_var=no
10054 runpath_var=LD_RUN_PATH
10055 hardcode_runpath_var=yes
10056 ld_shlibs=yes
10057 fi
10058 ;;
10059
10060 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10061 no_undefined_flag='${wl}-z,text'
10062 archive_cmds_need_lc=no
10063 hardcode_shlibpath_var=no
10064 runpath_var='LD_RUN_PATH'
10065
10066 if test "$GCC" = yes; then
10067 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10069 else
10070 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10072 fi
10073 ;;
10074
10075 sysv5* | sco3.2v5* | sco5v6*)
10076 # Note: We can NOT use -z defs as we might desire, because we do not
10077 # link with -lc, and that would cause any symbols used from libc to
10078 # always be unresolved, which means just about no library would
10079 # ever link correctly. If we're not using GNU ld we use -z text
10080 # though, which does catch some bad symbols but isn't as heavy-handed
10081 # as -z defs.
10082 no_undefined_flag='${wl}-z,text'
10083 allow_undefined_flag='${wl}-z,nodefs'
10084 archive_cmds_need_lc=no
10085 hardcode_shlibpath_var=no
10086 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10087 hardcode_libdir_separator=':'
10088 link_all_deplibs=yes
10089 export_dynamic_flag_spec='${wl}-Bexport'
10090 runpath_var='LD_RUN_PATH'
10091
10092 if test "$GCC" = yes; then
10093 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 else
10096 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 fi
10099 ;;
10100
10101 uts4*)
10102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103 hardcode_libdir_flag_spec='-L$libdir'
10104 hardcode_shlibpath_var=no
10105 ;;
10106
10107 *)
10108 ld_shlibs=no
10109 ;;
10110 esac
10111
10112 if test x$host_vendor = xsni; then
10113 case $host in
10114 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10115 export_dynamic_flag_spec='${wl}-Blargedynsym'
10116 ;;
10117 esac
10118 fi
10119 fi
10120
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10122 $as_echo "$ld_shlibs" >&6; }
10123 test "$ld_shlibs" = no && can_build_shared=no
10124
10125 with_gnu_ld=$with_gnu_ld
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141 #
10142 # Do we need to explicitly link libc?
10143 #
10144 case "x$archive_cmds_need_lc" in
10145 x|xyes)
10146 # Assume -lc should be added
10147 archive_cmds_need_lc=yes
10148
10149 if test "$enable_shared" = yes && test "$GCC" = yes; then
10150 case $archive_cmds in
10151 *'~'*)
10152 # FIXME: we may have to deal with multi-command sequences.
10153 ;;
10154 '$CC '*)
10155 # Test whether the compiler implicitly links with -lc since on some
10156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10157 # to ld, don't add -lc before -lgcc.
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10159 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10160 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10161 $as_echo_n "(cached) " >&6
10162 else
10163 $RM conftest*
10164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10165
10166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10167 (eval $ac_compile) 2>&5
10168 ac_status=$?
10169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10170 test $ac_status = 0; } 2>conftest.err; then
10171 soname=conftest
10172 lib=conftest
10173 libobjs=conftest.$ac_objext
10174 deplibs=
10175 wl=$lt_prog_compiler_wl
10176 pic_flag=$lt_prog_compiler_pic
10177 compiler_flags=-v
10178 linker_flags=-v
10179 verstring=
10180 output_objdir=.
10181 libname=conftest
10182 lt_save_allow_undefined_flag=$allow_undefined_flag
10183 allow_undefined_flag=
10184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10185 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10186 ac_status=$?
10187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10188 test $ac_status = 0; }
10189 then
10190 lt_cv_archive_cmds_need_lc=no
10191 else
10192 lt_cv_archive_cmds_need_lc=yes
10193 fi
10194 allow_undefined_flag=$lt_save_allow_undefined_flag
10195 else
10196 cat conftest.err 1>&5
10197 fi
10198 $RM conftest*
10199
10200 fi
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10202 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10203 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10204 ;;
10205 esac
10206 fi
10207 ;;
10208 esac
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10362 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10363
10364 if test "$GCC" = yes; then
10365 case $host_os in
10366 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10367 *) lt_awk_arg="/^libraries:/" ;;
10368 esac
10369 case $host_os in
10370 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10371 *) lt_sed_strip_eq="s,=/,/,g" ;;
10372 esac
10373 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10374 case $lt_search_path_spec in
10375 *\;*)
10376 # if the path contains ";" then we assume it to be the separator
10377 # otherwise default to the standard path separator (i.e. ":") - it is
10378 # assumed that no part of a normal pathname contains ";" but that should
10379 # okay in the real world where ";" in dirpaths is itself problematic.
10380 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10381 ;;
10382 *)
10383 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10384 ;;
10385 esac
10386 # Ok, now we have the path, separated by spaces, we can step through it
10387 # and add multilib dir if necessary.
10388 lt_tmp_lt_search_path_spec=
10389 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10390 for lt_sys_path in $lt_search_path_spec; do
10391 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10392 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10393 else
10394 test -d "$lt_sys_path" && \
10395 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10396 fi
10397 done
10398 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10399 BEGIN {RS=" "; FS="/|\n";} {
10400 lt_foo="";
10401 lt_count=0;
10402 for (lt_i = NF; lt_i > 0; lt_i--) {
10403 if ($lt_i != "" && $lt_i != ".") {
10404 if ($lt_i == "..") {
10405 lt_count++;
10406 } else {
10407 if (lt_count == 0) {
10408 lt_foo="/" $lt_i lt_foo;
10409 } else {
10410 lt_count--;
10411 }
10412 }
10413 }
10414 }
10415 if (lt_foo != "") { lt_freq[lt_foo]++; }
10416 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10417 }'`
10418 # AWK program above erroneously prepends '/' to C:/dos/paths
10419 # for these hosts.
10420 case $host_os in
10421 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10422 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10423 esac
10424 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10425 else
10426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10427 fi
10428 library_names_spec=
10429 libname_spec='lib$name'
10430 soname_spec=
10431 shrext_cmds=".so"
10432 postinstall_cmds=
10433 postuninstall_cmds=
10434 finish_cmds=
10435 finish_eval=
10436 shlibpath_var=
10437 shlibpath_overrides_runpath=unknown
10438 version_type=none
10439 dynamic_linker="$host_os ld.so"
10440 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10441 need_lib_prefix=unknown
10442 hardcode_into_libs=no
10443
10444 # when you set need_version to no, make sure it does not cause -set_version
10445 # flags to be left without arguments
10446 need_version=unknown
10447
10448 case $host_os in
10449 aix3*)
10450 version_type=linux # correct to gnu/linux during the next big refactor
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10452 shlibpath_var=LIBPATH
10453
10454 # AIX 3 has no versioning support, so we append a major version to the name.
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 ;;
10457
10458 aix[4-9]*)
10459 version_type=linux # correct to gnu/linux during the next big refactor
10460 need_lib_prefix=no
10461 need_version=no
10462 hardcode_into_libs=yes
10463 if test "$host_cpu" = ia64; then
10464 # AIX 5 supports IA64
10465 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 else
10468 # With GCC up to 2.95.x, collect2 would create an import file
10469 # for dependence libraries. The import file would start with
10470 # the line `#! .'. This would cause the generated library to
10471 # depend on `.', always an invalid library. This was fixed in
10472 # development snapshots of GCC prior to 3.0.
10473 case $host_os in
10474 aix4 | aix4.[01] | aix4.[01].*)
10475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10476 echo ' yes '
10477 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10478 :
10479 else
10480 can_build_shared=no
10481 fi
10482 ;;
10483 esac
10484 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10485 # soname into executable. Probably we can add versioning support to
10486 # collect2, so additional links can be useful in future.
10487 if test "$aix_use_runtimelinking" = yes; then
10488 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10489 # instead of lib<name>.a to let people know that these are not
10490 # typical AIX shared libraries.
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492 else
10493 # We preserve .a as extension for shared libraries through AIX4.2
10494 # and later when we are not doing run time linking.
10495 library_names_spec='${libname}${release}.a $libname.a'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 fi
10498 shlibpath_var=LIBPATH
10499 fi
10500 ;;
10501
10502 amigaos*)
10503 case $host_cpu in
10504 powerpc)
10505 # Since July 2007 AmigaOS4 officially supports .so libraries.
10506 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508 ;;
10509 m68k)
10510 library_names_spec='$libname.ixlibrary $libname.a'
10511 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10512 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'
10513 ;;
10514 esac
10515 ;;
10516
10517 beos*)
10518 library_names_spec='${libname}${shared_ext}'
10519 dynamic_linker="$host_os ld.so"
10520 shlibpath_var=LIBRARY_PATH
10521 ;;
10522
10523 bsdi[45]*)
10524 version_type=linux # correct to gnu/linux during the next big refactor
10525 need_version=no
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10532 # the default ld.so.conf also contains /usr/contrib/lib and
10533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10534 # libtool to hard-code these into programs
10535 ;;
10536
10537 cygwin* | mingw* | pw32* | cegcc*)
10538 version_type=windows
10539 shrext_cmds=".dll"
10540 need_version=no
10541 need_lib_prefix=no
10542
10543 case $GCC,$cc_basename in
10544 yes,*)
10545 # gcc
10546 library_names_spec='$libname.dll.a'
10547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10548 postinstall_cmds='base_file=`basename \${file}`~
10549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10550 dldir=$destdir/`dirname \$dlpath`~
10551 test -d \$dldir || mkdir -p \$dldir~
10552 $install_prog $dir/$dlname \$dldir/$dlname~
10553 chmod a+x \$dldir/$dlname~
10554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10556 fi'
10557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10558 dlpath=$dir/\$dldll~
10559 $RM \$dlpath'
10560 shlibpath_overrides_runpath=yes
10561
10562 case $host_os in
10563 cygwin*)
10564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10566
10567 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10568 ;;
10569 mingw* | cegcc*)
10570 # MinGW DLLs use traditional 'lib' prefix
10571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10572 ;;
10573 pw32*)
10574 # pw32 DLLs use 'pw' prefix rather than 'lib'
10575 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10576 ;;
10577 esac
10578 dynamic_linker='Win32 ld.exe'
10579 ;;
10580
10581 *,cl*)
10582 # Native MSVC
10583 libname_spec='$name'
10584 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10585 library_names_spec='${libname}.dll.lib'
10586
10587 case $build_os in
10588 mingw*)
10589 sys_lib_search_path_spec=
10590 lt_save_ifs=$IFS
10591 IFS=';'
10592 for lt_path in $LIB
10593 do
10594 IFS=$lt_save_ifs
10595 # Let DOS variable expansion print the short 8.3 style file name.
10596 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10597 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10598 done
10599 IFS=$lt_save_ifs
10600 # Convert to MSYS style.
10601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10602 ;;
10603 cygwin*)
10604 # Convert to unix form, then to dos form, then back to unix form
10605 # but this time dos style (no spaces!) so that the unix form looks
10606 # like /cygdrive/c/PROGRA~1:/cygdr...
10607 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10608 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10609 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10610 ;;
10611 *)
10612 sys_lib_search_path_spec="$LIB"
10613 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10614 # It is most probably a Windows format PATH.
10615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10616 else
10617 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10618 fi
10619 # FIXME: find the short name or the path components, as spaces are
10620 # common. (e.g. "Program Files" -> "PROGRA~1")
10621 ;;
10622 esac
10623
10624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10625 postinstall_cmds='base_file=`basename \${file}`~
10626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10627 dldir=$destdir/`dirname \$dlpath`~
10628 test -d \$dldir || mkdir -p \$dldir~
10629 $install_prog $dir/$dlname \$dldir/$dlname'
10630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10631 dlpath=$dir/\$dldll~
10632 $RM \$dlpath'
10633 shlibpath_overrides_runpath=yes
10634 dynamic_linker='Win32 link.exe'
10635 ;;
10636
10637 *)
10638 # Assume MSVC wrapper
10639 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10640 dynamic_linker='Win32 ld.exe'
10641 ;;
10642 esac
10643 # FIXME: first we should search . and the directory the executable is in
10644 shlibpath_var=PATH
10645 ;;
10646
10647 darwin* | rhapsody*)
10648 dynamic_linker="$host_os dyld"
10649 version_type=darwin
10650 need_lib_prefix=no
10651 need_version=no
10652 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10653 soname_spec='${libname}${release}${major}$shared_ext'
10654 shlibpath_overrides_runpath=yes
10655 shlibpath_var=DYLD_LIBRARY_PATH
10656 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10657
10658 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10660 ;;
10661
10662 dgux*)
10663 version_type=linux # correct to gnu/linux during the next big refactor
10664 need_lib_prefix=no
10665 need_version=no
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 ;;
10670
10671 freebsd* | dragonfly*)
10672 # DragonFly does not have aout. When/if they implement a new
10673 # versioning mechanism, adjust this.
10674 if test -x /usr/bin/objformat; then
10675 objformat=`/usr/bin/objformat`
10676 else
10677 case $host_os in
10678 freebsd[23].*) objformat=aout ;;
10679 *) objformat=elf ;;
10680 esac
10681 fi
10682 version_type=freebsd-$objformat
10683 case $version_type in
10684 freebsd-elf*)
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10686 need_version=no
10687 need_lib_prefix=no
10688 ;;
10689 freebsd-*)
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10691 need_version=yes
10692 ;;
10693 esac
10694 shlibpath_var=LD_LIBRARY_PATH
10695 case $host_os in
10696 freebsd2.*)
10697 shlibpath_overrides_runpath=yes
10698 ;;
10699 freebsd3.[01]* | freebsdelf3.[01]*)
10700 shlibpath_overrides_runpath=yes
10701 hardcode_into_libs=yes
10702 ;;
10703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10705 shlibpath_overrides_runpath=no
10706 hardcode_into_libs=yes
10707 ;;
10708 *) # from 4.6 on, and DragonFly
10709 shlibpath_overrides_runpath=yes
10710 hardcode_into_libs=yes
10711 ;;
10712 esac
10713 ;;
10714
10715 gnu*)
10716 version_type=linux # correct to gnu/linux during the next big refactor
10717 need_lib_prefix=no
10718 need_version=no
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 shlibpath_overrides_runpath=no
10723 hardcode_into_libs=yes
10724 ;;
10725
10726 haiku*)
10727 version_type=linux # correct to gnu/linux during the next big refactor
10728 need_lib_prefix=no
10729 need_version=no
10730 dynamic_linker="$host_os runtime_loader"
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LIBRARY_PATH
10734 shlibpath_overrides_runpath=yes
10735 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10736 hardcode_into_libs=yes
10737 ;;
10738
10739 hpux9* | hpux10* | hpux11*)
10740 # Give a soname corresponding to the major version so that dld.sl refuses to
10741 # link against other versions.
10742 version_type=sunos
10743 need_lib_prefix=no
10744 need_version=no
10745 case $host_cpu in
10746 ia64*)
10747 shrext_cmds='.so'
10748 hardcode_into_libs=yes
10749 dynamic_linker="$host_os dld.so"
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753 soname_spec='${libname}${release}${shared_ext}$major'
10754 if test "X$HPUX_IA64_MODE" = X32; then
10755 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10756 else
10757 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10758 fi
10759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10760 ;;
10761 hppa*64*)
10762 shrext_cmds='.sl'
10763 hardcode_into_libs=yes
10764 dynamic_linker="$host_os dld.sl"
10765 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10771 ;;
10772 *)
10773 shrext_cmds='.sl'
10774 dynamic_linker="$host_os dld.sl"
10775 shlibpath_var=SHLIB_PATH
10776 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778 soname_spec='${libname}${release}${shared_ext}$major'
10779 ;;
10780 esac
10781 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10782 postinstall_cmds='chmod 555 $lib'
10783 # or fails outright, so override atomically:
10784 install_override_mode=555
10785 ;;
10786
10787 interix[3-9]*)
10788 version_type=linux # correct to gnu/linux during the next big refactor
10789 need_lib_prefix=no
10790 need_version=no
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 shlibpath_overrides_runpath=no
10796 hardcode_into_libs=yes
10797 ;;
10798
10799 irix5* | irix6* | nonstopux*)
10800 case $host_os in
10801 nonstopux*) version_type=nonstopux ;;
10802 *)
10803 if test "$lt_cv_prog_gnu_ld" = yes; then
10804 version_type=linux # correct to gnu/linux during the next big refactor
10805 else
10806 version_type=irix
10807 fi ;;
10808 esac
10809 need_lib_prefix=no
10810 need_version=no
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10813 case $host_os in
10814 irix5* | nonstopux*)
10815 libsuff= shlibsuff=
10816 ;;
10817 *)
10818 case $LD in # libtool.m4 will add one of these switches to LD
10819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10820 libsuff= shlibsuff= libmagic=32-bit;;
10821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10822 libsuff=32 shlibsuff=N32 libmagic=N32;;
10823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10825 *) libsuff= shlibsuff= libmagic=never-match;;
10826 esac
10827 ;;
10828 esac
10829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10830 shlibpath_overrides_runpath=no
10831 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10832 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10833 hardcode_into_libs=yes
10834 ;;
10835
10836 # No shared lib support for Linux oldld, aout, or coff.
10837 linux*oldld* | linux*aout* | linux*coff*)
10838 dynamic_linker=no
10839 ;;
10840
10841 # This must be glibc/ELF.
10842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10843 version_type=linux # correct to gnu/linux during the next big refactor
10844 need_lib_prefix=no
10845 need_version=no
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10849 shlibpath_var=LD_LIBRARY_PATH
10850 shlibpath_overrides_runpath=no
10851
10852 # Some binutils ld are patched to set DT_RUNPATH
10853 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 lt_cv_shlibpath_overrides_runpath=no
10857 save_LDFLAGS=$LDFLAGS
10858 save_libdir=$libdir
10859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10863
10864 int
10865 main ()
10866 {
10867
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10874 lt_cv_shlibpath_overrides_runpath=yes
10875 fi
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LDFLAGS=$save_LDFLAGS
10880 libdir=$save_libdir
10881
10882 fi
10883
10884 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10885
10886 # This implies no fast_install, which is unacceptable.
10887 # Some rework will be needed to allow for fast_install
10888 # before this can be enabled.
10889 hardcode_into_libs=yes
10890
10891 # Append ld.so.conf contents to the search path
10892 if test -f /etc/ld.so.conf; then
10893 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' ' '`
10894 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10895 fi
10896
10897 # We used to test for /lib/ld.so.1 and disable shared libraries on
10898 # powerpc, because MkLinux only supported shared libraries with the
10899 # GNU dynamic linker. Since this was broken with cross compilers,
10900 # most powerpc-linux boxes support dynamic linking these days and
10901 # people can always --disable-shared, the test was removed, and we
10902 # assume the GNU/Linux dynamic linker is in use.
10903 dynamic_linker='GNU/Linux ld.so'
10904 ;;
10905
10906 netbsd*)
10907 version_type=sunos
10908 need_lib_prefix=no
10909 need_version=no
10910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10913 dynamic_linker='NetBSD (a.out) ld.so'
10914 else
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 dynamic_linker='NetBSD ld.elf_so'
10918 fi
10919 shlibpath_var=LD_LIBRARY_PATH
10920 shlibpath_overrides_runpath=yes
10921 hardcode_into_libs=yes
10922 ;;
10923
10924 newsos6)
10925 version_type=linux # correct to gnu/linux during the next big refactor
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=yes
10929 ;;
10930
10931 *nto* | *qnx*)
10932 version_type=qnx
10933 need_lib_prefix=no
10934 need_version=no
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=no
10939 hardcode_into_libs=yes
10940 dynamic_linker='ldqnx.so'
10941 ;;
10942
10943 openbsd*)
10944 version_type=sunos
10945 sys_lib_dlsearch_path_spec="/usr/lib"
10946 need_lib_prefix=no
10947 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10948 case $host_os in
10949 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10950 *) need_version=no ;;
10951 esac
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10956 case $host_os in
10957 openbsd2.[89] | openbsd2.[89].*)
10958 shlibpath_overrides_runpath=no
10959 ;;
10960 *)
10961 shlibpath_overrides_runpath=yes
10962 ;;
10963 esac
10964 else
10965 shlibpath_overrides_runpath=yes
10966 fi
10967 ;;
10968
10969 os2*)
10970 libname_spec='$name'
10971 shrext_cmds=".dll"
10972 need_lib_prefix=no
10973 library_names_spec='$libname${shared_ext} $libname.a'
10974 dynamic_linker='OS/2 ld.exe'
10975 shlibpath_var=LIBPATH
10976 ;;
10977
10978 osf3* | osf4* | osf5*)
10979 version_type=osf
10980 need_lib_prefix=no
10981 need_version=no
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10986 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10987 ;;
10988
10989 rdos*)
10990 dynamic_linker=no
10991 ;;
10992
10993 solaris*)
10994 version_type=linux # correct to gnu/linux during the next big refactor
10995 need_lib_prefix=no
10996 need_version=no
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=yes
11001 hardcode_into_libs=yes
11002 # ldd complains unless libraries are executable
11003 postinstall_cmds='chmod +x $lib'
11004 ;;
11005
11006 sunos4*)
11007 version_type=sunos
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11009 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=yes
11012 if test "$with_gnu_ld" = yes; then
11013 need_lib_prefix=no
11014 fi
11015 need_version=yes
11016 ;;
11017
11018 sysv4 | sysv4.3*)
11019 version_type=linux # correct to gnu/linux during the next big refactor
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 case $host_vendor in
11024 sni)
11025 shlibpath_overrides_runpath=no
11026 need_lib_prefix=no
11027 runpath_var=LD_RUN_PATH
11028 ;;
11029 siemens)
11030 need_lib_prefix=no
11031 ;;
11032 motorola)
11033 need_lib_prefix=no
11034 need_version=no
11035 shlibpath_overrides_runpath=no
11036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11037 ;;
11038 esac
11039 ;;
11040
11041 sysv4*MP*)
11042 if test -d /usr/nec ;then
11043 version_type=linux # correct to gnu/linux during the next big refactor
11044 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11045 soname_spec='$libname${shared_ext}.$major'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 fi
11048 ;;
11049
11050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11051 version_type=freebsd-elf
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=yes
11058 hardcode_into_libs=yes
11059 if test "$with_gnu_ld" = yes; then
11060 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11061 else
11062 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11063 case $host_os in
11064 sco3.2v5*)
11065 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11066 ;;
11067 esac
11068 fi
11069 sys_lib_dlsearch_path_spec='/usr/lib'
11070 ;;
11071
11072 tpf*)
11073 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11074 version_type=linux # correct to gnu/linux during the next big refactor
11075 need_lib_prefix=no
11076 need_version=no
11077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=no
11080 hardcode_into_libs=yes
11081 ;;
11082
11083 uts4*)
11084 version_type=linux # correct to gnu/linux during the next big refactor
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 shlibpath_var=LD_LIBRARY_PATH
11088 ;;
11089
11090 *)
11091 dynamic_linker=no
11092 ;;
11093 esac
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11095 $as_echo "$dynamic_linker" >&6; }
11096 test "$dynamic_linker" = no && can_build_shared=no
11097
11098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11099 if test "$GCC" = yes; then
11100 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11101 fi
11102
11103 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11104 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11105 fi
11106 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11107 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11108 fi
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11202 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11203 hardcode_action=
11204 if test -n "$hardcode_libdir_flag_spec" ||
11205 test -n "$runpath_var" ||
11206 test "X$hardcode_automatic" = "Xyes" ; then
11207
11208 # We can hardcode non-existent directories.
11209 if test "$hardcode_direct" != no &&
11210 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11211 # have to relink, otherwise we might link with an installed library
11212 # when we should be linking with a yet-to-be-installed one
11213 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11214 test "$hardcode_minus_L" != no; then
11215 # Linking always hardcodes the temporary library directory.
11216 hardcode_action=relink
11217 else
11218 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11219 hardcode_action=immediate
11220 fi
11221 else
11222 # We cannot hardcode anything, or else we can only hardcode existing
11223 # directories.
11224 hardcode_action=unsupported
11225 fi
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11227 $as_echo "$hardcode_action" >&6; }
11228
11229 if test "$hardcode_action" = relink ||
11230 test "$inherit_rpath" = yes; then
11231 # Fast installation is not supported
11232 enable_fast_install=no
11233 elif test "$shlibpath_overrides_runpath" = yes ||
11234 test "$enable_shared" = no; then
11235 # Fast installation is not necessary
11236 enable_fast_install=needless
11237 fi
11238
11239
11240
11241
11242
11243
11244 if test "x$enable_dlopen" != xyes; then
11245 enable_dlopen=unknown
11246 enable_dlopen_self=unknown
11247 enable_dlopen_self_static=unknown
11248 else
11249 lt_cv_dlopen=no
11250 lt_cv_dlopen_libs=
11251
11252 case $host_os in
11253 beos*)
11254 lt_cv_dlopen="load_add_on"
11255 lt_cv_dlopen_libs=
11256 lt_cv_dlopen_self=yes
11257 ;;
11258
11259 mingw* | pw32* | cegcc*)
11260 lt_cv_dlopen="LoadLibrary"
11261 lt_cv_dlopen_libs=
11262 ;;
11263
11264 cygwin*)
11265 lt_cv_dlopen="dlopen"
11266 lt_cv_dlopen_libs=
11267 ;;
11268
11269 darwin*)
11270 # if libdl is installed we need to link against it
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11272 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11273 if ${ac_cv_lib_dl_dlopen+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldl $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char dlopen ();
11288 int
11289 main ()
11290 {
11291 return dlopen ();
11292 ;
11293 return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297 ac_cv_lib_dl_dlopen=yes
11298 else
11299 ac_cv_lib_dl_dlopen=no
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11306 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11307 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11309 else
11310
11311 lt_cv_dlopen="dyld"
11312 lt_cv_dlopen_libs=
11313 lt_cv_dlopen_self=yes
11314
11315 fi
11316
11317 ;;
11318
11319 *)
11320 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11321 if test "x$ac_cv_func_shl_load" = xyes; then :
11322 lt_cv_dlopen="shl_load"
11323 else
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11325 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11326 if ${ac_cv_lib_dld_shl_load+:} false; then :
11327 $as_echo_n "(cached) " >&6
11328 else
11329 ac_check_lib_save_LIBS=$LIBS
11330 LIBS="-ldld $LIBS"
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11333
11334 /* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11337 #ifdef __cplusplus
11338 extern "C"
11339 #endif
11340 char shl_load ();
11341 int
11342 main ()
11343 {
11344 return shl_load ();
11345 ;
11346 return 0;
11347 }
11348 _ACEOF
11349 if ac_fn_c_try_link "$LINENO"; then :
11350 ac_cv_lib_dld_shl_load=yes
11351 else
11352 ac_cv_lib_dld_shl_load=no
11353 fi
11354 rm -f core conftest.err conftest.$ac_objext \
11355 conftest$ac_exeext conftest.$ac_ext
11356 LIBS=$ac_check_lib_save_LIBS
11357 fi
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11359 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11360 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11361 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11362 else
11363 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11364 if test "x$ac_cv_func_dlopen" = xyes; then :
11365 lt_cv_dlopen="dlopen"
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11368 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11369 if ${ac_cv_lib_dl_dlopen+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 ac_check_lib_save_LIBS=$LIBS
11373 LIBS="-ldl $LIBS"
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11376
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 char dlopen ();
11384 int
11385 main ()
11386 {
11387 return dlopen ();
11388 ;
11389 return 0;
11390 }
11391 _ACEOF
11392 if ac_fn_c_try_link "$LINENO"; then :
11393 ac_cv_lib_dl_dlopen=yes
11394 else
11395 ac_cv_lib_dl_dlopen=no
11396 fi
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext conftest.$ac_ext
11399 LIBS=$ac_check_lib_save_LIBS
11400 fi
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11402 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11403 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11404 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11405 else
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11407 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11408 if ${ac_cv_lib_svld_dlopen+:} false; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 ac_check_lib_save_LIBS=$LIBS
11412 LIBS="-lsvld $LIBS"
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11415
11416 /* Override any GCC internal prototype to avoid an error.
11417 Use char because int might match the return type of a GCC
11418 builtin and then its argument prototype would still apply. */
11419 #ifdef __cplusplus
11420 extern "C"
11421 #endif
11422 char dlopen ();
11423 int
11424 main ()
11425 {
11426 return dlopen ();
11427 ;
11428 return 0;
11429 }
11430 _ACEOF
11431 if ac_fn_c_try_link "$LINENO"; then :
11432 ac_cv_lib_svld_dlopen=yes
11433 else
11434 ac_cv_lib_svld_dlopen=no
11435 fi
11436 rm -f core conftest.err conftest.$ac_objext \
11437 conftest$ac_exeext conftest.$ac_ext
11438 LIBS=$ac_check_lib_save_LIBS
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11441 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11442 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11443 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11446 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11447 if ${ac_cv_lib_dld_dld_link+:} false; then :
11448 $as_echo_n "(cached) " >&6
11449 else
11450 ac_check_lib_save_LIBS=$LIBS
11451 LIBS="-ldld $LIBS"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h. */
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456 Use char because int might match the return type of a GCC
11457 builtin and then its argument prototype would still apply. */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char dld_link ();
11462 int
11463 main ()
11464 {
11465 return dld_link ();
11466 ;
11467 return 0;
11468 }
11469 _ACEOF
11470 if ac_fn_c_try_link "$LINENO"; then :
11471 ac_cv_lib_dld_dld_link=yes
11472 else
11473 ac_cv_lib_dld_dld_link=no
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext \
11476 conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_lib_save_LIBS
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11480 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11481 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11482 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11483 fi
11484
11485
11486 fi
11487
11488
11489 fi
11490
11491
11492 fi
11493
11494
11495 fi
11496
11497
11498 fi
11499
11500 ;;
11501 esac
11502
11503 if test "x$lt_cv_dlopen" != xno; then
11504 enable_dlopen=yes
11505 else
11506 enable_dlopen=no
11507 fi
11508
11509 case $lt_cv_dlopen in
11510 dlopen)
11511 save_CPPFLAGS="$CPPFLAGS"
11512 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11513
11514 save_LDFLAGS="$LDFLAGS"
11515 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11516
11517 save_LIBS="$LIBS"
11518 LIBS="$lt_cv_dlopen_libs $LIBS"
11519
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11521 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11522 if ${lt_cv_dlopen_self+:} false; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 if test "$cross_compiling" = yes; then :
11526 lt_cv_dlopen_self=cross
11527 else
11528 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11529 lt_status=$lt_dlunknown
11530 cat > conftest.$ac_ext <<_LT_EOF
11531 #line $LINENO "configure"
11532 #include "confdefs.h"
11533
11534 #if HAVE_DLFCN_H
11535 #include <dlfcn.h>
11536 #endif
11537
11538 #include <stdio.h>
11539
11540 #ifdef RTLD_GLOBAL
11541 # define LT_DLGLOBAL RTLD_GLOBAL
11542 #else
11543 # ifdef DL_GLOBAL
11544 # define LT_DLGLOBAL DL_GLOBAL
11545 # else
11546 # define LT_DLGLOBAL 0
11547 # endif
11548 #endif
11549
11550 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11551 find out it does not work in some platform. */
11552 #ifndef LT_DLLAZY_OR_NOW
11553 # ifdef RTLD_LAZY
11554 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11555 # else
11556 # ifdef DL_LAZY
11557 # define LT_DLLAZY_OR_NOW DL_LAZY
11558 # else
11559 # ifdef RTLD_NOW
11560 # define LT_DLLAZY_OR_NOW RTLD_NOW
11561 # else
11562 # ifdef DL_NOW
11563 # define LT_DLLAZY_OR_NOW DL_NOW
11564 # else
11565 # define LT_DLLAZY_OR_NOW 0
11566 # endif
11567 # endif
11568 # endif
11569 # endif
11570 #endif
11571
11572 /* When -fvisbility=hidden is used, assume the code has been annotated
11573 correspondingly for the symbols needed. */
11574 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11575 int fnord () __attribute__((visibility("default")));
11576 #endif
11577
11578 int fnord () { return 42; }
11579 int main ()
11580 {
11581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11582 int status = $lt_dlunknown;
11583
11584 if (self)
11585 {
11586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11587 else
11588 {
11589 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11590 else puts (dlerror ());
11591 }
11592 /* dlclose (self); */
11593 }
11594 else
11595 puts (dlerror ());
11596
11597 return status;
11598 }
11599 _LT_EOF
11600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11601 (eval $ac_link) 2>&5
11602 ac_status=$?
11603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11604 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11605 (./conftest; exit; ) >&5 2>/dev/null
11606 lt_status=$?
11607 case x$lt_status in
11608 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11609 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11610 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11611 esac
11612 else :
11613 # compilation failed
11614 lt_cv_dlopen_self=no
11615 fi
11616 fi
11617 rm -fr conftest*
11618
11619
11620 fi
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11622 $as_echo "$lt_cv_dlopen_self" >&6; }
11623
11624 if test "x$lt_cv_dlopen_self" = xyes; then
11625 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11627 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11628 if ${lt_cv_dlopen_self_static+:} false; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 if test "$cross_compiling" = yes; then :
11632 lt_cv_dlopen_self_static=cross
11633 else
11634 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11635 lt_status=$lt_dlunknown
11636 cat > conftest.$ac_ext <<_LT_EOF
11637 #line $LINENO "configure"
11638 #include "confdefs.h"
11639
11640 #if HAVE_DLFCN_H
11641 #include <dlfcn.h>
11642 #endif
11643
11644 #include <stdio.h>
11645
11646 #ifdef RTLD_GLOBAL
11647 # define LT_DLGLOBAL RTLD_GLOBAL
11648 #else
11649 # ifdef DL_GLOBAL
11650 # define LT_DLGLOBAL DL_GLOBAL
11651 # else
11652 # define LT_DLGLOBAL 0
11653 # endif
11654 #endif
11655
11656 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11657 find out it does not work in some platform. */
11658 #ifndef LT_DLLAZY_OR_NOW
11659 # ifdef RTLD_LAZY
11660 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11661 # else
11662 # ifdef DL_LAZY
11663 # define LT_DLLAZY_OR_NOW DL_LAZY
11664 # else
11665 # ifdef RTLD_NOW
11666 # define LT_DLLAZY_OR_NOW RTLD_NOW
11667 # else
11668 # ifdef DL_NOW
11669 # define LT_DLLAZY_OR_NOW DL_NOW
11670 # else
11671 # define LT_DLLAZY_OR_NOW 0
11672 # endif
11673 # endif
11674 # endif
11675 # endif
11676 #endif
11677
11678 /* When -fvisbility=hidden is used, assume the code has been annotated
11679 correspondingly for the symbols needed. */
11680 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11681 int fnord () __attribute__((visibility("default")));
11682 #endif
11683
11684 int fnord () { return 42; }
11685 int main ()
11686 {
11687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11688 int status = $lt_dlunknown;
11689
11690 if (self)
11691 {
11692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11693 else
11694 {
11695 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11696 else puts (dlerror ());
11697 }
11698 /* dlclose (self); */
11699 }
11700 else
11701 puts (dlerror ());
11702
11703 return status;
11704 }
11705 _LT_EOF
11706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11707 (eval $ac_link) 2>&5
11708 ac_status=$?
11709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11710 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11711 (./conftest; exit; ) >&5 2>/dev/null
11712 lt_status=$?
11713 case x$lt_status in
11714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11716 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11717 esac
11718 else :
11719 # compilation failed
11720 lt_cv_dlopen_self_static=no
11721 fi
11722 fi
11723 rm -fr conftest*
11724
11725
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11728 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11729 fi
11730
11731 CPPFLAGS="$save_CPPFLAGS"
11732 LDFLAGS="$save_LDFLAGS"
11733 LIBS="$save_LIBS"
11734 ;;
11735 esac
11736
11737 case $lt_cv_dlopen_self in
11738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11739 *) enable_dlopen_self=unknown ;;
11740 esac
11741
11742 case $lt_cv_dlopen_self_static in
11743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11744 *) enable_dlopen_self_static=unknown ;;
11745 esac
11746 fi
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764 striplib=
11765 old_striplib=
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11767 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11768 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11769 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11770 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772 $as_echo "yes" >&6; }
11773 else
11774 # FIXME - insert some real tests, host_os isn't really good enough
11775 case $host_os in
11776 darwin*)
11777 if test -n "$STRIP" ; then
11778 striplib="$STRIP -x"
11779 old_striplib="$STRIP -S"
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11781 $as_echo "yes" >&6; }
11782 else
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784 $as_echo "no" >&6; }
11785 fi
11786 ;;
11787 *)
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11790 ;;
11791 esac
11792 fi
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805 # Report which library types will actually be built
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11807 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11809 $as_echo "$can_build_shared" >&6; }
11810
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11812 $as_echo_n "checking whether to build shared libraries... " >&6; }
11813 test "$can_build_shared" = "no" && enable_shared=no
11814
11815 # On AIX, shared libraries and static libraries use the same namespace, and
11816 # are all built from PIC.
11817 case $host_os in
11818 aix3*)
11819 test "$enable_shared" = yes && enable_static=no
11820 if test -n "$RANLIB"; then
11821 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11822 postinstall_cmds='$RANLIB $lib'
11823 fi
11824 ;;
11825
11826 aix[4-9]*)
11827 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11828 test "$enable_shared" = yes && enable_static=no
11829 fi
11830 ;;
11831 esac
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11833 $as_echo "$enable_shared" >&6; }
11834
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11836 $as_echo_n "checking whether to build static libraries... " >&6; }
11837 # Make sure either enable_shared or enable_static is yes.
11838 test "$enable_shared" = yes || enable_static=yes
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11840 $as_echo "$enable_static" >&6; }
11841
11842
11843
11844
11845 fi
11846 ac_ext=c
11847 ac_cpp='$CPP $CPPFLAGS'
11848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11851
11852 CC="$lt_save_CC"
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868 ac_config_commands="$ac_config_commands libtool"
11869
11870
11871
11872
11873 # Only expand once:
11874
11875
11876
11877
11878 for ac_prog in NaturalDocs naturaldocs
11879 do
11880 # Extract the first word of "$ac_prog", so it can be a program name with args.
11881 set dummy $ac_prog; ac_word=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883 $as_echo_n "checking for $ac_word... " >&6; }
11884 if ${ac_cv_prog_NATURALDOCS+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 if test -n "$NATURALDOCS"; then
11888 ac_cv_prog_NATURALDOCS="$NATURALDOCS" # Let the user override the test.
11889 else
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11892 do
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11897 ac_cv_prog_NATURALDOCS="$ac_prog"
11898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11899 break 2
11900 fi
11901 done
11902 done
11903 IFS=$as_save_IFS
11904
11905 fi
11906 fi
11907 NATURALDOCS=$ac_cv_prog_NATURALDOCS
11908 if test -n "$NATURALDOCS"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATURALDOCS" >&5
11910 $as_echo "$NATURALDOCS" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 fi
11915
11916
11917 test -n "$NATURALDOCS" && break
11918 done
11919
11920 if test -n "$NATURALDOCS"; then
11921 BUILD_DOC_TRUE=
11922 BUILD_DOC_FALSE='#'
11923 else
11924 BUILD_DOC_TRUE='#'
11925 BUILD_DOC_FALSE=
11926 fi
11927
11928
11929 # Checks for libraries.
11930
11931
11932
11933
11934
11935
11936
11937 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11938 if test -n "$ac_tool_prefix"; then
11939 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11940 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 case $PKG_CONFIG in
11947 [\\/]* | ?:[\\/]*)
11948 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11949 ;;
11950 *)
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11953 do
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11961 fi
11962 done
11963 done
11964 IFS=$as_save_IFS
11965
11966 ;;
11967 esac
11968 fi
11969 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11970 if test -n "$PKG_CONFIG"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11972 $as_echo "$PKG_CONFIG" >&6; }
11973 else
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11976 fi
11977
11978
11979 fi
11980 if test -z "$ac_cv_path_PKG_CONFIG"; then
11981 ac_pt_PKG_CONFIG=$PKG_CONFIG
11982 # Extract the first word of "pkg-config", so it can be a program name with args.
11983 set dummy pkg-config; ac_word=$2
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11985 $as_echo_n "checking for $ac_word... " >&6; }
11986 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 case $ac_pt_PKG_CONFIG in
11990 [\\/]* | ?:[\\/]*)
11991 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11992 ;;
11993 *)
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11996 do
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12004 fi
12005 done
12006 done
12007 IFS=$as_save_IFS
12008
12009 ;;
12010 esac
12011 fi
12012 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12013 if test -n "$ac_pt_PKG_CONFIG"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12015 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12016 else
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018 $as_echo "no" >&6; }
12019 fi
12020
12021 if test "x$ac_pt_PKG_CONFIG" = x; then
12022 PKG_CONFIG=""
12023 else
12024 case $cross_compiling:$ac_tool_warned in
12025 yes:)
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12028 ac_tool_warned=yes ;;
12029 esac
12030 PKG_CONFIG=$ac_pt_PKG_CONFIG
12031 fi
12032 else
12033 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12034 fi
12035
12036 fi
12037 if test -n "$PKG_CONFIG"; then
12038 _pkg_min_version=0.9.0
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12040 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12041 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12043 $as_echo "yes" >&6; }
12044 else
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12047 PKG_CONFIG=""
12048 fi
12049 fi
12050
12051 pkg_failed=no
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NACORE" >&5
12053 $as_echo_n "checking for NACORE... " >&6; }
12054
12055 if test -n "$NACORE_CFLAGS"; then
12056 pkg_cv_NACORE_CFLAGS="$NACORE_CFLAGS"
12057 elif test -n "$PKG_CONFIG"; then
12058 if test -n "$PKG_CONFIG" && \
12059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nacore-5 >= 0.4.0\""; } >&5
12060 ($PKG_CONFIG --exists --print-errors "nacore-5 >= 0.4.0") 2>&5
12061 ac_status=$?
12062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12063 test $ac_status = 0; }; then
12064 pkg_cv_NACORE_CFLAGS=`$PKG_CONFIG --cflags "nacore-5 >= 0.4.0" 2>/dev/null`
12065 test "x$?" != "x0" && pkg_failed=yes
12066 else
12067 pkg_failed=yes
12068 fi
12069 else
12070 pkg_failed=untried
12071 fi
12072 if test -n "$NACORE_LIBS"; then
12073 pkg_cv_NACORE_LIBS="$NACORE_LIBS"
12074 elif test -n "$PKG_CONFIG"; then
12075 if test -n "$PKG_CONFIG" && \
12076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nacore-5 >= 0.4.0\""; } >&5
12077 ($PKG_CONFIG --exists --print-errors "nacore-5 >= 0.4.0") 2>&5
12078 ac_status=$?
12079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080 test $ac_status = 0; }; then
12081 pkg_cv_NACORE_LIBS=`$PKG_CONFIG --libs "nacore-5 >= 0.4.0" 2>/dev/null`
12082 test "x$?" != "x0" && pkg_failed=yes
12083 else
12084 pkg_failed=yes
12085 fi
12086 else
12087 pkg_failed=untried
12088 fi
12089
12090
12091
12092 if test $pkg_failed = yes; then
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12094 $as_echo "no" >&6; }
12095
12096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12097 _pkg_short_errors_supported=yes
12098 else
12099 _pkg_short_errors_supported=no
12100 fi
12101 if test $_pkg_short_errors_supported = yes; then
12102 NACORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nacore-5 >= 0.4.0" 2>&1`
12103 else
12104 NACORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nacore-5 >= 0.4.0" 2>&1`
12105 fi
12106 # Put the nasty error message in config.log where it belongs
12107 echo "$NACORE_PKG_ERRORS" >&5
12108
12109 as_fn_error $? "Package requirements (nacore-5 >= 0.4.0) were not met:
12110
12111 $NACORE_PKG_ERRORS
12112
12113 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12114 installed software in a non-standard prefix.
12115
12116 Alternatively, you may set the environment variables NACORE_CFLAGS
12117 and NACORE_LIBS to avoid the need to call pkg-config.
12118 See the pkg-config man page for more details." "$LINENO" 5
12119 elif test $pkg_failed = untried; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12124 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12125 is in your PATH or set the PKG_CONFIG environment variable to the full
12126 path to pkg-config.
12127
12128 Alternatively, you may set the environment variables NACORE_CFLAGS
12129 and NACORE_LIBS to avoid the need to call pkg-config.
12130 See the pkg-config man page for more details.
12131
12132 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12133 See \`config.log' for more details" "$LINENO" 5; }
12134 else
12135 NACORE_CFLAGS=$pkg_cv_NACORE_CFLAGS
12136 NACORE_LIBS=$pkg_cv_NACORE_LIBS
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12138 $as_echo "yes" >&6; }
12139
12140 fi
12141
12142 # Checks for header files.
12143
12144 pkg_failed=no
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LV2" >&5
12146 $as_echo_n "checking for LV2... " >&6; }
12147
12148 if test -n "$LV2_CFLAGS"; then
12149 pkg_cv_LV2_CFLAGS="$LV2_CFLAGS"
12150 elif test -n "$PKG_CONFIG"; then
12151 if test -n "$PKG_CONFIG" && \
12152 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lv2 >= 1.0.0\""; } >&5
12153 ($PKG_CONFIG --exists --print-errors "lv2 >= 1.0.0") 2>&5
12154 ac_status=$?
12155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12156 test $ac_status = 0; }; then
12157 pkg_cv_LV2_CFLAGS=`$PKG_CONFIG --cflags "lv2 >= 1.0.0" 2>/dev/null`
12158 test "x$?" != "x0" && pkg_failed=yes
12159 else
12160 pkg_failed=yes
12161 fi
12162 else
12163 pkg_failed=untried
12164 fi
12165 if test -n "$LV2_LIBS"; then
12166 pkg_cv_LV2_LIBS="$LV2_LIBS"
12167 elif test -n "$PKG_CONFIG"; then
12168 if test -n "$PKG_CONFIG" && \
12169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lv2 >= 1.0.0\""; } >&5
12170 ($PKG_CONFIG --exists --print-errors "lv2 >= 1.0.0") 2>&5
12171 ac_status=$?
12172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12173 test $ac_status = 0; }; then
12174 pkg_cv_LV2_LIBS=`$PKG_CONFIG --libs "lv2 >= 1.0.0" 2>/dev/null`
12175 test "x$?" != "x0" && pkg_failed=yes
12176 else
12177 pkg_failed=yes
12178 fi
12179 else
12180 pkg_failed=untried
12181 fi
12182
12183
12184
12185 if test $pkg_failed = yes; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12188
12189 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12190 _pkg_short_errors_supported=yes
12191 else
12192 _pkg_short_errors_supported=no
12193 fi
12194 if test $_pkg_short_errors_supported = yes; then
12195 LV2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lv2 >= 1.0.0" 2>&1`
12196 else
12197 LV2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lv2 >= 1.0.0" 2>&1`
12198 fi
12199 # Put the nasty error message in config.log where it belongs
12200 echo "$LV2_PKG_ERRORS" >&5
12201
12202 as_fn_error $? "Package requirements (lv2 >= 1.0.0) were not met:
12203
12204 $LV2_PKG_ERRORS
12205
12206 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12207 installed software in a non-standard prefix.
12208
12209 Alternatively, you may set the environment variables LV2_CFLAGS
12210 and LV2_LIBS to avoid the need to call pkg-config.
12211 See the pkg-config man page for more details." "$LINENO" 5
12212 elif test $pkg_failed = untried; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12214 $as_echo "no" >&6; }
12215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12217 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12218 is in your PATH or set the PKG_CONFIG environment variable to the full
12219 path to pkg-config.
12220
12221 Alternatively, you may set the environment variables LV2_CFLAGS
12222 and LV2_LIBS to avoid the need to call pkg-config.
12223 See the pkg-config man page for more details.
12224
12225 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12226 See \`config.log' for more details" "$LINENO" 5; }
12227 else
12228 LV2_CFLAGS=$pkg_cv_LV2_CFLAGS
12229 LV2_LIBS=$pkg_cv_LV2_LIBS
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12231 $as_echo "yes" >&6; }
12232
12233 fi
12234
12235 # Checks for typedefs, structures, and compiler characteristics.
12236
12237 # Checks for library functions.
12238
12239 # Output.
12240 LT_CURRENT=3
12241 LT_REVISION=0
12242 LT_AGE=0
12243
12244
12245
12246
12247 ac_config_files="$ac_config_files Makefile nabrit-3.pc doc/Makefile include/Makefile src/Makefile"
12248
12249 cat >confcache <<\_ACEOF
12250 # This file is a shell script that caches the results of configure
12251 # tests run on this system so they can be shared between configure
12252 # scripts and configure runs, see configure's option --config-cache.
12253 # It is not useful on other systems. If it contains results you don't
12254 # want to keep, you may remove or edit it.
12255 #
12256 # config.status only pays attention to the cache file if you give it
12257 # the --recheck option to rerun configure.
12258 #
12259 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12260 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12261 # following values.
12262
12263 _ACEOF
12264
12265 # The following way of writing the cache mishandles newlines in values,
12266 # but we know of no workaround that is simple, portable, and efficient.
12267 # So, we kill variables containing newlines.
12268 # Ultrix sh set writes to stderr and can't be redirected directly,
12269 # and sets the high bit in the cache file unless we assign to the vars.
12270 (
12271 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12272 eval ac_val=\$$ac_var
12273 case $ac_val in #(
12274 *${as_nl}*)
12275 case $ac_var in #(
12276 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12277 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12278 esac
12279 case $ac_var in #(
12280 _ | IFS | as_nl) ;; #(
12281 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12282 *) { eval $ac_var=; unset $ac_var;} ;;
12283 esac ;;
12284 esac
12285 done
12286
12287 (set) 2>&1 |
12288 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12289 *${as_nl}ac_space=\ *)
12290 # `set' does not quote correctly, so add quotes: double-quote
12291 # substitution turns \\\\ into \\, and sed turns \\ into \.
12292 sed -n \
12293 "s/'/'\\\\''/g;
12294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12295 ;; #(
12296 *)
12297 # `set' quotes correctly as required by POSIX, so do not add quotes.
12298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12299 ;;
12300 esac |
12301 sort
12302 ) |
12303 sed '
12304 /^ac_cv_env_/b end
12305 t clear
12306 :clear
12307 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12308 t end
12309 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12310 :end' >>confcache
12311 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12312 if test -w "$cache_file"; then
12313 if test "x$cache_file" != "x/dev/null"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12315 $as_echo "$as_me: updating cache $cache_file" >&6;}
12316 if test ! -f "$cache_file" || test -h "$cache_file"; then
12317 cat confcache >"$cache_file"
12318 else
12319 case $cache_file in #(
12320 */* | ?:*)
12321 mv -f confcache "$cache_file"$$ &&
12322 mv -f "$cache_file"$$ "$cache_file" ;; #(
12323 *)
12324 mv -f confcache "$cache_file" ;;
12325 esac
12326 fi
12327 fi
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12330 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12331 fi
12332 fi
12333 rm -f confcache
12334
12335 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12336 # Let make expand exec_prefix.
12337 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12338
12339 DEFS=-DHAVE_CONFIG_H
12340
12341 ac_libobjs=
12342 ac_ltlibobjs=
12343 U=
12344 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12345 # 1. Remove the extension, and $U if already installed.
12346 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12347 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12348 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12349 # will be set to the directory where LIBOBJS objects are built.
12350 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12351 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12352 done
12353 LIBOBJS=$ac_libobjs
12354
12355 LTLIBOBJS=$ac_ltlibobjs
12356
12357
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12359 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12360 if test -n "$am_sleep_pid"; then
12361 # Hide warnings about reused PIDs.
12362 wait $am_sleep_pid 2>/dev/null
12363 fi
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12365 $as_echo "done" >&6; }
12366 if test -n "$EXEEXT"; then
12367 am__EXEEXT_TRUE=
12368 am__EXEEXT_FALSE='#'
12369 else
12370 am__EXEEXT_TRUE='#'
12371 am__EXEEXT_FALSE=
12372 fi
12373
12374 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12375 as_fn_error $? "conditional \"AMDEP\" was never defined.
12376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12377 fi
12378 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12379 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12381 fi
12382 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
12383 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
12384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12385 fi
12386
12387 : "${CONFIG_STATUS=./config.status}"
12388 ac_write_fail=0
12389 ac_clean_files_save=$ac_clean_files
12390 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12392 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12393 as_write_fail=0
12394 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12395 #! $SHELL
12396 # Generated by $as_me.
12397 # Run this file to recreate the current configuration.
12398 # Compiler output produced by configure, useful for debugging
12399 # configure, is in config.log if it exists.
12400
12401 debug=false
12402 ac_cs_recheck=false
12403 ac_cs_silent=false
12404
12405 SHELL=\${CONFIG_SHELL-$SHELL}
12406 export SHELL
12407 _ASEOF
12408 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12409 ## -------------------- ##
12410 ## M4sh Initialization. ##
12411 ## -------------------- ##
12412
12413 # Be more Bourne compatible
12414 DUALCASE=1; export DUALCASE # for MKS sh
12415 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12416 emulate sh
12417 NULLCMD=:
12418 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12419 # is contrary to our usage. Disable this feature.
12420 alias -g '${1+"$@"}'='"$@"'
12421 setopt NO_GLOB_SUBST
12422 else
12423 case `(set -o) 2>/dev/null` in #(
12424 *posix*) :
12425 set -o posix ;; #(
12426 *) :
12427 ;;
12428 esac
12429 fi
12430
12431
12432 as_nl='
12433 '
12434 export as_nl
12435 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12436 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12437 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12438 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12439 # Prefer a ksh shell builtin over an external printf program on Solaris,
12440 # but without wasting forks for bash or zsh.
12441 if test -z "$BASH_VERSION$ZSH_VERSION" \
12442 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12443 as_echo='print -r --'
12444 as_echo_n='print -rn --'
12445 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12446 as_echo='printf %s\n'
12447 as_echo_n='printf %s'
12448 else
12449 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12450 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12451 as_echo_n='/usr/ucb/echo -n'
12452 else
12453 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12454 as_echo_n_body='eval
12455 arg=$1;
12456 case $arg in #(
12457 *"$as_nl"*)
12458 expr "X$arg" : "X\\(.*\\)$as_nl";
12459 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12460 esac;
12461 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12462 '
12463 export as_echo_n_body
12464 as_echo_n='sh -c $as_echo_n_body as_echo'
12465 fi
12466 export as_echo_body
12467 as_echo='sh -c $as_echo_body as_echo'
12468 fi
12469
12470 # The user is always right.
12471 if test "${PATH_SEPARATOR+set}" != set; then
12472 PATH_SEPARATOR=:
12473 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12474 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12475 PATH_SEPARATOR=';'
12476 }
12477 fi
12478
12479
12480 # IFS
12481 # We need space, tab and new line, in precisely that order. Quoting is
12482 # there to prevent editors from complaining about space-tab.
12483 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12484 # splitting by setting IFS to empty value.)
12485 IFS=" "" $as_nl"
12486
12487 # Find who we are. Look in the path if we contain no directory separator.
12488 as_myself=
12489 case $0 in #((
12490 *[\\/]* ) as_myself=$0 ;;
12491 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12493 do
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
12496 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12497 done
12498 IFS=$as_save_IFS
12499
12500 ;;
12501 esac
12502 # We did not find ourselves, most probably we were run as `sh COMMAND'
12503 # in which case we are not to be found in the path.
12504 if test "x$as_myself" = x; then
12505 as_myself=$0
12506 fi
12507 if test ! -f "$as_myself"; then
12508 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12509 exit 1
12510 fi
12511
12512 # Unset variables that we do not need and which cause bugs (e.g. in
12513 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12514 # suppresses any "Segmentation fault" message there. '((' could
12515 # trigger a bug in pdksh 5.2.14.
12516 for as_var in BASH_ENV ENV MAIL MAILPATH
12517 do eval test x\${$as_var+set} = xset \
12518 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12519 done
12520 PS1='$ '
12521 PS2='> '
12522 PS4='+ '
12523
12524 # NLS nuisances.
12525 LC_ALL=C
12526 export LC_ALL
12527 LANGUAGE=C
12528 export LANGUAGE
12529
12530 # CDPATH.
12531 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12532
12533
12534 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12535 # ----------------------------------------
12536 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12537 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12538 # script with STATUS, using 1 if that was 0.
12539 as_fn_error ()
12540 {
12541 as_status=$1; test $as_status -eq 0 && as_status=1
12542 if test "$4"; then
12543 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12544 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12545 fi
12546 $as_echo "$as_me: error: $2" >&2
12547 as_fn_exit $as_status
12548 } # as_fn_error
12549
12550
12551 # as_fn_set_status STATUS
12552 # -----------------------
12553 # Set $? to STATUS, without forking.
12554 as_fn_set_status ()
12555 {
12556 return $1
12557 } # as_fn_set_status
12558
12559 # as_fn_exit STATUS
12560 # -----------------
12561 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12562 as_fn_exit ()
12563 {
12564 set +e
12565 as_fn_set_status $1
12566 exit $1
12567 } # as_fn_exit
12568
12569 # as_fn_unset VAR
12570 # ---------------
12571 # Portably unset VAR.
12572 as_fn_unset ()
12573 {
12574 { eval $1=; unset $1;}
12575 }
12576 as_unset=as_fn_unset
12577 # as_fn_append VAR VALUE
12578 # ----------------------
12579 # Append the text in VALUE to the end of the definition contained in VAR. Take
12580 # advantage of any shell optimizations that allow amortized linear growth over
12581 # repeated appends, instead of the typical quadratic growth present in naive
12582 # implementations.
12583 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12584 eval 'as_fn_append ()
12585 {
12586 eval $1+=\$2
12587 }'
12588 else
12589 as_fn_append ()
12590 {
12591 eval $1=\$$1\$2
12592 }
12593 fi # as_fn_append
12594
12595 # as_fn_arith ARG...
12596 # ------------------
12597 # Perform arithmetic evaluation on the ARGs, and store the result in the
12598 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12599 # must be portable across $(()) and expr.
12600 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12601 eval 'as_fn_arith ()
12602 {
12603 as_val=$(( $* ))
12604 }'
12605 else
12606 as_fn_arith ()
12607 {
12608 as_val=`expr "$@" || test $? -eq 1`
12609 }
12610 fi # as_fn_arith
12611
12612
12613 if expr a : '\(a\)' >/dev/null 2>&1 &&
12614 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12615 as_expr=expr
12616 else
12617 as_expr=false
12618 fi
12619
12620 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12621 as_basename=basename
12622 else
12623 as_basename=false
12624 fi
12625
12626 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12627 as_dirname=dirname
12628 else
12629 as_dirname=false
12630 fi
12631
12632 as_me=`$as_basename -- "$0" ||
12633 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12634 X"$0" : 'X\(//\)$' \| \
12635 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12636 $as_echo X/"$0" |
12637 sed '/^.*\/\([^/][^/]*\)\/*$/{
12638 s//\1/
12639 q
12640 }
12641 /^X\/\(\/\/\)$/{
12642 s//\1/
12643 q
12644 }
12645 /^X\/\(\/\).*/{
12646 s//\1/
12647 q
12648 }
12649 s/.*/./; q'`
12650
12651 # Avoid depending upon Character Ranges.
12652 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12653 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12654 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12655 as_cr_digits='0123456789'
12656 as_cr_alnum=$as_cr_Letters$as_cr_digits
12657
12658 ECHO_C= ECHO_N= ECHO_T=
12659 case `echo -n x` in #(((((
12660 -n*)
12661 case `echo 'xy\c'` in
12662 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12663 xy) ECHO_C='\c';;
12664 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12665 ECHO_T=' ';;
12666 esac;;
12667 *)
12668 ECHO_N='-n';;
12669 esac
12670
12671 rm -f conf$$ conf$$.exe conf$$.file
12672 if test -d conf$$.dir; then
12673 rm -f conf$$.dir/conf$$.file
12674 else
12675 rm -f conf$$.dir
12676 mkdir conf$$.dir 2>/dev/null
12677 fi
12678 if (echo >conf$$.file) 2>/dev/null; then
12679 if ln -s conf$$.file conf$$ 2>/dev/null; then
12680 as_ln_s='ln -s'
12681 # ... but there are two gotchas:
12682 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12683 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12684 # In both cases, we have to default to `cp -pR'.
12685 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12686 as_ln_s='cp -pR'
12687 elif ln conf$$.file conf$$ 2>/dev/null; then
12688 as_ln_s=ln
12689 else
12690 as_ln_s='cp -pR'
12691 fi
12692 else
12693 as_ln_s='cp -pR'
12694 fi
12695 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12696 rmdir conf$$.dir 2>/dev/null
12697
12698
12699 # as_fn_mkdir_p
12700 # -------------
12701 # Create "$as_dir" as a directory, including parents if necessary.
12702 as_fn_mkdir_p ()
12703 {
12704
12705 case $as_dir in #(
12706 -*) as_dir=./$as_dir;;
12707 esac
12708 test -d "$as_dir" || eval $as_mkdir_p || {
12709 as_dirs=
12710 while :; do
12711 case $as_dir in #(
12712 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12713 *) as_qdir=$as_dir;;
12714 esac
12715 as_dirs="'$as_qdir' $as_dirs"
12716 as_dir=`$as_dirname -- "$as_dir" ||
12717 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12718 X"$as_dir" : 'X\(//\)[^/]' \| \
12719 X"$as_dir" : 'X\(//\)$' \| \
12720 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12721 $as_echo X"$as_dir" |
12722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12723 s//\1/
12724 q
12725 }
12726 /^X\(\/\/\)[^/].*/{
12727 s//\1/
12728 q
12729 }
12730 /^X\(\/\/\)$/{
12731 s//\1/
12732 q
12733 }
12734 /^X\(\/\).*/{
12735 s//\1/
12736 q
12737 }
12738 s/.*/./; q'`
12739 test -d "$as_dir" && break
12740 done
12741 test -z "$as_dirs" || eval "mkdir $as_dirs"
12742 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12743
12744
12745 } # as_fn_mkdir_p
12746 if mkdir -p . 2>/dev/null; then
12747 as_mkdir_p='mkdir -p "$as_dir"'
12748 else
12749 test -d ./-p && rmdir ./-p
12750 as_mkdir_p=false
12751 fi
12752
12753
12754 # as_fn_executable_p FILE
12755 # -----------------------
12756 # Test if FILE is an executable regular file.
12757 as_fn_executable_p ()
12758 {
12759 test -f "$1" && test -x "$1"
12760 } # as_fn_executable_p
12761 as_test_x='test -x'
12762 as_executable_p=as_fn_executable_p
12763
12764 # Sed expression to map a string onto a valid CPP name.
12765 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12766
12767 # Sed expression to map a string onto a valid variable name.
12768 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12769
12770
12771 exec 6>&1
12772 ## ----------------------------------- ##
12773 ## Main body of $CONFIG_STATUS script. ##
12774 ## ----------------------------------- ##
12775 _ASEOF
12776 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12777
12778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12779 # Save the log message, to keep $0 and so on meaningful, and to
12780 # report actual input values of CONFIG_FILES etc. instead of their
12781 # values after options handling.
12782 ac_log="
12783 This file was extended by NASPRO Bridge it $as_me 0.5.1, which was
12784 generated by GNU Autoconf 2.69. Invocation command line was
12785
12786 CONFIG_FILES = $CONFIG_FILES
12787 CONFIG_HEADERS = $CONFIG_HEADERS
12788 CONFIG_LINKS = $CONFIG_LINKS
12789 CONFIG_COMMANDS = $CONFIG_COMMANDS
12790 $ $0 $@
12791
12792 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12793 "
12794
12795 _ACEOF
12796
12797 case $ac_config_files in *"
12798 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12799 esac
12800
12801 case $ac_config_headers in *"
12802 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12803 esac
12804
12805
12806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12807 # Files that config.status was made for.
12808 config_files="$ac_config_files"
12809 config_headers="$ac_config_headers"
12810 config_commands="$ac_config_commands"
12811
12812 _ACEOF
12813
12814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12815 ac_cs_usage="\
12816 \`$as_me' instantiates files and other configuration actions
12817 from templates according to the current configuration. Unless the files
12818 and actions are specified as TAGs, all are instantiated by default.
12819
12820 Usage: $0 [OPTION]... [TAG]...
12821
12822 -h, --help print this help, then exit
12823 -V, --version print version number and configuration settings, then exit
12824 --config print configuration, then exit
12825 -q, --quiet, --silent
12826 do not print progress messages
12827 -d, --debug don't remove temporary files
12828 --recheck update $as_me by reconfiguring in the same conditions
12829 --file=FILE[:TEMPLATE]
12830 instantiate the configuration file FILE
12831 --header=FILE[:TEMPLATE]
12832 instantiate the configuration header FILE
12833
12834 Configuration files:
12835 $config_files
12836
12837 Configuration headers:
12838 $config_headers
12839
12840 Configuration commands:
12841 $config_commands
12842
12843 Report bugs to <[email protected]>."
12844
12845 _ACEOF
12846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12847 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12848 ac_cs_version="\\
12849 NASPRO Bridge it config.status 0.5.1
12850 configured by $0, generated by GNU Autoconf 2.69,
12851 with options \\"\$ac_cs_config\\"
12852
12853 Copyright (C) 2012 Free Software Foundation, Inc.
12854 This config.status script is free software; the Free Software Foundation
12855 gives unlimited permission to copy, distribute and modify it."
12856
12857 ac_pwd='$ac_pwd'
12858 srcdir='$srcdir'
12859 INSTALL='$INSTALL'
12860 MKDIR_P='$MKDIR_P'
12861 AWK='$AWK'
12862 test -n "\$AWK" || AWK=awk
12863 _ACEOF
12864
12865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12866 # The default lists apply if the user does not specify any file.
12867 ac_need_defaults=:
12868 while test $# != 0
12869 do
12870 case $1 in
12871 --*=?*)
12872 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12873 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12874 ac_shift=:
12875 ;;
12876 --*=)
12877 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12878 ac_optarg=
12879 ac_shift=:
12880 ;;
12881 *)
12882 ac_option=$1
12883 ac_optarg=$2
12884 ac_shift=shift
12885 ;;
12886 esac
12887
12888 case $ac_option in
12889 # Handling of the options.
12890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12891 ac_cs_recheck=: ;;
12892 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12893 $as_echo "$ac_cs_version"; exit ;;
12894 --config | --confi | --conf | --con | --co | --c )
12895 $as_echo "$ac_cs_config"; exit ;;
12896 --debug | --debu | --deb | --de | --d | -d )
12897 debug=: ;;
12898 --file | --fil | --fi | --f )
12899 $ac_shift
12900 case $ac_optarg in
12901 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12902 '') as_fn_error $? "missing file argument" ;;
12903 esac
12904 as_fn_append CONFIG_FILES " '$ac_optarg'"
12905 ac_need_defaults=false;;
12906 --header | --heade | --head | --hea )
12907 $ac_shift
12908 case $ac_optarg in
12909 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12910 esac
12911 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12912 ac_need_defaults=false;;
12913 --he | --h)
12914 # Conflict between --help and --header
12915 as_fn_error $? "ambiguous option: \`$1'
12916 Try \`$0 --help' for more information.";;
12917 --help | --hel | -h )
12918 $as_echo "$ac_cs_usage"; exit ;;
12919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12920 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12921 ac_cs_silent=: ;;
12922
12923 # This is an error.
12924 -*) as_fn_error $? "unrecognized option: \`$1'
12925 Try \`$0 --help' for more information." ;;
12926
12927 *) as_fn_append ac_config_targets " $1"
12928 ac_need_defaults=false ;;
12929
12930 esac
12931 shift
12932 done
12933
12934 ac_configure_extra_args=
12935
12936 if $ac_cs_silent; then
12937 exec 6>/dev/null
12938 ac_configure_extra_args="$ac_configure_extra_args --silent"
12939 fi
12940
12941 _ACEOF
12942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12943 if \$ac_cs_recheck; then
12944 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12945 shift
12946 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12947 CONFIG_SHELL='$SHELL'
12948 export CONFIG_SHELL
12949 exec "\$@"
12950 fi
12951
12952 _ACEOF
12953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12954 exec 5>>config.log
12955 {
12956 echo
12957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12958 ## Running $as_me. ##
12959 _ASBOX
12960 $as_echo "$ac_log"
12961 } >&5
12962
12963 _ACEOF
12964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12965 #
12966 # INIT-COMMANDS
12967 #
12968 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12969
12970
12971 # The HP-UX ksh and POSIX shell print the target directory to stdout
12972 # if CDPATH is set.
12973 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12974
12975 sed_quote_subst='$sed_quote_subst'
12976 double_quote_subst='$double_quote_subst'
12977 delay_variable_subst='$delay_variable_subst'
12978 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12979 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12980 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12981 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12982 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12983 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12984 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12985 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12986 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12987 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12988 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12989 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12990 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12991 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12992 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12993 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12994 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12995 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12996 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12997 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12998 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12999 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13000 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13001 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13002 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13003 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13004 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13005 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13006 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13007 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13008 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13009 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13010 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13011 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13012 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13013 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13014 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13015 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13016 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13017 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13018 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13019 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13020 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13021 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13022 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13023 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13024 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13025 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13026 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13027 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13028 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13029 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13030 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13031 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13032 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13033 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13034 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13035 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"`'
13036 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13037 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13038 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13039 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13040 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13041 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13042 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13043 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13044 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13045 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13046 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13047 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13048 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13049 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13050 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13051 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13052 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13053 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13054 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13055 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13056 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13057 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13058 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13059 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13060 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13061 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13062 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13063 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13064 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13065 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13066 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13067 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13068 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13069 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13070 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13071 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13072 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13073 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13074 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13075 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13076 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13077 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13078 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13079 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13080 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13081 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13082 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13083 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13084 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13085 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13086 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13087 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13088 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13089 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13090 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13091 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13092 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13093 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13094 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13095 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13096 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13097 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13098 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13099 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13100 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13101 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13102 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13103 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13104 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13105 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13106 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13107 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13108 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13109
13110 LTCC='$LTCC'
13111 LTCFLAGS='$LTCFLAGS'
13112 compiler='$compiler_DEFAULT'
13113
13114 # A function that is used when there is no print builtin or printf.
13115 func_fallback_echo ()
13116 {
13117 eval 'cat <<_LTECHO_EOF
13118 \$1
13119 _LTECHO_EOF'
13120 }
13121
13122 # Quote evaled strings.
13123 for var in AS \
13124 DLLTOOL \
13125 OBJDUMP \
13126 SHELL \
13127 ECHO \
13128 PATH_SEPARATOR \
13129 SED \
13130 GREP \
13131 EGREP \
13132 FGREP \
13133 LD \
13134 NM \
13135 LN_S \
13136 lt_SP2NL \
13137 lt_NL2SP \
13138 reload_flag \
13139 deplibs_check_method \
13140 file_magic_cmd \
13141 file_magic_glob \
13142 want_nocaseglob \
13143 sharedlib_from_linklib_cmd \
13144 AR \
13145 AR_FLAGS \
13146 archiver_list_spec \
13147 STRIP \
13148 RANLIB \
13149 CC \
13150 CFLAGS \
13151 compiler \
13152 lt_cv_sys_global_symbol_pipe \
13153 lt_cv_sys_global_symbol_to_cdecl \
13154 lt_cv_sys_global_symbol_to_c_name_address \
13155 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13156 nm_file_list_spec \
13157 lt_prog_compiler_no_builtin_flag \
13158 lt_prog_compiler_pic \
13159 lt_prog_compiler_wl \
13160 lt_prog_compiler_static \
13161 lt_cv_prog_compiler_c_o \
13162 need_locks \
13163 MANIFEST_TOOL \
13164 DSYMUTIL \
13165 NMEDIT \
13166 LIPO \
13167 OTOOL \
13168 OTOOL64 \
13169 shrext_cmds \
13170 export_dynamic_flag_spec \
13171 whole_archive_flag_spec \
13172 compiler_needs_object \
13173 with_gnu_ld \
13174 allow_undefined_flag \
13175 no_undefined_flag \
13176 hardcode_libdir_flag_spec \
13177 hardcode_libdir_separator \
13178 exclude_expsyms \
13179 include_expsyms \
13180 file_list_spec \
13181 variables_saved_for_relink \
13182 libname_spec \
13183 library_names_spec \
13184 soname_spec \
13185 install_override_mode \
13186 finish_eval \
13187 old_striplib \
13188 striplib; do
13189 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13190 *[\\\\\\\`\\"\\\$]*)
13191 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13192 ;;
13193 *)
13194 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13195 ;;
13196 esac
13197 done
13198
13199 # Double-quote double-evaled strings.
13200 for var in reload_cmds \
13201 old_postinstall_cmds \
13202 old_postuninstall_cmds \
13203 old_archive_cmds \
13204 extract_expsyms_cmds \
13205 old_archive_from_new_cmds \
13206 old_archive_from_expsyms_cmds \
13207 archive_cmds \
13208 archive_expsym_cmds \
13209 module_cmds \
13210 module_expsym_cmds \
13211 export_symbols_cmds \
13212 prelink_cmds \
13213 postlink_cmds \
13214 postinstall_cmds \
13215 postuninstall_cmds \
13216 finish_cmds \
13217 sys_lib_search_path_spec \
13218 sys_lib_dlsearch_path_spec; do
13219 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13220 *[\\\\\\\`\\"\\\$]*)
13221 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13222 ;;
13223 *)
13224 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13225 ;;
13226 esac
13227 done
13228
13229 ac_aux_dir='$ac_aux_dir'
13230 xsi_shell='$xsi_shell'
13231 lt_shell_append='$lt_shell_append'
13232
13233 # See if we are running on zsh, and set the options which allow our
13234 # commands through without removal of \ escapes INIT.
13235 if test -n "\${ZSH_VERSION+set}" ; then
13236 setopt NO_GLOB_SUBST
13237 fi
13238
13239
13240 PACKAGE='$PACKAGE'
13241 VERSION='$VERSION'
13242 TIMESTAMP='$TIMESTAMP'
13243 RM='$RM'
13244 ofile='$ofile'
13245
13246
13247
13248
13249 _ACEOF
13250
13251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13252
13253 # Handling of arguments.
13254 for ac_config_target in $ac_config_targets
13255 do
13256 case $ac_config_target in
13257 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13258 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13259 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13260 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13261 "nabrit-3.pc") CONFIG_FILES="$CONFIG_FILES nabrit-3.pc" ;;
13262 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13263 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13264 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13265
13266 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13267 esac
13268 done
13269
13270
13271 # If the user did not use the arguments to specify the items to instantiate,
13272 # then the envvar interface is used. Set only those that are not.
13273 # We use the long form for the default assignment because of an extremely
13274 # bizarre bug on SunOS 4.1.3.
13275 if $ac_need_defaults; then
13276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13279 fi
13280
13281 # Have a temporary directory for convenience. Make it in the build tree
13282 # simply because there is no reason against having it here, and in addition,
13283 # creating and moving files from /tmp can sometimes cause problems.
13284 # Hook for its removal unless debugging.
13285 # Note that there is a small window in which the directory will not be cleaned:
13286 # after its creation but before its name has been assigned to `$tmp'.
13287 $debug ||
13288 {
13289 tmp= ac_tmp=
13290 trap 'exit_status=$?
13291 : "${ac_tmp:=$tmp}"
13292 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13293 ' 0
13294 trap 'as_fn_exit 1' 1 2 13 15
13295 }
13296 # Create a (secure) tmp directory for tmp files.
13297
13298 {
13299 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13300 test -d "$tmp"
13301 } ||
13302 {
13303 tmp=./conf$$-$RANDOM
13304 (umask 077 && mkdir "$tmp")
13305 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13306 ac_tmp=$tmp
13307
13308 # Set up the scripts for CONFIG_FILES section.
13309 # No need to generate them if there are no CONFIG_FILES.
13310 # This happens for instance with `./config.status config.h'.
13311 if test -n "$CONFIG_FILES"; then
13312
13313
13314 ac_cr=`echo X | tr X '\015'`
13315 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13316 # But we know of no other shell where ac_cr would be empty at this
13317 # point, so we can use a bashism as a fallback.
13318 if test "x$ac_cr" = x; then
13319 eval ac_cr=\$\'\\r\'
13320 fi
13321 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13322 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13323 ac_cs_awk_cr='\\r'
13324 else
13325 ac_cs_awk_cr=$ac_cr
13326 fi
13327
13328 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13329 _ACEOF
13330
13331
13332 {
13333 echo "cat >conf$$subs.awk <<_ACEOF" &&
13334 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13335 echo "_ACEOF"
13336 } >conf$$subs.sh ||
13337 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13338 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13339 ac_delim='%!_!# '
13340 for ac_last_try in false false false false false :; do
13341 . ./conf$$subs.sh ||
13342 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13343
13344 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13345 if test $ac_delim_n = $ac_delim_num; then
13346 break
13347 elif $ac_last_try; then
13348 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13349 else
13350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13351 fi
13352 done
13353 rm -f conf$$subs.sh
13354
13355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13356 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13357 _ACEOF
13358 sed -n '
13359 h
13360 s/^/S["/; s/!.*/"]=/
13361 p
13362 g
13363 s/^[^!]*!//
13364 :repl
13365 t repl
13366 s/'"$ac_delim"'$//
13367 t delim
13368 :nl
13369 h
13370 s/\(.\{148\}\)..*/\1/
13371 t more1
13372 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13373 p
13374 n
13375 b repl
13376 :more1
13377 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13378 p
13379 g
13380 s/.\{148\}//
13381 t nl
13382 :delim
13383 h
13384 s/\(.\{148\}\)..*/\1/
13385 t more2
13386 s/["\\]/\\&/g; s/^/"/; s/$/"/
13387 p
13388 b
13389 :more2
13390 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13391 p
13392 g
13393 s/.\{148\}//
13394 t delim
13395 ' <conf$$subs.awk | sed '
13396 /^[^""]/{
13397 N
13398 s/\n//
13399 }
13400 ' >>$CONFIG_STATUS || ac_write_fail=1
13401 rm -f conf$$subs.awk
13402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13403 _ACAWK
13404 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13405 for (key in S) S_is_set[key] = 1
13406 FS = ""
13407
13408 }
13409 {
13410 line = $ 0
13411 nfields = split(line, field, "@")
13412 substed = 0
13413 len = length(field[1])
13414 for (i = 2; i < nfields; i++) {
13415 key = field[i]
13416 keylen = length(key)
13417 if (S_is_set[key]) {
13418 value = S[key]
13419 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13420 len += length(value) + length(field[++i])
13421 substed = 1
13422 } else
13423 len += 1 + keylen
13424 }
13425
13426 print line
13427 }
13428
13429 _ACAWK
13430 _ACEOF
13431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13432 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13433 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13434 else
13435 cat
13436 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13437 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13438 _ACEOF
13439
13440 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13441 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13442 # trailing colons and then remove the whole line if VPATH becomes empty
13443 # (actually we leave an empty line to preserve line numbers).
13444 if test "x$srcdir" = x.; then
13445 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13446 h
13447 s///
13448 s/^/:/
13449 s/[ ]*$/:/
13450 s/:\$(srcdir):/:/g
13451 s/:\${srcdir}:/:/g
13452 s/:@srcdir@:/:/g
13453 s/^:*//
13454 s/:*$//
13455 x
13456 s/\(=[ ]*\).*/\1/
13457 G
13458 s/\n//
13459 s/^[^=]*=[ ]*$//
13460 }'
13461 fi
13462
13463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13464 fi # test -n "$CONFIG_FILES"
13465
13466 # Set up the scripts for CONFIG_HEADERS section.
13467 # No need to generate them if there are no CONFIG_HEADERS.
13468 # This happens for instance with `./config.status Makefile'.
13469 if test -n "$CONFIG_HEADERS"; then
13470 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13471 BEGIN {
13472 _ACEOF
13473
13474 # Transform confdefs.h into an awk script `defines.awk', embedded as
13475 # here-document in config.status, that substitutes the proper values into
13476 # config.h.in to produce config.h.
13477
13478 # Create a delimiter string that does not exist in confdefs.h, to ease
13479 # handling of long lines.
13480 ac_delim='%!_!# '
13481 for ac_last_try in false false :; do
13482 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13483 if test -z "$ac_tt"; then
13484 break
13485 elif $ac_last_try; then
13486 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13487 else
13488 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13489 fi
13490 done
13491
13492 # For the awk script, D is an array of macro values keyed by name,
13493 # likewise P contains macro parameters if any. Preserve backslash
13494 # newline sequences.
13495
13496 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13497 sed -n '
13498 s/.\{148\}/&'"$ac_delim"'/g
13499 t rset
13500 :rset
13501 s/^[ ]*#[ ]*define[ ][ ]*/ /
13502 t def
13503 d
13504 :def
13505 s/\\$//
13506 t bsnl
13507 s/["\\]/\\&/g
13508 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13509 D["\1"]=" \3"/p
13510 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13511 d
13512 :bsnl
13513 s/["\\]/\\&/g
13514 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13515 D["\1"]=" \3\\\\\\n"\\/p
13516 t cont
13517 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13518 t cont
13519 d
13520 :cont
13521 n
13522 s/.\{148\}/&'"$ac_delim"'/g
13523 t clear
13524 :clear
13525 s/\\$//
13526 t bsnlc
13527 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13528 d
13529 :bsnlc
13530 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13531 b cont
13532 ' <confdefs.h | sed '
13533 s/'"$ac_delim"'/"\\\
13534 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13535
13536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13537 for (key in D) D_is_set[key] = 1
13538 FS = ""
13539 }
13540 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13541 line = \$ 0
13542 split(line, arg, " ")
13543 if (arg[1] == "#") {
13544 defundef = arg[2]
13545 mac1 = arg[3]
13546 } else {
13547 defundef = substr(arg[1], 2)
13548 mac1 = arg[2]
13549 }
13550 split(mac1, mac2, "(") #)
13551 macro = mac2[1]
13552 prefix = substr(line, 1, index(line, defundef) - 1)
13553 if (D_is_set[macro]) {
13554 # Preserve the white space surrounding the "#".
13555 print prefix "define", macro P[macro] D[macro]
13556 next
13557 } else {
13558 # Replace #undef with comments. This is necessary, for example,
13559 # in the case of _POSIX_SOURCE, which is predefined and required
13560 # on some systems where configure will not decide to define it.
13561 if (defundef == "undef") {
13562 print "/*", prefix defundef, macro, "*/"
13563 next
13564 }
13565 }
13566 }
13567 { print }
13568 _ACAWK
13569 _ACEOF
13570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13571 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13572 fi # test -n "$CONFIG_HEADERS"
13573
13574
13575 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13576 shift
13577 for ac_tag
13578 do
13579 case $ac_tag in
13580 :[FHLC]) ac_mode=$ac_tag; continue;;
13581 esac
13582 case $ac_mode$ac_tag in
13583 :[FHL]*:*);;
13584 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13585 :[FH]-) ac_tag=-:-;;
13586 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13587 esac
13588 ac_save_IFS=$IFS
13589 IFS=:
13590 set x $ac_tag
13591 IFS=$ac_save_IFS
13592 shift
13593 ac_file=$1
13594 shift
13595
13596 case $ac_mode in
13597 :L) ac_source=$1;;
13598 :[FH])
13599 ac_file_inputs=
13600 for ac_f
13601 do
13602 case $ac_f in
13603 -) ac_f="$ac_tmp/stdin";;
13604 *) # Look for the file first in the build tree, then in the source tree
13605 # (if the path is not absolute). The absolute path cannot be DOS-style,
13606 # because $ac_f cannot contain `:'.
13607 test -f "$ac_f" ||
13608 case $ac_f in
13609 [\\/$]*) false;;
13610 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13611 esac ||
13612 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13613 esac
13614 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13615 as_fn_append ac_file_inputs " '$ac_f'"
13616 done
13617
13618 # Let's still pretend it is `configure' which instantiates (i.e., don't
13619 # use $as_me), people would be surprised to read:
13620 # /* config.h. Generated by config.status. */
13621 configure_input='Generated from '`
13622 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13623 `' by configure.'
13624 if test x"$ac_file" != x-; then
13625 configure_input="$ac_file. $configure_input"
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13627 $as_echo "$as_me: creating $ac_file" >&6;}
13628 fi
13629 # Neutralize special characters interpreted by sed in replacement strings.
13630 case $configure_input in #(
13631 *\&* | *\|* | *\\* )
13632 ac_sed_conf_input=`$as_echo "$configure_input" |
13633 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13634 *) ac_sed_conf_input=$configure_input;;
13635 esac
13636
13637 case $ac_tag in
13638 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13640 esac
13641 ;;
13642 esac
13643
13644 ac_dir=`$as_dirname -- "$ac_file" ||
13645 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13646 X"$ac_file" : 'X\(//\)[^/]' \| \
13647 X"$ac_file" : 'X\(//\)$' \| \
13648 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13649 $as_echo X"$ac_file" |
13650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13651 s//\1/
13652 q
13653 }
13654 /^X\(\/\/\)[^/].*/{
13655 s//\1/
13656 q
13657 }
13658 /^X\(\/\/\)$/{
13659 s//\1/
13660 q
13661 }
13662 /^X\(\/\).*/{
13663 s//\1/
13664 q
13665 }
13666 s/.*/./; q'`
13667 as_dir="$ac_dir"; as_fn_mkdir_p
13668 ac_builddir=.
13669
13670 case "$ac_dir" in
13671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13672 *)
13673 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13674 # A ".." for each directory in $ac_dir_suffix.
13675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13676 case $ac_top_builddir_sub in
13677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13679 esac ;;
13680 esac
13681 ac_abs_top_builddir=$ac_pwd
13682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13683 # for backward compatibility:
13684 ac_top_builddir=$ac_top_build_prefix
13685
13686 case $srcdir in
13687 .) # We are building in place.
13688 ac_srcdir=.
13689 ac_top_srcdir=$ac_top_builddir_sub
13690 ac_abs_top_srcdir=$ac_pwd ;;
13691 [\\/]* | ?:[\\/]* ) # Absolute name.
13692 ac_srcdir=$srcdir$ac_dir_suffix;
13693 ac_top_srcdir=$srcdir
13694 ac_abs_top_srcdir=$srcdir ;;
13695 *) # Relative name.
13696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13697 ac_top_srcdir=$ac_top_build_prefix$srcdir
13698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13699 esac
13700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13701
13702
13703 case $ac_mode in
13704 :F)
13705 #
13706 # CONFIG_FILE
13707 #
13708
13709 case $INSTALL in
13710 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13711 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13712 esac
13713 ac_MKDIR_P=$MKDIR_P
13714 case $MKDIR_P in
13715 [\\/$]* | ?:[\\/]* ) ;;
13716 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13717 esac
13718 _ACEOF
13719
13720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13721 # If the template does not know about datarootdir, expand it.
13722 # FIXME: This hack should be removed a few years after 2.60.
13723 ac_datarootdir_hack=; ac_datarootdir_seen=
13724 ac_sed_dataroot='
13725 /datarootdir/ {
13726 p
13727 q
13728 }
13729 /@datadir@/p
13730 /@docdir@/p
13731 /@infodir@/p
13732 /@localedir@/p
13733 /@mandir@/p'
13734 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13735 *datarootdir*) ac_datarootdir_seen=yes;;
13736 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13738 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13739 _ACEOF
13740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13741 ac_datarootdir_hack='
13742 s&@datadir@&$datadir&g
13743 s&@docdir@&$docdir&g
13744 s&@infodir@&$infodir&g
13745 s&@localedir@&$localedir&g
13746 s&@mandir@&$mandir&g
13747 s&\\\${datarootdir}&$datarootdir&g' ;;
13748 esac
13749 _ACEOF
13750
13751 # Neutralize VPATH when `$srcdir' = `.'.
13752 # Shell code in configure.ac might set extrasub.
13753 # FIXME: do we really want to maintain this feature?
13754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13755 ac_sed_extra="$ac_vpsub
13756 $extrasub
13757 _ACEOF
13758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13759 :t
13760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13761 s|@configure_input@|$ac_sed_conf_input|;t t
13762 s&@top_builddir@&$ac_top_builddir_sub&;t t
13763 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13764 s&@srcdir@&$ac_srcdir&;t t
13765 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13766 s&@top_srcdir@&$ac_top_srcdir&;t t
13767 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13768 s&@builddir@&$ac_builddir&;t t
13769 s&@abs_builddir@&$ac_abs_builddir&;t t
13770 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13771 s&@INSTALL@&$ac_INSTALL&;t t
13772 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13773 $ac_datarootdir_hack
13774 "
13775 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13776 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13777
13778 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13779 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13780 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13781 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13783 which seems to be undefined. Please make sure it is defined" >&5
13784 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13785 which seems to be undefined. Please make sure it is defined" >&2;}
13786
13787 rm -f "$ac_tmp/stdin"
13788 case $ac_file in
13789 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13790 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13791 esac \
13792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13793 ;;
13794 :H)
13795 #
13796 # CONFIG_HEADER
13797 #
13798 if test x"$ac_file" != x-; then
13799 {
13800 $as_echo "/* $configure_input */" \
13801 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13802 } >"$ac_tmp/config.h" \
13803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13804 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13806 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13807 else
13808 rm -f "$ac_file"
13809 mv "$ac_tmp/config.h" "$ac_file" \
13810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13811 fi
13812 else
13813 $as_echo "/* $configure_input */" \
13814 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13815 || as_fn_error $? "could not create -" "$LINENO" 5
13816 fi
13817 # Compute "$ac_file"'s index in $config_headers.
13818 _am_arg="$ac_file"
13819 _am_stamp_count=1
13820 for _am_header in $config_headers :; do
13821 case $_am_header in
13822 $_am_arg | $_am_arg:* )
13823 break ;;
13824 * )
13825 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13826 esac
13827 done
13828 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13829 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13830 X"$_am_arg" : 'X\(//\)[^/]' \| \
13831 X"$_am_arg" : 'X\(//\)$' \| \
13832 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13833 $as_echo X"$_am_arg" |
13834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13835 s//\1/
13836 q
13837 }
13838 /^X\(\/\/\)[^/].*/{
13839 s//\1/
13840 q
13841 }
13842 /^X\(\/\/\)$/{
13843 s//\1/
13844 q
13845 }
13846 /^X\(\/\).*/{
13847 s//\1/
13848 q
13849 }
13850 s/.*/./; q'`/stamp-h$_am_stamp_count
13851 ;;
13852
13853 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13854 $as_echo "$as_me: executing $ac_file commands" >&6;}
13855 ;;
13856 esac
13857
13858
13859 case $ac_file$ac_mode in
13860 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13861 # Older Autoconf quotes --file arguments for eval, but not when files
13862 # are listed without --file. Let's play safe and only enable the eval
13863 # if we detect the quoting.
13864 case $CONFIG_FILES in
13865 *\'*) eval set x "$CONFIG_FILES" ;;
13866 *) set x $CONFIG_FILES ;;
13867 esac
13868 shift
13869 for mf
13870 do
13871 # Strip MF so we end up with the name of the file.
13872 mf=`echo "$mf" | sed -e 's/:.*$//'`
13873 # Check whether this is an Automake generated Makefile or not.
13874 # We used to match only the files named 'Makefile.in', but
13875 # some people rename them; so instead we look at the file content.
13876 # Grep'ing the first line is not enough: some people post-process
13877 # each Makefile.in and add a new line on top of each file to say so.
13878 # Grep'ing the whole file is not good either: AIX grep has a line
13879 # limit of 2048, but all sed's we know have understand at least 4000.
13880 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13881 dirpart=`$as_dirname -- "$mf" ||
13882 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13883 X"$mf" : 'X\(//\)[^/]' \| \
13884 X"$mf" : 'X\(//\)$' \| \
13885 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13886 $as_echo X"$mf" |
13887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13888 s//\1/
13889 q
13890 }
13891 /^X\(\/\/\)[^/].*/{
13892 s//\1/
13893 q
13894 }
13895 /^X\(\/\/\)$/{
13896 s//\1/
13897 q
13898 }
13899 /^X\(\/\).*/{
13900 s//\1/
13901 q
13902 }
13903 s/.*/./; q'`
13904 else
13905 continue
13906 fi
13907 # Extract the definition of DEPDIR, am__include, and am__quote
13908 # from the Makefile without running 'make'.
13909 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13910 test -z "$DEPDIR" && continue
13911 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13912 test -z "$am__include" && continue
13913 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13914 # Find all dependency output files, they are included files with
13915 # $(DEPDIR) in their names. We invoke sed twice because it is the
13916 # simplest approach to changing $(DEPDIR) to its actual value in the
13917 # expansion.
13918 for file in `sed -n "
13919 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13920 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13921 # Make sure the directory exists.
13922 test -f "$dirpart/$file" && continue
13923 fdir=`$as_dirname -- "$file" ||
13924 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13925 X"$file" : 'X\(//\)[^/]' \| \
13926 X"$file" : 'X\(//\)$' \| \
13927 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13928 $as_echo X"$file" |
13929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13930 s//\1/
13931 q
13932 }
13933 /^X\(\/\/\)[^/].*/{
13934 s//\1/
13935 q
13936 }
13937 /^X\(\/\/\)$/{
13938 s//\1/
13939 q
13940 }
13941 /^X\(\/\).*/{
13942 s//\1/
13943 q
13944 }
13945 s/.*/./; q'`
13946 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13947 # echo "creating $dirpart/$file"
13948 echo '# dummy' > "$dirpart/$file"
13949 done
13950 done
13951 }
13952 ;;
13953 "libtool":C)
13954
13955 # See if we are running on zsh, and set the options which allow our
13956 # commands through without removal of \ escapes.
13957 if test -n "${ZSH_VERSION+set}" ; then
13958 setopt NO_GLOB_SUBST
13959 fi
13960
13961 cfgfile="${ofile}T"
13962 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13963 $RM "$cfgfile"
13964
13965 cat <<_LT_EOF >> "$cfgfile"
13966 #! $SHELL
13967
13968 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13969 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13971 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13972 #
13973 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13974 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13975 # Foundation, Inc.
13976 # Written by Gordon Matzigkeit, 1996
13977 #
13978 # This file is part of GNU Libtool.
13979 #
13980 # GNU Libtool is free software; you can redistribute it and/or
13981 # modify it under the terms of the GNU General Public License as
13982 # published by the Free Software Foundation; either version 2 of
13983 # the License, or (at your option) any later version.
13984 #
13985 # As a special exception to the GNU General Public License,
13986 # if you distribute this file as part of a program or library that
13987 # is built using GNU Libtool, you may include this file under the
13988 # same distribution terms that you use for the rest of that program.
13989 #
13990 # GNU Libtool is distributed in the hope that it will be useful,
13991 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13992 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13993 # GNU General Public License for more details.
13994 #
13995 # You should have received a copy of the GNU General Public License
13996 # along with GNU Libtool; see the file COPYING. If not, a copy
13997 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13998 # obtained by writing to the Free Software Foundation, Inc.,
13999 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14000
14001
14002 # The names of the tagged configurations supported by this script.
14003 available_tags=""
14004
14005 # ### BEGIN LIBTOOL CONFIG
14006
14007 # Assembler program.
14008 AS=$lt_AS
14009
14010 # DLL creation program.
14011 DLLTOOL=$lt_DLLTOOL
14012
14013 # Object dumper program.
14014 OBJDUMP=$lt_OBJDUMP
14015
14016 # Which release of libtool.m4 was used?
14017 macro_version=$macro_version
14018 macro_revision=$macro_revision
14019
14020 # Whether or not to build shared libraries.
14021 build_libtool_libs=$enable_shared
14022
14023 # Whether or not to build static libraries.
14024 build_old_libs=$enable_static
14025
14026 # What type of objects to build.
14027 pic_mode=$pic_mode
14028
14029 # Whether or not to optimize for fast installation.
14030 fast_install=$enable_fast_install
14031
14032 # Shell to use when invoking shell scripts.
14033 SHELL=$lt_SHELL
14034
14035 # An echo program that protects backslashes.
14036 ECHO=$lt_ECHO
14037
14038 # The PATH separator for the build system.
14039 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14040
14041 # The host system.
14042 host_alias=$host_alias
14043 host=$host
14044 host_os=$host_os
14045
14046 # The build system.
14047 build_alias=$build_alias
14048 build=$build
14049 build_os=$build_os
14050
14051 # A sed program that does not truncate output.
14052 SED=$lt_SED
14053
14054 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14055 Xsed="\$SED -e 1s/^X//"
14056
14057 # A grep program that handles long lines.
14058 GREP=$lt_GREP
14059
14060 # An ERE matcher.
14061 EGREP=$lt_EGREP
14062
14063 # A literal string matcher.
14064 FGREP=$lt_FGREP
14065
14066 # A BSD- or MS-compatible name lister.
14067 NM=$lt_NM
14068
14069 # Whether we need soft or hard links.
14070 LN_S=$lt_LN_S
14071
14072 # What is the maximum length of a command?
14073 max_cmd_len=$max_cmd_len
14074
14075 # Object file suffix (normally "o").
14076 objext=$ac_objext
14077
14078 # Executable file suffix (normally "").
14079 exeext=$exeext
14080
14081 # whether the shell understands "unset".
14082 lt_unset=$lt_unset
14083
14084 # turn spaces into newlines.
14085 SP2NL=$lt_lt_SP2NL
14086
14087 # turn newlines into spaces.
14088 NL2SP=$lt_lt_NL2SP
14089
14090 # convert \$build file names to \$host format.
14091 to_host_file_cmd=$lt_cv_to_host_file_cmd
14092
14093 # convert \$build files to toolchain format.
14094 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14095
14096 # Method to check whether dependent libraries are shared objects.
14097 deplibs_check_method=$lt_deplibs_check_method
14098
14099 # Command to use when deplibs_check_method = "file_magic".
14100 file_magic_cmd=$lt_file_magic_cmd
14101
14102 # How to find potential files when deplibs_check_method = "file_magic".
14103 file_magic_glob=$lt_file_magic_glob
14104
14105 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14106 want_nocaseglob=$lt_want_nocaseglob
14107
14108 # Command to associate shared and link libraries.
14109 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14110
14111 # The archiver.
14112 AR=$lt_AR
14113
14114 # Flags to create an archive.
14115 AR_FLAGS=$lt_AR_FLAGS
14116
14117 # How to feed a file listing to the archiver.
14118 archiver_list_spec=$lt_archiver_list_spec
14119
14120 # A symbol stripping program.
14121 STRIP=$lt_STRIP
14122
14123 # Commands used to install an old-style archive.
14124 RANLIB=$lt_RANLIB
14125 old_postinstall_cmds=$lt_old_postinstall_cmds
14126 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14127
14128 # Whether to use a lock for old archive extraction.
14129 lock_old_archive_extraction=$lock_old_archive_extraction
14130
14131 # A C compiler.
14132 LTCC=$lt_CC
14133
14134 # LTCC compiler flags.
14135 LTCFLAGS=$lt_CFLAGS
14136
14137 # Take the output of nm and produce a listing of raw symbols and C names.
14138 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14139
14140 # Transform the output of nm in a proper C declaration.
14141 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14142
14143 # Transform the output of nm in a C name address pair.
14144 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14145
14146 # Transform the output of nm in a C name address pair when lib prefix is needed.
14147 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14148
14149 # Specify filename containing input files for \$NM.
14150 nm_file_list_spec=$lt_nm_file_list_spec
14151
14152 # The root where to search for dependent libraries,and in which our libraries should be installed.
14153 lt_sysroot=$lt_sysroot
14154
14155 # The name of the directory that contains temporary libtool files.
14156 objdir=$objdir
14157
14158 # Used to examine libraries when file_magic_cmd begins with "file".
14159 MAGIC_CMD=$MAGIC_CMD
14160
14161 # Must we lock files when doing compilation?
14162 need_locks=$lt_need_locks
14163
14164 # Manifest tool.
14165 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14166
14167 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14168 DSYMUTIL=$lt_DSYMUTIL
14169
14170 # Tool to change global to local symbols on Mac OS X.
14171 NMEDIT=$lt_NMEDIT
14172
14173 # Tool to manipulate fat objects and archives on Mac OS X.
14174 LIPO=$lt_LIPO
14175
14176 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14177 OTOOL=$lt_OTOOL
14178
14179 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14180 OTOOL64=$lt_OTOOL64
14181
14182 # Old archive suffix (normally "a").
14183 libext=$libext
14184
14185 # Shared library suffix (normally ".so").
14186 shrext_cmds=$lt_shrext_cmds
14187
14188 # The commands to extract the exported symbol list from a shared archive.
14189 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14190
14191 # Variables whose values should be saved in libtool wrapper scripts and
14192 # restored at link time.
14193 variables_saved_for_relink=$lt_variables_saved_for_relink
14194
14195 # Do we need the "lib" prefix for modules?
14196 need_lib_prefix=$need_lib_prefix
14197
14198 # Do we need a version for libraries?
14199 need_version=$need_version
14200
14201 # Library versioning type.
14202 version_type=$version_type
14203
14204 # Shared library runtime path variable.
14205 runpath_var=$runpath_var
14206
14207 # Shared library path variable.
14208 shlibpath_var=$shlibpath_var
14209
14210 # Is shlibpath searched before the hard-coded library search path?
14211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14212
14213 # Format of library name prefix.
14214 libname_spec=$lt_libname_spec
14215
14216 # List of archive names. First name is the real one, the rest are links.
14217 # The last name is the one that the linker finds with -lNAME
14218 library_names_spec=$lt_library_names_spec
14219
14220 # The coded name of the library, if different from the real name.
14221 soname_spec=$lt_soname_spec
14222
14223 # Permission mode override for installation of shared libraries.
14224 install_override_mode=$lt_install_override_mode
14225
14226 # Command to use after installation of a shared archive.
14227 postinstall_cmds=$lt_postinstall_cmds
14228
14229 # Command to use after uninstallation of a shared archive.
14230 postuninstall_cmds=$lt_postuninstall_cmds
14231
14232 # Commands used to finish a libtool library installation in a directory.
14233 finish_cmds=$lt_finish_cmds
14234
14235 # As "finish_cmds", except a single script fragment to be evaled but
14236 # not shown.
14237 finish_eval=$lt_finish_eval
14238
14239 # Whether we should hardcode library paths into libraries.
14240 hardcode_into_libs=$hardcode_into_libs
14241
14242 # Compile-time system search path for libraries.
14243 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14244
14245 # Run-time system search path for libraries.
14246 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14247
14248 # Whether dlopen is supported.
14249 dlopen_support=$enable_dlopen
14250
14251 # Whether dlopen of programs is supported.
14252 dlopen_self=$enable_dlopen_self
14253
14254 # Whether dlopen of statically linked programs is supported.
14255 dlopen_self_static=$enable_dlopen_self_static
14256
14257 # Commands to strip libraries.
14258 old_striplib=$lt_old_striplib
14259 striplib=$lt_striplib
14260
14261
14262 # The linker used to build libraries.
14263 LD=$lt_LD
14264
14265 # How to create reloadable object files.
14266 reload_flag=$lt_reload_flag
14267 reload_cmds=$lt_reload_cmds
14268
14269 # Commands used to build an old-style archive.
14270 old_archive_cmds=$lt_old_archive_cmds
14271
14272 # A language specific compiler.
14273 CC=$lt_compiler
14274
14275 # Is the compiler the GNU compiler?
14276 with_gcc=$GCC
14277
14278 # Compiler flag to turn off builtin functions.
14279 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14280
14281 # Additional compiler flags for building library objects.
14282 pic_flag=$lt_lt_prog_compiler_pic
14283
14284 # How to pass a linker flag through the compiler.
14285 wl=$lt_lt_prog_compiler_wl
14286
14287 # Compiler flag to prevent dynamic linking.
14288 link_static_flag=$lt_lt_prog_compiler_static
14289
14290 # Does compiler simultaneously support -c and -o options?
14291 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14292
14293 # Whether or not to add -lc for building shared libraries.
14294 build_libtool_need_lc=$archive_cmds_need_lc
14295
14296 # Whether or not to disallow shared libs when runtime libs are static.
14297 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14298
14299 # Compiler flag to allow reflexive dlopens.
14300 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14301
14302 # Compiler flag to generate shared objects directly from archives.
14303 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14304
14305 # Whether the compiler copes with passing no objects directly.
14306 compiler_needs_object=$lt_compiler_needs_object
14307
14308 # Create an old-style archive from a shared archive.
14309 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14310
14311 # Create a temporary old-style archive to link instead of a shared archive.
14312 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14313
14314 # Commands used to build a shared archive.
14315 archive_cmds=$lt_archive_cmds
14316 archive_expsym_cmds=$lt_archive_expsym_cmds
14317
14318 # Commands used to build a loadable module if different from building
14319 # a shared archive.
14320 module_cmds=$lt_module_cmds
14321 module_expsym_cmds=$lt_module_expsym_cmds
14322
14323 # Whether we are building with GNU ld or not.
14324 with_gnu_ld=$lt_with_gnu_ld
14325
14326 # Flag that allows shared libraries with undefined symbols to be built.
14327 allow_undefined_flag=$lt_allow_undefined_flag
14328
14329 # Flag that enforces no undefined symbols.
14330 no_undefined_flag=$lt_no_undefined_flag
14331
14332 # Flag to hardcode \$libdir into a binary during linking.
14333 # This must work even if \$libdir does not exist
14334 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14335
14336 # Whether we need a single "-rpath" flag with a separated argument.
14337 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14338
14339 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14340 # DIR into the resulting binary.
14341 hardcode_direct=$hardcode_direct
14342
14343 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14344 # DIR into the resulting binary and the resulting library dependency is
14345 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14346 # library is relocated.
14347 hardcode_direct_absolute=$hardcode_direct_absolute
14348
14349 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14350 # into the resulting binary.
14351 hardcode_minus_L=$hardcode_minus_L
14352
14353 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14354 # into the resulting binary.
14355 hardcode_shlibpath_var=$hardcode_shlibpath_var
14356
14357 # Set to "yes" if building a shared library automatically hardcodes DIR
14358 # into the library and all subsequent libraries and executables linked
14359 # against it.
14360 hardcode_automatic=$hardcode_automatic
14361
14362 # Set to yes if linker adds runtime paths of dependent libraries
14363 # to runtime path list.
14364 inherit_rpath=$inherit_rpath
14365
14366 # Whether libtool must link a program against all its dependency libraries.
14367 link_all_deplibs=$link_all_deplibs
14368
14369 # Set to "yes" if exported symbols are required.
14370 always_export_symbols=$always_export_symbols
14371
14372 # The commands to list exported symbols.
14373 export_symbols_cmds=$lt_export_symbols_cmds
14374
14375 # Symbols that should not be listed in the preloaded symbols.
14376 exclude_expsyms=$lt_exclude_expsyms
14377
14378 # Symbols that must always be exported.
14379 include_expsyms=$lt_include_expsyms
14380
14381 # Commands necessary for linking programs (against libraries) with templates.
14382 prelink_cmds=$lt_prelink_cmds
14383
14384 # Commands necessary for finishing linking programs.
14385 postlink_cmds=$lt_postlink_cmds
14386
14387 # Specify filename containing input files.
14388 file_list_spec=$lt_file_list_spec
14389
14390 # How to hardcode a shared library path into an executable.
14391 hardcode_action=$hardcode_action
14392
14393 # ### END LIBTOOL CONFIG
14394
14395 _LT_EOF
14396
14397 case $host_os in
14398 aix3*)
14399 cat <<\_LT_EOF >> "$cfgfile"
14400 # AIX sometimes has problems with the GCC collect2 program. For some
14401 # reason, if we set the COLLECT_NAMES environment variable, the problems
14402 # vanish in a puff of smoke.
14403 if test "X${COLLECT_NAMES+set}" != Xset; then
14404 COLLECT_NAMES=
14405 export COLLECT_NAMES
14406 fi
14407 _LT_EOF
14408 ;;
14409 esac
14410
14411
14412 ltmain="$ac_aux_dir/ltmain.sh"
14413
14414
14415 # We use sed instead of cat because bash on DJGPP gets confused if
14416 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14417 # text mode, it properly converts lines to CR/LF. This bash problem
14418 # is reportedly fixed, but why not run on old versions too?
14419 sed '$q' "$ltmain" >> "$cfgfile" \
14420 || (rm -f "$cfgfile"; exit 1)
14421
14422 if test x"$xsi_shell" = xyes; then
14423 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14424 func_dirname ()\
14425 {\
14426 \ case ${1} in\
14427 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14428 \ * ) func_dirname_result="${3}" ;;\
14429 \ esac\
14430 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14431 && mv -f "$cfgfile.tmp" "$cfgfile" \
14432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14433 test 0 -eq $? || _lt_function_replace_fail=:
14434
14435
14436 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14437 func_basename ()\
14438 {\
14439 \ func_basename_result="${1##*/}"\
14440 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14441 && mv -f "$cfgfile.tmp" "$cfgfile" \
14442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14443 test 0 -eq $? || _lt_function_replace_fail=:
14444
14445
14446 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14447 func_dirname_and_basename ()\
14448 {\
14449 \ case ${1} in\
14450 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14451 \ * ) func_dirname_result="${3}" ;;\
14452 \ esac\
14453 \ func_basename_result="${1##*/}"\
14454 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14455 && mv -f "$cfgfile.tmp" "$cfgfile" \
14456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14457 test 0 -eq $? || _lt_function_replace_fail=:
14458
14459
14460 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14461 func_stripname ()\
14462 {\
14463 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14464 \ # positional parameters, so assign one to ordinary parameter first.\
14465 \ func_stripname_result=${3}\
14466 \ func_stripname_result=${func_stripname_result#"${1}"}\
14467 \ func_stripname_result=${func_stripname_result%"${2}"}\
14468 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14469 && mv -f "$cfgfile.tmp" "$cfgfile" \
14470 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14471 test 0 -eq $? || _lt_function_replace_fail=:
14472
14473
14474 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14475 func_split_long_opt ()\
14476 {\
14477 \ func_split_long_opt_name=${1%%=*}\
14478 \ func_split_long_opt_arg=${1#*=}\
14479 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14480 && mv -f "$cfgfile.tmp" "$cfgfile" \
14481 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14482 test 0 -eq $? || _lt_function_replace_fail=:
14483
14484
14485 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14486 func_split_short_opt ()\
14487 {\
14488 \ func_split_short_opt_arg=${1#??}\
14489 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14490 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14491 && mv -f "$cfgfile.tmp" "$cfgfile" \
14492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14493 test 0 -eq $? || _lt_function_replace_fail=:
14494
14495
14496 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14497 func_lo2o ()\
14498 {\
14499 \ case ${1} in\
14500 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14501 \ *) func_lo2o_result=${1} ;;\
14502 \ esac\
14503 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14504 && mv -f "$cfgfile.tmp" "$cfgfile" \
14505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14506 test 0 -eq $? || _lt_function_replace_fail=:
14507
14508
14509 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14510 func_xform ()\
14511 {\
14512 func_xform_result=${1%.*}.lo\
14513 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14514 && mv -f "$cfgfile.tmp" "$cfgfile" \
14515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14516 test 0 -eq $? || _lt_function_replace_fail=:
14517
14518
14519 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14520 func_arith ()\
14521 {\
14522 func_arith_result=$(( $* ))\
14523 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14524 && mv -f "$cfgfile.tmp" "$cfgfile" \
14525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14526 test 0 -eq $? || _lt_function_replace_fail=:
14527
14528
14529 sed -e '/^func_len ()$/,/^} # func_len /c\
14530 func_len ()\
14531 {\
14532 func_len_result=${#1}\
14533 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14534 && mv -f "$cfgfile.tmp" "$cfgfile" \
14535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14536 test 0 -eq $? || _lt_function_replace_fail=:
14537
14538 fi
14539
14540 if test x"$lt_shell_append" = xyes; then
14541 sed -e '/^func_append ()$/,/^} # func_append /c\
14542 func_append ()\
14543 {\
14544 eval "${1}+=\\${2}"\
14545 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14546 && mv -f "$cfgfile.tmp" "$cfgfile" \
14547 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14548 test 0 -eq $? || _lt_function_replace_fail=:
14549
14550
14551 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14552 func_append_quoted ()\
14553 {\
14554 \ func_quote_for_eval "${2}"\
14555 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14556 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14557 && mv -f "$cfgfile.tmp" "$cfgfile" \
14558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14559 test 0 -eq $? || _lt_function_replace_fail=:
14560
14561
14562 # Save a `func_append' function call where possible by direct use of '+='
14563 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14564 && mv -f "$cfgfile.tmp" "$cfgfile" \
14565 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14566 test 0 -eq $? || _lt_function_replace_fail=:
14567 else
14568 # Save a `func_append' function call even when '+=' is not available
14569 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14570 && mv -f "$cfgfile.tmp" "$cfgfile" \
14571 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14572 test 0 -eq $? || _lt_function_replace_fail=:
14573 fi
14574
14575 if test x"$_lt_function_replace_fail" = x":"; then
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14577 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14578 fi
14579
14580
14581 mv -f "$cfgfile" "$ofile" ||
14582 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14583 chmod +x "$ofile"
14584
14585 ;;
14586
14587 esac
14588 done # for ac_tag
14589
14590
14591 as_fn_exit 0
14592 _ACEOF
14593 ac_clean_files=$ac_clean_files_save
14594
14595 test $ac_write_fail = 0 ||
14596 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14597
14598
14599 # configure is writing to config.log, and then calls config.status.
14600 # config.status does its own redirection, appending to config.log.
14601 # Unfortunately, on DOS this fails, as config.log is still kept open
14602 # by configure, so config.status won't be able to write to it; its
14603 # output is simply discarded. So we exec the FD to /dev/null,
14604 # effectively closing config.log, so it can be properly (re)opened and
14605 # appended to by config.status. When coming back to configure, we
14606 # need to make the FD available again.
14607 if test "$no_create" != yes; then
14608 ac_cs_success=:
14609 ac_config_status_args=
14610 test "$silent" = yes &&
14611 ac_config_status_args="$ac_config_status_args --quiet"
14612 exec 5>/dev/null
14613 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14614 exec 5>>config.log
14615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14616 # would make configure fail if this is the last instruction.
14617 $ac_cs_success || as_fn_exit 1
14618 fi
14619 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14621 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14622 fi
14623