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 libodb-boost 2.4.0.
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 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libodb-boost'
592 PACKAGE_TARNAME='libodb-boost'
593 PACKAGE_VERSION='2.4.0'
594 PACKAGE_STRING='libodb-boost 2.4.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="odb/boost/version.hxx"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 pkgconfigdir
640 PTHREAD_CXX
641 PTHREAD_CXXFLAGS
642 PTHREAD_LIBS
643 acx_pthread_config
644 CXXCPP
645 am__fastdepCXX_FALSE
646 am__fastdepCXX_TRUE
647 CXXDEPMODE
648 ac_ct_CXX
649 CXXFLAGS
650 CXX
651 CPP
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 MANIFEST_TOOL
658 RANLIB
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 LIBTOOL
677 OBJDUMP
678 DLLTOOL
679 AS
680 am__fastdepCC_FALSE
681 am__fastdepCC_TRUE
682 CCDEPMODE
683 am__nodep
684 AMDEPBACKSLASH
685 AMDEP_FALSE
686 AMDEP_TRUE
687 am__quote
688 am__include
689 DEPDIR
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 ac_ct_AR
698 AR
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 enable_threads
772 with_boost
773 with_libodb
774 with_pkgconfigdir
775 enable_rpath
776 '
777 ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 CPP
786 CXX
787 CXXFLAGS
788 CCC
789 CXXCPP'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218 do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248 fi
1249
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253 test "$silent" = yes && exec 6>/dev/null
1254
1255
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1262
1263
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1294 fi
1295 else
1296 ac_srcdir_defaulted=no
1297 fi
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 fi
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309 fi
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1322
1323 #
1324 # Report the --help message.
1325 #
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures libodb-boost 2.4.0 to adapt to many kinds of systems.
1331
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1333
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1336
1337 Defaults for the options are specified in brackets.
1338
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1355
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1360
1361 For better control, use the options below.
1362
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/libodb-boost]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1384
1385 cat <<\_ACEOF
1386
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 _ACEOF
1396 fi
1397
1398 if test -n "$ac_init_help"; then
1399 case $ac_init_help in
1400 short | recursive ) echo "Configuration of libodb-boost 2.4.0:";;
1401 esac
1402 cat <<\_ACEOF
1403
1404 Optional Features:
1405 --disable-option-checking ignore unrecognized --enable/--with options
1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 --enable-dependency-tracking
1409 do not reject slow dependency extractors
1410 --disable-dependency-tracking
1411 speeds up one-time build
1412 --enable-shared[=PKGS] build shared libraries [default=yes]
1413 --enable-static[=PKGS] build static libraries [default=yes]
1414 --enable-fast-install[=PKGS]
1415 optimize for fast installation [default=yes]
1416 --disable-libtool-lock avoid locking (might break parallel builds)
1417 --disable-threads disable threads (enabled by default)
1418 --disable-rpath patch libtool to not use rpath
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 --with-sysroot=DIR Search for dependent libraries within DIR
1427 (or the compiler's sysroot if not specified).
1428 --with-boost=DIR location of boost build directory
1429 --with-libodb=DIR location of libodb build directory
1430 --with-pkgconfigdir=DIR location of pkgconfig dir (default is
1431 libdir/pkgconfig)
1432
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1441 CPP C preprocessor
1442 CXX C++ compiler command
1443 CXXFLAGS C++ compiler flags
1444 CXXCPP C++ preprocessor
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to <[email protected]>.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1461
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1477
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1507 fi
1508
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 libodb-boost configure 2.4.0
1513 generated by GNU Autoconf 2.69
1514
1515 Copyright (C) 2012 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1520 fi
1521
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_c_try_link LINENO
1565 # -----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_link ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 test -x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_c_try_link
1609
1610 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists and can be compiled using the include files in
1613 # INCLUDES, setting the cache variable VAR accordingly.
1614 ac_fn_c_check_header_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 $as_echo_n "checking for $2... " >&6; }
1619 if eval \${$3+:} false; then :
1620 $as_echo_n "(cached) " >&6
1621 else
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1624 $4
1625 #include <$2>
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"; then :
1628 eval "$3=yes"
1629 else
1630 eval "$3=no"
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 fi
1634 eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638
1639 } # ac_fn_c_check_header_compile
1640
1641 # ac_fn_c_try_cpp LINENO
1642 # ----------------------
1643 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_cpp ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { { ac_try="$ac_cpp conftest.$ac_ext"
1648 case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } > conftest.i && {
1663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_cpp
1677
1678 # ac_fn_c_try_run LINENO
1679 # ----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681 # that executables *can* be run.
1682 ac_fn_c_try_run ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696 { { case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_try") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; }; }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: program exited with status $ac_status" >&5
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=$ac_status
1713 fi
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_run
1719
1720 # ac_fn_c_check_func LINENO FUNC VAR
1721 # ----------------------------------
1722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1723 ac_fn_c_check_func ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1730 else
1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1732 /* end confdefs.h. */
1733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1735 #define $2 innocuous_$2
1736
1737 /* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char $2 (); below.
1739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1740 <limits.h> exists even on freestanding compilers. */
1741
1742 #ifdef __STDC__
1743 # include <limits.h>
1744 #else
1745 # include <assert.h>
1746 #endif
1747
1748 #undef $2
1749
1750 /* Override any GCC internal prototype to avoid an error.
1751 Use char because int might match the return type of a GCC
1752 builtin and then its argument prototype would still apply. */
1753 #ifdef __cplusplus
1754 extern "C"
1755 #endif
1756 char $2 ();
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined __stub_$2 || defined __stub___$2
1761 choke me
1762 #endif
1763
1764 int
1765 main ()
1766 {
1767 return $2 ();
1768 ;
1769 return 0;
1770 }
1771 _ACEOF
1772 if ac_fn_c_try_link "$LINENO"; then :
1773 eval "$3=yes"
1774 else
1775 eval "$3=no"
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext \
1778 conftest$ac_exeext conftest.$ac_ext
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785 } # ac_fn_c_check_func
1786
1787 # ac_fn_cxx_try_compile LINENO
1788 # ----------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_cxx_try_compile ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_cxx_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=1
1819 fi
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1822
1823 } # ac_fn_cxx_try_compile
1824
1825 # ac_fn_cxx_try_cpp LINENO
1826 # ------------------------
1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_cpp ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_cpp conftest.$ac_ext"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1844 fi
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } > conftest.i && {
1847 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1848 test ! -s conftest.err
1849 }; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=1
1856 fi
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1859
1860 } # ac_fn_cxx_try_cpp
1861
1862 # ac_fn_cxx_try_link LINENO
1863 # -------------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_link ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext conftest$ac_exeext
1869 if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1882 fi
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest$ac_exeext && {
1888 test "$cross_compiling" = yes ||
1889 test -x conftest$ac_exeext
1890 }; then :
1891 ac_retval=0
1892 else
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_retval=1
1897 fi
1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900 # interfere with the next link command; also delete a directory that is
1901 # left behind by Apple's compiler. We do this before executing the actions.
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1905
1906 } # ac_fn_cxx_try_link
1907 cat >config.log <<_ACEOF
1908 This file contains any messages produced by compilers while
1909 running configure, to aid debugging if configure makes a mistake.
1910
1911 It was created by libodb-boost $as_me 2.4.0, which was
1912 generated by GNU Autoconf 2.69. Invocation command line was
1913
1914 $ $0 $@
1915
1916 _ACEOF
1917 exec 5>>config.log
1918 {
1919 cat <<_ASUNAME
1920 ## --------- ##
1921 ## Platform. ##
1922 ## --------- ##
1923
1924 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929
1930 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1932
1933 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1934 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1935 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1936 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1937 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1938 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1939 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1940
1941 _ASUNAME
1942
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 $as_echo "PATH: $as_dir"
1949 done
1950 IFS=$as_save_IFS
1951
1952 } >&5
1953
1954 cat >&5 <<_ACEOF
1955
1956
1957 ## ----------- ##
1958 ## Core tests. ##
1959 ## ----------- ##
1960
1961 _ACEOF
1962
1963
1964 # Keep a trace of the command line.
1965 # Strip out --no-create and --no-recursion so they do not pile up.
1966 # Strip out --silent because we don't want to record it for future runs.
1967 # Also quote any args containing shell meta-characters.
1968 # Make two passes to allow for proper duplicate-argument suppression.
1969 ac_configure_args=
1970 ac_configure_args0=
1971 ac_configure_args1=
1972 ac_must_keep_next=false
1973 for ac_pass in 1 2
1974 do
1975 for ac_arg
1976 do
1977 case $ac_arg in
1978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980 | -silent | --silent | --silen | --sile | --sil)
1981 continue ;;
1982 *\'*)
1983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 esac
1985 case $ac_pass in
1986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1987 2)
1988 as_fn_append ac_configure_args1 " '$ac_arg'"
1989 if test $ac_must_keep_next = true; then
1990 ac_must_keep_next=false # Got value, back to normal.
1991 else
1992 case $ac_arg in
1993 *=* | --config-cache | -C | -disable-* | --disable-* \
1994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996 | -with-* | --with-* | -without-* | --without-* | --x)
1997 case "$ac_configure_args0 " in
1998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999 esac
2000 ;;
2001 -* ) ac_must_keep_next=true ;;
2002 esac
2003 fi
2004 as_fn_append ac_configure_args " '$ac_arg'"
2005 ;;
2006 esac
2007 done
2008 done
2009 { ac_configure_args0=; unset ac_configure_args0;}
2010 { ac_configure_args1=; unset ac_configure_args1;}
2011
2012 # When interrupted or exit'd, cleanup temporary files, and complete
2013 # config.log. We remove comments because anyway the quotes in there
2014 # would cause problems or look ugly.
2015 # WARNING: Use '\'' to represent an apostrophe within the trap.
2016 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017 trap 'exit_status=$?
2018 # Save into config.log some information that might help in debugging.
2019 {
2020 echo
2021
2022 $as_echo "## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##"
2025 echo
2026 # The following way of writing the cache mishandles newlines in values,
2027 (
2028 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2029 eval ac_val=\$$ac_var
2030 case $ac_val in #(
2031 *${as_nl}*)
2032 case $ac_var in #(
2033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2035 esac
2036 case $ac_var in #(
2037 _ | IFS | as_nl) ;; #(
2038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2039 *) { eval $ac_var=; unset $ac_var;} ;;
2040 esac ;;
2041 esac
2042 done
2043 (set) 2>&1 |
2044 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2045 *${as_nl}ac_space=\ *)
2046 sed -n \
2047 "s/'\''/'\''\\\\'\'''\''/g;
2048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2049 ;; #(
2050 *)
2051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052 ;;
2053 esac |
2054 sort
2055 )
2056 echo
2057
2058 $as_echo "## ----------------- ##
2059 ## Output variables. ##
2060 ## ----------------- ##"
2061 echo
2062 for ac_var in $ac_subst_vars
2063 do
2064 eval ac_val=\$$ac_var
2065 case $ac_val in
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067 esac
2068 $as_echo "$ac_var='\''$ac_val'\''"
2069 done | sort
2070 echo
2071
2072 if test -n "$ac_subst_files"; then
2073 $as_echo "## ------------------- ##
2074 ## File substitutions. ##
2075 ## ------------------- ##"
2076 echo
2077 for ac_var in $ac_subst_files
2078 do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2086 fi
2087
2088 if test -s confdefs.h; then
2089 $as_echo "## ----------- ##
2090 ## confdefs.h. ##
2091 ## ----------- ##"
2092 echo
2093 cat confdefs.h
2094 echo
2095 fi
2096 test "$ac_signal" != 0 &&
2097 $as_echo "$as_me: caught signal $ac_signal"
2098 $as_echo "$as_me: exit $exit_status"
2099 } >&5
2100 rm -f core *.core core.conftest.* &&
2101 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2102 exit $exit_status
2103 ' 0
2104 for ac_signal in 1 2 13 15; do
2105 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2106 done
2107 ac_signal=0
2108
2109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2110 rm -f -r conftest* confdefs.h
2111
2112 $as_echo "/* confdefs.h */" > confdefs.h
2113
2114 # Predefined preprocessor variables.
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_NAME "$PACKAGE_NAME"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_STRING "$PACKAGE_STRING"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_URL "$PACKAGE_URL"
2138 _ACEOF
2139
2140
2141 # Let the site file select an alternate cache file if it wants to.
2142 # Prefer an explicitly selected file to automatically selected ones.
2143 ac_site_file1=NONE
2144 ac_site_file2=NONE
2145 if test -n "$CONFIG_SITE"; then
2146 # We do not want a PATH search for config.site.
2147 case $CONFIG_SITE in #((
2148 -*) ac_site_file1=./$CONFIG_SITE;;
2149 */*) ac_site_file1=$CONFIG_SITE;;
2150 *) ac_site_file1=./$CONFIG_SITE;;
2151 esac
2152 elif test "x$prefix" != xNONE; then
2153 ac_site_file1=$prefix/share/config.site
2154 ac_site_file2=$prefix/etc/config.site
2155 else
2156 ac_site_file1=$ac_default_prefix/share/config.site
2157 ac_site_file2=$ac_default_prefix/etc/config.site
2158 fi
2159 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2160 do
2161 test "x$ac_site_file" = xNONE && continue
2162 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2165 sed 's/^/| /' "$ac_site_file" >&5
2166 . "$ac_site_file" \
2167 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169 as_fn_error $? "failed to load site script $ac_site_file
2170 See \`config.log' for more details" "$LINENO" 5; }
2171 fi
2172 done
2173
2174 if test -r "$cache_file"; then
2175 # Some versions of bash will fail to source /dev/null (special files
2176 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2177 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179 $as_echo "$as_me: loading cache $cache_file" >&6;}
2180 case $cache_file in
2181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182 *) . "./$cache_file";;
2183 esac
2184 fi
2185 else
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187 $as_echo "$as_me: creating cache $cache_file" >&6;}
2188 >$cache_file
2189 fi
2190
2191 # Check that the precious variables saved in the cache have kept the same
2192 # value.
2193 ac_cache_corrupted=false
2194 for ac_var in $ac_precious_vars; do
2195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2196 eval ac_new_set=\$ac_env_${ac_var}_set
2197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2198 eval ac_new_val=\$ac_env_${ac_var}_value
2199 case $ac_old_set,$ac_new_set in
2200 set,)
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2203 ac_cache_corrupted=: ;;
2204 ,set)
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2208 ,);;
2209 *)
2210 if test "x$ac_old_val" != "x$ac_new_val"; then
2211 # differences in whitespace do not lead to failure.
2212 ac_old_val_w=`echo x $ac_old_val`
2213 ac_new_val_w=`echo x $ac_new_val`
2214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2216 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2217 ac_cache_corrupted=:
2218 else
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2220 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2221 eval $ac_var=\$ac_old_val
2222 fi
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2224 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2226 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2227 fi;;
2228 esac
2229 # Pass precious variables to config.status.
2230 if test "$ac_new_set" = set; then
2231 case $ac_new_val in
2232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 *) ac_arg=$ac_var=$ac_new_val ;;
2234 esac
2235 case " $ac_configure_args " in
2236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2238 esac
2239 fi
2240 done
2241 if $ac_cache_corrupted; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2245 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2246 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2247 fi
2248 ## -------------------- ##
2249 ## Main body of script. ##
2250 ## -------------------- ##
2251
2252 ac_ext=c
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257
2258
2259 ac_aux_dir=
2260 for ac_dir in config "$srcdir"/config; do
2261 if test -f "$ac_dir/install-sh"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/install-sh -c"
2264 break
2265 elif test -f "$ac_dir/install.sh"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/install.sh -c"
2268 break
2269 elif test -f "$ac_dir/shtool"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/shtool install -c"
2272 break
2273 fi
2274 done
2275 if test -z "$ac_aux_dir"; then
2276 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2277 fi
2278
2279 # These three variables are undocumented and unsupported,
2280 # and are intended to be withdrawn in a future Autoconf release.
2281 # They can cause serious problems if a builder's source tree is in a directory
2282 # whose full name contains unusual characters.
2283 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2284 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2285 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2286
2287
2288
2289
2290
2291 am__api_version='1.12'
2292
2293 # Find a good install program. We prefer a C program (faster),
2294 # so one script is as good as another. But avoid the broken or
2295 # incompatible versions:
2296 # SysV /etc/install, /usr/sbin/install
2297 # SunOS /usr/etc/install
2298 # IRIX /sbin/install
2299 # AIX /bin/install
2300 # AmigaOS /C/install, which installs bootblocks on floppy discs
2301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2304 # OS/2's system install, which has a completely different semantic
2305 # ./install, which can be erroneously created by make from ./install.sh.
2306 # Reject install programs that cannot install multiple files.
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2308 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2309 if test -z "$INSTALL"; then
2310 if ${ac_cv_path_install+:} false; then :
2311 $as_echo_n "(cached) " >&6
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 # Account for people who put trailing slashes in PATH elements.
2319 case $as_dir/ in #((
2320 ./ | .// | /[cC]/* | \
2321 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2322 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2323 /usr/ucb/* ) ;;
2324 *)
2325 # OSF1 and SCO ODT 3.0 have their own names for install.
2326 # Don't use installbsd from OSF since it installs stuff as root
2327 # by default.
2328 for ac_prog in ginstall scoinst install; do
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2331 if test $ac_prog = install &&
2332 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2333 # AIX install. It has an incompatible calling convention.
2334 :
2335 elif test $ac_prog = install &&
2336 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337 # program-specific install script used by HP pwplus--don't use.
2338 :
2339 else
2340 rm -rf conftest.one conftest.two conftest.dir
2341 echo one > conftest.one
2342 echo two > conftest.two
2343 mkdir conftest.dir
2344 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2345 test -s conftest.one && test -s conftest.two &&
2346 test -s conftest.dir/conftest.one &&
2347 test -s conftest.dir/conftest.two
2348 then
2349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2350 break 3
2351 fi
2352 fi
2353 fi
2354 done
2355 done
2356 ;;
2357 esac
2358
2359 done
2360 IFS=$as_save_IFS
2361
2362 rm -rf conftest.one conftest.two conftest.dir
2363
2364 fi
2365 if test "${ac_cv_path_install+set}" = set; then
2366 INSTALL=$ac_cv_path_install
2367 else
2368 # As a last resort, use the slow shell script. Don't cache a
2369 # value for INSTALL within a source directory, because that will
2370 # break other packages using the cache if that directory is
2371 # removed, or if the value is a relative name.
2372 INSTALL=$ac_install_sh
2373 fi
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2376 $as_echo "$INSTALL" >&6; }
2377
2378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2379 # It thinks the first close brace ends the variable substitution.
2380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2381
2382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2383
2384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2385
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2387 $as_echo_n "checking whether build environment is sane... " >&6; }
2388 # Reject unsafe characters in $srcdir or the absolute working directory
2389 # name. Accept space and tab only in the latter.
2390 am_lf='
2391 '
2392 case `pwd` in
2393 *[\\\"\#\$\&\'\`$am_lf]*)
2394 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2395 esac
2396 case $srcdir in
2397 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2398 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2399 esac
2400
2401 # Do 'set' in a subshell so we don't clobber the current shell's
2402 # arguments. Must try -L first in case configure is actually a
2403 # symlink; some systems play weird games with the mod time of symlinks
2404 # (eg FreeBSD returns the mod time of the symlink's containing
2405 # directory).
2406 if (
2407 am_has_slept=no
2408 for am_try in 1 2; do
2409 echo "timestamp, slept: $am_has_slept" > conftest.file
2410 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2411 if test "$*" = "X"; then
2412 # -L didn't work.
2413 set X `ls -t "$srcdir/configure" conftest.file`
2414 fi
2415 if test "$*" != "X $srcdir/configure conftest.file" \
2416 && test "$*" != "X conftest.file $srcdir/configure"; then
2417
2418 # If neither matched, then we have a broken ls. This can happen
2419 # if, for instance, CONFIG_SHELL is bash and it inherits a
2420 # broken ls alias from the environment. This has actually
2421 # happened. Such a system could not be considered "sane".
2422 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2423 alias in your environment" "$LINENO" 5
2424 fi
2425 if test "$2" = conftest.file || test $am_try -eq 2; then
2426 break
2427 fi
2428 # Just in case.
2429 sleep 1
2430 am_has_slept=yes
2431 done
2432 test "$2" = conftest.file
2433 )
2434 then
2435 # Ok.
2436 :
2437 else
2438 as_fn_error $? "newly created file is older than distributed files!
2439 Check your system clock" "$LINENO" 5
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2442 $as_echo "yes" >&6; }
2443 # If we didn't sleep, we still need to ensure time stamps of config.status and
2444 # generated files are strictly newer.
2445 am_sleep_pid=
2446 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2447 ( sleep 1 ) &
2448 am_sleep_pid=$!
2449 fi
2450
2451 rm -f conftest.file
2452
2453 test "$program_prefix" != NONE &&
2454 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2455 # Use a double $ so make ignores it.
2456 test "$program_suffix" != NONE &&
2457 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2458 # Double any \ or $.
2459 # By default was `s,x,x', remove it if useless.
2460 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2461 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2462
2463 # expand $ac_aux_dir to an absolute path
2464 am_aux_dir=`cd $ac_aux_dir && pwd`
2465
2466 if test x"${MISSING+set}" != xset; then
2467 case $am_aux_dir in
2468 *\ * | *\ *)
2469 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2470 *)
2471 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2472 esac
2473 fi
2474 # Use eval to expand $SHELL
2475 if eval "$MISSING --run true"; then
2476 am_missing_run="$MISSING --run "
2477 else
2478 am_missing_run=
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2480 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2481 fi
2482
2483 if test x"${install_sh}" != xset; then
2484 case $am_aux_dir in
2485 *\ * | *\ *)
2486 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2487 *)
2488 install_sh="\${SHELL} $am_aux_dir/install-sh"
2489 esac
2490 fi
2491
2492 # Installed binaries are usually stripped using 'strip' when the user
2493 # run "make install-strip". However 'strip' might not be the right
2494 # tool to use in cross-compilation environments, therefore Automake
2495 # will honor the 'STRIP' environment variable to overrule this program.
2496 if test "$cross_compiling" != no; then
2497 if test -n "$ac_tool_prefix"; then
2498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}strip; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_STRIP+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test -n "$STRIP"; then
2506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 STRIP=$ac_cv_prog_STRIP
2526 if test -n "$STRIP"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2528 $as_echo "$STRIP" >&6; }
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2533
2534
2535 fi
2536 if test -z "$ac_cv_prog_STRIP"; then
2537 ac_ct_STRIP=$STRIP
2538 # Extract the first word of "strip", so it can be a program name with args.
2539 set dummy strip; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$ac_ct_STRIP"; then
2546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_ac_ct_STRIP="strip"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2566 if test -n "$ac_ct_STRIP"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2568 $as_echo "$ac_ct_STRIP" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574 if test "x$ac_ct_STRIP" = x; then
2575 STRIP=":"
2576 else
2577 case $cross_compiling:$ac_tool_warned in
2578 yes:)
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2581 ac_tool_warned=yes ;;
2582 esac
2583 STRIP=$ac_ct_STRIP
2584 fi
2585 else
2586 STRIP="$ac_cv_prog_STRIP"
2587 fi
2588
2589 fi
2590 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2591
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2593 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2594 if test -z "$MKDIR_P"; then
2595 if ${ac_cv_path_mkdir+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2600 do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_prog in mkdir gmkdir; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2606 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2607 'mkdir (GNU coreutils) '* | \
2608 'mkdir (coreutils) '* | \
2609 'mkdir (fileutils) '4.1*)
2610 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2611 break 3;;
2612 esac
2613 done
2614 done
2615 done
2616 IFS=$as_save_IFS
2617
2618 fi
2619
2620 test -d ./--version && rmdir ./--version
2621 if test "${ac_cv_path_mkdir+set}" = set; then
2622 MKDIR_P="$ac_cv_path_mkdir -p"
2623 else
2624 # As a last resort, use the slow shell script. Don't cache a
2625 # value for MKDIR_P within a source directory, because that will
2626 # break other packages using the cache if that directory is
2627 # removed, or if the value is a relative name.
2628 MKDIR_P="$ac_install_sh -d"
2629 fi
2630 fi
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2632 $as_echo "$MKDIR_P" >&6; }
2633
2634 for ac_prog in gawk mawk nawk awk
2635 do
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_AWK+:} false; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 AWK=$ac_cv_prog_AWK
2664 if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666 $as_echo "$AWK" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672
2673 test -n "$AWK" && break
2674 done
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2677 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2678 set x ${MAKE-make}
2679 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2680 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 cat >conftest.make <<\_ACEOF
2684 SHELL = /bin/sh
2685 all:
2686 @echo '@@@%%%=$(MAKE)=@@@%%%'
2687 _ACEOF
2688 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2689 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2690 *@@@%%%=?*=@@@%%%*)
2691 eval ac_cv_prog_make_${ac_make}_set=yes;;
2692 *)
2693 eval ac_cv_prog_make_${ac_make}_set=no;;
2694 esac
2695 rm -f conftest.make
2696 fi
2697 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2699 $as_echo "yes" >&6; }
2700 SET_MAKE=
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 SET_MAKE="MAKE=${MAKE-make}"
2705 fi
2706
2707 rm -rf .tst 2>/dev/null
2708 mkdir .tst 2>/dev/null
2709 if test -d .tst; then
2710 am__leading_dot=.
2711 else
2712 am__leading_dot=_
2713 fi
2714 rmdir .tst 2>/dev/null
2715
2716 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2717 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2718 # is not polluted with repeated "-I."
2719 am__isrc=' -I$(srcdir)'
2720 # test to see if srcdir already configured
2721 if test -f $srcdir/config.status; then
2722 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2723 fi
2724 fi
2725
2726 # test whether we have cygpath
2727 if test -z "$CYGPATH_W"; then
2728 if (cygpath --version) >/dev/null 2>/dev/null; then
2729 CYGPATH_W='cygpath -w'
2730 else
2731 CYGPATH_W=echo
2732 fi
2733 fi
2734
2735
2736 # Define the identity of the package.
2737 PACKAGE='libodb-boost'
2738 VERSION='2.4.0'
2739
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE "$PACKAGE"
2743 _ACEOF
2744
2745
2746 cat >>confdefs.h <<_ACEOF
2747 #define VERSION "$VERSION"
2748 _ACEOF
2749
2750 # Some tools Automake needs.
2751
2752 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2753
2754
2755 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2756
2757
2758 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2759
2760
2761 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2762
2763
2764 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2765
2766 # For better backward compatibility. To be removed once Automake 1.9.x
2767 # dies out for good. For more background, see:
2768 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2769 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2770 mkdir_p='$(MKDIR_P)'
2771
2772 # We need awk for the "check" target. The system "awk" is bad on
2773 # some platforms.
2774 # Always define AMTAR for backward compatibility. Yes, it's still used
2775 # in the wild :-( We should find a proper way to deprecate it ...
2776 AMTAR='$${TAR-tar}'
2777
2778
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2780 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2781 # Loop over all known methods to create a tar archive until one works.
2782 _am_tools='gnutar plaintar pax cpio none'
2783 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2784 # Do not fold the above two line into one, because Tru64 sh and
2785 # Solaris sh will not grok spaces in the rhs of '-'.
2786 for _am_tool in $_am_tools
2787 do
2788 case $_am_tool in
2789 gnutar)
2790 for _am_tar in tar gnutar gtar;
2791 do
2792 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2793 ($_am_tar --version) >&5 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } && break
2797 done
2798 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2799 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2800 am__untar="$_am_tar -xf -"
2801 ;;
2802 plaintar)
2803 # Must skip GNU tar: if it does not support --format= it doesn't create
2804 # ustar tarball either.
2805 (tar --version) >/dev/null 2>&1 && continue
2806 am__tar='tar chf - "$$tardir"'
2807 am__tar_='tar chf - "$tardir"'
2808 am__untar='tar xf -'
2809 ;;
2810 pax)
2811 am__tar='pax -L -x ustar -w "$$tardir"'
2812 am__tar_='pax -L -x ustar -w "$tardir"'
2813 am__untar='pax -r'
2814 ;;
2815 cpio)
2816 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2817 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2818 am__untar='cpio -i -H ustar -d'
2819 ;;
2820 none)
2821 am__tar=false
2822 am__tar_=false
2823 am__untar=false
2824 ;;
2825 esac
2826
2827 # If the value was cached, stop now. We just wanted to have am__tar
2828 # and am__untar set.
2829 test -n "${am_cv_prog_tar_ustar}" && break
2830
2831 # tar/untar a dummy directory, and stop if the command works
2832 rm -rf conftest.dir
2833 mkdir conftest.dir
2834 echo GrepMe > conftest.dir/file
2835 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2836 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }
2840 rm -rf conftest.dir
2841 if test -s conftest.tar; then
2842 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2843 ($am__untar <conftest.tar) >&5 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }
2847 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2848 fi
2849 done
2850 rm -rf conftest.dir
2851
2852 if ${am_cv_prog_tar_ustar+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 am_cv_prog_tar_ustar=$_am_tool
2856 fi
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2859 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2860
2861
2862
2863
2864
2865 DEPDIR="${am__leading_dot}deps"
2866
2867 ac_config_commands="$ac_config_commands depfiles"
2868
2869
2870 am_make=${MAKE-make}
2871 cat > confinc << 'END'
2872 am__doit:
2873 @echo this is the am__doit target
2874 .PHONY: am__doit
2875 END
2876 # If we don't find an include directive, just comment out the code.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2878 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2879 am__include="#"
2880 am__quote=
2881 _am_result=none
2882 # First try GNU make style include.
2883 echo "include confinc" > confmf
2884 # Ignore all kinds of additional output from 'make'.
2885 case `$am_make -s -f confmf 2> /dev/null` in #(
2886 *the\ am__doit\ target*)
2887 am__include=include
2888 am__quote=
2889 _am_result=GNU
2890 ;;
2891 esac
2892 # Now try BSD make style include.
2893 if test "$am__include" = "#"; then
2894 echo '.include "confinc"' > confmf
2895 case `$am_make -s -f confmf 2> /dev/null` in #(
2896 *the\ am__doit\ target*)
2897 am__include=.include
2898 am__quote="\""
2899 _am_result=BSD
2900 ;;
2901 esac
2902 fi
2903
2904
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2906 $as_echo "$_am_result" >&6; }
2907 rm -f confinc confmf
2908
2909 # Check whether --enable-dependency-tracking was given.
2910 if test "${enable_dependency_tracking+set}" = set; then :
2911 enableval=$enable_dependency_tracking;
2912 fi
2913
2914 if test "x$enable_dependency_tracking" != xno; then
2915 am_depcomp="$ac_aux_dir/depcomp"
2916 AMDEPBACKSLASH='\'
2917 am__nodep='_no'
2918 fi
2919 if test "x$enable_dependency_tracking" != xno; then
2920 AMDEP_TRUE=
2921 AMDEP_FALSE='#'
2922 else
2923 AMDEP_TRUE='#'
2924 AMDEP_FALSE=
2925 fi
2926
2927
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_CC+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2964 $as_echo "$CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 fi
2972 if test -z "$ac_cv_prog_CC"; then
2973 ac_ct_CC=$CC
2974 # Extract the first word of "gcc", so it can be a program name with args.
2975 set dummy gcc; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$ac_ct_CC"; then
2982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_ac_ct_CC="gcc"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3004 $as_echo "$ac_ct_CC" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010 if test "x$ac_ct_CC" = x; then
3011 CC=""
3012 else
3013 case $cross_compiling:$ac_tool_warned in
3014 yes:)
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3017 ac_tool_warned=yes ;;
3018 esac
3019 CC=$ac_ct_CC
3020 fi
3021 else
3022 CC="$ac_cv_prog_CC"
3023 fi
3024
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3028 set dummy ${ac_tool_prefix}cc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_CC+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_CC="${ac_tool_prefix}cc"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063
3064 fi
3065 fi
3066 if test -z "$CC"; then
3067 # Extract the first word of "cc", so it can be a program name with args.
3068 set dummy cc; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_CC+:} false; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$CC"; then
3075 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077 ac_prog_rejected=no
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3086 ac_prog_rejected=yes
3087 continue
3088 fi
3089 ac_cv_prog_CC="cc"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093 done
3094 done
3095 IFS=$as_save_IFS
3096
3097 if test $ac_prog_rejected = yes; then
3098 # We found a bogon in the path, so make sure we never use it.
3099 set dummy $ac_cv_prog_CC
3100 shift
3101 if test $# != 0; then
3102 # We chose a different compiler from the bogus one.
3103 # However, it has the same basename, so the bogon will be chosen
3104 # first if we set CC to just the basename; use the full file name.
3105 shift
3106 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3107 fi
3108 fi
3109 fi
3110 fi
3111 CC=$ac_cv_prog_CC
3112 if test -n "$CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121 fi
3122 if test -z "$CC"; then
3123 if test -n "$ac_tool_prefix"; then
3124 for ac_prog in cl.exe
3125 do
3126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147 done
3148 done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 CC=$ac_cv_prog_CC
3154 if test -n "$CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163 test -n "$CC" && break
3164 done
3165 fi
3166 if test -z "$CC"; then
3167 ac_ct_CC=$CC
3168 for ac_prog in cl.exe
3169 do
3170 # Extract the first word of "$ac_prog", so it can be a program name with args.
3171 set dummy $ac_prog; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$ac_ct_CC"; then
3178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_ac_ct_CC="$ac_prog"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3198 if test -n "$ac_ct_CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3200 $as_echo "$ac_ct_CC" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207 test -n "$ac_ct_CC" && break
3208 done
3209
3210 if test "x$ac_ct_CC" = x; then
3211 CC=""
3212 else
3213 case $cross_compiling:$ac_tool_warned in
3214 yes:)
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3217 ac_tool_warned=yes ;;
3218 esac
3219 CC=$ac_ct_CC
3220 fi
3221 fi
3222
3223 fi
3224
3225
3226 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228 as_fn_error $? "no acceptable C compiler found in \$PATH
3229 See \`config.log' for more details" "$LINENO" 5; }
3230
3231 # Provide some information about the compiler.
3232 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3233 set X $ac_compile
3234 ac_compiler=$2
3235 for ac_option in --version -v -V -qversion; do
3236 { { ac_try="$ac_compiler $ac_option >&5"
3237 case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3244 ac_status=$?
3245 if test -s conftest.err; then
3246 sed '10a\
3247 ... rest of stderr output deleted ...
3248 10q' conftest.err >conftest.er1
3249 cat conftest.er1 >&5
3250 fi
3251 rm -f conftest.er1 conftest.err
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }
3254 done
3255
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258
3259 int
3260 main ()
3261 {
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3271 # of exeext.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3273 $as_echo_n "checking whether the C compiler works... " >&6; }
3274 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3275
3276 # The possible output files:
3277 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3278
3279 ac_rmfiles=
3280 for ac_file in $ac_files
3281 do
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3284 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3285 esac
3286 done
3287 rm -f $ac_rmfiles
3288
3289 if { { ac_try="$ac_link_default"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_link_default") 2>&5
3297 ac_status=$?
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }; then :
3300 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3301 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3302 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3303 # so that the user can short-circuit this test for compilers unknown to
3304 # Autoconf.
3305 for ac_file in $ac_files ''
3306 do
3307 test -f "$ac_file" || continue
3308 case $ac_file in
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3310 ;;
3311 [ab].out )
3312 # We found the default executable, but exeext='' is most
3313 # certainly right.
3314 break;;
3315 *.* )
3316 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3317 then :; else
3318 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319 fi
3320 # We set ac_cv_exeext here because the later test for it is not
3321 # safe: cross compilers may not add the suffix if given an `-o'
3322 # argument, so we may need to know it at that point already.
3323 # Even if this section looks crufty: it has the advantage of
3324 # actually working.
3325 break;;
3326 * )
3327 break;;
3328 esac
3329 done
3330 test "$ac_cv_exeext" = no && ac_cv_exeext=
3331
3332 else
3333 ac_file=''
3334 fi
3335 if test -z "$ac_file"; then :
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 $as_echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error 77 "C compiler cannot create executables
3344 See \`config.log' for more details" "$LINENO" 5; }
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3350 $as_echo_n "checking for C compiler default output file name... " >&6; }
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3352 $as_echo "$ac_file" >&6; }
3353 ac_exeext=$ac_cv_exeext
3354
3355 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3356 ac_clean_files=$ac_clean_files_save
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3358 $as_echo_n "checking for suffix of executables... " >&6; }
3359 if { { ac_try="$ac_link"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_link") 2>&5
3367 ac_status=$?
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }; then :
3370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3372 # work properly (i.e., refer to `conftest.exe'), while it won't with
3373 # `rm'.
3374 for ac_file in conftest.exe conftest conftest.*; do
3375 test -f "$ac_file" || continue
3376 case $ac_file in
3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379 break;;
3380 * ) break;;
3381 esac
3382 done
3383 else
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3387 See \`config.log' for more details" "$LINENO" 5; }
3388 fi
3389 rm -f conftest conftest$ac_cv_exeext
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3391 $as_echo "$ac_cv_exeext" >&6; }
3392
3393 rm -f conftest.$ac_ext
3394 EXEEXT=$ac_cv_exeext
3395 ac_exeext=$EXEEXT
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398 #include <stdio.h>
3399 int
3400 main ()
3401 {
3402 FILE *f = fopen ("conftest.out", "w");
3403 return ferror (f) || fclose (f) != 0;
3404
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 ac_clean_files="$ac_clean_files conftest.out"
3410 # Check that the compiler produces executables we can run. If not, either
3411 # the compiler is broken, or we cross compile.
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3413 $as_echo_n "checking whether we are cross compiling... " >&6; }
3414 if test "$cross_compiling" != yes; then
3415 { { ac_try="$ac_link"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422 (eval "$ac_link") 2>&5
3423 ac_status=$?
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }
3426 if { ac_try='./conftest$ac_cv_exeext'
3427 { { case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_try") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; }; then
3437 cross_compiling=no
3438 else
3439 if test "$cross_compiling" = maybe; then
3440 cross_compiling=yes
3441 else
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error $? "cannot run C compiled programs.
3445 If you meant to cross compile, use \`--host'.
3446 See \`config.log' for more details" "$LINENO" 5; }
3447 fi
3448 fi
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3451 $as_echo "$cross_compiling" >&6; }
3452
3453 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3454 ac_clean_files=$ac_clean_files_save
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3456 $as_echo_n "checking for suffix of object files... " >&6; }
3457 if ${ac_cv_objext+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3462
3463 int
3464 main ()
3465 {
3466
3467 ;
3468 return 0;
3469 }
3470 _ACEOF
3471 rm -f conftest.o conftest.obj
3472 if { { ac_try="$ac_compile"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_compile") 2>&5
3480 ac_status=$?
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; then :
3483 for ac_file in conftest.o conftest.obj conftest.*; do
3484 test -f "$ac_file" || continue;
3485 case $ac_file in
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3487 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3488 break;;
3489 esac
3490 done
3491 else
3492 $as_echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error $? "cannot compute suffix of object files: cannot compile
3498 See \`config.log' for more details" "$LINENO" 5; }
3499 fi
3500 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3503 $as_echo "$ac_cv_objext" >&6; }
3504 OBJEXT=$ac_cv_objext
3505 ac_objext=$OBJEXT
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3507 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3508 if ${ac_cv_c_compiler_gnu+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513
3514 int
3515 main ()
3516 {
3517 #ifndef __GNUC__
3518 choke me
3519 #endif
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526 ac_compiler_gnu=yes
3527 else
3528 ac_compiler_gnu=no
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3532
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3535 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3536 if test $ac_compiler_gnu = yes; then
3537 GCC=yes
3538 else
3539 GCC=
3540 fi
3541 ac_test_CFLAGS=${CFLAGS+set}
3542 ac_save_CFLAGS=$CFLAGS
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3544 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3545 if ${ac_cv_prog_cc_g+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 ac_save_c_werror_flag=$ac_c_werror_flag
3549 ac_c_werror_flag=yes
3550 ac_cv_prog_cc_g=no
3551 CFLAGS="-g"
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554
3555 int
3556 main ()
3557 {
3558
3559 ;
3560 return 0;
3561 }
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_cv_prog_cc_g=yes
3565 else
3566 CFLAGS=""
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569
3570 int
3571 main ()
3572 {
3573
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579
3580 else
3581 ac_c_werror_flag=$ac_save_c_werror_flag
3582 CFLAGS="-g"
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585
3586 int
3587 main ()
3588 {
3589
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 if ac_fn_c_try_compile "$LINENO"; then :
3595 ac_cv_prog_cc_g=yes
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_c_werror_flag=$ac_save_c_werror_flag
3603 fi
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3605 $as_echo "$ac_cv_prog_cc_g" >&6; }
3606 if test "$ac_test_CFLAGS" = set; then
3607 CFLAGS=$ac_save_CFLAGS
3608 elif test $ac_cv_prog_cc_g = yes; then
3609 if test "$GCC" = yes; then
3610 CFLAGS="-g -O2"
3611 else
3612 CFLAGS="-g"
3613 fi
3614 else
3615 if test "$GCC" = yes; then
3616 CFLAGS="-O2"
3617 else
3618 CFLAGS=
3619 fi
3620 fi
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3622 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3623 if ${ac_cv_prog_cc_c89+:} false; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 ac_cv_prog_cc_c89=no
3627 ac_save_CC=$CC
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630 #include <stdarg.h>
3631 #include <stdio.h>
3632 struct stat;
3633 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3634 struct buf { int x; };
3635 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3636 static char *e (p, i)
3637 char **p;
3638 int i;
3639 {
3640 return p[i];
3641 }
3642 static char *f (char * (*g) (char **, int), char **p, ...)
3643 {
3644 char *s;
3645 va_list v;
3646 va_start (v,p);
3647 s = g (p, va_arg (v,int));
3648 va_end (v);
3649 return s;
3650 }
3651
3652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3653 function prototypes and stuff, but not '\xHH' hex character constants.
3654 These don't provoke an error unfortunately, instead are silently treated
3655 as 'x'. The following induces an error, until -std is added to get
3656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3657 array size at least. It's necessary to write '\x00'==0 to get something
3658 that's true only with -std. */
3659 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3660
3661 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3662 inside strings and character constants. */
3663 #define FOO(x) 'x'
3664 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3665
3666 int test (int i, double x);
3667 struct s1 {int (*f) (int a);};
3668 struct s2 {int (*f) (double a);};
3669 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3670 int argc;
3671 char **argv;
3672 int
3673 main ()
3674 {
3675 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3676 ;
3677 return 0;
3678 }
3679 _ACEOF
3680 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682 do
3683 CC="$ac_save_CC $ac_arg"
3684 if ac_fn_c_try_compile "$LINENO"; then :
3685 ac_cv_prog_cc_c89=$ac_arg
3686 fi
3687 rm -f core conftest.err conftest.$ac_objext
3688 test "x$ac_cv_prog_cc_c89" != "xno" && break
3689 done
3690 rm -f conftest.$ac_ext
3691 CC=$ac_save_CC
3692
3693 fi
3694 # AC_CACHE_VAL
3695 case "x$ac_cv_prog_cc_c89" in
3696 x)
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3698 $as_echo "none needed" >&6; } ;;
3699 xno)
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3701 $as_echo "unsupported" >&6; } ;;
3702 *)
3703 CC="$CC $ac_cv_prog_cc_c89"
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3705 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3706 esac
3707 if test "x$ac_cv_prog_cc_c89" != xno; then :
3708
3709 fi
3710
3711 ac_ext=c
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716
3717 depcc="$CC" am_compiler_list=
3718
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3720 $as_echo_n "checking dependency style of $depcc... " >&6; }
3721 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3725 # We make a subdir and do the tests there. Otherwise we can end up
3726 # making bogus files that we don't know about and never remove. For
3727 # instance it was reported that on HP-UX the gcc test will end up
3728 # making a dummy file named 'D' -- because '-MD' means "put the output
3729 # in D".
3730 rm -rf conftest.dir
3731 mkdir conftest.dir
3732 # Copy depcomp to subdir because otherwise we won't find it if we're
3733 # using a relative directory.
3734 cp "$am_depcomp" conftest.dir
3735 cd conftest.dir
3736 # We will build objects and dependencies in a subdirectory because
3737 # it helps to detect inapplicable dependency modes. For instance
3738 # both Tru64's cc and ICC support -MD to output dependencies as a
3739 # side effect of compilation, but ICC will put the dependencies in
3740 # the current directory while Tru64 will put them in the object
3741 # directory.
3742 mkdir sub
3743
3744 am_cv_CC_dependencies_compiler_type=none
3745 if test "$am_compiler_list" = ""; then
3746 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3747 fi
3748 am__universal=false
3749 case " $depcc " in #(
3750 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3751 esac
3752
3753 for depmode in $am_compiler_list; do
3754 # Setup a source with many dependencies, because some compilers
3755 # like to wrap large dependency lists on column 80 (with \), and
3756 # we should not choose a depcomp mode which is confused by this.
3757 #
3758 # We need to recreate these files for each test, as the compiler may
3759 # overwrite some of them when testing with obscure command lines.
3760 # This happens at least with the AIX C compiler.
3761 : > sub/conftest.c
3762 for i in 1 2 3 4 5 6; do
3763 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3764 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3765 # Solaris 10 /bin/sh.
3766 echo '/* dummy */' > sub/conftst$i.h
3767 done
3768 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3769
3770 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3771 # mode. It turns out that the SunPro C++ compiler does not properly
3772 # handle '-M -o', and we need to detect this. Also, some Intel
3773 # versions had trouble with output in subdirs.
3774 am__obj=sub/conftest.${OBJEXT-o}
3775 am__minus_obj="-o $am__obj"
3776 case $depmode in
3777 gcc)
3778 # This depmode causes a compiler race in universal mode.
3779 test "$am__universal" = false || continue
3780 ;;
3781 nosideeffect)
3782 # After this tag, mechanisms are not by side-effect, so they'll
3783 # only be used when explicitly requested.
3784 if test "x$enable_dependency_tracking" = xyes; then
3785 continue
3786 else
3787 break
3788 fi
3789 ;;
3790 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3791 # This compiler won't grok '-c -o', but also, the minuso test has
3792 # not run yet. These depmodes are late enough in the game, and
3793 # so weak that their functioning should not be impacted.
3794 am__obj=conftest.${OBJEXT-o}
3795 am__minus_obj=
3796 ;;
3797 none) break ;;
3798 esac
3799 if depmode=$depmode \
3800 source=sub/conftest.c object=$am__obj \
3801 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3802 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3803 >/dev/null 2>conftest.err &&
3804 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3805 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3806 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3807 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3808 # icc doesn't choke on unknown options, it will just issue warnings
3809 # or remarks (even with -Werror). So we grep stderr for any message
3810 # that says an option was ignored or not supported.
3811 # When given -MP, icc 7.0 and 7.1 complain thusly:
3812 # icc: Command line warning: ignoring option '-M'; no argument required
3813 # The diagnosis changed in icc 8.0:
3814 # icc: Command line remark: option '-MP' not supported
3815 if (grep 'ignoring option' conftest.err ||
3816 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3817 am_cv_CC_dependencies_compiler_type=$depmode
3818 break
3819 fi
3820 fi
3821 done
3822
3823 cd ..
3824 rm -rf conftest.dir
3825 else
3826 am_cv_CC_dependencies_compiler_type=none
3827 fi
3828
3829 fi
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3831 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3832 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3833
3834 if
3835 test "x$enable_dependency_tracking" != xno \
3836 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3837 am__fastdepCC_TRUE=
3838 am__fastdepCC_FALSE='#'
3839 else
3840 am__fastdepCC_TRUE='#'
3841 am__fastdepCC_FALSE=
3842 fi
3843
3844
3845
3846 if test -n "$ac_tool_prefix"; then
3847 for ac_prog in ar lib "link -lib"
3848 do
3849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if ${ac_cv_prog_AR+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -n "$AR"; then
3857 ac_cv_prog_AR="$AR" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3866 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870 done
3871 done
3872 IFS=$as_save_IFS
3873
3874 fi
3875 fi
3876 AR=$ac_cv_prog_AR
3877 if test -n "$AR"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3879 $as_echo "$AR" >&6; }
3880 else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 $as_echo "no" >&6; }
3883 fi
3884
3885
3886 test -n "$AR" && break
3887 done
3888 fi
3889 if test -z "$AR"; then
3890 ac_ct_AR=$AR
3891 for ac_prog in ar lib "link -lib"
3892 do
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894 set dummy $ac_prog; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$ac_ct_AR"; then
3901 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_ac_ct_AR="$ac_prog"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3913 fi
3914 done
3915 done
3916 IFS=$as_save_IFS
3917
3918 fi
3919 fi
3920 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3921 if test -n "$ac_ct_AR"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3923 $as_echo "$ac_ct_AR" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 fi
3928
3929
3930 test -n "$ac_ct_AR" && break
3931 done
3932
3933 if test "x$ac_ct_AR" = x; then
3934 AR="false"
3935 else
3936 case $cross_compiling:$ac_tool_warned in
3937 yes:)
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3940 ac_tool_warned=yes ;;
3941 esac
3942 AR=$ac_ct_AR
3943 fi
3944 fi
3945
3946 : ${AR=ar}
3947
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3949 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3950 if ${am_cv_ar_interface+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 am_cv_ar_interface=ar
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956 int some_variable = 0;
3957 _ACEOF
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3961 (eval $am_ar_try) 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965 if test "$ac_status" -eq 0; then
3966 am_cv_ar_interface=ar
3967 else
3968 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3970 (eval $am_ar_try) 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }
3974 if test "$ac_status" -eq 0; then
3975 am_cv_ar_interface=lib
3976 else
3977 am_cv_ar_interface=unknown
3978 fi
3979 fi
3980 rm -f conftest.lib libconftest.a
3981
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3987 $as_echo "$am_cv_ar_interface" >&6; }
3988
3989 case $am_cv_ar_interface in
3990 ar)
3991 ;;
3992 lib)
3993 # Microsoft lib, so override with the ar-lib wrapper script.
3994 # FIXME: It is wrong to rewrite AR.
3995 # But if we don't then we get into trouble of one sort or another.
3996 # A longer-term fix would be to have automake use am__AR in this case,
3997 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3998 # similar.
3999 AR="$am_aux_dir/ar-lib $AR"
4000 ;;
4001 unknown)
4002 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4003 ;;
4004 esac
4005 # Required by automake 1.12.
4006
4007 case `pwd` in
4008 *\ * | *\ *)
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4010 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4011 esac
4012
4013
4014
4015 macro_version='2.4.2'
4016 macro_revision='1.3337'
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030 ltmain="$ac_aux_dir/ltmain.sh"
4031
4032 # Make sure we can run config.sub.
4033 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4034 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4037 $as_echo_n "checking build system type... " >&6; }
4038 if ${ac_cv_build+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 ac_build_alias=$build_alias
4042 test "x$ac_build_alias" = x &&
4043 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4044 test "x$ac_build_alias" = x &&
4045 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4046 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4047 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4048
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4051 $as_echo "$ac_cv_build" >&6; }
4052 case $ac_cv_build in
4053 *-*-*) ;;
4054 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4055 esac
4056 build=$ac_cv_build
4057 ac_save_IFS=$IFS; IFS='-'
4058 set x $ac_cv_build
4059 shift
4060 build_cpu=$1
4061 build_vendor=$2
4062 shift; shift
4063 # Remember, the first character of IFS is used to create $*,
4064 # except with old shells:
4065 build_os=$*
4066 IFS=$ac_save_IFS
4067 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4068
4069
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4071 $as_echo_n "checking host system type... " >&6; }
4072 if ${ac_cv_host+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 if test "x$host_alias" = x; then
4076 ac_cv_host=$ac_cv_build
4077 else
4078 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4079 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4080 fi
4081
4082 fi
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4084 $as_echo "$ac_cv_host" >&6; }
4085 case $ac_cv_host in
4086 *-*-*) ;;
4087 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4088 esac
4089 host=$ac_cv_host
4090 ac_save_IFS=$IFS; IFS='-'
4091 set x $ac_cv_host
4092 shift
4093 host_cpu=$1
4094 host_vendor=$2
4095 shift; shift
4096 # Remember, the first character of IFS is used to create $*,
4097 # except with old shells:
4098 host_os=$*
4099 IFS=$ac_save_IFS
4100 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4101
4102
4103 # Backslashify metacharacters that are still active within
4104 # double-quoted strings.
4105 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4106
4107 # Same as above, but do not quote variable references.
4108 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4109
4110 # Sed substitution to delay expansion of an escaped shell variable in a
4111 # double_quote_subst'ed string.
4112 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4113
4114 # Sed substitution to delay expansion of an escaped single quote.
4115 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4116
4117 # Sed substitution to avoid accidental globbing in evaled expressions
4118 no_glob_subst='s/\*/\\\*/g'
4119
4120 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4122 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4123
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4125 $as_echo_n "checking how to print strings... " >&6; }
4126 # Test print first, because it will be a builtin if present.
4127 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4128 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4129 ECHO='print -r --'
4130 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4131 ECHO='printf %s\n'
4132 else
4133 # Use this function as a fallback that always works.
4134 func_fallback_echo ()
4135 {
4136 eval 'cat <<_LTECHO_EOF
4137 $1
4138 _LTECHO_EOF'
4139 }
4140 ECHO='func_fallback_echo'
4141 fi
4142
4143 # func_echo_all arg...
4144 # Invoke $ECHO with all args, space-separated.
4145 func_echo_all ()
4146 {
4147 $ECHO ""
4148 }
4149
4150 case "$ECHO" in
4151 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4152 $as_echo "printf" >&6; } ;;
4153 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4154 $as_echo "print -r" >&6; } ;;
4155 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4156 $as_echo "cat" >&6; } ;;
4157 esac
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4173 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4174 if ${ac_cv_path_SED+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4178 for ac_i in 1 2 3 4 5 6 7; do
4179 ac_script="$ac_script$as_nl$ac_script"
4180 done
4181 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4182 { ac_script=; unset ac_script;}
4183 if test -z "$SED"; then
4184 ac_path_SED_found=false
4185 # Loop through the user's path and test for each of PROGNAME-LIST
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in sed gsed; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4194 as_fn_executable_p "$ac_path_SED" || continue
4195 # Check for GNU ac_path_SED and select it if it is found.
4196 # Check for GNU $ac_path_SED
4197 case `"$ac_path_SED" --version 2>&1` in
4198 *GNU*)
4199 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4200 *)
4201 ac_count=0
4202 $as_echo_n 0123456789 >"conftest.in"
4203 while :
4204 do
4205 cat "conftest.in" "conftest.in" >"conftest.tmp"
4206 mv "conftest.tmp" "conftest.in"
4207 cp "conftest.in" "conftest.nl"
4208 $as_echo '' >> "conftest.nl"
4209 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211 as_fn_arith $ac_count + 1 && ac_count=$as_val
4212 if test $ac_count -gt ${ac_path_SED_max-0}; then
4213 # Best one so far, save it but keep looking for a better one
4214 ac_cv_path_SED="$ac_path_SED"
4215 ac_path_SED_max=$ac_count
4216 fi
4217 # 10*(2^10) chars as input seems more than enough
4218 test $ac_count -gt 10 && break
4219 done
4220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221 esac
4222
4223 $ac_path_SED_found && break 3
4224 done
4225 done
4226 done
4227 IFS=$as_save_IFS
4228 if test -z "$ac_cv_path_SED"; then
4229 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4230 fi
4231 else
4232 ac_cv_path_SED=$SED
4233 fi
4234
4235 fi
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4237 $as_echo "$ac_cv_path_SED" >&6; }
4238 SED="$ac_cv_path_SED"
4239 rm -f conftest.sed
4240
4241 test -z "$SED" && SED=sed
4242 Xsed="$SED -e 1s/^X//"
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4255 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4256 if ${ac_cv_path_GREP+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if test -z "$GREP"; then
4260 ac_path_GREP_found=false
4261 # Loop through the user's path and test for each of PROGNAME-LIST
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_prog in grep ggrep; do
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4270 as_fn_executable_p "$ac_path_GREP" || continue
4271 # Check for GNU ac_path_GREP and select it if it is found.
4272 # Check for GNU $ac_path_GREP
4273 case `"$ac_path_GREP" --version 2>&1` in
4274 *GNU*)
4275 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4276 *)
4277 ac_count=0
4278 $as_echo_n 0123456789 >"conftest.in"
4279 while :
4280 do
4281 cat "conftest.in" "conftest.in" >"conftest.tmp"
4282 mv "conftest.tmp" "conftest.in"
4283 cp "conftest.in" "conftest.nl"
4284 $as_echo 'GREP' >> "conftest.nl"
4285 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4287 as_fn_arith $ac_count + 1 && ac_count=$as_val
4288 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4289 # Best one so far, save it but keep looking for a better one
4290 ac_cv_path_GREP="$ac_path_GREP"
4291 ac_path_GREP_max=$ac_count
4292 fi
4293 # 10*(2^10) chars as input seems more than enough
4294 test $ac_count -gt 10 && break
4295 done
4296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297 esac
4298
4299 $ac_path_GREP_found && break 3
4300 done
4301 done
4302 done
4303 IFS=$as_save_IFS
4304 if test -z "$ac_cv_path_GREP"; then
4305 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4306 fi
4307 else
4308 ac_cv_path_GREP=$GREP
4309 fi
4310
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4313 $as_echo "$ac_cv_path_GREP" >&6; }
4314 GREP="$ac_cv_path_GREP"
4315
4316
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4318 $as_echo_n "checking for egrep... " >&6; }
4319 if ${ac_cv_path_EGREP+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4323 then ac_cv_path_EGREP="$GREP -E"
4324 else
4325 if test -z "$EGREP"; then
4326 ac_path_EGREP_found=false
4327 # Loop through the user's path and test for each of PROGNAME-LIST
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4330 do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_prog in egrep; do
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4336 as_fn_executable_p "$ac_path_EGREP" || continue
4337 # Check for GNU ac_path_EGREP and select it if it is found.
4338 # Check for GNU $ac_path_EGREP
4339 case `"$ac_path_EGREP" --version 2>&1` in
4340 *GNU*)
4341 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4342 *)
4343 ac_count=0
4344 $as_echo_n 0123456789 >"conftest.in"
4345 while :
4346 do
4347 cat "conftest.in" "conftest.in" >"conftest.tmp"
4348 mv "conftest.tmp" "conftest.in"
4349 cp "conftest.in" "conftest.nl"
4350 $as_echo 'EGREP' >> "conftest.nl"
4351 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4353 as_fn_arith $ac_count + 1 && ac_count=$as_val
4354 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4355 # Best one so far, save it but keep looking for a better one
4356 ac_cv_path_EGREP="$ac_path_EGREP"
4357 ac_path_EGREP_max=$ac_count
4358 fi
4359 # 10*(2^10) chars as input seems more than enough
4360 test $ac_count -gt 10 && break
4361 done
4362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4363 esac
4364
4365 $ac_path_EGREP_found && break 3
4366 done
4367 done
4368 done
4369 IFS=$as_save_IFS
4370 if test -z "$ac_cv_path_EGREP"; then
4371 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4372 fi
4373 else
4374 ac_cv_path_EGREP=$EGREP
4375 fi
4376
4377 fi
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4380 $as_echo "$ac_cv_path_EGREP" >&6; }
4381 EGREP="$ac_cv_path_EGREP"
4382
4383
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4385 $as_echo_n "checking for fgrep... " >&6; }
4386 if ${ac_cv_path_FGREP+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4390 then ac_cv_path_FGREP="$GREP -F"
4391 else
4392 if test -z "$FGREP"; then
4393 ac_path_FGREP_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_prog in fgrep; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4403 as_fn_executable_p "$ac_path_FGREP" || continue
4404 # Check for GNU ac_path_FGREP and select it if it is found.
4405 # Check for GNU $ac_path_FGREP
4406 case `"$ac_path_FGREP" --version 2>&1` in
4407 *GNU*)
4408 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4409 *)
4410 ac_count=0
4411 $as_echo_n 0123456789 >"conftest.in"
4412 while :
4413 do
4414 cat "conftest.in" "conftest.in" >"conftest.tmp"
4415 mv "conftest.tmp" "conftest.in"
4416 cp "conftest.in" "conftest.nl"
4417 $as_echo 'FGREP' >> "conftest.nl"
4418 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420 as_fn_arith $ac_count + 1 && ac_count=$as_val
4421 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_FGREP="$ac_path_FGREP"
4424 ac_path_FGREP_max=$ac_count
4425 fi
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4428 done
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 esac
4431
4432 $ac_path_FGREP_found && break 3
4433 done
4434 done
4435 done
4436 IFS=$as_save_IFS
4437 if test -z "$ac_cv_path_FGREP"; then
4438 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4439 fi
4440 else
4441 ac_cv_path_FGREP=$FGREP
4442 fi
4443
4444 fi
4445 fi
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4447 $as_echo "$ac_cv_path_FGREP" >&6; }
4448 FGREP="$ac_cv_path_FGREP"
4449
4450
4451 test -z "$GREP" && GREP=grep
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471 # Check whether --with-gnu-ld was given.
4472 if test "${with_gnu_ld+set}" = set; then :
4473 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4474 else
4475 with_gnu_ld=no
4476 fi
4477
4478 ac_prog=ld
4479 if test "$GCC" = yes; then
4480 # Check if gcc -print-prog-name=ld gives a path.
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4482 $as_echo_n "checking for ld used by $CC... " >&6; }
4483 case $host in
4484 *-*-mingw*)
4485 # gcc leaves a trailing carriage return which upsets mingw
4486 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4487 *)
4488 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4489 esac
4490 case $ac_prog in
4491 # Accept absolute paths.
4492 [\\/]* | ?:[\\/]*)
4493 re_direlt='/[^/][^/]*/\.\./'
4494 # Canonicalize the pathname of ld
4495 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4496 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4497 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4498 done
4499 test -z "$LD" && LD="$ac_prog"
4500 ;;
4501 "")
4502 # If it fails, then pretend we aren't using GCC.
4503 ac_prog=ld
4504 ;;
4505 *)
4506 # If it is relative, then search for the first ld in PATH.
4507 with_gnu_ld=unknown
4508 ;;
4509 esac
4510 elif test "$with_gnu_ld" = yes; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4512 $as_echo_n "checking for GNU ld... " >&6; }
4513 else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4515 $as_echo_n "checking for non-GNU ld... " >&6; }
4516 fi
4517 if ${lt_cv_path_LD+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test -z "$LD"; then
4521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4522 for ac_dir in $PATH; do
4523 IFS="$lt_save_ifs"
4524 test -z "$ac_dir" && ac_dir=.
4525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4526 lt_cv_path_LD="$ac_dir/$ac_prog"
4527 # Check to see if the program is GNU ld. I'd rather use --version,
4528 # but apparently some variants of GNU ld only accept -v.
4529 # Break only if it was the GNU/non-GNU ld that we prefer.
4530 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4531 *GNU* | *'with BFD'*)
4532 test "$with_gnu_ld" != no && break
4533 ;;
4534 *)
4535 test "$with_gnu_ld" != yes && break
4536 ;;
4537 esac
4538 fi
4539 done
4540 IFS="$lt_save_ifs"
4541 else
4542 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4543 fi
4544 fi
4545
4546 LD="$lt_cv_path_LD"
4547 if test -n "$LD"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4549 $as_echo "$LD" >&6; }
4550 else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4553 fi
4554 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4556 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4557 if ${lt_cv_prog_gnu_ld+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4561 case `$LD -v 2>&1 </dev/null` in
4562 *GNU* | *'with BFD'*)
4563 lt_cv_prog_gnu_ld=yes
4564 ;;
4565 *)
4566 lt_cv_prog_gnu_ld=no
4567 ;;
4568 esac
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4571 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4572 with_gnu_ld=$lt_cv_prog_gnu_ld
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4583 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4584 if ${lt_cv_path_NM+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$NM"; then
4588 # Let the user override the test.
4589 lt_cv_path_NM="$NM"
4590 else
4591 lt_nm_to_check="${ac_tool_prefix}nm"
4592 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4593 lt_nm_to_check="$lt_nm_to_check nm"
4594 fi
4595 for lt_tmp_nm in $lt_nm_to_check; do
4596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4597 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4598 IFS="$lt_save_ifs"
4599 test -z "$ac_dir" && ac_dir=.
4600 tmp_nm="$ac_dir/$lt_tmp_nm"
4601 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4602 # Check to see if the nm accepts a BSD-compat flag.
4603 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4604 # nm: unknown option "B" ignored
4605 # Tru64's nm complains that /dev/null is an invalid object file
4606 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4607 */dev/null* | *'Invalid file or object type'*)
4608 lt_cv_path_NM="$tmp_nm -B"
4609 break
4610 ;;
4611 *)
4612 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4613 */dev/null*)
4614 lt_cv_path_NM="$tmp_nm -p"
4615 break
4616 ;;
4617 *)
4618 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4619 continue # so that we can try to find one that supports BSD flags
4620 ;;
4621 esac
4622 ;;
4623 esac
4624 fi
4625 done
4626 IFS="$lt_save_ifs"
4627 done
4628 : ${lt_cv_path_NM=no}
4629 fi
4630 fi
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4632 $as_echo "$lt_cv_path_NM" >&6; }
4633 if test "$lt_cv_path_NM" != "no"; then
4634 NM="$lt_cv_path_NM"
4635 else
4636 # Didn't find any BSD compatible name lister, look for dumpbin.
4637 if test -n "$DUMPBIN"; then :
4638 # Let the user override the test.
4639 else
4640 if test -n "$ac_tool_prefix"; then
4641 for ac_prog in dumpbin "link -dump"
4642 do
4643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if ${ac_cv_prog_DUMPBIN+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$DUMPBIN"; then
4651 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 DUMPBIN=$ac_cv_prog_DUMPBIN
4671 if test -n "$DUMPBIN"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4673 $as_echo "$DUMPBIN" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680 test -n "$DUMPBIN" && break
4681 done
4682 fi
4683 if test -z "$DUMPBIN"; then
4684 ac_ct_DUMPBIN=$DUMPBIN
4685 for ac_prog in dumpbin "link -dump"
4686 do
4687 # Extract the first word of "$ac_prog", so it can be a program name with args.
4688 set dummy $ac_prog; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_DUMPBIN"; then
4695 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4715 if test -n "$ac_ct_DUMPBIN"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4717 $as_echo "$ac_ct_DUMPBIN" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723
4724 test -n "$ac_ct_DUMPBIN" && break
4725 done
4726
4727 if test "x$ac_ct_DUMPBIN" = x; then
4728 DUMPBIN=":"
4729 else
4730 case $cross_compiling:$ac_tool_warned in
4731 yes:)
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734 ac_tool_warned=yes ;;
4735 esac
4736 DUMPBIN=$ac_ct_DUMPBIN
4737 fi
4738 fi
4739
4740 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4741 *COFF*)
4742 DUMPBIN="$DUMPBIN -symbols"
4743 ;;
4744 *)
4745 DUMPBIN=:
4746 ;;
4747 esac
4748 fi
4749
4750 if test "$DUMPBIN" != ":"; then
4751 NM="$DUMPBIN"
4752 fi
4753 fi
4754 test -z "$NM" && NM=nm
4755
4756
4757
4758
4759
4760
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4762 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4763 if ${lt_cv_nm_interface+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 lt_cv_nm_interface="BSD nm"
4767 echo "int some_variable = 0;" > conftest.$ac_ext
4768 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4769 (eval "$ac_compile" 2>conftest.err)
4770 cat conftest.err >&5
4771 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4772 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4773 cat conftest.err >&5
4774 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4775 cat conftest.out >&5
4776 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4777 lt_cv_nm_interface="MS dumpbin"
4778 fi
4779 rm -f conftest*
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4782 $as_echo "$lt_cv_nm_interface" >&6; }
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4785 $as_echo_n "checking whether ln -s works... " >&6; }
4786 LN_S=$as_ln_s
4787 if test "$LN_S" = "ln -s"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789 $as_echo "yes" >&6; }
4790 else
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4792 $as_echo "no, using $LN_S" >&6; }
4793 fi
4794
4795 # find the maximum length of command line arguments
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4797 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4798 if ${lt_cv_sys_max_cmd_len+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 i=0
4802 teststring="ABCD"
4803
4804 case $build_os in
4805 msdosdjgpp*)
4806 # On DJGPP, this test can blow up pretty badly due to problems in libc
4807 # (any single argument exceeding 2000 bytes causes a buffer overrun
4808 # during glob expansion). Even if it were fixed, the result of this
4809 # check would be larger than it should be.
4810 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4811 ;;
4812
4813 gnu*)
4814 # Under GNU Hurd, this test is not required because there is
4815 # no limit to the length of command line arguments.
4816 # Libtool will interpret -1 as no limit whatsoever
4817 lt_cv_sys_max_cmd_len=-1;
4818 ;;
4819
4820 cygwin* | mingw* | cegcc*)
4821 # On Win9x/ME, this test blows up -- it succeeds, but takes
4822 # about 5 minutes as the teststring grows exponentially.
4823 # Worse, since 9x/ME are not pre-emptively multitasking,
4824 # you end up with a "frozen" computer, even though with patience
4825 # the test eventually succeeds (with a max line length of 256k).
4826 # Instead, let's just punt: use the minimum linelength reported by
4827 # all of the supported platforms: 8192 (on NT/2K/XP).
4828 lt_cv_sys_max_cmd_len=8192;
4829 ;;
4830
4831 mint*)
4832 # On MiNT this can take a long time and run out of memory.
4833 lt_cv_sys_max_cmd_len=8192;
4834 ;;
4835
4836 amigaos*)
4837 # On AmigaOS with pdksh, this test takes hours, literally.
4838 # So we just punt and use a minimum line length of 8192.
4839 lt_cv_sys_max_cmd_len=8192;
4840 ;;
4841
4842 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4843 # This has been around since 386BSD, at least. Likely further.
4844 if test -x /sbin/sysctl; then
4845 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4846 elif test -x /usr/sbin/sysctl; then
4847 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4848 else
4849 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4850 fi
4851 # And add a safety zone
4852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4854 ;;
4855
4856 interix*)
4857 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4858 lt_cv_sys_max_cmd_len=196608
4859 ;;
4860
4861 os2*)
4862 # The test takes a long time on OS/2.
4863 lt_cv_sys_max_cmd_len=8192
4864 ;;
4865
4866 osf*)
4867 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4868 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4869 # nice to cause kernel panics so lets avoid the loop below.
4870 # First set a reasonable default.
4871 lt_cv_sys_max_cmd_len=16384
4872 #
4873 if test -x /sbin/sysconfig; then
4874 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4875 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4876 esac
4877 fi
4878 ;;
4879 sco3.2v5*)
4880 lt_cv_sys_max_cmd_len=102400
4881 ;;
4882 sysv5* | sco5v6* | sysv4.2uw2*)
4883 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4884 if test -n "$kargmax"; then
4885 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4886 else
4887 lt_cv_sys_max_cmd_len=32768
4888 fi
4889 ;;
4890 *)
4891 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4892 if test -n "$lt_cv_sys_max_cmd_len" && \
4893 test undefined != "$lt_cv_sys_max_cmd_len"; then
4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4896 else
4897 # Make teststring a little bigger before we do anything with it.
4898 # a 1K string should be a reasonable start.
4899 for i in 1 2 3 4 5 6 7 8 ; do
4900 teststring=$teststring$teststring
4901 done
4902 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4903 # If test is not a shell built-in, we'll probably end up computing a
4904 # maximum length that is only half of the actual maximum length, but
4905 # we can't tell.
4906 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4907 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4908 test $i != 17 # 1/2 MB should be enough
4909 do
4910 i=`expr $i + 1`
4911 teststring=$teststring$teststring
4912 done
4913 # Only check the string length outside the loop.
4914 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4915 teststring=
4916 # Add a significant safety factor because C++ compilers can tack on
4917 # massive amounts of additional arguments before passing them to the
4918 # linker. It appears as though 1/2 is a usable value.
4919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4920 fi
4921 ;;
4922 esac
4923
4924 fi
4925
4926 if test -n $lt_cv_sys_max_cmd_len ; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4928 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4931 $as_echo "none" >&6; }
4932 fi
4933 max_cmd_len=$lt_cv_sys_max_cmd_len
4934
4935
4936
4937
4938
4939
4940 : ${CP="cp -f"}
4941 : ${MV="mv -f"}
4942 : ${RM="rm -f"}
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4945 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4946 # Try some XSI features
4947 xsi_shell=no
4948 ( _lt_dummy="a/b/c"
4949 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4950 = c,a/b,b/c, \
4951 && eval 'test $(( 1 + 1 )) -eq 2 \
4952 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4953 && xsi_shell=yes
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4955 $as_echo "$xsi_shell" >&6; }
4956
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4959 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4960 lt_shell_append=no
4961 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4962 >/dev/null 2>&1 \
4963 && lt_shell_append=yes
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4965 $as_echo "$lt_shell_append" >&6; }
4966
4967
4968 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4969 lt_unset=unset
4970 else
4971 lt_unset=false
4972 fi
4973
4974
4975
4976
4977
4978 # test EBCDIC or ASCII
4979 case `echo X|tr X '\101'` in
4980 A) # ASCII based system
4981 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4982 lt_SP2NL='tr \040 \012'
4983 lt_NL2SP='tr \015\012 \040\040'
4984 ;;
4985 *) # EBCDIC based system
4986 lt_SP2NL='tr \100 \n'
4987 lt_NL2SP='tr \r\n \100\100'
4988 ;;
4989 esac
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5000 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5001 if ${lt_cv_to_host_file_cmd+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 case $host in
5005 *-*-mingw* )
5006 case $build in
5007 *-*-mingw* ) # actually msys
5008 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5009 ;;
5010 *-*-cygwin* )
5011 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5012 ;;
5013 * ) # otherwise, assume *nix
5014 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5015 ;;
5016 esac
5017 ;;
5018 *-*-cygwin* )
5019 case $build in
5020 *-*-mingw* ) # actually msys
5021 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5022 ;;
5023 *-*-cygwin* )
5024 lt_cv_to_host_file_cmd=func_convert_file_noop
5025 ;;
5026 * ) # otherwise, assume *nix
5027 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5028 ;;
5029 esac
5030 ;;
5031 * ) # unhandled hosts (and "normal" native builds)
5032 lt_cv_to_host_file_cmd=func_convert_file_noop
5033 ;;
5034 esac
5035
5036 fi
5037
5038 to_host_file_cmd=$lt_cv_to_host_file_cmd
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5040 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5041
5042
5043
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5047 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5048 if ${lt_cv_to_tool_file_cmd+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 #assume ordinary cross tools, or native build.
5052 lt_cv_to_tool_file_cmd=func_convert_file_noop
5053 case $host in
5054 *-*-mingw* )
5055 case $build in
5056 *-*-mingw* ) # actually msys
5057 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5058 ;;
5059 esac
5060 ;;
5061 esac
5062
5063 fi
5064
5065 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5067 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5068
5069
5070
5071
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5074 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5075 if ${lt_cv_ld_reload_flag+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 lt_cv_ld_reload_flag='-r'
5079 fi
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5081 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5082 reload_flag=$lt_cv_ld_reload_flag
5083 case $reload_flag in
5084 "" | " "*) ;;
5085 *) reload_flag=" $reload_flag" ;;
5086 esac
5087 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5088 case $host_os in
5089 cygwin* | mingw* | pw32* | cegcc*)
5090 if test "$GCC" != yes; then
5091 reload_cmds=false
5092 fi
5093 ;;
5094 darwin*)
5095 if test "$GCC" = yes; then
5096 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5097 else
5098 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5099 fi
5100 ;;
5101 esac
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_OBJDUMP+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -n "$OBJDUMP"; then
5120 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 OBJDUMP=$ac_cv_prog_OBJDUMP
5140 if test -n "$OBJDUMP"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5142 $as_echo "$OBJDUMP" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149 fi
5150 if test -z "$ac_cv_prog_OBJDUMP"; then
5151 ac_ct_OBJDUMP=$OBJDUMP
5152 # Extract the first word of "objdump", so it can be a program name with args.
5153 set dummy objdump; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if test -n "$ac_ct_OBJDUMP"; then
5160 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175 IFS=$as_save_IFS
5176
5177 fi
5178 fi
5179 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5180 if test -n "$ac_ct_OBJDUMP"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5182 $as_echo "$ac_ct_OBJDUMP" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188 if test "x$ac_ct_OBJDUMP" = x; then
5189 OBJDUMP="false"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197 OBJDUMP=$ac_ct_OBJDUMP
5198 fi
5199 else
5200 OBJDUMP="$ac_cv_prog_OBJDUMP"
5201 fi
5202
5203 test -z "$OBJDUMP" && OBJDUMP=objdump
5204
5205
5206
5207
5208
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5211 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5212 if ${lt_cv_deplibs_check_method+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 lt_cv_file_magic_cmd='$MAGIC_CMD'
5216 lt_cv_file_magic_test_file=
5217 lt_cv_deplibs_check_method='unknown'
5218 # Need to set the preceding variable on all platforms that support
5219 # interlibrary dependencies.
5220 # 'none' -- dependencies not supported.
5221 # `unknown' -- same as none, but documents that we really don't know.
5222 # 'pass_all' -- all dependencies passed with no checks.
5223 # 'test_compile' -- check by making test program.
5224 # 'file_magic [[regex]]' -- check by looking for files in library path
5225 # which responds to the $file_magic_cmd with a given extended regex.
5226 # If you have `file' or equivalent on your system and you're not sure
5227 # whether `pass_all' will *always* work, you probably want this one.
5228
5229 case $host_os in
5230 aix[4-9]*)
5231 lt_cv_deplibs_check_method=pass_all
5232 ;;
5233
5234 beos*)
5235 lt_cv_deplibs_check_method=pass_all
5236 ;;
5237
5238 bsdi[45]*)
5239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5240 lt_cv_file_magic_cmd='/usr/bin/file -L'
5241 lt_cv_file_magic_test_file=/shlib/libc.so
5242 ;;
5243
5244 cygwin*)
5245 # func_win32_libid is a shell function defined in ltmain.sh
5246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5247 lt_cv_file_magic_cmd='func_win32_libid'
5248 ;;
5249
5250 mingw* | pw32*)
5251 # Base MSYS/MinGW do not provide the 'file' command needed by
5252 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5253 # unless we find 'file', for example because we are cross-compiling.
5254 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5255 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5257 lt_cv_file_magic_cmd='func_win32_libid'
5258 else
5259 # Keep this pattern in sync with the one in func_win32_libid.
5260 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5261 lt_cv_file_magic_cmd='$OBJDUMP -f'
5262 fi
5263 ;;
5264
5265 cegcc*)
5266 # use the weaker test based on 'objdump'. See mingw*.
5267 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5268 lt_cv_file_magic_cmd='$OBJDUMP -f'
5269 ;;
5270
5271 darwin* | rhapsody*)
5272 lt_cv_deplibs_check_method=pass_all
5273 ;;
5274
5275 freebsd* | dragonfly*)
5276 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5277 case $host_cpu in
5278 i*86 )
5279 # Not sure whether the presence of OpenBSD here was a mistake.
5280 # Let's accept both of them until this is cleared up.
5281 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5282 lt_cv_file_magic_cmd=/usr/bin/file
5283 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5284 ;;
5285 esac
5286 else
5287 lt_cv_deplibs_check_method=pass_all
5288 fi
5289 ;;
5290
5291 haiku*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295 hpux10.20* | hpux11*)
5296 lt_cv_file_magic_cmd=/usr/bin/file
5297 case $host_cpu in
5298 ia64*)
5299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5300 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5301 ;;
5302 hppa*64*)
5303 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]'
5304 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5305 ;;
5306 *)
5307 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5308 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5309 ;;
5310 esac
5311 ;;
5312
5313 interix[3-9]*)
5314 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5316 ;;
5317
5318 irix5* | irix6* | nonstopux*)
5319 case $LD in
5320 *-32|*"-32 ") libmagic=32-bit;;
5321 *-n32|*"-n32 ") libmagic=N32;;
5322 *-64|*"-64 ") libmagic=64-bit;;
5323 *) libmagic=never-match;;
5324 esac
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327
5328 # This must be glibc/ELF.
5329 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332
5333 netbsd* | netbsdelf*-gnu)
5334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5336 else
5337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5338 fi
5339 ;;
5340
5341 newos6*)
5342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5343 lt_cv_file_magic_cmd=/usr/bin/file
5344 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5345 ;;
5346
5347 *nto* | *qnx*)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350
5351 openbsd*)
5352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5354 else
5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5356 fi
5357 ;;
5358
5359 osf3* | osf4* | osf5*)
5360 lt_cv_deplibs_check_method=pass_all
5361 ;;
5362
5363 rdos*)
5364 lt_cv_deplibs_check_method=pass_all
5365 ;;
5366
5367 solaris*)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370
5371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374
5375 sysv4 | sysv4.3*)
5376 case $host_vendor in
5377 motorola)
5378 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]'
5379 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5380 ;;
5381 ncr)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384 sequent)
5385 lt_cv_file_magic_cmd='/bin/file'
5386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5387 ;;
5388 sni)
5389 lt_cv_file_magic_cmd='/bin/file'
5390 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5391 lt_cv_file_magic_test_file=/lib/libc.so
5392 ;;
5393 siemens)
5394 lt_cv_deplibs_check_method=pass_all
5395 ;;
5396 pc)
5397 lt_cv_deplibs_check_method=pass_all
5398 ;;
5399 esac
5400 ;;
5401
5402 tpf*)
5403 lt_cv_deplibs_check_method=pass_all
5404 ;;
5405 esac
5406
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5409 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5410
5411 file_magic_glob=
5412 want_nocaseglob=no
5413 if test "$build" = "$host"; then
5414 case $host_os in
5415 mingw* | pw32*)
5416 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5417 want_nocaseglob=yes
5418 else
5419 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5420 fi
5421 ;;
5422 esac
5423 fi
5424
5425 file_magic_cmd=$lt_cv_file_magic_cmd
5426 deplibs_check_method=$lt_cv_deplibs_check_method
5427 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450 if test -n "$ac_tool_prefix"; then
5451 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5452 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_DLLTOOL+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$DLLTOOL"; then
5459 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472 done
5473 done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 DLLTOOL=$ac_cv_prog_DLLTOOL
5479 if test -n "$DLLTOOL"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5481 $as_echo "$DLLTOOL" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487
5488 fi
5489 if test -z "$ac_cv_prog_DLLTOOL"; then
5490 ac_ct_DLLTOOL=$DLLTOOL
5491 # Extract the first word of "dlltool", so it can be a program name with args.
5492 set dummy dlltool; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$ac_ct_DLLTOOL"; then
5499 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 fi
5517 fi
5518 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5519 if test -n "$ac_ct_DLLTOOL"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5521 $as_echo "$ac_ct_DLLTOOL" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526
5527 if test "x$ac_ct_DLLTOOL" = x; then
5528 DLLTOOL="false"
5529 else
5530 case $cross_compiling:$ac_tool_warned in
5531 yes:)
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5534 ac_tool_warned=yes ;;
5535 esac
5536 DLLTOOL=$ac_ct_DLLTOOL
5537 fi
5538 else
5539 DLLTOOL="$ac_cv_prog_DLLTOOL"
5540 fi
5541
5542 test -z "$DLLTOOL" && DLLTOOL=dlltool
5543
5544
5545
5546
5547
5548
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5551 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5552 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 lt_cv_sharedlib_from_linklib_cmd='unknown'
5556
5557 case $host_os in
5558 cygwin* | mingw* | pw32* | cegcc*)
5559 # two different shell functions defined in ltmain.sh
5560 # decide which to use based on capabilities of $DLLTOOL
5561 case `$DLLTOOL --help 2>&1` in
5562 *--identify-strict*)
5563 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5564 ;;
5565 *)
5566 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5567 ;;
5568 esac
5569 ;;
5570 *)
5571 # fallback: assume linklib IS sharedlib
5572 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5573 ;;
5574 esac
5575
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5578 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5579 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5580 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5581
5582
5583
5584
5585
5586
5587
5588 if test -n "$ac_tool_prefix"; then
5589 for ac_prog in ar
5590 do
5591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if ${ac_cv_prog_AR+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 if test -n "$AR"; then
5599 ac_cv_prog_AR="$AR" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612 done
5613 done
5614 IFS=$as_save_IFS
5615
5616 fi
5617 fi
5618 AR=$ac_cv_prog_AR
5619 if test -n "$AR"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5621 $as_echo "$AR" >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626
5627
5628 test -n "$AR" && break
5629 done
5630 fi
5631 if test -z "$AR"; then
5632 ac_ct_AR=$AR
5633 for ac_prog in ar
5634 do
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 if test -n "$ac_ct_AR"; then
5643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_ac_ct_AR="$ac_prog"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5655 fi
5656 done
5657 done
5658 IFS=$as_save_IFS
5659
5660 fi
5661 fi
5662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5663 if test -n "$ac_ct_AR"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5665 $as_echo "$ac_ct_AR" >&6; }
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670
5671
5672 test -n "$ac_ct_AR" && break
5673 done
5674
5675 if test "x$ac_ct_AR" = x; then
5676 AR="false"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679 yes:)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5683 esac
5684 AR=$ac_ct_AR
5685 fi
5686 fi
5687
5688 : ${AR=ar}
5689 : ${AR_FLAGS=cru}
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5702 $as_echo_n "checking for archiver @FILE support... " >&6; }
5703 if ${lt_cv_ar_at_file+:} false; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 lt_cv_ar_at_file=no
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709
5710 int
5711 main ()
5712 {
5713
5714 ;
5715 return 0;
5716 }
5717 _ACEOF
5718 if ac_fn_c_try_compile "$LINENO"; then :
5719 echo conftest.$ac_objext > conftest.lst
5720 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5722 (eval $lt_ar_try) 2>&5
5723 ac_status=$?
5724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725 test $ac_status = 0; }
5726 if test "$ac_status" -eq 0; then
5727 # Ensure the archiver fails upon bogus file names.
5728 rm -f conftest.$ac_objext libconftest.a
5729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5730 (eval $lt_ar_try) 2>&5
5731 ac_status=$?
5732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5733 test $ac_status = 0; }
5734 if test "$ac_status" -ne 0; then
5735 lt_cv_ar_at_file=@
5736 fi
5737 fi
5738 rm -f conftest.* libconftest.a
5739
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5745 $as_echo "$lt_cv_ar_at_file" >&6; }
5746
5747 if test "x$lt_cv_ar_at_file" = xno; then
5748 archiver_list_spec=
5749 else
5750 archiver_list_spec=$lt_cv_ar_at_file
5751 fi
5752
5753
5754
5755
5756
5757
5758
5759 if test -n "$ac_tool_prefix"; then
5760 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5761 set dummy ${ac_tool_prefix}strip; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_STRIP+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -n "$STRIP"; then
5768 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781 done
5782 done
5783 IFS=$as_save_IFS
5784
5785 fi
5786 fi
5787 STRIP=$ac_cv_prog_STRIP
5788 if test -n "$STRIP"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5790 $as_echo "$STRIP" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795
5796
5797 fi
5798 if test -z "$ac_cv_prog_STRIP"; then
5799 ac_ct_STRIP=$STRIP
5800 # Extract the first word of "strip", so it can be a program name with args.
5801 set dummy strip; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 if test -n "$ac_ct_STRIP"; then
5808 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_ac_ct_STRIP="strip"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5828 if test -n "$ac_ct_STRIP"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5830 $as_echo "$ac_ct_STRIP" >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836 if test "x$ac_ct_STRIP" = x; then
5837 STRIP=":"
5838 else
5839 case $cross_compiling:$ac_tool_warned in
5840 yes:)
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843 ac_tool_warned=yes ;;
5844 esac
5845 STRIP=$ac_ct_STRIP
5846 fi
5847 else
5848 STRIP="$ac_cv_prog_STRIP"
5849 fi
5850
5851 test -z "$STRIP" && STRIP=:
5852
5853
5854
5855
5856
5857
5858 if test -n "$ac_tool_prefix"; then
5859 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5860 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_RANLIB+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test -n "$RANLIB"; then
5867 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 RANLIB=$ac_cv_prog_RANLIB
5887 if test -n "$RANLIB"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5889 $as_echo "$RANLIB" >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894
5895
5896 fi
5897 if test -z "$ac_cv_prog_RANLIB"; then
5898 ac_ct_RANLIB=$RANLIB
5899 # Extract the first word of "ranlib", so it can be a program name with args.
5900 set dummy ranlib; ac_word=$2
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 $as_echo_n "checking for $ac_word... " >&6; }
5903 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 if test -n "$ac_ct_RANLIB"; then
5907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5908 else
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH
5911 do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_ac_ct_RANLIB="ranlib"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920 done
5921 done
5922 IFS=$as_save_IFS
5923
5924 fi
5925 fi
5926 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5927 if test -n "$ac_ct_RANLIB"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5929 $as_echo "$ac_ct_RANLIB" >&6; }
5930 else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932 $as_echo "no" >&6; }
5933 fi
5934
5935 if test "x$ac_ct_RANLIB" = x; then
5936 RANLIB=":"
5937 else
5938 case $cross_compiling:$ac_tool_warned in
5939 yes:)
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5942 ac_tool_warned=yes ;;
5943 esac
5944 RANLIB=$ac_ct_RANLIB
5945 fi
5946 else
5947 RANLIB="$ac_cv_prog_RANLIB"
5948 fi
5949
5950 test -z "$RANLIB" && RANLIB=:
5951
5952
5953
5954
5955
5956
5957 # Determine commands to create old-style static archives.
5958 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5959 old_postinstall_cmds='chmod 644 $oldlib'
5960 old_postuninstall_cmds=
5961
5962 if test -n "$RANLIB"; then
5963 case $host_os in
5964 openbsd*)
5965 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5966 ;;
5967 *)
5968 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5969 ;;
5970 esac
5971 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5972 fi
5973
5974 case $host_os in
5975 darwin*)
5976 lock_old_archive_extraction=yes ;;
5977 *)
5978 lock_old_archive_extraction=no ;;
5979 esac
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019 # If no C compiler was specified, use CC.
6020 LTCC=${LTCC-"$CC"}
6021
6022 # If no C compiler flags were specified, use CFLAGS.
6023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6024
6025 # Allow CC to be a program name with arguments.
6026 compiler=$CC
6027
6028
6029 # Check for command to grab the raw symbol name followed by C symbol from nm.
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6031 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6032 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035
6036 # These are sane defaults that work on at least a few old systems.
6037 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6038
6039 # Character class describing NM global symbol codes.
6040 symcode='[BCDEGRST]'
6041
6042 # Regexp to match symbols that can be accessed directly from C.
6043 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6044
6045 # Define system-specific variables.
6046 case $host_os in
6047 aix*)
6048 symcode='[BCDT]'
6049 ;;
6050 cygwin* | mingw* | pw32* | cegcc*)
6051 symcode='[ABCDGISTW]'
6052 ;;
6053 hpux*)
6054 if test "$host_cpu" = ia64; then
6055 symcode='[ABCDEGRST]'
6056 fi
6057 ;;
6058 irix* | nonstopux*)
6059 symcode='[BCDEGRST]'
6060 ;;
6061 osf*)
6062 symcode='[BCDEGQRST]'
6063 ;;
6064 solaris*)
6065 symcode='[BDRT]'
6066 ;;
6067 sco3.2v5*)
6068 symcode='[DT]'
6069 ;;
6070 sysv4.2uw2*)
6071 symcode='[DT]'
6072 ;;
6073 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6074 symcode='[ABDT]'
6075 ;;
6076 sysv4)
6077 symcode='[DFNSTU]'
6078 ;;
6079 esac
6080
6081 # If we're using GNU nm, then use its standard symbol codes.
6082 case `$NM -V 2>&1` in
6083 *GNU* | *'with BFD'*)
6084 symcode='[ABCDGIRSTW]' ;;
6085 esac
6086
6087 # Transform an extracted symbol line into a proper C declaration.
6088 # Some systems (esp. on ia64) link data and code symbols differently,
6089 # so use this general approach.
6090 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6091
6092 # Transform an extracted symbol line into symbol name and symbol address
6093 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6094 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'"
6095
6096 # Handle CRLF in mingw tool chain
6097 opt_cr=
6098 case $build_os in
6099 mingw*)
6100 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6101 ;;
6102 esac
6103
6104 # Try without a prefix underscore, then with it.
6105 for ac_symprfx in "" "_"; do
6106
6107 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6108 symxfrm="\\1 $ac_symprfx\\2 \\2"
6109
6110 # Write the raw and C identifiers.
6111 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6112 # Fake it for dumpbin and say T for any non-static function
6113 # and D for any global variable.
6114 # Also find C++ and __fastcall symbols from MSVC++,
6115 # which start with @ or ?.
6116 lt_cv_sys_global_symbol_pipe="$AWK '"\
6117 " {last_section=section; section=\$ 3};"\
6118 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6119 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6120 " \$ 0!~/External *\|/{next};"\
6121 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6122 " {if(hide[section]) next};"\
6123 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6124 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6125 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6126 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6127 " ' prfx=^$ac_symprfx"
6128 else
6129 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6130 fi
6131 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6132
6133 # Check to see that the pipe works correctly.
6134 pipe_works=no
6135
6136 rm -f conftest*
6137 cat > conftest.$ac_ext <<_LT_EOF
6138 #ifdef __cplusplus
6139 extern "C" {
6140 #endif
6141 char nm_test_var;
6142 void nm_test_func(void);
6143 void nm_test_func(void){}
6144 #ifdef __cplusplus
6145 }
6146 #endif
6147 int main(){nm_test_var='a';nm_test_func();return(0);}
6148 _LT_EOF
6149
6150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6151 (eval $ac_compile) 2>&5
6152 ac_status=$?
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; }; then
6155 # Now try to grab the symbols.
6156 nlist=conftest.nm
6157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6158 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; } && test -s "$nlist"; then
6162 # Try sorting and uniquifying the output.
6163 if sort "$nlist" | uniq > "$nlist"T; then
6164 mv -f "$nlist"T "$nlist"
6165 else
6166 rm -f "$nlist"T
6167 fi
6168
6169 # Make sure that we snagged all the symbols we need.
6170 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6171 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6172 cat <<_LT_EOF > conftest.$ac_ext
6173 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6174 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6175 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6176 relocations are performed -- see ld's documentation on pseudo-relocs. */
6177 # define LT_DLSYM_CONST
6178 #elif defined(__osf__)
6179 /* This system does not cope well with relocations in const data. */
6180 # define LT_DLSYM_CONST
6181 #else
6182 # define LT_DLSYM_CONST const
6183 #endif
6184
6185 #ifdef __cplusplus
6186 extern "C" {
6187 #endif
6188
6189 _LT_EOF
6190 # Now generate the symbol file.
6191 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6192
6193 cat <<_LT_EOF >> conftest.$ac_ext
6194
6195 /* The mapping between symbol names and symbols. */
6196 LT_DLSYM_CONST struct {
6197 const char *name;
6198 void *address;
6199 }
6200 lt__PROGRAM__LTX_preloaded_symbols[] =
6201 {
6202 { "@PROGRAM@", (void *) 0 },
6203 _LT_EOF
6204 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6205 cat <<\_LT_EOF >> conftest.$ac_ext
6206 {0, (void *) 0}
6207 };
6208
6209 /* This works around a problem in FreeBSD linker */
6210 #ifdef FREEBSD_WORKAROUND
6211 static const void *lt_preloaded_setup() {
6212 return lt__PROGRAM__LTX_preloaded_symbols;
6213 }
6214 #endif
6215
6216 #ifdef __cplusplus
6217 }
6218 #endif
6219 _LT_EOF
6220 # Now try linking the two files.
6221 mv conftest.$ac_objext conftstm.$ac_objext
6222 lt_globsym_save_LIBS=$LIBS
6223 lt_globsym_save_CFLAGS=$CFLAGS
6224 LIBS="conftstm.$ac_objext"
6225 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6227 (eval $ac_link) 2>&5
6228 ac_status=$?
6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6231 pipe_works=yes
6232 fi
6233 LIBS=$lt_globsym_save_LIBS
6234 CFLAGS=$lt_globsym_save_CFLAGS
6235 else
6236 echo "cannot find nm_test_func in $nlist" >&5
6237 fi
6238 else
6239 echo "cannot find nm_test_var in $nlist" >&5
6240 fi
6241 else
6242 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6243 fi
6244 else
6245 echo "$progname: failed program was:" >&5
6246 cat conftest.$ac_ext >&5
6247 fi
6248 rm -rf conftest* conftst*
6249
6250 # Do not use the global_symbol_pipe unless it works.
6251 if test "$pipe_works" = yes; then
6252 break
6253 else
6254 lt_cv_sys_global_symbol_pipe=
6255 fi
6256 done
6257
6258 fi
6259
6260 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6261 lt_cv_sys_global_symbol_to_cdecl=
6262 fi
6263 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6265 $as_echo "failed" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6268 $as_echo "ok" >&6; }
6269 fi
6270
6271 # Response file support.
6272 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6273 nm_file_list_spec='@'
6274 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6275 nm_file_list_spec='@'
6276 fi
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6305 $as_echo_n "checking for sysroot... " >&6; }
6306
6307 # Check whether --with-sysroot was given.
6308 if test "${with_sysroot+set}" = set; then :
6309 withval=$with_sysroot;
6310 else
6311 with_sysroot=no
6312 fi
6313
6314
6315 lt_sysroot=
6316 case ${with_sysroot} in #(
6317 yes)
6318 if test "$GCC" = yes; then
6319 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6320 fi
6321 ;; #(
6322 /*)
6323 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6324 ;; #(
6325 no|'')
6326 ;; #(
6327 *)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6329 $as_echo "${with_sysroot}" >&6; }
6330 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6331 ;;
6332 esac
6333
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6335 $as_echo "${lt_sysroot:-no}" >&6; }
6336
6337
6338
6339
6340
6341 # Check whether --enable-libtool-lock was given.
6342 if test "${enable_libtool_lock+set}" = set; then :
6343 enableval=$enable_libtool_lock;
6344 fi
6345
6346 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6347
6348 # Some flags need to be propagated to the compiler or linker for good
6349 # libtool support.
6350 case $host in
6351 ia64-*-hpux*)
6352 # Find out which ABI we are using.
6353 echo 'int i;' > conftest.$ac_ext
6354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6355 (eval $ac_compile) 2>&5
6356 ac_status=$?
6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358 test $ac_status = 0; }; then
6359 case `/usr/bin/file conftest.$ac_objext` in
6360 *ELF-32*)
6361 HPUX_IA64_MODE="32"
6362 ;;
6363 *ELF-64*)
6364 HPUX_IA64_MODE="64"
6365 ;;
6366 esac
6367 fi
6368 rm -rf conftest*
6369 ;;
6370 *-*-irix6*)
6371 # Find out which ABI we are using.
6372 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6374 (eval $ac_compile) 2>&5
6375 ac_status=$?
6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377 test $ac_status = 0; }; then
6378 if test "$lt_cv_prog_gnu_ld" = yes; then
6379 case `/usr/bin/file conftest.$ac_objext` in
6380 *32-bit*)
6381 LD="${LD-ld} -melf32bsmip"
6382 ;;
6383 *N32*)
6384 LD="${LD-ld} -melf32bmipn32"
6385 ;;
6386 *64-bit*)
6387 LD="${LD-ld} -melf64bmip"
6388 ;;
6389 esac
6390 else
6391 case `/usr/bin/file conftest.$ac_objext` in
6392 *32-bit*)
6393 LD="${LD-ld} -32"
6394 ;;
6395 *N32*)
6396 LD="${LD-ld} -n32"
6397 ;;
6398 *64-bit*)
6399 LD="${LD-ld} -64"
6400 ;;
6401 esac
6402 fi
6403 fi
6404 rm -rf conftest*
6405 ;;
6406
6407 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6408 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6409 # Find out which ABI we are using.
6410 echo 'int i;' > conftest.$ac_ext
6411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6412 (eval $ac_compile) 2>&5
6413 ac_status=$?
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }; then
6416 case `/usr/bin/file conftest.o` in
6417 *32-bit*)
6418 case $host in
6419 x86_64-*kfreebsd*-gnu)
6420 LD="${LD-ld} -m elf_i386_fbsd"
6421 ;;
6422 x86_64-*linux*)
6423 case `/usr/bin/file conftest.o` in
6424 *x86-64*)
6425 LD="${LD-ld} -m elf32_x86_64"
6426 ;;
6427 *)
6428 LD="${LD-ld} -m elf_i386"
6429 ;;
6430 esac
6431 ;;
6432 ppc64-*linux*|powerpc64-*linux*)
6433 LD="${LD-ld} -m elf32ppclinux"
6434 ;;
6435 s390x-*linux*)
6436 LD="${LD-ld} -m elf_s390"
6437 ;;
6438 sparc64-*linux*)
6439 LD="${LD-ld} -m elf32_sparc"
6440 ;;
6441 esac
6442 ;;
6443 *64-bit*)
6444 case $host in
6445 x86_64-*kfreebsd*-gnu)
6446 LD="${LD-ld} -m elf_x86_64_fbsd"
6447 ;;
6448 x86_64-*linux*)
6449 LD="${LD-ld} -m elf_x86_64"
6450 ;;
6451 ppc*-*linux*|powerpc*-*linux*)
6452 LD="${LD-ld} -m elf64ppc"
6453 ;;
6454 s390*-*linux*|s390*-*tpf*)
6455 LD="${LD-ld} -m elf64_s390"
6456 ;;
6457 sparc*-*linux*)
6458 LD="${LD-ld} -m elf64_sparc"
6459 ;;
6460 esac
6461 ;;
6462 esac
6463 fi
6464 rm -rf conftest*
6465 ;;
6466
6467 *-*-sco3.2v5*)
6468 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6469 SAVE_CFLAGS="$CFLAGS"
6470 CFLAGS="$CFLAGS -belf"
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6472 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6473 if ${lt_cv_cc_needs_belf+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 ac_ext=c
6477 ac_cpp='$CPP $CPPFLAGS'
6478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6481
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484
6485 int
6486 main ()
6487 {
6488
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_link "$LINENO"; then :
6494 lt_cv_cc_needs_belf=yes
6495 else
6496 lt_cv_cc_needs_belf=no
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext \
6499 conftest$ac_exeext conftest.$ac_ext
6500 ac_ext=c
6501 ac_cpp='$CPP $CPPFLAGS'
6502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6505
6506 fi
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6508 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6509 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6510 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6511 CFLAGS="$SAVE_CFLAGS"
6512 fi
6513 ;;
6514 *-*solaris*)
6515 # Find out which ABI we are using.
6516 echo 'int i;' > conftest.$ac_ext
6517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6518 (eval $ac_compile) 2>&5
6519 ac_status=$?
6520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6521 test $ac_status = 0; }; then
6522 case `/usr/bin/file conftest.o` in
6523 *64-bit*)
6524 case $lt_cv_prog_gnu_ld in
6525 yes*)
6526 case $host in
6527 i?86-*-solaris*)
6528 LD="${LD-ld} -m elf_x86_64"
6529 ;;
6530 sparc*-*-solaris*)
6531 LD="${LD-ld} -m elf64_sparc"
6532 ;;
6533 esac
6534 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6535 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6536 LD="${LD-ld}_sol2"
6537 fi
6538 ;;
6539 *)
6540 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6541 LD="${LD-ld} -64"
6542 fi
6543 ;;
6544 esac
6545 ;;
6546 esac
6547 fi
6548 rm -rf conftest*
6549 ;;
6550 esac
6551
6552 need_locks="$enable_libtool_lock"
6553
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}mt; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if test -n "$MANIFEST_TOOL"; then
6563 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6583 if test -n "$MANIFEST_TOOL"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6585 $as_echo "$MANIFEST_TOOL" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6594 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6595 # Extract the first word of "mt", so it can be a program name with args.
6596 set dummy mt; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$ac_ct_MANIFEST_TOOL"; then
6603 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6623 if test -n "$ac_ct_MANIFEST_TOOL"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6625 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6632 MANIFEST_TOOL=":"
6633 else
6634 case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6639 esac
6640 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6641 fi
6642 else
6643 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6644 fi
6645
6646 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6648 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6649 if ${lt_cv_path_mainfest_tool+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 lt_cv_path_mainfest_tool=no
6653 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6654 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6655 cat conftest.err >&5
6656 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6657 lt_cv_path_mainfest_tool=yes
6658 fi
6659 rm -f conftest*
6660 fi
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6662 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6663 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6664 MANIFEST_TOOL=:
6665 fi
6666
6667
6668
6669
6670
6671
6672 case $host_os in
6673 rhapsody* | darwin*)
6674 if test -n "$ac_tool_prefix"; then
6675 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6676 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 if test -n "$DSYMUTIL"; then
6683 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6703 if test -n "$DSYMUTIL"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6705 $as_echo "$DSYMUTIL" >&6; }
6706 else
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6709 fi
6710
6711
6712 fi
6713 if test -z "$ac_cv_prog_DSYMUTIL"; then
6714 ac_ct_DSYMUTIL=$DSYMUTIL
6715 # Extract the first word of "dsymutil", so it can be a program name with args.
6716 set dummy dsymutil; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 if test -n "$ac_ct_DSYMUTIL"; then
6723 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6743 if test -n "$ac_ct_DSYMUTIL"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6745 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6746 else
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750
6751 if test "x$ac_ct_DSYMUTIL" = x; then
6752 DSYMUTIL=":"
6753 else
6754 case $cross_compiling:$ac_tool_warned in
6755 yes:)
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6758 ac_tool_warned=yes ;;
6759 esac
6760 DSYMUTIL=$ac_ct_DSYMUTIL
6761 fi
6762 else
6763 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6764 fi
6765
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_NMEDIT+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test -n "$NMEDIT"; then
6775 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 NMEDIT=$ac_cv_prog_NMEDIT
6795 if test -n "$NMEDIT"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6797 $as_echo "$NMEDIT" >&6; }
6798 else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803
6804 fi
6805 if test -z "$ac_cv_prog_NMEDIT"; then
6806 ac_ct_NMEDIT=$NMEDIT
6807 # Extract the first word of "nmedit", so it can be a program name with args.
6808 set dummy nmedit; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 if test -n "$ac_ct_NMEDIT"; then
6815 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6835 if test -n "$ac_ct_NMEDIT"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6837 $as_echo "$ac_ct_NMEDIT" >&6; }
6838 else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843 if test "x$ac_ct_NMEDIT" = x; then
6844 NMEDIT=":"
6845 else
6846 case $cross_compiling:$ac_tool_warned in
6847 yes:)
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6851 esac
6852 NMEDIT=$ac_ct_NMEDIT
6853 fi
6854 else
6855 NMEDIT="$ac_cv_prog_NMEDIT"
6856 fi
6857
6858 if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_LIPO+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 if test -n "$LIPO"; then
6867 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 LIPO=$ac_cv_prog_LIPO
6887 if test -n "$LIPO"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6889 $as_echo "$LIPO" >&6; }
6890 else
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895
6896 fi
6897 if test -z "$ac_cv_prog_LIPO"; then
6898 ac_ct_LIPO=$LIPO
6899 # Extract the first word of "lipo", so it can be a program name with args.
6900 set dummy lipo; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if test -n "$ac_ct_LIPO"; then
6907 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_ac_ct_LIPO="lipo"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6927 if test -n "$ac_ct_LIPO"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6929 $as_echo "$ac_ct_LIPO" >&6; }
6930 else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935 if test "x$ac_ct_LIPO" = x; then
6936 LIPO=":"
6937 else
6938 case $cross_compiling:$ac_tool_warned in
6939 yes:)
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942 ac_tool_warned=yes ;;
6943 esac
6944 LIPO=$ac_ct_LIPO
6945 fi
6946 else
6947 LIPO="$ac_cv_prog_LIPO"
6948 fi
6949
6950 if test -n "$ac_tool_prefix"; then
6951 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6952 set dummy ${ac_tool_prefix}otool; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if ${ac_cv_prog_OTOOL+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 if test -n "$OTOOL"; then
6959 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 OTOOL=$ac_cv_prog_OTOOL
6979 if test -n "$OTOOL"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6981 $as_echo "$OTOOL" >&6; }
6982 else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 fi
6986
6987
6988 fi
6989 if test -z "$ac_cv_prog_OTOOL"; then
6990 ac_ct_OTOOL=$OTOOL
6991 # Extract the first word of "otool", so it can be a program name with args.
6992 set dummy otool; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 if test -n "$ac_ct_OTOOL"; then
6999 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008 ac_cv_prog_ac_ct_OTOOL="otool"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7019 if test -n "$ac_ct_OTOOL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7021 $as_echo "$ac_ct_OTOOL" >&6; }
7022 else
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7025 fi
7026
7027 if test "x$ac_ct_OTOOL" = x; then
7028 OTOOL=":"
7029 else
7030 case $cross_compiling:$ac_tool_warned in
7031 yes:)
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7034 ac_tool_warned=yes ;;
7035 esac
7036 OTOOL=$ac_ct_OTOOL
7037 fi
7038 else
7039 OTOOL="$ac_cv_prog_OTOOL"
7040 fi
7041
7042 if test -n "$ac_tool_prefix"; then
7043 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7044 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_OTOOL64+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 if test -n "$OTOOL64"; then
7051 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7052 else
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH
7055 do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064 done
7065 done
7066 IFS=$as_save_IFS
7067
7068 fi
7069 fi
7070 OTOOL64=$ac_cv_prog_OTOOL64
7071 if test -n "$OTOOL64"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7073 $as_echo "$OTOOL64" >&6; }
7074 else
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7077 fi
7078
7079
7080 fi
7081 if test -z "$ac_cv_prog_OTOOL64"; then
7082 ac_ct_OTOOL64=$OTOOL64
7083 # Extract the first word of "otool64", so it can be a program name with args.
7084 set dummy otool64; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 if test -n "$ac_ct_OTOOL64"; then
7091 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7092 else
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 for as_dir in $PATH
7095 do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100 ac_cv_prog_ac_ct_OTOOL64="otool64"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104 done
7105 done
7106 IFS=$as_save_IFS
7107
7108 fi
7109 fi
7110 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7111 if test -n "$ac_ct_OTOOL64"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7113 $as_echo "$ac_ct_OTOOL64" >&6; }
7114 else
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118
7119 if test "x$ac_ct_OTOOL64" = x; then
7120 OTOOL64=":"
7121 else
7122 case $cross_compiling:$ac_tool_warned in
7123 yes:)
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126 ac_tool_warned=yes ;;
7127 esac
7128 OTOOL64=$ac_ct_OTOOL64
7129 fi
7130 else
7131 OTOOL64="$ac_cv_prog_OTOOL64"
7132 fi
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7161 $as_echo_n "checking for -single_module linker flag... " >&6; }
7162 if ${lt_cv_apple_cc_single_mod+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 lt_cv_apple_cc_single_mod=no
7166 if test -z "${LT_MULTI_MODULE}"; then
7167 # By default we will add the -single_module flag. You can override
7168 # by either setting the environment variable LT_MULTI_MODULE
7169 # non-empty at configure time, or by adding -multi_module to the
7170 # link flags.
7171 rm -rf libconftest.dylib*
7172 echo "int foo(void){return 1;}" > conftest.c
7173 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7174 -dynamiclib -Wl,-single_module conftest.c" >&5
7175 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7176 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7177 _lt_result=$?
7178 # If there is a non-empty error log, and "single_module"
7179 # appears in it, assume the flag caused a linker warning
7180 if test -s conftest.err && $GREP single_module conftest.err; then
7181 cat conftest.err >&5
7182 # Otherwise, if the output was created with a 0 exit code from
7183 # the compiler, it worked.
7184 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7185 lt_cv_apple_cc_single_mod=yes
7186 else
7187 cat conftest.err >&5
7188 fi
7189 rm -rf libconftest.dylib*
7190 rm -f conftest.*
7191 fi
7192 fi
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7194 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7197 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7198 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 lt_cv_ld_exported_symbols_list=no
7202 save_LDFLAGS=$LDFLAGS
7203 echo "_main" > conftest.sym
7204 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207
7208 int
7209 main ()
7210 {
7211
7212 ;
7213 return 0;
7214 }
7215 _ACEOF
7216 if ac_fn_c_try_link "$LINENO"; then :
7217 lt_cv_ld_exported_symbols_list=yes
7218 else
7219 lt_cv_ld_exported_symbols_list=no
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext \
7222 conftest$ac_exeext conftest.$ac_ext
7223 LDFLAGS="$save_LDFLAGS"
7224
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7227 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7228
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7230 $as_echo_n "checking for -force_load linker flag... " >&6; }
7231 if ${lt_cv_ld_force_load+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 lt_cv_ld_force_load=no
7235 cat > conftest.c << _LT_EOF
7236 int forced_loaded() { return 2;}
7237 _LT_EOF
7238 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7239 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7240 echo "$AR cru libconftest.a conftest.o" >&5
7241 $AR cru libconftest.a conftest.o 2>&5
7242 echo "$RANLIB libconftest.a" >&5
7243 $RANLIB libconftest.a 2>&5
7244 cat > conftest.c << _LT_EOF
7245 int main() { return 0;}
7246 _LT_EOF
7247 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7248 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7249 _lt_result=$?
7250 if test -s conftest.err && $GREP force_load conftest.err; then
7251 cat conftest.err >&5
7252 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7253 lt_cv_ld_force_load=yes
7254 else
7255 cat conftest.err >&5
7256 fi
7257 rm -f conftest.err libconftest.a conftest conftest.c
7258 rm -rf conftest.dSYM
7259
7260 fi
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7262 $as_echo "$lt_cv_ld_force_load" >&6; }
7263 case $host_os in
7264 rhapsody* | darwin1.[012])
7265 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7266 darwin1.*)
7267 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7268 darwin*) # darwin 5.x on
7269 # if running on 10.5 or later, the deployment target defaults
7270 # to the OS version, if on x86, and 10.4, the deployment
7271 # target defaults to 10.4. Don't you love it?
7272 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7273 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7274 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7275 10.[012]*)
7276 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7277 10.*)
7278 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7279 esac
7280 ;;
7281 esac
7282 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7283 _lt_dar_single_mod='$single_module'
7284 fi
7285 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7286 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7287 else
7288 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7289 fi
7290 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7291 _lt_dsymutil='~$DSYMUTIL $lib || :'
7292 else
7293 _lt_dsymutil=
7294 fi
7295 ;;
7296 esac
7297
7298 ac_ext=c
7299 ac_cpp='$CPP $CPPFLAGS'
7300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7305 # On Suns, sometimes $CPP names a directory.
7306 if test -n "$CPP" && test -d "$CPP"; then
7307 CPP=
7308 fi
7309 if test -z "$CPP"; then
7310 if ${ac_cv_prog_CPP+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312 else
7313 # Double quotes because CPP needs to be expanded
7314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7315 do
7316 ac_preproc_ok=false
7317 for ac_c_preproc_warn_flag in '' yes
7318 do
7319 # Use a header file that comes with gcc, so configuring glibc
7320 # with a fresh cross-compiler works.
7321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7322 # <limits.h> exists even on freestanding compilers.
7323 # On the NeXT, cc -E runs the code through the compiler's parser,
7324 # not just through cpp. "Syntax error" is here to catch this case.
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7327 #ifdef __STDC__
7328 # include <limits.h>
7329 #else
7330 # include <assert.h>
7331 #endif
7332 Syntax error
7333 _ACEOF
7334 if ac_fn_c_try_cpp "$LINENO"; then :
7335
7336 else
7337 # Broken: fails on valid input.
7338 continue
7339 fi
7340 rm -f conftest.err conftest.i conftest.$ac_ext
7341
7342 # OK, works on sane cases. Now check whether nonexistent headers
7343 # can be detected and how.
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 #include <ac_nonexistent.h>
7347 _ACEOF
7348 if ac_fn_c_try_cpp "$LINENO"; then :
7349 # Broken: success on invalid input.
7350 continue
7351 else
7352 # Passes both tests.
7353 ac_preproc_ok=:
7354 break
7355 fi
7356 rm -f conftest.err conftest.i conftest.$ac_ext
7357
7358 done
7359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7360 rm -f conftest.i conftest.err conftest.$ac_ext
7361 if $ac_preproc_ok; then :
7362 break
7363 fi
7364
7365 done
7366 ac_cv_prog_CPP=$CPP
7367
7368 fi
7369 CPP=$ac_cv_prog_CPP
7370 else
7371 ac_cv_prog_CPP=$CPP
7372 fi
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7374 $as_echo "$CPP" >&6; }
7375 ac_preproc_ok=false
7376 for ac_c_preproc_warn_flag in '' yes
7377 do
7378 # Use a header file that comes with gcc, so configuring glibc
7379 # with a fresh cross-compiler works.
7380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7381 # <limits.h> exists even on freestanding compilers.
7382 # On the NeXT, cc -E runs the code through the compiler's parser,
7383 # not just through cpp. "Syntax error" is here to catch this case.
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 #ifdef __STDC__
7387 # include <limits.h>
7388 #else
7389 # include <assert.h>
7390 #endif
7391 Syntax error
7392 _ACEOF
7393 if ac_fn_c_try_cpp "$LINENO"; then :
7394
7395 else
7396 # Broken: fails on valid input.
7397 continue
7398 fi
7399 rm -f conftest.err conftest.i conftest.$ac_ext
7400
7401 # OK, works on sane cases. Now check whether nonexistent headers
7402 # can be detected and how.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 #include <ac_nonexistent.h>
7406 _ACEOF
7407 if ac_fn_c_try_cpp "$LINENO"; then :
7408 # Broken: success on invalid input.
7409 continue
7410 else
7411 # Passes both tests.
7412 ac_preproc_ok=:
7413 break
7414 fi
7415 rm -f conftest.err conftest.i conftest.$ac_ext
7416
7417 done
7418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7419 rm -f conftest.i conftest.err conftest.$ac_ext
7420 if $ac_preproc_ok; then :
7421
7422 else
7423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7425 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7426 See \`config.log' for more details" "$LINENO" 5; }
7427 fi
7428
7429 ac_ext=c
7430 ac_cpp='$CPP $CPPFLAGS'
7431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7434
7435
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7437 $as_echo_n "checking for ANSI C header files... " >&6; }
7438 if ${ac_cv_header_stdc+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 #include <stdlib.h>
7444 #include <stdarg.h>
7445 #include <string.h>
7446 #include <float.h>
7447
7448 int
7449 main ()
7450 {
7451
7452 ;
7453 return 0;
7454 }
7455 _ACEOF
7456 if ac_fn_c_try_compile "$LINENO"; then :
7457 ac_cv_header_stdc=yes
7458 else
7459 ac_cv_header_stdc=no
7460 fi
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462
7463 if test $ac_cv_header_stdc = yes; then
7464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7467 #include <string.h>
7468
7469 _ACEOF
7470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7471 $EGREP "memchr" >/dev/null 2>&1; then :
7472
7473 else
7474 ac_cv_header_stdc=no
7475 fi
7476 rm -f conftest*
7477
7478 fi
7479
7480 if test $ac_cv_header_stdc = yes; then
7481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 #include <stdlib.h>
7485
7486 _ACEOF
7487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7488 $EGREP "free" >/dev/null 2>&1; then :
7489
7490 else
7491 ac_cv_header_stdc=no
7492 fi
7493 rm -f conftest*
7494
7495 fi
7496
7497 if test $ac_cv_header_stdc = yes; then
7498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7499 if test "$cross_compiling" = yes; then :
7500 :
7501 else
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 #include <ctype.h>
7505 #include <stdlib.h>
7506 #if ((' ' & 0x0FF) == 0x020)
7507 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7508 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7509 #else
7510 # define ISLOWER(c) \
7511 (('a' <= (c) && (c) <= 'i') \
7512 || ('j' <= (c) && (c) <= 'r') \
7513 || ('s' <= (c) && (c) <= 'z'))
7514 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7515 #endif
7516
7517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7518 int
7519 main ()
7520 {
7521 int i;
7522 for (i = 0; i < 256; i++)
7523 if (XOR (islower (i), ISLOWER (i))
7524 || toupper (i) != TOUPPER (i))
7525 return 2;
7526 return 0;
7527 }
7528 _ACEOF
7529 if ac_fn_c_try_run "$LINENO"; then :
7530
7531 else
7532 ac_cv_header_stdc=no
7533 fi
7534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7535 conftest.$ac_objext conftest.beam conftest.$ac_ext
7536 fi
7537
7538 fi
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7541 $as_echo "$ac_cv_header_stdc" >&6; }
7542 if test $ac_cv_header_stdc = yes; then
7543
7544 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7545
7546 fi
7547
7548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7549 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7550 inttypes.h stdint.h unistd.h
7551 do :
7552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7553 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7554 "
7555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7556 cat >>confdefs.h <<_ACEOF
7557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7558 _ACEOF
7559
7560 fi
7561
7562 done
7563
7564
7565 for ac_header in dlfcn.h
7566 do :
7567 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7568 "
7569 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7570 cat >>confdefs.h <<_ACEOF
7571 #define HAVE_DLFCN_H 1
7572 _ACEOF
7573
7574 fi
7575
7576 done
7577
7578
7579
7580
7581
7582 # Set options
7583 enable_win32_dll=yes
7584
7585 case $host in
7586 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7587 if test -n "$ac_tool_prefix"; then
7588 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7589 set dummy ${ac_tool_prefix}as; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_AS+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 if test -n "$AS"; then
7596 ac_cv_prog_AS="$AS" # Let the user override the test.
7597 else
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605 ac_cv_prog_AS="${ac_tool_prefix}as"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613 fi
7614 fi
7615 AS=$ac_cv_prog_AS
7616 if test -n "$AS"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7618 $as_echo "$AS" >&6; }
7619 else
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7622 fi
7623
7624
7625 fi
7626 if test -z "$ac_cv_prog_AS"; then
7627 ac_ct_AS=$AS
7628 # Extract the first word of "as", so it can be a program name with args.
7629 set dummy as; ac_word=$2
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7633 $as_echo_n "(cached) " >&6
7634 else
7635 if test -n "$ac_ct_AS"; then
7636 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641 IFS=$as_save_IFS
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645 ac_cv_prog_ac_ct_AS="as"
7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 break 2
7648 fi
7649 done
7650 done
7651 IFS=$as_save_IFS
7652
7653 fi
7654 fi
7655 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7656 if test -n "$ac_ct_AS"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7658 $as_echo "$ac_ct_AS" >&6; }
7659 else
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 fi
7663
7664 if test "x$ac_ct_AS" = x; then
7665 AS="false"
7666 else
7667 case $cross_compiling:$ac_tool_warned in
7668 yes:)
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671 ac_tool_warned=yes ;;
7672 esac
7673 AS=$ac_ct_AS
7674 fi
7675 else
7676 AS="$ac_cv_prog_AS"
7677 fi
7678
7679 if test -n "$ac_tool_prefix"; then
7680 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7681 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if ${ac_cv_prog_DLLTOOL+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 if test -n "$DLLTOOL"; then
7688 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7692 do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701 done
7702 done
7703 IFS=$as_save_IFS
7704
7705 fi
7706 fi
7707 DLLTOOL=$ac_cv_prog_DLLTOOL
7708 if test -n "$DLLTOOL"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7710 $as_echo "$DLLTOOL" >&6; }
7711 else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7714 fi
7715
7716
7717 fi
7718 if test -z "$ac_cv_prog_DLLTOOL"; then
7719 ac_ct_DLLTOOL=$DLLTOOL
7720 # Extract the first word of "dlltool", so it can be a program name with args.
7721 set dummy dlltool; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 if test -n "$ac_ct_DLLTOOL"; then
7728 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733 IFS=$as_save_IFS
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 break 2
7740 fi
7741 done
7742 done
7743 IFS=$as_save_IFS
7744
7745 fi
7746 fi
7747 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7748 if test -n "$ac_ct_DLLTOOL"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7750 $as_echo "$ac_ct_DLLTOOL" >&6; }
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756 if test "x$ac_ct_DLLTOOL" = x; then
7757 DLLTOOL="false"
7758 else
7759 case $cross_compiling:$ac_tool_warned in
7760 yes:)
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7763 ac_tool_warned=yes ;;
7764 esac
7765 DLLTOOL=$ac_ct_DLLTOOL
7766 fi
7767 else
7768 DLLTOOL="$ac_cv_prog_DLLTOOL"
7769 fi
7770
7771 if test -n "$ac_tool_prefix"; then
7772 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7773 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if ${ac_cv_prog_OBJDUMP+:} false; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 if test -n "$OBJDUMP"; then
7780 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7781 else
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 for as_dir in $PATH
7784 do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7789 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7792 fi
7793 done
7794 done
7795 IFS=$as_save_IFS
7796
7797 fi
7798 fi
7799 OBJDUMP=$ac_cv_prog_OBJDUMP
7800 if test -n "$OBJDUMP"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7802 $as_echo "$OBJDUMP" >&6; }
7803 else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7806 fi
7807
7808
7809 fi
7810 if test -z "$ac_cv_prog_OBJDUMP"; then
7811 ac_ct_OBJDUMP=$OBJDUMP
7812 # Extract the first word of "objdump", so it can be a program name with args.
7813 set dummy objdump; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 if test -n "$ac_ct_OBJDUMP"; then
7820 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 break 2
7832 fi
7833 done
7834 done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7840 if test -n "$ac_ct_OBJDUMP"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7842 $as_echo "$ac_ct_OBJDUMP" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848 if test "x$ac_ct_OBJDUMP" = x; then
7849 OBJDUMP="false"
7850 else
7851 case $cross_compiling:$ac_tool_warned in
7852 yes:)
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7855 ac_tool_warned=yes ;;
7856 esac
7857 OBJDUMP=$ac_ct_OBJDUMP
7858 fi
7859 else
7860 OBJDUMP="$ac_cv_prog_OBJDUMP"
7861 fi
7862
7863 ;;
7864 esac
7865
7866 test -z "$AS" && AS=as
7867
7868
7869
7870
7871
7872 test -z "$DLLTOOL" && DLLTOOL=dlltool
7873
7874
7875
7876
7877
7878 test -z "$OBJDUMP" && OBJDUMP=objdump
7879
7880
7881
7882
7883
7884
7885
7886 enable_dlopen=no
7887
7888
7889
7890 # Check whether --enable-shared was given.
7891 if test "${enable_shared+set}" = set; then :
7892 enableval=$enable_shared; p=${PACKAGE-default}
7893 case $enableval in
7894 yes) enable_shared=yes ;;
7895 no) enable_shared=no ;;
7896 *)
7897 enable_shared=no
7898 # Look at the argument we got. We use all the common list separators.
7899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7900 for pkg in $enableval; do
7901 IFS="$lt_save_ifs"
7902 if test "X$pkg" = "X$p"; then
7903 enable_shared=yes
7904 fi
7905 done
7906 IFS="$lt_save_ifs"
7907 ;;
7908 esac
7909 else
7910 enable_shared=yes
7911 fi
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921 # Check whether --enable-static was given.
7922 if test "${enable_static+set}" = set; then :
7923 enableval=$enable_static; p=${PACKAGE-default}
7924 case $enableval in
7925 yes) enable_static=yes ;;
7926 no) enable_static=no ;;
7927 *)
7928 enable_static=no
7929 # Look at the argument we got. We use all the common list separators.
7930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7931 for pkg in $enableval; do
7932 IFS="$lt_save_ifs"
7933 if test "X$pkg" = "X$p"; then
7934 enable_static=yes
7935 fi
7936 done
7937 IFS="$lt_save_ifs"
7938 ;;
7939 esac
7940 else
7941 enable_static=yes
7942 fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953 # Check whether --with-pic was given.
7954 if test "${with_pic+set}" = set; then :
7955 withval=$with_pic; lt_p=${PACKAGE-default}
7956 case $withval in
7957 yes|no) pic_mode=$withval ;;
7958 *)
7959 pic_mode=default
7960 # Look at the argument we got. We use all the common list separators.
7961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7962 for lt_pkg in $withval; do
7963 IFS="$lt_save_ifs"
7964 if test "X$lt_pkg" = "X$lt_p"; then
7965 pic_mode=yes
7966 fi
7967 done
7968 IFS="$lt_save_ifs"
7969 ;;
7970 esac
7971 else
7972 pic_mode=default
7973 fi
7974
7975
7976 test -z "$pic_mode" && pic_mode=default
7977
7978
7979
7980
7981
7982
7983
7984 # Check whether --enable-fast-install was given.
7985 if test "${enable_fast_install+set}" = set; then :
7986 enableval=$enable_fast_install; p=${PACKAGE-default}
7987 case $enableval in
7988 yes) enable_fast_install=yes ;;
7989 no) enable_fast_install=no ;;
7990 *)
7991 enable_fast_install=no
7992 # Look at the argument we got. We use all the common list separators.
7993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7994 for pkg in $enableval; do
7995 IFS="$lt_save_ifs"
7996 if test "X$pkg" = "X$p"; then
7997 enable_fast_install=yes
7998 fi
7999 done
8000 IFS="$lt_save_ifs"
8001 ;;
8002 esac
8003 else
8004 enable_fast_install=yes
8005 fi
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017 # This can be used to rebuild libtool when needed
8018 LIBTOOL_DEPS="$ltmain"
8019
8020 # Always use our own libtool.
8021 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8049
8050
8051
8052 test -z "$LN_S" && LN_S="ln -s"
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067 if test -n "${ZSH_VERSION+set}" ; then
8068 setopt NO_GLOB_SUBST
8069 fi
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8072 $as_echo_n "checking for objdir... " >&6; }
8073 if ${lt_cv_objdir+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 rm -f .libs 2>/dev/null
8077 mkdir .libs 2>/dev/null
8078 if test -d .libs; then
8079 lt_cv_objdir=.libs
8080 else
8081 # MS-DOS does not allow filenames that begin with a dot.
8082 lt_cv_objdir=_libs
8083 fi
8084 rmdir .libs 2>/dev/null
8085 fi
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8087 $as_echo "$lt_cv_objdir" >&6; }
8088 objdir=$lt_cv_objdir
8089
8090
8091
8092
8093
8094 cat >>confdefs.h <<_ACEOF
8095 #define LT_OBJDIR "$lt_cv_objdir/"
8096 _ACEOF
8097
8098
8099
8100
8101 case $host_os in
8102 aix3*)
8103 # AIX sometimes has problems with the GCC collect2 program. For some
8104 # reason, if we set the COLLECT_NAMES environment variable, the problems
8105 # vanish in a puff of smoke.
8106 if test "X${COLLECT_NAMES+set}" != Xset; then
8107 COLLECT_NAMES=
8108 export COLLECT_NAMES
8109 fi
8110 ;;
8111 esac
8112
8113 # Global variables:
8114 ofile=libtool
8115 can_build_shared=yes
8116
8117 # All known linkers require a `.a' archive for static linking (except MSVC,
8118 # which needs '.lib').
8119 libext=a
8120
8121 with_gnu_ld="$lt_cv_prog_gnu_ld"
8122
8123 old_CC="$CC"
8124 old_CFLAGS="$CFLAGS"
8125
8126 # Set sane defaults for various variables
8127 test -z "$CC" && CC=cc
8128 test -z "$LTCC" && LTCC=$CC
8129 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8130 test -z "$LD" && LD=ld
8131 test -z "$ac_objext" && ac_objext=o
8132
8133 for cc_temp in $compiler""; do
8134 case $cc_temp in
8135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8137 \-*) ;;
8138 *) break;;
8139 esac
8140 done
8141 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8142
8143
8144 # Only perform the check for file, if the check method requires it
8145 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8146 case $deplibs_check_method in
8147 file_magic*)
8148 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8150 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8151 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 case $MAGIC_CMD in
8155 [\\/*] | ?:[\\/]*)
8156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8157 ;;
8158 *)
8159 lt_save_MAGIC_CMD="$MAGIC_CMD"
8160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8161 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8162 for ac_dir in $ac_dummy; do
8163 IFS="$lt_save_ifs"
8164 test -z "$ac_dir" && ac_dir=.
8165 if test -f $ac_dir/${ac_tool_prefix}file; then
8166 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8167 if test -n "$file_magic_test_file"; then
8168 case $deplibs_check_method in
8169 "file_magic "*)
8170 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8172 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8173 $EGREP "$file_magic_regex" > /dev/null; then
8174 :
8175 else
8176 cat <<_LT_EOF 1>&2
8177
8178 *** Warning: the command libtool uses to detect shared libraries,
8179 *** $file_magic_cmd, produces output that libtool cannot recognize.
8180 *** The result is that libtool may fail to recognize shared libraries
8181 *** as such. This will affect the creation of libtool libraries that
8182 *** depend on shared libraries, but programs linked with such libtool
8183 *** libraries will work regardless of this problem. Nevertheless, you
8184 *** may want to report the problem to your system manager and/or to
8185 *** [email protected]
8186
8187 _LT_EOF
8188 fi ;;
8189 esac
8190 fi
8191 break
8192 fi
8193 done
8194 IFS="$lt_save_ifs"
8195 MAGIC_CMD="$lt_save_MAGIC_CMD"
8196 ;;
8197 esac
8198 fi
8199
8200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8201 if test -n "$MAGIC_CMD"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8203 $as_echo "$MAGIC_CMD" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8207 fi
8208
8209
8210
8211
8212
8213 if test -z "$lt_cv_path_MAGIC_CMD"; then
8214 if test -n "$ac_tool_prefix"; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8216 $as_echo_n "checking for file... " >&6; }
8217 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 case $MAGIC_CMD in
8221 [\\/*] | ?:[\\/]*)
8222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8223 ;;
8224 *)
8225 lt_save_MAGIC_CMD="$MAGIC_CMD"
8226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8228 for ac_dir in $ac_dummy; do
8229 IFS="$lt_save_ifs"
8230 test -z "$ac_dir" && ac_dir=.
8231 if test -f $ac_dir/file; then
8232 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8233 if test -n "$file_magic_test_file"; then
8234 case $deplibs_check_method in
8235 "file_magic "*)
8236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8239 $EGREP "$file_magic_regex" > /dev/null; then
8240 :
8241 else
8242 cat <<_LT_EOF 1>&2
8243
8244 *** Warning: the command libtool uses to detect shared libraries,
8245 *** $file_magic_cmd, produces output that libtool cannot recognize.
8246 *** The result is that libtool may fail to recognize shared libraries
8247 *** as such. This will affect the creation of libtool libraries that
8248 *** depend on shared libraries, but programs linked with such libtool
8249 *** libraries will work regardless of this problem. Nevertheless, you
8250 *** may want to report the problem to your system manager and/or to
8251 *** [email protected]
8252
8253 _LT_EOF
8254 fi ;;
8255 esac
8256 fi
8257 break
8258 fi
8259 done
8260 IFS="$lt_save_ifs"
8261 MAGIC_CMD="$lt_save_MAGIC_CMD"
8262 ;;
8263 esac
8264 fi
8265
8266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8267 if test -n "$MAGIC_CMD"; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8269 $as_echo "$MAGIC_CMD" >&6; }
8270 else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8273 fi
8274
8275
8276 else
8277 MAGIC_CMD=:
8278 fi
8279 fi
8280
8281 fi
8282 ;;
8283 esac
8284
8285 # Use C for the default configuration in the libtool script
8286
8287 lt_save_CC="$CC"
8288 ac_ext=c
8289 ac_cpp='$CPP $CPPFLAGS'
8290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293
8294
8295 # Source file extension for C test sources.
8296 ac_ext=c
8297
8298 # Object file extension for compiled C test sources.
8299 objext=o
8300 objext=$objext
8301
8302 # Code to be used in simple compile tests
8303 lt_simple_compile_test_code="int some_variable = 0;"
8304
8305 # Code to be used in simple link tests
8306 lt_simple_link_test_code='int main(){return(0);}'
8307
8308
8309
8310
8311
8312
8313
8314 # If no C compiler was specified, use CC.
8315 LTCC=${LTCC-"$CC"}
8316
8317 # If no C compiler flags were specified, use CFLAGS.
8318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8319
8320 # Allow CC to be a program name with arguments.
8321 compiler=$CC
8322
8323 # Save the default compiler, since it gets overwritten when the other
8324 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8325 compiler_DEFAULT=$CC
8326
8327 # save warnings/boilerplate of simple test code
8328 ac_outfile=conftest.$ac_objext
8329 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8330 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8331 _lt_compiler_boilerplate=`cat conftest.err`
8332 $RM conftest*
8333
8334 ac_outfile=conftest.$ac_objext
8335 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8336 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8337 _lt_linker_boilerplate=`cat conftest.err`
8338 $RM -r conftest*
8339
8340
8341 ## CAVEAT EMPTOR:
8342 ## There is no encapsulation within the following macros, do not change
8343 ## the running order or otherwise move them around unless you know exactly
8344 ## what you are doing...
8345 if test -n "$compiler"; then
8346
8347 lt_prog_compiler_no_builtin_flag=
8348
8349 if test "$GCC" = yes; then
8350 case $cc_basename in
8351 nvcc*)
8352 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8353 *)
8354 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8355 esac
8356
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8358 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8359 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 lt_cv_prog_compiler_rtti_exceptions=no
8363 ac_outfile=conftest.$ac_objext
8364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8365 lt_compiler_flag="-fno-rtti -fno-exceptions"
8366 # Insert the option either (1) after the last *FLAGS variable, or
8367 # (2) before a word containing "conftest.", or (3) at the end.
8368 # Note that $ac_compile itself does not contain backslashes and begins
8369 # with a dollar sign (not a hyphen), so the echo should work correctly.
8370 # The option is referenced via a variable to avoid confusing sed.
8371 lt_compile=`echo "$ac_compile" | $SED \
8372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8374 -e 's:$: $lt_compiler_flag:'`
8375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8376 (eval "$lt_compile" 2>conftest.err)
8377 ac_status=$?
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 if (exit $ac_status) && test -s "$ac_outfile"; then
8381 # The compiler can only warn and ignore the option if not recognized
8382 # So say no if there are warnings other than the usual output.
8383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8386 lt_cv_prog_compiler_rtti_exceptions=yes
8387 fi
8388 fi
8389 $RM conftest*
8390
8391 fi
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8393 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8394
8395 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8396 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8397 else
8398 :
8399 fi
8400
8401 fi
8402
8403
8404
8405
8406
8407
8408 lt_prog_compiler_wl=
8409 lt_prog_compiler_pic=
8410 lt_prog_compiler_static=
8411
8412
8413 if test "$GCC" = yes; then
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_static='-static'
8416
8417 case $host_os in
8418 aix*)
8419 # All AIX code is PIC.
8420 if test "$host_cpu" = ia64; then
8421 # AIX 5 now supports IA64 processor
8422 lt_prog_compiler_static='-Bstatic'
8423 fi
8424 ;;
8425
8426 amigaos*)
8427 case $host_cpu in
8428 powerpc)
8429 # see comment about AmigaOS4 .so support
8430 lt_prog_compiler_pic='-fPIC'
8431 ;;
8432 m68k)
8433 # FIXME: we need at least 68020 code to build shared libraries, but
8434 # adding the `-m68020' flag to GCC prevents building anything better,
8435 # like `-m68040'.
8436 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8437 ;;
8438 esac
8439 ;;
8440
8441 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8442 # PIC is the default for these OSes.
8443 ;;
8444
8445 mingw* | cygwin* | pw32* | os2* | cegcc*)
8446 # This hack is so that the source file can tell whether it is being
8447 # built for inclusion in a dll (and should export symbols for example).
8448 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8449 # (--disable-auto-import) libraries
8450 lt_prog_compiler_pic='-DDLL_EXPORT'
8451 ;;
8452
8453 darwin* | rhapsody*)
8454 # PIC is the default on this platform
8455 # Common symbols not allowed in MH_DYLIB files
8456 lt_prog_compiler_pic='-fno-common'
8457 ;;
8458
8459 haiku*)
8460 # PIC is the default for Haiku.
8461 # The "-static" flag exists, but is broken.
8462 lt_prog_compiler_static=
8463 ;;
8464
8465 hpux*)
8466 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8467 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8468 # sets the default TLS model and affects inlining.
8469 case $host_cpu in
8470 hppa*64*)
8471 # +Z the default
8472 ;;
8473 *)
8474 lt_prog_compiler_pic='-fPIC'
8475 ;;
8476 esac
8477 ;;
8478
8479 interix[3-9]*)
8480 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8481 # Instead, we relocate shared libraries at runtime.
8482 ;;
8483
8484 msdosdjgpp*)
8485 # Just because we use GCC doesn't mean we suddenly get shared libraries
8486 # on systems that don't support them.
8487 lt_prog_compiler_can_build_shared=no
8488 enable_shared=no
8489 ;;
8490
8491 *nto* | *qnx*)
8492 # QNX uses GNU C++, but need to define -shared option too, otherwise
8493 # it will coredump.
8494 lt_prog_compiler_pic='-fPIC -shared'
8495 ;;
8496
8497 sysv4*MP*)
8498 if test -d /usr/nec; then
8499 lt_prog_compiler_pic=-Kconform_pic
8500 fi
8501 ;;
8502
8503 *)
8504 lt_prog_compiler_pic='-fPIC'
8505 ;;
8506 esac
8507
8508 case $cc_basename in
8509 nvcc*) # Cuda Compiler Driver 2.2
8510 lt_prog_compiler_wl='-Xlinker '
8511 if test -n "$lt_prog_compiler_pic"; then
8512 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8513 fi
8514 ;;
8515 esac
8516 else
8517 # PORTME Check for flag to pass linker flags through the system compiler.
8518 case $host_os in
8519 aix*)
8520 lt_prog_compiler_wl='-Wl,'
8521 if test "$host_cpu" = ia64; then
8522 # AIX 5 now supports IA64 processor
8523 lt_prog_compiler_static='-Bstatic'
8524 else
8525 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8526 fi
8527 ;;
8528
8529 mingw* | cygwin* | pw32* | os2* | cegcc*)
8530 # This hack is so that the source file can tell whether it is being
8531 # built for inclusion in a dll (and should export symbols for example).
8532 lt_prog_compiler_pic='-DDLL_EXPORT'
8533 ;;
8534
8535 hpux9* | hpux10* | hpux11*)
8536 lt_prog_compiler_wl='-Wl,'
8537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8538 # not for PA HP-UX.
8539 case $host_cpu in
8540 hppa*64*|ia64*)
8541 # +Z the default
8542 ;;
8543 *)
8544 lt_prog_compiler_pic='+Z'
8545 ;;
8546 esac
8547 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8548 lt_prog_compiler_static='${wl}-a ${wl}archive'
8549 ;;
8550
8551 irix5* | irix6* | nonstopux*)
8552 lt_prog_compiler_wl='-Wl,'
8553 # PIC (with -KPIC) is the default.
8554 lt_prog_compiler_static='-non_shared'
8555 ;;
8556
8557 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8558 case $cc_basename in
8559 # old Intel for x86_64 which still supported -KPIC.
8560 ecc*)
8561 lt_prog_compiler_wl='-Wl,'
8562 lt_prog_compiler_pic='-KPIC'
8563 lt_prog_compiler_static='-static'
8564 ;;
8565 # icc used to be incompatible with GCC.
8566 # ICC 10 doesn't accept -KPIC any more.
8567 icc* | ifort*)
8568 lt_prog_compiler_wl='-Wl,'
8569 lt_prog_compiler_pic='-fPIC'
8570 lt_prog_compiler_static='-static'
8571 ;;
8572 # Lahey Fortran 8.1.
8573 lf95*)
8574 lt_prog_compiler_wl='-Wl,'
8575 lt_prog_compiler_pic='--shared'
8576 lt_prog_compiler_static='--static'
8577 ;;
8578 nagfor*)
8579 # NAG Fortran compiler
8580 lt_prog_compiler_wl='-Wl,-Wl,,'
8581 lt_prog_compiler_pic='-PIC'
8582 lt_prog_compiler_static='-Bstatic'
8583 ;;
8584 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8585 # Portland Group compilers (*not* the Pentium gcc compiler,
8586 # which looks to be a dead project)
8587 lt_prog_compiler_wl='-Wl,'
8588 lt_prog_compiler_pic='-fpic'
8589 lt_prog_compiler_static='-Bstatic'
8590 ;;
8591 ccc*)
8592 lt_prog_compiler_wl='-Wl,'
8593 # All Alpha code is PIC.
8594 lt_prog_compiler_static='-non_shared'
8595 ;;
8596 xl* | bgxl* | bgf* | mpixl*)
8597 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_pic='-qpic'
8600 lt_prog_compiler_static='-qstaticlink'
8601 ;;
8602 *)
8603 case `$CC -V 2>&1 | sed 5q` in
8604 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8605 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8606 lt_prog_compiler_pic='-KPIC'
8607 lt_prog_compiler_static='-Bstatic'
8608 lt_prog_compiler_wl=''
8609 ;;
8610 *Sun\ F* | *Sun*Fortran*)
8611 lt_prog_compiler_pic='-KPIC'
8612 lt_prog_compiler_static='-Bstatic'
8613 lt_prog_compiler_wl='-Qoption ld '
8614 ;;
8615 *Sun\ C*)
8616 # Sun C 5.9
8617 lt_prog_compiler_pic='-KPIC'
8618 lt_prog_compiler_static='-Bstatic'
8619 lt_prog_compiler_wl='-Wl,'
8620 ;;
8621 *Intel*\ [CF]*Compiler*)
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-fPIC'
8624 lt_prog_compiler_static='-static'
8625 ;;
8626 *Portland\ Group*)
8627 lt_prog_compiler_wl='-Wl,'
8628 lt_prog_compiler_pic='-fpic'
8629 lt_prog_compiler_static='-Bstatic'
8630 ;;
8631 esac
8632 ;;
8633 esac
8634 ;;
8635
8636 newsos6)
8637 lt_prog_compiler_pic='-KPIC'
8638 lt_prog_compiler_static='-Bstatic'
8639 ;;
8640
8641 *nto* | *qnx*)
8642 # QNX uses GNU C++, but need to define -shared option too, otherwise
8643 # it will coredump.
8644 lt_prog_compiler_pic='-fPIC -shared'
8645 ;;
8646
8647 osf3* | osf4* | osf5*)
8648 lt_prog_compiler_wl='-Wl,'
8649 # All OSF/1 code is PIC.
8650 lt_prog_compiler_static='-non_shared'
8651 ;;
8652
8653 rdos*)
8654 lt_prog_compiler_static='-non_shared'
8655 ;;
8656
8657 solaris*)
8658 lt_prog_compiler_pic='-KPIC'
8659 lt_prog_compiler_static='-Bstatic'
8660 case $cc_basename in
8661 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8662 lt_prog_compiler_wl='-Qoption ld ';;
8663 *)
8664 lt_prog_compiler_wl='-Wl,';;
8665 esac
8666 ;;
8667
8668 sunos4*)
8669 lt_prog_compiler_wl='-Qoption ld '
8670 lt_prog_compiler_pic='-PIC'
8671 lt_prog_compiler_static='-Bstatic'
8672 ;;
8673
8674 sysv4 | sysv4.2uw2* | sysv4.3*)
8675 lt_prog_compiler_wl='-Wl,'
8676 lt_prog_compiler_pic='-KPIC'
8677 lt_prog_compiler_static='-Bstatic'
8678 ;;
8679
8680 sysv4*MP*)
8681 if test -d /usr/nec ;then
8682 lt_prog_compiler_pic='-Kconform_pic'
8683 lt_prog_compiler_static='-Bstatic'
8684 fi
8685 ;;
8686
8687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-Bstatic'
8691 ;;
8692
8693 unicos*)
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_can_build_shared=no
8696 ;;
8697
8698 uts4*)
8699 lt_prog_compiler_pic='-pic'
8700 lt_prog_compiler_static='-Bstatic'
8701 ;;
8702
8703 *)
8704 lt_prog_compiler_can_build_shared=no
8705 ;;
8706 esac
8707 fi
8708
8709 case $host_os in
8710 # For platforms which do not support PIC, -DPIC is meaningless:
8711 *djgpp*)
8712 lt_prog_compiler_pic=
8713 ;;
8714 *)
8715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8716 ;;
8717 esac
8718
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8720 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8721 if ${lt_cv_prog_compiler_pic+:} false; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8727 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8728 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8729
8730 #
8731 # Check to make sure the PIC flag actually works.
8732 #
8733 if test -n "$lt_prog_compiler_pic"; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8735 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8736 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 lt_cv_prog_compiler_pic_works=no
8740 ac_outfile=conftest.$ac_objext
8741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8743 # Insert the option either (1) after the last *FLAGS variable, or
8744 # (2) before a word containing "conftest.", or (3) at the end.
8745 # Note that $ac_compile itself does not contain backslashes and begins
8746 # with a dollar sign (not a hyphen), so the echo should work correctly.
8747 # The option is referenced via a variable to avoid confusing sed.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>conftest.err)
8754 ac_status=$?
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s "$ac_outfile"; then
8758 # The compiler can only warn and ignore the option if not recognized
8759 # So say no if there are warnings other than the usual output.
8760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8763 lt_cv_prog_compiler_pic_works=yes
8764 fi
8765 fi
8766 $RM conftest*
8767
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8770 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8771
8772 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8773 case $lt_prog_compiler_pic in
8774 "" | " "*) ;;
8775 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8776 esac
8777 else
8778 lt_prog_compiler_pic=
8779 lt_prog_compiler_can_build_shared=no
8780 fi
8781
8782 fi
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794 #
8795 # Check to make sure the static flag actually works.
8796 #
8797 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8799 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8800 if ${lt_cv_prog_compiler_static_works+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 lt_cv_prog_compiler_static_works=no
8804 save_LDFLAGS="$LDFLAGS"
8805 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8806 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8808 # The linker can only warn and ignore the option if not recognized
8809 # So say no if there are warnings
8810 if test -s conftest.err; then
8811 # Append any errors to the config.log.
8812 cat conftest.err 1>&5
8813 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8815 if diff conftest.exp conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_static_works=yes
8817 fi
8818 else
8819 lt_cv_prog_compiler_static_works=yes
8820 fi
8821 fi
8822 $RM -r conftest*
8823 LDFLAGS="$save_LDFLAGS"
8824
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8827 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8828
8829 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8830 :
8831 else
8832 lt_prog_compiler_static=
8833 fi
8834
8835
8836
8837
8838
8839
8840
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8843 if ${lt_cv_prog_compiler_c_o+:} false; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 lt_cv_prog_compiler_c_o=no
8847 $RM -r conftest 2>/dev/null
8848 mkdir conftest
8849 cd conftest
8850 mkdir out
8851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8852
8853 lt_compiler_flag="-o out/conftest2.$ac_objext"
8854 # Insert the option either (1) after the last *FLAGS variable, or
8855 # (2) before a word containing "conftest.", or (3) at the end.
8856 # Note that $ac_compile itself does not contain backslashes and begins
8857 # with a dollar sign (not a hyphen), so the echo should work correctly.
8858 lt_compile=`echo "$ac_compile" | $SED \
8859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861 -e 's:$: $lt_compiler_flag:'`
8862 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8863 (eval "$lt_compile" 2>out/conftest.err)
8864 ac_status=$?
8865 cat out/conftest.err >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8868 then
8869 # The compiler can only warn and ignore the option if not recognized
8870 # So say no if there are warnings
8871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8874 lt_cv_prog_compiler_c_o=yes
8875 fi
8876 fi
8877 chmod u+w . 2>&5
8878 $RM conftest*
8879 # SGI C++ compiler will create directory out/ii_files/ for
8880 # template instantiation
8881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8882 $RM out/* && rmdir out
8883 cd ..
8884 $RM -r conftest
8885 $RM conftest*
8886
8887 fi
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8889 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8890
8891
8892
8893
8894
8895
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8897 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8898 if ${lt_cv_prog_compiler_c_o+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 lt_cv_prog_compiler_c_o=no
8902 $RM -r conftest 2>/dev/null
8903 mkdir conftest
8904 cd conftest
8905 mkdir out
8906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8907
8908 lt_compiler_flag="-o out/conftest2.$ac_objext"
8909 # Insert the option either (1) after the last *FLAGS variable, or
8910 # (2) before a word containing "conftest.", or (3) at the end.
8911 # Note that $ac_compile itself does not contain backslashes and begins
8912 # with a dollar sign (not a hyphen), so the echo should work correctly.
8913 lt_compile=`echo "$ac_compile" | $SED \
8914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8916 -e 's:$: $lt_compiler_flag:'`
8917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8918 (eval "$lt_compile" 2>out/conftest.err)
8919 ac_status=$?
8920 cat out/conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8923 then
8924 # The compiler can only warn and ignore the option if not recognized
8925 # So say no if there are warnings
8926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8929 lt_cv_prog_compiler_c_o=yes
8930 fi
8931 fi
8932 chmod u+w . 2>&5
8933 $RM conftest*
8934 # SGI C++ compiler will create directory out/ii_files/ for
8935 # template instantiation
8936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8937 $RM out/* && rmdir out
8938 cd ..
8939 $RM -r conftest
8940 $RM conftest*
8941
8942 fi
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8944 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8945
8946
8947
8948
8949 hard_links="nottested"
8950 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8951 # do not overwrite the value of need_locks provided by the user
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8953 $as_echo_n "checking if we can lock with hard links... " >&6; }
8954 hard_links=yes
8955 $RM conftest*
8956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8957 touch conftest.a
8958 ln conftest.a conftest.b 2>&5 || hard_links=no
8959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8961 $as_echo "$hard_links" >&6; }
8962 if test "$hard_links" = no; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8964 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8965 need_locks=warn
8966 fi
8967 else
8968 need_locks=no
8969 fi
8970
8971
8972
8973
8974
8975
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8977 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8978
8979 runpath_var=
8980 allow_undefined_flag=
8981 always_export_symbols=no
8982 archive_cmds=
8983 archive_expsym_cmds=
8984 compiler_needs_object=no
8985 enable_shared_with_static_runtimes=no
8986 export_dynamic_flag_spec=
8987 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8988 hardcode_automatic=no
8989 hardcode_direct=no
8990 hardcode_direct_absolute=no
8991 hardcode_libdir_flag_spec=
8992 hardcode_libdir_separator=
8993 hardcode_minus_L=no
8994 hardcode_shlibpath_var=unsupported
8995 inherit_rpath=no
8996 link_all_deplibs=unknown
8997 module_cmds=
8998 module_expsym_cmds=
8999 old_archive_from_new_cmds=
9000 old_archive_from_expsyms_cmds=
9001 thread_safe_flag_spec=
9002 whole_archive_flag_spec=
9003 # include_expsyms should be a list of space-separated symbols to be *always*
9004 # included in the symbol list
9005 include_expsyms=
9006 # exclude_expsyms can be an extended regexp of symbols to exclude
9007 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9008 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9009 # as well as any symbol that contains `d'.
9010 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9011 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9012 # platforms (ab)use it in PIC code, but their linkers get confused if
9013 # the symbol is explicitly referenced. Since portable code cannot
9014 # rely on this symbol name, it's probably fine to never include it in
9015 # preloaded symbol tables.
9016 # Exclude shared library initialization/finalization symbols.
9017 extract_expsyms_cmds=
9018
9019 case $host_os in
9020 cygwin* | mingw* | pw32* | cegcc*)
9021 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9022 # When not using gcc, we currently assume that we are using
9023 # Microsoft Visual C++.
9024 if test "$GCC" != yes; then
9025 with_gnu_ld=no
9026 fi
9027 ;;
9028 interix*)
9029 # we just hope/assume this is gcc and not c89 (= MSVC++)
9030 with_gnu_ld=yes
9031 ;;
9032 openbsd*)
9033 with_gnu_ld=no
9034 ;;
9035 linux* | k*bsd*-gnu | gnu*)
9036 link_all_deplibs=no
9037 ;;
9038 esac
9039
9040 ld_shlibs=yes
9041
9042 # On some targets, GNU ld is compatible enough with the native linker
9043 # that we're better off using the native interface for both.
9044 lt_use_gnu_ld_interface=no
9045 if test "$with_gnu_ld" = yes; then
9046 case $host_os in
9047 aix*)
9048 # The AIX port of GNU ld has always aspired to compatibility
9049 # with the native linker. However, as the warning in the GNU ld
9050 # block says, versions before 2.19.5* couldn't really create working
9051 # shared libraries, regardless of the interface used.
9052 case `$LD -v 2>&1` in
9053 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9054 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9055 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9056 *)
9057 lt_use_gnu_ld_interface=yes
9058 ;;
9059 esac
9060 ;;
9061 *)
9062 lt_use_gnu_ld_interface=yes
9063 ;;
9064 esac
9065 fi
9066
9067 if test "$lt_use_gnu_ld_interface" = yes; then
9068 # If archive_cmds runs LD, not CC, wlarc should be empty
9069 wlarc='${wl}'
9070
9071 # Set some defaults for GNU ld with shared library support. These
9072 # are reset later if shared libraries are not supported. Putting them
9073 # here allows them to be overridden if necessary.
9074 runpath_var=LD_RUN_PATH
9075 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9076 export_dynamic_flag_spec='${wl}--export-dynamic'
9077 # ancient GNU ld didn't support --whole-archive et. al.
9078 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9079 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9080 else
9081 whole_archive_flag_spec=
9082 fi
9083 supports_anon_versioning=no
9084 case `$LD -v 2>&1` in
9085 *GNU\ gold*) supports_anon_versioning=yes ;;
9086 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9087 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9088 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9089 *\ 2.11.*) ;; # other 2.11 versions
9090 *) supports_anon_versioning=yes ;;
9091 esac
9092
9093 # See if GNU ld supports shared libraries.
9094 case $host_os in
9095 aix[3-9]*)
9096 # On AIX/PPC, the GNU linker is very broken
9097 if test "$host_cpu" != ia64; then
9098 ld_shlibs=no
9099 cat <<_LT_EOF 1>&2
9100
9101 *** Warning: the GNU linker, at least up to release 2.19, is reported
9102 *** to be unable to reliably create shared libraries on AIX.
9103 *** Therefore, libtool is disabling shared libraries support. If you
9104 *** really care for shared libraries, you may want to install binutils
9105 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9106 *** You will then need to restart the configuration process.
9107
9108 _LT_EOF
9109 fi
9110 ;;
9111
9112 amigaos*)
9113 case $host_cpu in
9114 powerpc)
9115 # see comment about AmigaOS4 .so support
9116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117 archive_expsym_cmds=''
9118 ;;
9119 m68k)
9120 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)'
9121 hardcode_libdir_flag_spec='-L$libdir'
9122 hardcode_minus_L=yes
9123 ;;
9124 esac
9125 ;;
9126
9127 beos*)
9128 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9129 allow_undefined_flag=unsupported
9130 # Joseph Beckenbach <[email protected]> says some releases of gcc
9131 # support --undefined. This deserves some investigation. FIXME
9132 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9133 else
9134 ld_shlibs=no
9135 fi
9136 ;;
9137
9138 cygwin* | mingw* | pw32* | cegcc*)
9139 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9140 # as there is no search path for DLLs.
9141 hardcode_libdir_flag_spec='-L$libdir'
9142 export_dynamic_flag_spec='${wl}--export-all-symbols'
9143 allow_undefined_flag=unsupported
9144 always_export_symbols=no
9145 enable_shared_with_static_runtimes=yes
9146 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'
9147 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9148
9149 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9151 # If the export-symbols file already is a .def file (1st line
9152 # is EXPORTS), use it as is; otherwise, prepend...
9153 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9154 cp $export_symbols $output_objdir/$soname.def;
9155 else
9156 echo EXPORTS > $output_objdir/$soname.def;
9157 cat $export_symbols >> $output_objdir/$soname.def;
9158 fi~
9159 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9160 else
9161 ld_shlibs=no
9162 fi
9163 ;;
9164
9165 haiku*)
9166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9167 link_all_deplibs=yes
9168 ;;
9169
9170 interix[3-9]*)
9171 hardcode_direct=no
9172 hardcode_shlibpath_var=no
9173 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9174 export_dynamic_flag_spec='${wl}-E'
9175 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9176 # Instead, shared libraries are loaded at an image base (0x10000000 by
9177 # default) and relocated if they conflict, which is a slow very memory
9178 # consuming and fragmenting process. To avoid this, we pick a random,
9179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9180 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9181 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9182 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'
9183 ;;
9184
9185 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9186 tmp_diet=no
9187 if test "$host_os" = linux-dietlibc; then
9188 case $cc_basename in
9189 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9190 esac
9191 fi
9192 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9193 && test "$tmp_diet" = no
9194 then
9195 tmp_addflag=' $pic_flag'
9196 tmp_sharedflag='-shared'
9197 case $cc_basename,$host_cpu in
9198 pgcc*) # Portland Group C compiler
9199 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'
9200 tmp_addflag=' $pic_flag'
9201 ;;
9202 pgf77* | pgf90* | pgf95* | pgfortran*)
9203 # Portland Group f77 and f90 compilers
9204 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'
9205 tmp_addflag=' $pic_flag -Mnomain' ;;
9206 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9207 tmp_addflag=' -i_dynamic' ;;
9208 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9209 tmp_addflag=' -i_dynamic -nofor_main' ;;
9210 ifc* | ifort*) # Intel Fortran compiler
9211 tmp_addflag=' -nofor_main' ;;
9212 lf95*) # Lahey Fortran 8.1
9213 whole_archive_flag_spec=
9214 tmp_sharedflag='--shared' ;;
9215 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9216 tmp_sharedflag='-qmkshrobj'
9217 tmp_addflag= ;;
9218 nvcc*) # Cuda Compiler Driver 2.2
9219 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'
9220 compiler_needs_object=yes
9221 ;;
9222 esac
9223 case `$CC -V 2>&1 | sed 5q` in
9224 *Sun\ C*) # Sun C 5.9
9225 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'
9226 compiler_needs_object=yes
9227 tmp_sharedflag='-G' ;;
9228 *Sun\ F*) # Sun Fortran 8.3
9229 tmp_sharedflag='-G' ;;
9230 esac
9231 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232
9233 if test "x$supports_anon_versioning" = xyes; then
9234 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9236 echo "local: *; };" >> $output_objdir/$libname.ver~
9237 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9238 fi
9239
9240 case $cc_basename in
9241 xlf* | bgf* | bgxlf* | mpixlf*)
9242 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9243 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9245 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9246 if test "x$supports_anon_versioning" = xyes; then
9247 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9248 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9249 echo "local: *; };" >> $output_objdir/$libname.ver~
9250 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9251 fi
9252 ;;
9253 esac
9254 else
9255 ld_shlibs=no
9256 fi
9257 ;;
9258
9259 netbsd* | netbsdelf*-gnu)
9260 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9261 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9262 wlarc=
9263 else
9264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9266 fi
9267 ;;
9268
9269 solaris*)
9270 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9271 ld_shlibs=no
9272 cat <<_LT_EOF 1>&2
9273
9274 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9275 *** create shared libraries on Solaris systems. Therefore, libtool
9276 *** is disabling shared libraries support. We urge you to upgrade GNU
9277 *** binutils to release 2.9.1 or newer. Another option is to modify
9278 *** your PATH or compiler configuration so that the native linker is
9279 *** used, and then restart.
9280
9281 _LT_EOF
9282 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9285 else
9286 ld_shlibs=no
9287 fi
9288 ;;
9289
9290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9291 case `$LD -v 2>&1` in
9292 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9293 ld_shlibs=no
9294 cat <<_LT_EOF 1>&2
9295
9296 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9297 *** reliably create shared libraries on SCO systems. Therefore, libtool
9298 *** is disabling shared libraries support. We urge you to upgrade GNU
9299 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9300 *** your PATH or compiler configuration so that the native linker is
9301 *** used, and then restart.
9302
9303 _LT_EOF
9304 ;;
9305 *)
9306 # For security reasons, it is highly recommended that you always
9307 # use absolute paths for naming shared libraries, and exclude the
9308 # DT_RUNPATH tag from executables and libraries. But doing so
9309 # requires that you compile everything twice, which is a pain.
9310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9314 else
9315 ld_shlibs=no
9316 fi
9317 ;;
9318 esac
9319 ;;
9320
9321 sunos4*)
9322 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9323 wlarc=
9324 hardcode_direct=yes
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 *)
9329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9330 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9331 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9332 else
9333 ld_shlibs=no
9334 fi
9335 ;;
9336 esac
9337
9338 if test "$ld_shlibs" = no; then
9339 runpath_var=
9340 hardcode_libdir_flag_spec=
9341 export_dynamic_flag_spec=
9342 whole_archive_flag_spec=
9343 fi
9344 else
9345 # PORTME fill in a description of your system's linker (not GNU ld)
9346 case $host_os in
9347 aix3*)
9348 allow_undefined_flag=unsupported
9349 always_export_symbols=yes
9350 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'
9351 # Note: this linker hardcodes the directories in LIBPATH if there
9352 # are no directories specified by -L.
9353 hardcode_minus_L=yes
9354 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9355 # Neither direct hardcoding nor static linking is supported with a
9356 # broken collect2.
9357 hardcode_direct=unsupported
9358 fi
9359 ;;
9360
9361 aix[4-9]*)
9362 if test "$host_cpu" = ia64; then
9363 # On IA64, the linker does run time linking by default, so we don't
9364 # have to do anything special.
9365 aix_use_runtimelinking=no
9366 exp_sym_flag='-Bexport'
9367 no_entry_flag=""
9368 else
9369 # If we're using GNU nm, then we don't want the "-C" option.
9370 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9371 # Also, AIX nm treats weak defined symbols like other global
9372 # defined symbols, whereas GNU nm marks them as "W".
9373 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9374 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'
9375 else
9376 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'
9377 fi
9378 aix_use_runtimelinking=no
9379
9380 # Test if we are trying to use run time linking or normal
9381 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9382 # need to do runtime linking.
9383 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9384 for ld_flag in $LDFLAGS; do
9385 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9386 aix_use_runtimelinking=yes
9387 break
9388 fi
9389 done
9390 ;;
9391 esac
9392
9393 exp_sym_flag='-bexport'
9394 no_entry_flag='-bnoentry'
9395 fi
9396
9397 # When large executables or shared objects are built, AIX ld can
9398 # have problems creating the table of contents. If linking a library
9399 # or program results in "error TOC overflow" add -mminimal-toc to
9400 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9401 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9402
9403 archive_cmds=''
9404 hardcode_direct=yes
9405 hardcode_direct_absolute=yes
9406 hardcode_libdir_separator=':'
9407 link_all_deplibs=yes
9408 file_list_spec='${wl}-f,'
9409
9410 if test "$GCC" = yes; then
9411 case $host_os in aix4.[012]|aix4.[012].*)
9412 # We only want to do this on AIX 4.2 and lower, the check
9413 # below for broken collect2 doesn't work under 4.3+
9414 collect2name=`${CC} -print-prog-name=collect2`
9415 if test -f "$collect2name" &&
9416 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9417 then
9418 # We have reworked collect2
9419 :
9420 else
9421 # We have old collect2
9422 hardcode_direct=unsupported
9423 # It fails to find uninstalled libraries when the uninstalled
9424 # path is not listed in the libpath. Setting hardcode_minus_L
9425 # to unsupported forces relinking
9426 hardcode_minus_L=yes
9427 hardcode_libdir_flag_spec='-L$libdir'
9428 hardcode_libdir_separator=
9429 fi
9430 ;;
9431 esac
9432 shared_flag='-shared'
9433 if test "$aix_use_runtimelinking" = yes; then
9434 shared_flag="$shared_flag "'${wl}-G'
9435 fi
9436 link_all_deplibs=no
9437 else
9438 # not using gcc
9439 if test "$host_cpu" = ia64; then
9440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9441 # chokes on -Wl,-G. The following line is correct:
9442 shared_flag='-G'
9443 else
9444 if test "$aix_use_runtimelinking" = yes; then
9445 shared_flag='${wl}-G'
9446 else
9447 shared_flag='${wl}-bM:SRE'
9448 fi
9449 fi
9450 fi
9451
9452 export_dynamic_flag_spec='${wl}-bexpall'
9453 # It seems that -bexpall does not export symbols beginning with
9454 # underscore (_), so it is better to generate a list of symbols to export.
9455 always_export_symbols=yes
9456 if test "$aix_use_runtimelinking" = yes; then
9457 # Warning - without using the other runtime loading flags (-brtl),
9458 # -berok will link without error, but may produce a broken library.
9459 allow_undefined_flag='-berok'
9460 # Determine the default libpath from the value encoded in an
9461 # empty executable.
9462 if test "${lt_cv_aix_libpath+set}" = set; then
9463 aix_libpath=$lt_cv_aix_libpath
9464 else
9465 if ${lt_cv_aix_libpath_+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470
9471 int
9472 main ()
9473 {
9474
9475 ;
9476 return 0;
9477 }
9478 _ACEOF
9479 if ac_fn_c_try_link "$LINENO"; then :
9480
9481 lt_aix_libpath_sed='
9482 /Import File Strings/,/^$/ {
9483 /^0/ {
9484 s/^0 *\([^ ]*\) *$/\1/
9485 p
9486 }
9487 }'
9488 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9489 # Check for a 64-bit object if we didn't find anything.
9490 if test -z "$lt_cv_aix_libpath_"; then
9491 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9492 fi
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 if test -z "$lt_cv_aix_libpath_"; then
9497 lt_cv_aix_libpath_="/usr/lib:/lib"
9498 fi
9499
9500 fi
9501
9502 aix_libpath=$lt_cv_aix_libpath_
9503 fi
9504
9505 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9506 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"
9507 else
9508 if test "$host_cpu" = ia64; then
9509 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9510 allow_undefined_flag="-z nodefs"
9511 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"
9512 else
9513 # Determine the default libpath from the value encoded in an
9514 # empty executable.
9515 if test "${lt_cv_aix_libpath+set}" = set; then
9516 aix_libpath=$lt_cv_aix_libpath
9517 else
9518 if ${lt_cv_aix_libpath_+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523
9524 int
9525 main ()
9526 {
9527
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533
9534 lt_aix_libpath_sed='
9535 /Import File Strings/,/^$/ {
9536 /^0/ {
9537 s/^0 *\([^ ]*\) *$/\1/
9538 p
9539 }
9540 }'
9541 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9542 # Check for a 64-bit object if we didn't find anything.
9543 if test -z "$lt_cv_aix_libpath_"; then
9544 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9545 fi
9546 fi
9547 rm -f core conftest.err conftest.$ac_objext \
9548 conftest$ac_exeext conftest.$ac_ext
9549 if test -z "$lt_cv_aix_libpath_"; then
9550 lt_cv_aix_libpath_="/usr/lib:/lib"
9551 fi
9552
9553 fi
9554
9555 aix_libpath=$lt_cv_aix_libpath_
9556 fi
9557
9558 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9559 # Warning - without using the other run time loading flags,
9560 # -berok will link without error, but may produce a broken library.
9561 no_undefined_flag=' ${wl}-bernotok'
9562 allow_undefined_flag=' ${wl}-berok'
9563 if test "$with_gnu_ld" = yes; then
9564 # We only use this code for GNU lds that support --whole-archive.
9565 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9566 else
9567 # Exported symbols can be pulled into shared objects from archives
9568 whole_archive_flag_spec='$convenience'
9569 fi
9570 archive_cmds_need_lc=yes
9571 # This is similar to how AIX traditionally builds its shared libraries.
9572 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'
9573 fi
9574 fi
9575 ;;
9576
9577 amigaos*)
9578 case $host_cpu in
9579 powerpc)
9580 # see comment about AmigaOS4 .so support
9581 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582 archive_expsym_cmds=''
9583 ;;
9584 m68k)
9585 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)'
9586 hardcode_libdir_flag_spec='-L$libdir'
9587 hardcode_minus_L=yes
9588 ;;
9589 esac
9590 ;;
9591
9592 bsdi[45]*)
9593 export_dynamic_flag_spec=-rdynamic
9594 ;;
9595
9596 cygwin* | mingw* | pw32* | cegcc*)
9597 # When not using gcc, we currently assume that we are using
9598 # Microsoft Visual C++.
9599 # hardcode_libdir_flag_spec is actually meaningless, as there is
9600 # no search path for DLLs.
9601 case $cc_basename in
9602 cl*)
9603 # Native MSVC
9604 hardcode_libdir_flag_spec=' '
9605 allow_undefined_flag=unsupported
9606 always_export_symbols=yes
9607 file_list_spec='@'
9608 # Tell ltmain to make .lib files, not .a files.
9609 libext=lib
9610 # Tell ltmain to make .dll files, not .so files.
9611 shrext_cmds=".dll"
9612 # FIXME: Setting linknames here is a bad hack.
9613 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9614 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9615 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9616 else
9617 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9618 fi~
9619 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9620 linknames='
9621 # The linker will not automatically build a static lib if we build a DLL.
9622 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9623 enable_shared_with_static_runtimes=yes
9624 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9625 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9626 # Don't use ranlib
9627 old_postinstall_cmds='chmod 644 $oldlib'
9628 postlink_cmds='lt_outputfile="@OUTPUT@"~
9629 lt_tool_outputfile="@TOOL_OUTPUT@"~
9630 case $lt_outputfile in
9631 *.exe|*.EXE) ;;
9632 *)
9633 lt_outputfile="$lt_outputfile.exe"
9634 lt_tool_outputfile="$lt_tool_outputfile.exe"
9635 ;;
9636 esac~
9637 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9638 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9639 $RM "$lt_outputfile.manifest";
9640 fi'
9641 ;;
9642 *)
9643 # Assume MSVC wrapper
9644 hardcode_libdir_flag_spec=' '
9645 allow_undefined_flag=unsupported
9646 # Tell ltmain to make .lib files, not .a files.
9647 libext=lib
9648 # Tell ltmain to make .dll files, not .so files.
9649 shrext_cmds=".dll"
9650 # FIXME: Setting linknames here is a bad hack.
9651 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9652 # The linker will automatically build a .lib file if we build a DLL.
9653 old_archive_from_new_cmds='true'
9654 # FIXME: Should let the user specify the lib program.
9655 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9656 enable_shared_with_static_runtimes=yes
9657 ;;
9658 esac
9659 ;;
9660
9661 darwin* | rhapsody*)
9662
9663
9664 archive_cmds_need_lc=no
9665 hardcode_direct=no
9666 hardcode_automatic=yes
9667 hardcode_shlibpath_var=unsupported
9668 if test "$lt_cv_ld_force_load" = "yes"; then
9669 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\"`'
9670
9671 else
9672 whole_archive_flag_spec=''
9673 fi
9674 link_all_deplibs=yes
9675 allow_undefined_flag="$_lt_dar_allow_undefined"
9676 case $cc_basename in
9677 ifort*) _lt_dar_can_shared=yes ;;
9678 *) _lt_dar_can_shared=$GCC ;;
9679 esac
9680 if test "$_lt_dar_can_shared" = "yes"; then
9681 output_verbose_link_cmd=func_echo_all
9682 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9683 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9684 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}"
9685 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}"
9686
9687 else
9688 ld_shlibs=no
9689 fi
9690
9691 ;;
9692
9693 dgux*)
9694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695 hardcode_libdir_flag_spec='-L$libdir'
9696 hardcode_shlibpath_var=no
9697 ;;
9698
9699 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9700 # support. Future versions do this automatically, but an explicit c++rt0.o
9701 # does not break anything, and helps significantly (at the cost of a little
9702 # extra space).
9703 freebsd2.2*)
9704 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9705 hardcode_libdir_flag_spec='-R$libdir'
9706 hardcode_direct=yes
9707 hardcode_shlibpath_var=no
9708 ;;
9709
9710 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9711 freebsd2.*)
9712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9713 hardcode_direct=yes
9714 hardcode_minus_L=yes
9715 hardcode_shlibpath_var=no
9716 ;;
9717
9718 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9719 freebsd* | dragonfly*)
9720 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9721 hardcode_libdir_flag_spec='-R$libdir'
9722 hardcode_direct=yes
9723 hardcode_shlibpath_var=no
9724 ;;
9725
9726 hpux9*)
9727 if test "$GCC" = yes; then
9728 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'
9729 else
9730 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'
9731 fi
9732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9733 hardcode_libdir_separator=:
9734 hardcode_direct=yes
9735
9736 # hardcode_minus_L: Not really in the search PATH,
9737 # but as the default location of the library.
9738 hardcode_minus_L=yes
9739 export_dynamic_flag_spec='${wl}-E'
9740 ;;
9741
9742 hpux10*)
9743 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9744 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9745 else
9746 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9747 fi
9748 if test "$with_gnu_ld" = no; then
9749 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9750 hardcode_libdir_separator=:
9751 hardcode_direct=yes
9752 hardcode_direct_absolute=yes
9753 export_dynamic_flag_spec='${wl}-E'
9754 # hardcode_minus_L: Not really in the search PATH,
9755 # but as the default location of the library.
9756 hardcode_minus_L=yes
9757 fi
9758 ;;
9759
9760 hpux11*)
9761 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9762 case $host_cpu in
9763 hppa*64*)
9764 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 ;;
9766 ia64*)
9767 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9768 ;;
9769 *)
9770 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9771 ;;
9772 esac
9773 else
9774 case $host_cpu in
9775 hppa*64*)
9776 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 ;;
9778 ia64*)
9779 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9780 ;;
9781 *)
9782
9783 # Older versions of the 11.00 compiler do not understand -b yet
9784 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9786 $as_echo_n "checking if $CC understands -b... " >&6; }
9787 if ${lt_cv_prog_compiler__b+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 lt_cv_prog_compiler__b=no
9791 save_LDFLAGS="$LDFLAGS"
9792 LDFLAGS="$LDFLAGS -b"
9793 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9794 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9795 # The linker can only warn and ignore the option if not recognized
9796 # So say no if there are warnings
9797 if test -s conftest.err; then
9798 # Append any errors to the config.log.
9799 cat conftest.err 1>&5
9800 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9802 if diff conftest.exp conftest.er2 >/dev/null; then
9803 lt_cv_prog_compiler__b=yes
9804 fi
9805 else
9806 lt_cv_prog_compiler__b=yes
9807 fi
9808 fi
9809 $RM -r conftest*
9810 LDFLAGS="$save_LDFLAGS"
9811
9812 fi
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9814 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9815
9816 if test x"$lt_cv_prog_compiler__b" = xyes; then
9817 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9818 else
9819 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9820 fi
9821
9822 ;;
9823 esac
9824 fi
9825 if test "$with_gnu_ld" = no; then
9826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9827 hardcode_libdir_separator=:
9828
9829 case $host_cpu in
9830 hppa*64*|ia64*)
9831 hardcode_direct=no
9832 hardcode_shlibpath_var=no
9833 ;;
9834 *)
9835 hardcode_direct=yes
9836 hardcode_direct_absolute=yes
9837 export_dynamic_flag_spec='${wl}-E'
9838
9839 # hardcode_minus_L: Not really in the search PATH,
9840 # but as the default location of the library.
9841 hardcode_minus_L=yes
9842 ;;
9843 esac
9844 fi
9845 ;;
9846
9847 irix5* | irix6* | nonstopux*)
9848 if test "$GCC" = yes; then
9849 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'
9850 # Try to use the -exported_symbol ld option, if it does not
9851 # work, assume that -exports_file does not work either and
9852 # implicitly export all symbols.
9853 # This should be the same for all languages, so no per-tag cache variable.
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9855 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9856 if ${lt_cv_irix_exported_symbol+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 save_LDFLAGS="$LDFLAGS"
9860 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h. */
9863 int foo (void) { return 0; }
9864 _ACEOF
9865 if ac_fn_c_try_link "$LINENO"; then :
9866 lt_cv_irix_exported_symbol=yes
9867 else
9868 lt_cv_irix_exported_symbol=no
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872 LDFLAGS="$save_LDFLAGS"
9873 fi
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9875 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9876 if test "$lt_cv_irix_exported_symbol" = yes; then
9877 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'
9878 fi
9879 else
9880 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'
9881 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'
9882 fi
9883 archive_cmds_need_lc='no'
9884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9885 hardcode_libdir_separator=:
9886 inherit_rpath=yes
9887 link_all_deplibs=yes
9888 ;;
9889
9890 netbsd* | netbsdelf*-gnu)
9891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9893 else
9894 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9895 fi
9896 hardcode_libdir_flag_spec='-R$libdir'
9897 hardcode_direct=yes
9898 hardcode_shlibpath_var=no
9899 ;;
9900
9901 newsos6)
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_direct=yes
9904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905 hardcode_libdir_separator=:
9906 hardcode_shlibpath_var=no
9907 ;;
9908
9909 *nto* | *qnx*)
9910 ;;
9911
9912 openbsd*)
9913 if test -f /usr/libexec/ld.so; then
9914 hardcode_direct=yes
9915 hardcode_shlibpath_var=no
9916 hardcode_direct_absolute=yes
9917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9918 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9919 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9920 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9921 export_dynamic_flag_spec='${wl}-E'
9922 else
9923 case $host_os in
9924 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9926 hardcode_libdir_flag_spec='-R$libdir'
9927 ;;
9928 *)
9929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9931 ;;
9932 esac
9933 fi
9934 else
9935 ld_shlibs=no
9936 fi
9937 ;;
9938
9939 os2*)
9940 hardcode_libdir_flag_spec='-L$libdir'
9941 hardcode_minus_L=yes
9942 allow_undefined_flag=unsupported
9943 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'
9944 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9945 ;;
9946
9947 osf3*)
9948 if test "$GCC" = yes; then
9949 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9950 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'
9951 else
9952 allow_undefined_flag=' -expect_unresolved \*'
9953 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'
9954 fi
9955 archive_cmds_need_lc='no'
9956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9957 hardcode_libdir_separator=:
9958 ;;
9959
9960 osf4* | osf5*) # as osf3* with the addition of -msym flag
9961 if test "$GCC" = yes; then
9962 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9963 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'
9964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9965 else
9966 allow_undefined_flag=' -expect_unresolved \*'
9967 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'
9968 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~
9969 $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'
9970
9971 # Both c and cxx compiler support -rpath directly
9972 hardcode_libdir_flag_spec='-rpath $libdir'
9973 fi
9974 archive_cmds_need_lc='no'
9975 hardcode_libdir_separator=:
9976 ;;
9977
9978 solaris*)
9979 no_undefined_flag=' -z defs'
9980 if test "$GCC" = yes; then
9981 wlarc='${wl}'
9982 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9984 $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'
9985 else
9986 case `$CC -V 2>&1` in
9987 *"Compilers 5.0"*)
9988 wlarc=''
9989 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9990 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9991 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9992 ;;
9993 *)
9994 wlarc='${wl}'
9995 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9997 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9998 ;;
9999 esac
10000 fi
10001 hardcode_libdir_flag_spec='-R$libdir'
10002 hardcode_shlibpath_var=no
10003 case $host_os in
10004 solaris2.[0-5] | solaris2.[0-5].*) ;;
10005 *)
10006 # The compiler driver will combine and reorder linker options,
10007 # but understands `-z linker_flag'. GCC discards it without `$wl',
10008 # but is careful enough not to reorder.
10009 # Supported since Solaris 2.6 (maybe 2.5.1?)
10010 if test "$GCC" = yes; then
10011 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10012 else
10013 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10014 fi
10015 ;;
10016 esac
10017 link_all_deplibs=yes
10018 ;;
10019
10020 sunos4*)
10021 if test "x$host_vendor" = xsequent; then
10022 # Use $CC to link under sequent, because it throws in some extra .o
10023 # files that make .init and .fini sections work.
10024 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10025 else
10026 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10027 fi
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_direct=yes
10030 hardcode_minus_L=yes
10031 hardcode_shlibpath_var=no
10032 ;;
10033
10034 sysv4)
10035 case $host_vendor in
10036 sni)
10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_direct=yes # is this really true???
10039 ;;
10040 siemens)
10041 ## LD is ld it makes a PLAMLIB
10042 ## CC just makes a GrossModule.
10043 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10044 reload_cmds='$CC -r -o $output$reload_objs'
10045 hardcode_direct=no
10046 ;;
10047 motorola)
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10050 ;;
10051 esac
10052 runpath_var='LD_RUN_PATH'
10053 hardcode_shlibpath_var=no
10054 ;;
10055
10056 sysv4.3*)
10057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_shlibpath_var=no
10059 export_dynamic_flag_spec='-Bexport'
10060 ;;
10061
10062 sysv4*MP*)
10063 if test -d /usr/nec; then
10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_shlibpath_var=no
10066 runpath_var=LD_RUN_PATH
10067 hardcode_runpath_var=yes
10068 ld_shlibs=yes
10069 fi
10070 ;;
10071
10072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10073 no_undefined_flag='${wl}-z,text'
10074 archive_cmds_need_lc=no
10075 hardcode_shlibpath_var=no
10076 runpath_var='LD_RUN_PATH'
10077
10078 if test "$GCC" = yes; then
10079 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 else
10082 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 fi
10085 ;;
10086
10087 sysv5* | sco3.2v5* | sco5v6*)
10088 # Note: We can NOT use -z defs as we might desire, because we do not
10089 # link with -lc, and that would cause any symbols used from libc to
10090 # always be unresolved, which means just about no library would
10091 # ever link correctly. If we're not using GNU ld we use -z text
10092 # though, which does catch some bad symbols but isn't as heavy-handed
10093 # as -z defs.
10094 no_undefined_flag='${wl}-z,text'
10095 allow_undefined_flag='${wl}-z,nodefs'
10096 archive_cmds_need_lc=no
10097 hardcode_shlibpath_var=no
10098 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10099 hardcode_libdir_separator=':'
10100 link_all_deplibs=yes
10101 export_dynamic_flag_spec='${wl}-Bexport'
10102 runpath_var='LD_RUN_PATH'
10103
10104 if test "$GCC" = yes; then
10105 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 else
10108 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 fi
10111 ;;
10112
10113 uts4*)
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec='-L$libdir'
10116 hardcode_shlibpath_var=no
10117 ;;
10118
10119 *)
10120 ld_shlibs=no
10121 ;;
10122 esac
10123
10124 if test x$host_vendor = xsni; then
10125 case $host in
10126 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10127 export_dynamic_flag_spec='${wl}-Blargedynsym'
10128 ;;
10129 esac
10130 fi
10131 fi
10132
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10134 $as_echo "$ld_shlibs" >&6; }
10135 test "$ld_shlibs" = no && can_build_shared=no
10136
10137 with_gnu_ld=$with_gnu_ld
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153 #
10154 # Do we need to explicitly link libc?
10155 #
10156 case "x$archive_cmds_need_lc" in
10157 x|xyes)
10158 # Assume -lc should be added
10159 archive_cmds_need_lc=yes
10160
10161 if test "$enable_shared" = yes && test "$GCC" = yes; then
10162 case $archive_cmds in
10163 *'~'*)
10164 # FIXME: we may have to deal with multi-command sequences.
10165 ;;
10166 '$CC '*)
10167 # Test whether the compiler implicitly links with -lc since on some
10168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10169 # to ld, don't add -lc before -lgcc.
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10171 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10172 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 $RM conftest*
10176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10177
10178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10179 (eval $ac_compile) 2>&5
10180 ac_status=$?
10181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10182 test $ac_status = 0; } 2>conftest.err; then
10183 soname=conftest
10184 lib=conftest
10185 libobjs=conftest.$ac_objext
10186 deplibs=
10187 wl=$lt_prog_compiler_wl
10188 pic_flag=$lt_prog_compiler_pic
10189 compiler_flags=-v
10190 linker_flags=-v
10191 verstring=
10192 output_objdir=.
10193 libname=conftest
10194 lt_save_allow_undefined_flag=$allow_undefined_flag
10195 allow_undefined_flag=
10196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10197 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10198 ac_status=$?
10199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200 test $ac_status = 0; }
10201 then
10202 lt_cv_archive_cmds_need_lc=no
10203 else
10204 lt_cv_archive_cmds_need_lc=yes
10205 fi
10206 allow_undefined_flag=$lt_save_allow_undefined_flag
10207 else
10208 cat conftest.err 1>&5
10209 fi
10210 $RM conftest*
10211
10212 fi
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10214 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10215 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10216 ;;
10217 esac
10218 fi
10219 ;;
10220 esac
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
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10374 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10375
10376 if test "$GCC" = yes; then
10377 case $host_os in
10378 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10379 *) lt_awk_arg="/^libraries:/" ;;
10380 esac
10381 case $host_os in
10382 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10383 *) lt_sed_strip_eq="s,=/,/,g" ;;
10384 esac
10385 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10386 case $lt_search_path_spec in
10387 *\;*)
10388 # if the path contains ";" then we assume it to be the separator
10389 # otherwise default to the standard path separator (i.e. ":") - it is
10390 # assumed that no part of a normal pathname contains ";" but that should
10391 # okay in the real world where ";" in dirpaths is itself problematic.
10392 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10393 ;;
10394 *)
10395 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10396 ;;
10397 esac
10398 # Ok, now we have the path, separated by spaces, we can step through it
10399 # and add multilib dir if necessary.
10400 lt_tmp_lt_search_path_spec=
10401 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10402 for lt_sys_path in $lt_search_path_spec; do
10403 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10404 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10405 else
10406 test -d "$lt_sys_path" && \
10407 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10408 fi
10409 done
10410 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10411 BEGIN {RS=" "; FS="/|\n";} {
10412 lt_foo="";
10413 lt_count=0;
10414 for (lt_i = NF; lt_i > 0; lt_i--) {
10415 if ($lt_i != "" && $lt_i != ".") {
10416 if ($lt_i == "..") {
10417 lt_count++;
10418 } else {
10419 if (lt_count == 0) {
10420 lt_foo="/" $lt_i lt_foo;
10421 } else {
10422 lt_count--;
10423 }
10424 }
10425 }
10426 }
10427 if (lt_foo != "") { lt_freq[lt_foo]++; }
10428 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10429 }'`
10430 # AWK program above erroneously prepends '/' to C:/dos/paths
10431 # for these hosts.
10432 case $host_os in
10433 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10434 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10435 esac
10436 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10437 else
10438 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10439 fi
10440 library_names_spec=
10441 libname_spec='lib$name'
10442 soname_spec=
10443 shrext_cmds=".so"
10444 postinstall_cmds=
10445 postuninstall_cmds=
10446 finish_cmds=
10447 finish_eval=
10448 shlibpath_var=
10449 shlibpath_overrides_runpath=unknown
10450 version_type=none
10451 dynamic_linker="$host_os ld.so"
10452 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10453 need_lib_prefix=unknown
10454 hardcode_into_libs=no
10455
10456 # when you set need_version to no, make sure it does not cause -set_version
10457 # flags to be left without arguments
10458 need_version=unknown
10459
10460 case $host_os in
10461 aix3*)
10462 version_type=linux # correct to gnu/linux during the next big refactor
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10464 shlibpath_var=LIBPATH
10465
10466 # AIX 3 has no versioning support, so we append a major version to the name.
10467 soname_spec='${libname}${release}${shared_ext}$major'
10468 ;;
10469
10470 aix[4-9]*)
10471 version_type=linux # correct to gnu/linux during the next big refactor
10472 need_lib_prefix=no
10473 need_version=no
10474 hardcode_into_libs=yes
10475 if test "$host_cpu" = ia64; then
10476 # AIX 5 supports IA64
10477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10478 shlibpath_var=LD_LIBRARY_PATH
10479 else
10480 # With GCC up to 2.95.x, collect2 would create an import file
10481 # for dependence libraries. The import file would start with
10482 # the line `#! .'. This would cause the generated library to
10483 # depend on `.', always an invalid library. This was fixed in
10484 # development snapshots of GCC prior to 3.0.
10485 case $host_os in
10486 aix4 | aix4.[01] | aix4.[01].*)
10487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10488 echo ' yes '
10489 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10490 :
10491 else
10492 can_build_shared=no
10493 fi
10494 ;;
10495 esac
10496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10497 # soname into executable. Probably we can add versioning support to
10498 # collect2, so additional links can be useful in future.
10499 if test "$aix_use_runtimelinking" = yes; then
10500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10501 # instead of lib<name>.a to let people know that these are not
10502 # typical AIX shared libraries.
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 else
10505 # We preserve .a as extension for shared libraries through AIX4.2
10506 # and later when we are not doing run time linking.
10507 library_names_spec='${libname}${release}.a $libname.a'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 fi
10510 shlibpath_var=LIBPATH
10511 fi
10512 ;;
10513
10514 amigaos*)
10515 case $host_cpu in
10516 powerpc)
10517 # Since July 2007 AmigaOS4 officially supports .so libraries.
10518 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10520 ;;
10521 m68k)
10522 library_names_spec='$libname.ixlibrary $libname.a'
10523 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10524 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'
10525 ;;
10526 esac
10527 ;;
10528
10529 beos*)
10530 library_names_spec='${libname}${shared_ext}'
10531 dynamic_linker="$host_os ld.so"
10532 shlibpath_var=LIBRARY_PATH
10533 ;;
10534
10535 bsdi[45]*)
10536 version_type=linux # correct to gnu/linux during the next big refactor
10537 need_version=no
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10544 # the default ld.so.conf also contains /usr/contrib/lib and
10545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10546 # libtool to hard-code these into programs
10547 ;;
10548
10549 cygwin* | mingw* | pw32* | cegcc*)
10550 version_type=windows
10551 shrext_cmds=".dll"
10552 need_version=no
10553 need_lib_prefix=no
10554
10555 case $GCC,$cc_basename in
10556 yes,*)
10557 # gcc
10558 library_names_spec='$libname.dll.a'
10559 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10560 postinstall_cmds='base_file=`basename \${file}`~
10561 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10562 dldir=$destdir/`dirname \$dlpath`~
10563 test -d \$dldir || mkdir -p \$dldir~
10564 $install_prog $dir/$dlname \$dldir/$dlname~
10565 chmod a+x \$dldir/$dlname~
10566 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10567 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10568 fi'
10569 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10570 dlpath=$dir/\$dldll~
10571 $RM \$dlpath'
10572 shlibpath_overrides_runpath=yes
10573
10574 case $host_os in
10575 cygwin*)
10576 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10577 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10578
10579 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10580 ;;
10581 mingw* | cegcc*)
10582 # MinGW DLLs use traditional 'lib' prefix
10583 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10584 ;;
10585 pw32*)
10586 # pw32 DLLs use 'pw' prefix rather than 'lib'
10587 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10588 ;;
10589 esac
10590 dynamic_linker='Win32 ld.exe'
10591 ;;
10592
10593 *,cl*)
10594 # Native MSVC
10595 libname_spec='$name'
10596 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597 library_names_spec='${libname}.dll.lib'
10598
10599 case $build_os in
10600 mingw*)
10601 sys_lib_search_path_spec=
10602 lt_save_ifs=$IFS
10603 IFS=';'
10604 for lt_path in $LIB
10605 do
10606 IFS=$lt_save_ifs
10607 # Let DOS variable expansion print the short 8.3 style file name.
10608 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10609 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10610 done
10611 IFS=$lt_save_ifs
10612 # Convert to MSYS style.
10613 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10614 ;;
10615 cygwin*)
10616 # Convert to unix form, then to dos form, then back to unix form
10617 # but this time dos style (no spaces!) so that the unix form looks
10618 # like /cygdrive/c/PROGRA~1:/cygdr...
10619 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10620 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10621 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10622 ;;
10623 *)
10624 sys_lib_search_path_spec="$LIB"
10625 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10626 # It is most probably a Windows format PATH.
10627 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10628 else
10629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10630 fi
10631 # FIXME: find the short name or the path components, as spaces are
10632 # common. (e.g. "Program Files" -> "PROGRA~1")
10633 ;;
10634 esac
10635
10636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10637 postinstall_cmds='base_file=`basename \${file}`~
10638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10639 dldir=$destdir/`dirname \$dlpath`~
10640 test -d \$dldir || mkdir -p \$dldir~
10641 $install_prog $dir/$dlname \$dldir/$dlname'
10642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10643 dlpath=$dir/\$dldll~
10644 $RM \$dlpath'
10645 shlibpath_overrides_runpath=yes
10646 dynamic_linker='Win32 link.exe'
10647 ;;
10648
10649 *)
10650 # Assume MSVC wrapper
10651 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10652 dynamic_linker='Win32 ld.exe'
10653 ;;
10654 esac
10655 # FIXME: first we should search . and the directory the executable is in
10656 shlibpath_var=PATH
10657 ;;
10658
10659 darwin* | rhapsody*)
10660 dynamic_linker="$host_os dyld"
10661 version_type=darwin
10662 need_lib_prefix=no
10663 need_version=no
10664 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10665 soname_spec='${libname}${release}${major}$shared_ext'
10666 shlibpath_overrides_runpath=yes
10667 shlibpath_var=DYLD_LIBRARY_PATH
10668 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10669
10670 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10671 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10672 ;;
10673
10674 dgux*)
10675 version_type=linux # correct to gnu/linux during the next big refactor
10676 need_lib_prefix=no
10677 need_version=no
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 ;;
10682
10683 freebsd* | dragonfly*)
10684 # DragonFly does not have aout. When/if they implement a new
10685 # versioning mechanism, adjust this.
10686 if test -x /usr/bin/objformat; then
10687 objformat=`/usr/bin/objformat`
10688 else
10689 case $host_os in
10690 freebsd[23].*) objformat=aout ;;
10691 *) objformat=elf ;;
10692 esac
10693 fi
10694 version_type=freebsd-$objformat
10695 case $version_type in
10696 freebsd-elf*)
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10698 need_version=no
10699 need_lib_prefix=no
10700 ;;
10701 freebsd-*)
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10703 need_version=yes
10704 ;;
10705 esac
10706 shlibpath_var=LD_LIBRARY_PATH
10707 case $host_os in
10708 freebsd2.*)
10709 shlibpath_overrides_runpath=yes
10710 ;;
10711 freebsd3.[01]* | freebsdelf3.[01]*)
10712 shlibpath_overrides_runpath=yes
10713 hardcode_into_libs=yes
10714 ;;
10715 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10716 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10717 shlibpath_overrides_runpath=no
10718 hardcode_into_libs=yes
10719 ;;
10720 *) # from 4.6 on, and DragonFly
10721 shlibpath_overrides_runpath=yes
10722 hardcode_into_libs=yes
10723 ;;
10724 esac
10725 ;;
10726
10727 haiku*)
10728 version_type=linux # correct to gnu/linux during the next big refactor
10729 need_lib_prefix=no
10730 need_version=no
10731 dynamic_linker="$host_os runtime_loader"
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 shlibpath_var=LIBRARY_PATH
10735 shlibpath_overrides_runpath=yes
10736 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10737 hardcode_into_libs=yes
10738 ;;
10739
10740 hpux9* | hpux10* | hpux11*)
10741 # Give a soname corresponding to the major version so that dld.sl refuses to
10742 # link against other versions.
10743 version_type=sunos
10744 need_lib_prefix=no
10745 need_version=no
10746 case $host_cpu in
10747 ia64*)
10748 shrext_cmds='.so'
10749 hardcode_into_libs=yes
10750 dynamic_linker="$host_os dld.so"
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 if test "X$HPUX_IA64_MODE" = X32; then
10756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10757 else
10758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10759 fi
10760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10761 ;;
10762 hppa*64*)
10763 shrext_cmds='.sl'
10764 hardcode_into_libs=yes
10765 dynamic_linker="$host_os dld.sl"
10766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10772 ;;
10773 *)
10774 shrext_cmds='.sl'
10775 dynamic_linker="$host_os dld.sl"
10776 shlibpath_var=SHLIB_PATH
10777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 ;;
10781 esac
10782 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10783 postinstall_cmds='chmod 555 $lib'
10784 # or fails outright, so override atomically:
10785 install_override_mode=555
10786 ;;
10787
10788 interix[3-9]*)
10789 version_type=linux # correct to gnu/linux during the next big refactor
10790 need_lib_prefix=no
10791 need_version=no
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10793 soname_spec='${libname}${release}${shared_ext}$major'
10794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 shlibpath_overrides_runpath=no
10797 hardcode_into_libs=yes
10798 ;;
10799
10800 irix5* | irix6* | nonstopux*)
10801 case $host_os in
10802 nonstopux*) version_type=nonstopux ;;
10803 *)
10804 if test "$lt_cv_prog_gnu_ld" = yes; then
10805 version_type=linux # correct to gnu/linux during the next big refactor
10806 else
10807 version_type=irix
10808 fi ;;
10809 esac
10810 need_lib_prefix=no
10811 need_version=no
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10814 case $host_os in
10815 irix5* | nonstopux*)
10816 libsuff= shlibsuff=
10817 ;;
10818 *)
10819 case $LD in # libtool.m4 will add one of these switches to LD
10820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10821 libsuff= shlibsuff= libmagic=32-bit;;
10822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10823 libsuff=32 shlibsuff=N32 libmagic=N32;;
10824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10826 *) libsuff= shlibsuff= libmagic=never-match;;
10827 esac
10828 ;;
10829 esac
10830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10831 shlibpath_overrides_runpath=no
10832 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10833 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10834 hardcode_into_libs=yes
10835 ;;
10836
10837 # No shared lib support for Linux oldld, aout, or coff.
10838 linux*oldld* | linux*aout* | linux*coff*)
10839 dynamic_linker=no
10840 ;;
10841
10842 # This must be glibc/ELF.
10843 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10844 version_type=linux # correct to gnu/linux during the next big refactor
10845 need_lib_prefix=no
10846 need_version=no
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10850 shlibpath_var=LD_LIBRARY_PATH
10851 shlibpath_overrides_runpath=no
10852
10853 # Some binutils ld are patched to set DT_RUNPATH
10854 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10855 $as_echo_n "(cached) " >&6
10856 else
10857 lt_cv_shlibpath_overrides_runpath=no
10858 save_LDFLAGS=$LDFLAGS
10859 save_libdir=$libdir
10860 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10861 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864
10865 int
10866 main ()
10867 {
10868
10869 ;
10870 return 0;
10871 }
10872 _ACEOF
10873 if ac_fn_c_try_link "$LINENO"; then :
10874 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10875 lt_cv_shlibpath_overrides_runpath=yes
10876 fi
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 LDFLAGS=$save_LDFLAGS
10881 libdir=$save_libdir
10882
10883 fi
10884
10885 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10886
10887 # This implies no fast_install, which is unacceptable.
10888 # Some rework will be needed to allow for fast_install
10889 # before this can be enabled.
10890 hardcode_into_libs=yes
10891
10892 # Append ld.so.conf contents to the search path
10893 if test -f /etc/ld.so.conf; then
10894 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' ' '`
10895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10896 fi
10897
10898 # We used to test for /lib/ld.so.1 and disable shared libraries on
10899 # powerpc, because MkLinux only supported shared libraries with the
10900 # GNU dynamic linker. Since this was broken with cross compilers,
10901 # most powerpc-linux boxes support dynamic linking these days and
10902 # people can always --disable-shared, the test was removed, and we
10903 # assume the GNU/Linux dynamic linker is in use.
10904 dynamic_linker='GNU/Linux ld.so'
10905 ;;
10906
10907 netbsdelf*-gnu)
10908 version_type=linux
10909 need_lib_prefix=no
10910 need_version=no
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 shlibpath_var=LD_LIBRARY_PATH
10914 shlibpath_overrides_runpath=no
10915 hardcode_into_libs=yes
10916 dynamic_linker='NetBSD ld.elf_so'
10917 ;;
10918
10919 netbsd*)
10920 version_type=sunos
10921 need_lib_prefix=no
10922 need_version=no
10923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10926 dynamic_linker='NetBSD (a.out) ld.so'
10927 else
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 dynamic_linker='NetBSD ld.elf_so'
10931 fi
10932 shlibpath_var=LD_LIBRARY_PATH
10933 shlibpath_overrides_runpath=yes
10934 hardcode_into_libs=yes
10935 ;;
10936
10937 newsos6)
10938 version_type=linux # correct to gnu/linux during the next big refactor
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=yes
10942 ;;
10943
10944 *nto* | *qnx*)
10945 version_type=qnx
10946 need_lib_prefix=no
10947 need_version=no
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 shlibpath_overrides_runpath=no
10952 hardcode_into_libs=yes
10953 dynamic_linker='ldqnx.so'
10954 ;;
10955
10956 openbsd*)
10957 version_type=sunos
10958 sys_lib_dlsearch_path_spec="/usr/lib"
10959 need_lib_prefix=no
10960 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10961 case $host_os in
10962 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10963 *) need_version=no ;;
10964 esac
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10967 shlibpath_var=LD_LIBRARY_PATH
10968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10969 case $host_os in
10970 openbsd2.[89] | openbsd2.[89].*)
10971 shlibpath_overrides_runpath=no
10972 ;;
10973 *)
10974 shlibpath_overrides_runpath=yes
10975 ;;
10976 esac
10977 else
10978 shlibpath_overrides_runpath=yes
10979 fi
10980 ;;
10981
10982 os2*)
10983 libname_spec='$name'
10984 shrext_cmds=".dll"
10985 need_lib_prefix=no
10986 library_names_spec='$libname${shared_ext} $libname.a'
10987 dynamic_linker='OS/2 ld.exe'
10988 shlibpath_var=LIBPATH
10989 ;;
10990
10991 osf3* | osf4* | osf5*)
10992 version_type=osf
10993 need_lib_prefix=no
10994 need_version=no
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11000 ;;
11001
11002 rdos*)
11003 dynamic_linker=no
11004 ;;
11005
11006 solaris*)
11007 version_type=linux # correct to gnu/linux during the next big refactor
11008 need_lib_prefix=no
11009 need_version=no
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 shlibpath_var=LD_LIBRARY_PATH
11013 shlibpath_overrides_runpath=yes
11014 hardcode_into_libs=yes
11015 # ldd complains unless libraries are executable
11016 postinstall_cmds='chmod +x $lib'
11017 ;;
11018
11019 sunos4*)
11020 version_type=sunos
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 shlibpath_overrides_runpath=yes
11025 if test "$with_gnu_ld" = yes; then
11026 need_lib_prefix=no
11027 fi
11028 need_version=yes
11029 ;;
11030
11031 sysv4 | sysv4.3*)
11032 version_type=linux # correct to gnu/linux during the next big refactor
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 case $host_vendor in
11037 sni)
11038 shlibpath_overrides_runpath=no
11039 need_lib_prefix=no
11040 runpath_var=LD_RUN_PATH
11041 ;;
11042 siemens)
11043 need_lib_prefix=no
11044 ;;
11045 motorola)
11046 need_lib_prefix=no
11047 need_version=no
11048 shlibpath_overrides_runpath=no
11049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11050 ;;
11051 esac
11052 ;;
11053
11054 sysv4*MP*)
11055 if test -d /usr/nec ;then
11056 version_type=linux # correct to gnu/linux during the next big refactor
11057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11058 soname_spec='$libname${shared_ext}.$major'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 fi
11061 ;;
11062
11063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11064 version_type=freebsd-elf
11065 need_lib_prefix=no
11066 need_version=no
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11068 soname_spec='${libname}${release}${shared_ext}$major'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=yes
11071 hardcode_into_libs=yes
11072 if test "$with_gnu_ld" = yes; then
11073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11074 else
11075 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11076 case $host_os in
11077 sco3.2v5*)
11078 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11079 ;;
11080 esac
11081 fi
11082 sys_lib_dlsearch_path_spec='/usr/lib'
11083 ;;
11084
11085 tpf*)
11086 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11087 version_type=linux # correct to gnu/linux during the next big refactor
11088 need_lib_prefix=no
11089 need_version=no
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 shlibpath_var=LD_LIBRARY_PATH
11092 shlibpath_overrides_runpath=no
11093 hardcode_into_libs=yes
11094 ;;
11095
11096 uts4*)
11097 version_type=linux # correct to gnu/linux during the next big refactor
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 ;;
11102
11103 *)
11104 dynamic_linker=no
11105 ;;
11106 esac
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11108 $as_echo "$dynamic_linker" >&6; }
11109 test "$dynamic_linker" = no && can_build_shared=no
11110
11111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11112 if test "$GCC" = yes; then
11113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11114 fi
11115
11116 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11117 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11118 fi
11119 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11120 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11121 fi
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
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11215 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11216 hardcode_action=
11217 if test -n "$hardcode_libdir_flag_spec" ||
11218 test -n "$runpath_var" ||
11219 test "X$hardcode_automatic" = "Xyes" ; then
11220
11221 # We can hardcode non-existent directories.
11222 if test "$hardcode_direct" != no &&
11223 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11224 # have to relink, otherwise we might link with an installed library
11225 # when we should be linking with a yet-to-be-installed one
11226 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11227 test "$hardcode_minus_L" != no; then
11228 # Linking always hardcodes the temporary library directory.
11229 hardcode_action=relink
11230 else
11231 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11232 hardcode_action=immediate
11233 fi
11234 else
11235 # We cannot hardcode anything, or else we can only hardcode existing
11236 # directories.
11237 hardcode_action=unsupported
11238 fi
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11240 $as_echo "$hardcode_action" >&6; }
11241
11242 if test "$hardcode_action" = relink ||
11243 test "$inherit_rpath" = yes; then
11244 # Fast installation is not supported
11245 enable_fast_install=no
11246 elif test "$shlibpath_overrides_runpath" = yes ||
11247 test "$enable_shared" = no; then
11248 # Fast installation is not necessary
11249 enable_fast_install=needless
11250 fi
11251
11252
11253
11254
11255
11256
11257 if test "x$enable_dlopen" != xyes; then
11258 enable_dlopen=unknown
11259 enable_dlopen_self=unknown
11260 enable_dlopen_self_static=unknown
11261 else
11262 lt_cv_dlopen=no
11263 lt_cv_dlopen_libs=
11264
11265 case $host_os in
11266 beos*)
11267 lt_cv_dlopen="load_add_on"
11268 lt_cv_dlopen_libs=
11269 lt_cv_dlopen_self=yes
11270 ;;
11271
11272 mingw* | pw32* | cegcc*)
11273 lt_cv_dlopen="LoadLibrary"
11274 lt_cv_dlopen_libs=
11275 ;;
11276
11277 cygwin*)
11278 lt_cv_dlopen="dlopen"
11279 lt_cv_dlopen_libs=
11280 ;;
11281
11282 darwin*)
11283 # if libdl is installed we need to link against it
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11285 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11286 if ${ac_cv_lib_dl_dlopen+:} false; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289 ac_check_lib_save_LIBS=$LIBS
11290 LIBS="-ldl $LIBS"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11293
11294 /* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char dlopen ();
11301 int
11302 main ()
11303 {
11304 return dlopen ();
11305 ;
11306 return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310 ac_cv_lib_dl_dlopen=yes
11311 else
11312 ac_cv_lib_dl_dlopen=no
11313 fi
11314 rm -f core conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11319 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11320 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11322 else
11323
11324 lt_cv_dlopen="dyld"
11325 lt_cv_dlopen_libs=
11326 lt_cv_dlopen_self=yes
11327
11328 fi
11329
11330 ;;
11331
11332 *)
11333 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11334 if test "x$ac_cv_func_shl_load" = xyes; then :
11335 lt_cv_dlopen="shl_load"
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11338 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11339 if ${ac_cv_lib_dld_shl_load+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 ac_check_lib_save_LIBS=$LIBS
11343 LIBS="-ldld $LIBS"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346
11347 /* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 char shl_load ();
11354 int
11355 main ()
11356 {
11357 return shl_load ();
11358 ;
11359 return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 ac_cv_lib_dld_shl_load=yes
11364 else
11365 ac_cv_lib_dld_shl_load=no
11366 fi
11367 rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369 LIBS=$ac_check_lib_save_LIBS
11370 fi
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11372 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11373 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11374 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11375 else
11376 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11377 if test "x$ac_cv_func_dlopen" = xyes; then :
11378 lt_cv_dlopen="dlopen"
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11381 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11382 if ${ac_cv_lib_dl_dlopen+:} false; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11385 ac_check_lib_save_LIBS=$LIBS
11386 LIBS="-ldl $LIBS"
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11389
11390 /* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
11396 char dlopen ();
11397 int
11398 main ()
11399 {
11400 return dlopen ();
11401 ;
11402 return 0;
11403 }
11404 _ACEOF
11405 if ac_fn_c_try_link "$LINENO"; then :
11406 ac_cv_lib_dl_dlopen=yes
11407 else
11408 ac_cv_lib_dl_dlopen=no
11409 fi
11410 rm -f core conftest.err conftest.$ac_objext \
11411 conftest$ac_exeext conftest.$ac_ext
11412 LIBS=$ac_check_lib_save_LIBS
11413 fi
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11415 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11416 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11417 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11420 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11421 if ${ac_cv_lib_svld_dlopen+:} false; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 ac_check_lib_save_LIBS=$LIBS
11425 LIBS="-lsvld $LIBS"
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11428
11429 /* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 char dlopen ();
11436 int
11437 main ()
11438 {
11439 return dlopen ();
11440 ;
11441 return 0;
11442 }
11443 _ACEOF
11444 if ac_fn_c_try_link "$LINENO"; then :
11445 ac_cv_lib_svld_dlopen=yes
11446 else
11447 ac_cv_lib_svld_dlopen=no
11448 fi
11449 rm -f core conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451 LIBS=$ac_check_lib_save_LIBS
11452 fi
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11454 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11455 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11459 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11460 if ${ac_cv_lib_dld_dld_link+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-ldld $LIBS"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char dld_link ();
11475 int
11476 main ()
11477 {
11478 return dld_link ();
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 ac_cv_lib_dld_dld_link=yes
11485 else
11486 ac_cv_lib_dld_dld_link=no
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 LIBS=$ac_check_lib_save_LIBS
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11493 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11494 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11495 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11496 fi
11497
11498
11499 fi
11500
11501
11502 fi
11503
11504
11505 fi
11506
11507
11508 fi
11509
11510
11511 fi
11512
11513 ;;
11514 esac
11515
11516 if test "x$lt_cv_dlopen" != xno; then
11517 enable_dlopen=yes
11518 else
11519 enable_dlopen=no
11520 fi
11521
11522 case $lt_cv_dlopen in
11523 dlopen)
11524 save_CPPFLAGS="$CPPFLAGS"
11525 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11526
11527 save_LDFLAGS="$LDFLAGS"
11528 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11529
11530 save_LIBS="$LIBS"
11531 LIBS="$lt_cv_dlopen_libs $LIBS"
11532
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11534 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11535 if ${lt_cv_dlopen_self+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 if test "$cross_compiling" = yes; then :
11539 lt_cv_dlopen_self=cross
11540 else
11541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11542 lt_status=$lt_dlunknown
11543 cat > conftest.$ac_ext <<_LT_EOF
11544 #line $LINENO "configure"
11545 #include "confdefs.h"
11546
11547 #if HAVE_DLFCN_H
11548 #include <dlfcn.h>
11549 #endif
11550
11551 #include <stdio.h>
11552
11553 #ifdef RTLD_GLOBAL
11554 # define LT_DLGLOBAL RTLD_GLOBAL
11555 #else
11556 # ifdef DL_GLOBAL
11557 # define LT_DLGLOBAL DL_GLOBAL
11558 # else
11559 # define LT_DLGLOBAL 0
11560 # endif
11561 #endif
11562
11563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11564 find out it does not work in some platform. */
11565 #ifndef LT_DLLAZY_OR_NOW
11566 # ifdef RTLD_LAZY
11567 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11568 # else
11569 # ifdef DL_LAZY
11570 # define LT_DLLAZY_OR_NOW DL_LAZY
11571 # else
11572 # ifdef RTLD_NOW
11573 # define LT_DLLAZY_OR_NOW RTLD_NOW
11574 # else
11575 # ifdef DL_NOW
11576 # define LT_DLLAZY_OR_NOW DL_NOW
11577 # else
11578 # define LT_DLLAZY_OR_NOW 0
11579 # endif
11580 # endif
11581 # endif
11582 # endif
11583 #endif
11584
11585 /* When -fvisbility=hidden is used, assume the code has been annotated
11586 correspondingly for the symbols needed. */
11587 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11588 int fnord () __attribute__((visibility("default")));
11589 #endif
11590
11591 int fnord () { return 42; }
11592 int main ()
11593 {
11594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11595 int status = $lt_dlunknown;
11596
11597 if (self)
11598 {
11599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11600 else
11601 {
11602 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11603 else puts (dlerror ());
11604 }
11605 /* dlclose (self); */
11606 }
11607 else
11608 puts (dlerror ());
11609
11610 return status;
11611 }
11612 _LT_EOF
11613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11614 (eval $ac_link) 2>&5
11615 ac_status=$?
11616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11617 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11618 (./conftest; exit; ) >&5 2>/dev/null
11619 lt_status=$?
11620 case x$lt_status in
11621 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11622 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11623 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11624 esac
11625 else :
11626 # compilation failed
11627 lt_cv_dlopen_self=no
11628 fi
11629 fi
11630 rm -fr conftest*
11631
11632
11633 fi
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11635 $as_echo "$lt_cv_dlopen_self" >&6; }
11636
11637 if test "x$lt_cv_dlopen_self" = xyes; then
11638 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11640 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11641 if ${lt_cv_dlopen_self_static+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 if test "$cross_compiling" = yes; then :
11645 lt_cv_dlopen_self_static=cross
11646 else
11647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11648 lt_status=$lt_dlunknown
11649 cat > conftest.$ac_ext <<_LT_EOF
11650 #line $LINENO "configure"
11651 #include "confdefs.h"
11652
11653 #if HAVE_DLFCN_H
11654 #include <dlfcn.h>
11655 #endif
11656
11657 #include <stdio.h>
11658
11659 #ifdef RTLD_GLOBAL
11660 # define LT_DLGLOBAL RTLD_GLOBAL
11661 #else
11662 # ifdef DL_GLOBAL
11663 # define LT_DLGLOBAL DL_GLOBAL
11664 # else
11665 # define LT_DLGLOBAL 0
11666 # endif
11667 #endif
11668
11669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11670 find out it does not work in some platform. */
11671 #ifndef LT_DLLAZY_OR_NOW
11672 # ifdef RTLD_LAZY
11673 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11674 # else
11675 # ifdef DL_LAZY
11676 # define LT_DLLAZY_OR_NOW DL_LAZY
11677 # else
11678 # ifdef RTLD_NOW
11679 # define LT_DLLAZY_OR_NOW RTLD_NOW
11680 # else
11681 # ifdef DL_NOW
11682 # define LT_DLLAZY_OR_NOW DL_NOW
11683 # else
11684 # define LT_DLLAZY_OR_NOW 0
11685 # endif
11686 # endif
11687 # endif
11688 # endif
11689 #endif
11690
11691 /* When -fvisbility=hidden is used, assume the code has been annotated
11692 correspondingly for the symbols needed. */
11693 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11694 int fnord () __attribute__((visibility("default")));
11695 #endif
11696
11697 int fnord () { return 42; }
11698 int main ()
11699 {
11700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11701 int status = $lt_dlunknown;
11702
11703 if (self)
11704 {
11705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11706 else
11707 {
11708 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11709 else puts (dlerror ());
11710 }
11711 /* dlclose (self); */
11712 }
11713 else
11714 puts (dlerror ());
11715
11716 return status;
11717 }
11718 _LT_EOF
11719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11720 (eval $ac_link) 2>&5
11721 ac_status=$?
11722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11723 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11724 (./conftest; exit; ) >&5 2>/dev/null
11725 lt_status=$?
11726 case x$lt_status in
11727 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11728 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11729 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11730 esac
11731 else :
11732 # compilation failed
11733 lt_cv_dlopen_self_static=no
11734 fi
11735 fi
11736 rm -fr conftest*
11737
11738
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11741 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11742 fi
11743
11744 CPPFLAGS="$save_CPPFLAGS"
11745 LDFLAGS="$save_LDFLAGS"
11746 LIBS="$save_LIBS"
11747 ;;
11748 esac
11749
11750 case $lt_cv_dlopen_self in
11751 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11752 *) enable_dlopen_self=unknown ;;
11753 esac
11754
11755 case $lt_cv_dlopen_self_static in
11756 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11757 *) enable_dlopen_self_static=unknown ;;
11758 esac
11759 fi
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777 striplib=
11778 old_striplib=
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11780 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11781 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11783 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11785 $as_echo "yes" >&6; }
11786 else
11787 # FIXME - insert some real tests, host_os isn't really good enough
11788 case $host_os in
11789 darwin*)
11790 if test -n "$STRIP" ; then
11791 striplib="$STRIP -x"
11792 old_striplib="$STRIP -S"
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11794 $as_echo "yes" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11798 fi
11799 ;;
11800 *)
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11803 ;;
11804 esac
11805 fi
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818 # Report which library types will actually be built
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11820 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11822 $as_echo "$can_build_shared" >&6; }
11823
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11825 $as_echo_n "checking whether to build shared libraries... " >&6; }
11826 test "$can_build_shared" = "no" && enable_shared=no
11827
11828 # On AIX, shared libraries and static libraries use the same namespace, and
11829 # are all built from PIC.
11830 case $host_os in
11831 aix3*)
11832 test "$enable_shared" = yes && enable_static=no
11833 if test -n "$RANLIB"; then
11834 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11835 postinstall_cmds='$RANLIB $lib'
11836 fi
11837 ;;
11838
11839 aix[4-9]*)
11840 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11841 test "$enable_shared" = yes && enable_static=no
11842 fi
11843 ;;
11844 esac
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11846 $as_echo "$enable_shared" >&6; }
11847
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11849 $as_echo_n "checking whether to build static libraries... " >&6; }
11850 # Make sure either enable_shared or enable_static is yes.
11851 test "$enable_shared" = yes || enable_static=yes
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11853 $as_echo "$enable_static" >&6; }
11854
11855
11856
11857
11858 fi
11859 ac_ext=c
11860 ac_cpp='$CPP $CPPFLAGS'
11861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11864
11865 CC="$lt_save_CC"
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881 ac_config_commands="$ac_config_commands libtool"
11882
11883
11884
11885
11886 # Only expand once:
11887
11888
11889
11890
11891
11892 # Check for C++ compiler and use it to compile the tests.
11893 #
11894 ac_ext=cpp
11895 ac_cpp='$CXXCPP $CPPFLAGS'
11896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11899 if test -z "$CXX"; then
11900 if test -n "$CCC"; then
11901 CXX=$CCC
11902 else
11903 if test -n "$ac_tool_prefix"; then
11904 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11905 do
11906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909 $as_echo_n "checking for $ac_word... " >&6; }
11910 if ${ac_cv_prog_CXX+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 if test -n "$CXX"; then
11914 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11915 else
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11918 do
11919 IFS=$as_save_IFS
11920 test -z "$as_dir" && as_dir=.
11921 for ac_exec_ext in '' $ac_executable_extensions; do
11922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11923 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925 break 2
11926 fi
11927 done
11928 done
11929 IFS=$as_save_IFS
11930
11931 fi
11932 fi
11933 CXX=$ac_cv_prog_CXX
11934 if test -n "$CXX"; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11936 $as_echo "$CXX" >&6; }
11937 else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939 $as_echo "no" >&6; }
11940 fi
11941
11942
11943 test -n "$CXX" && break
11944 done
11945 fi
11946 if test -z "$CXX"; then
11947 ac_ct_CXX=$CXX
11948 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11949 do
11950 # Extract the first word of "$ac_prog", so it can be a program name with args.
11951 set dummy $ac_prog; ac_word=$2
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953 $as_echo_n "checking for $ac_word... " >&6; }
11954 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 if test -n "$ac_ct_CXX"; then
11958 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11959 else
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11962 do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_prog_ac_ct_CXX="$ac_prog"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11969 break 2
11970 fi
11971 done
11972 done
11973 IFS=$as_save_IFS
11974
11975 fi
11976 fi
11977 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11978 if test -n "$ac_ct_CXX"; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11980 $as_echo "$ac_ct_CXX" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 fi
11985
11986
11987 test -n "$ac_ct_CXX" && break
11988 done
11989
11990 if test "x$ac_ct_CXX" = x; then
11991 CXX="g++"
11992 else
11993 case $cross_compiling:$ac_tool_warned in
11994 yes:)
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11997 ac_tool_warned=yes ;;
11998 esac
11999 CXX=$ac_ct_CXX
12000 fi
12001 fi
12002
12003 fi
12004 fi
12005 # Provide some information about the compiler.
12006 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12007 set X $ac_compile
12008 ac_compiler=$2
12009 for ac_option in --version -v -V -qversion; do
12010 { { ac_try="$ac_compiler $ac_option >&5"
12011 case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014 esac
12015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12016 $as_echo "$ac_try_echo"; } >&5
12017 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12018 ac_status=$?
12019 if test -s conftest.err; then
12020 sed '10a\
12021 ... rest of stderr output deleted ...
12022 10q' conftest.err >conftest.er1
12023 cat conftest.er1 >&5
12024 fi
12025 rm -f conftest.er1 conftest.err
12026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12027 test $ac_status = 0; }
12028 done
12029
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12031 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12032 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037
12038 int
12039 main ()
12040 {
12041 #ifndef __GNUC__
12042 choke me
12043 #endif
12044
12045 ;
12046 return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_cxx_try_compile "$LINENO"; then :
12050 ac_compiler_gnu=yes
12051 else
12052 ac_compiler_gnu=no
12053 fi
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12056
12057 fi
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12059 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12060 if test $ac_compiler_gnu = yes; then
12061 GXX=yes
12062 else
12063 GXX=
12064 fi
12065 ac_test_CXXFLAGS=${CXXFLAGS+set}
12066 ac_save_CXXFLAGS=$CXXFLAGS
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12068 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12069 if ${ac_cv_prog_cxx_g+:} false; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12073 ac_cxx_werror_flag=yes
12074 ac_cv_prog_cxx_g=no
12075 CXXFLAGS="-g"
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12078
12079 int
12080 main ()
12081 {
12082
12083 ;
12084 return 0;
12085 }
12086 _ACEOF
12087 if ac_fn_cxx_try_compile "$LINENO"; then :
12088 ac_cv_prog_cxx_g=yes
12089 else
12090 CXXFLAGS=""
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093
12094 int
12095 main ()
12096 {
12097
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_cxx_try_compile "$LINENO"; then :
12103
12104 else
12105 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12106 CXXFLAGS="-g"
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109
12110 int
12111 main ()
12112 {
12113
12114 ;
12115 return 0;
12116 }
12117 _ACEOF
12118 if ac_fn_cxx_try_compile "$LINENO"; then :
12119 ac_cv_prog_cxx_g=yes
12120 fi
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 fi
12123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12124 fi
12125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12129 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12130 if test "$ac_test_CXXFLAGS" = set; then
12131 CXXFLAGS=$ac_save_CXXFLAGS
12132 elif test $ac_cv_prog_cxx_g = yes; then
12133 if test "$GXX" = yes; then
12134 CXXFLAGS="-g -O2"
12135 else
12136 CXXFLAGS="-g"
12137 fi
12138 else
12139 if test "$GXX" = yes; then
12140 CXXFLAGS="-O2"
12141 else
12142 CXXFLAGS=
12143 fi
12144 fi
12145 ac_ext=c
12146 ac_cpp='$CPP $CPPFLAGS'
12147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12150
12151 depcc="$CXX" am_compiler_list=
12152
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12154 $as_echo_n "checking dependency style of $depcc... " >&6; }
12155 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12159 # We make a subdir and do the tests there. Otherwise we can end up
12160 # making bogus files that we don't know about and never remove. For
12161 # instance it was reported that on HP-UX the gcc test will end up
12162 # making a dummy file named 'D' -- because '-MD' means "put the output
12163 # in D".
12164 rm -rf conftest.dir
12165 mkdir conftest.dir
12166 # Copy depcomp to subdir because otherwise we won't find it if we're
12167 # using a relative directory.
12168 cp "$am_depcomp" conftest.dir
12169 cd conftest.dir
12170 # We will build objects and dependencies in a subdirectory because
12171 # it helps to detect inapplicable dependency modes. For instance
12172 # both Tru64's cc and ICC support -MD to output dependencies as a
12173 # side effect of compilation, but ICC will put the dependencies in
12174 # the current directory while Tru64 will put them in the object
12175 # directory.
12176 mkdir sub
12177
12178 am_cv_CXX_dependencies_compiler_type=none
12179 if test "$am_compiler_list" = ""; then
12180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12181 fi
12182 am__universal=false
12183 case " $depcc " in #(
12184 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12185 esac
12186
12187 for depmode in $am_compiler_list; do
12188 # Setup a source with many dependencies, because some compilers
12189 # like to wrap large dependency lists on column 80 (with \), and
12190 # we should not choose a depcomp mode which is confused by this.
12191 #
12192 # We need to recreate these files for each test, as the compiler may
12193 # overwrite some of them when testing with obscure command lines.
12194 # This happens at least with the AIX C compiler.
12195 : > sub/conftest.c
12196 for i in 1 2 3 4 5 6; do
12197 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12198 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12199 # Solaris 10 /bin/sh.
12200 echo '/* dummy */' > sub/conftst$i.h
12201 done
12202 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12203
12204 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12205 # mode. It turns out that the SunPro C++ compiler does not properly
12206 # handle '-M -o', and we need to detect this. Also, some Intel
12207 # versions had trouble with output in subdirs.
12208 am__obj=sub/conftest.${OBJEXT-o}
12209 am__minus_obj="-o $am__obj"
12210 case $depmode in
12211 gcc)
12212 # This depmode causes a compiler race in universal mode.
12213 test "$am__universal" = false || continue
12214 ;;
12215 nosideeffect)
12216 # After this tag, mechanisms are not by side-effect, so they'll
12217 # only be used when explicitly requested.
12218 if test "x$enable_dependency_tracking" = xyes; then
12219 continue
12220 else
12221 break
12222 fi
12223 ;;
12224 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12225 # This compiler won't grok '-c -o', but also, the minuso test has
12226 # not run yet. These depmodes are late enough in the game, and
12227 # so weak that their functioning should not be impacted.
12228 am__obj=conftest.${OBJEXT-o}
12229 am__minus_obj=
12230 ;;
12231 none) break ;;
12232 esac
12233 if depmode=$depmode \
12234 source=sub/conftest.c object=$am__obj \
12235 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12236 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12237 >/dev/null 2>conftest.err &&
12238 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12239 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12240 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12241 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12242 # icc doesn't choke on unknown options, it will just issue warnings
12243 # or remarks (even with -Werror). So we grep stderr for any message
12244 # that says an option was ignored or not supported.
12245 # When given -MP, icc 7.0 and 7.1 complain thusly:
12246 # icc: Command line warning: ignoring option '-M'; no argument required
12247 # The diagnosis changed in icc 8.0:
12248 # icc: Command line remark: option '-MP' not supported
12249 if (grep 'ignoring option' conftest.err ||
12250 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12251 am_cv_CXX_dependencies_compiler_type=$depmode
12252 break
12253 fi
12254 fi
12255 done
12256
12257 cd ..
12258 rm -rf conftest.dir
12259 else
12260 am_cv_CXX_dependencies_compiler_type=none
12261 fi
12262
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12265 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12266 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12267
12268 if
12269 test "x$enable_dependency_tracking" != xno \
12270 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12271 am__fastdepCXX_TRUE=
12272 am__fastdepCXX_FALSE='#'
12273 else
12274 am__fastdepCXX_TRUE='#'
12275 am__fastdepCXX_FALSE=
12276 fi
12277
12278
12279
12280
12281 func_stripname_cnf ()
12282 {
12283 case ${2} in
12284 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12285 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12286 esac
12287 } # func_stripname_cnf
12288
12289 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12290 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12291 (test "X$CXX" != "Xg++"))) ; then
12292 ac_ext=cpp
12293 ac_cpp='$CXXCPP $CPPFLAGS'
12294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12298 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12299 if test -z "$CXXCPP"; then
12300 if ${ac_cv_prog_CXXCPP+:} false; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 # Double quotes because CXXCPP needs to be expanded
12304 for CXXCPP in "$CXX -E" "/lib/cpp"
12305 do
12306 ac_preproc_ok=false
12307 for ac_cxx_preproc_warn_flag in '' yes
12308 do
12309 # Use a header file that comes with gcc, so configuring glibc
12310 # with a fresh cross-compiler works.
12311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12312 # <limits.h> exists even on freestanding compilers.
12313 # On the NeXT, cc -E runs the code through the compiler's parser,
12314 # not just through cpp. "Syntax error" is here to catch this case.
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #ifdef __STDC__
12318 # include <limits.h>
12319 #else
12320 # include <assert.h>
12321 #endif
12322 Syntax error
12323 _ACEOF
12324 if ac_fn_cxx_try_cpp "$LINENO"; then :
12325
12326 else
12327 # Broken: fails on valid input.
12328 continue
12329 fi
12330 rm -f conftest.err conftest.i conftest.$ac_ext
12331
12332 # OK, works on sane cases. Now check whether nonexistent headers
12333 # can be detected and how.
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336 #include <ac_nonexistent.h>
12337 _ACEOF
12338 if ac_fn_cxx_try_cpp "$LINENO"; then :
12339 # Broken: success on invalid input.
12340 continue
12341 else
12342 # Passes both tests.
12343 ac_preproc_ok=:
12344 break
12345 fi
12346 rm -f conftest.err conftest.i conftest.$ac_ext
12347
12348 done
12349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12350 rm -f conftest.i conftest.err conftest.$ac_ext
12351 if $ac_preproc_ok; then :
12352 break
12353 fi
12354
12355 done
12356 ac_cv_prog_CXXCPP=$CXXCPP
12357
12358 fi
12359 CXXCPP=$ac_cv_prog_CXXCPP
12360 else
12361 ac_cv_prog_CXXCPP=$CXXCPP
12362 fi
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12364 $as_echo "$CXXCPP" >&6; }
12365 ac_preproc_ok=false
12366 for ac_cxx_preproc_warn_flag in '' yes
12367 do
12368 # Use a header file that comes with gcc, so configuring glibc
12369 # with a fresh cross-compiler works.
12370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12371 # <limits.h> exists even on freestanding compilers.
12372 # On the NeXT, cc -E runs the code through the compiler's parser,
12373 # not just through cpp. "Syntax error" is here to catch this case.
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376 #ifdef __STDC__
12377 # include <limits.h>
12378 #else
12379 # include <assert.h>
12380 #endif
12381 Syntax error
12382 _ACEOF
12383 if ac_fn_cxx_try_cpp "$LINENO"; then :
12384
12385 else
12386 # Broken: fails on valid input.
12387 continue
12388 fi
12389 rm -f conftest.err conftest.i conftest.$ac_ext
12390
12391 # OK, works on sane cases. Now check whether nonexistent headers
12392 # can be detected and how.
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12395 #include <ac_nonexistent.h>
12396 _ACEOF
12397 if ac_fn_cxx_try_cpp "$LINENO"; then :
12398 # Broken: success on invalid input.
12399 continue
12400 else
12401 # Passes both tests.
12402 ac_preproc_ok=:
12403 break
12404 fi
12405 rm -f conftest.err conftest.i conftest.$ac_ext
12406
12407 done
12408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12409 rm -f conftest.i conftest.err conftest.$ac_ext
12410 if $ac_preproc_ok; then :
12411
12412 else
12413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12415 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12416 See \`config.log' for more details" "$LINENO" 5; }
12417 fi
12418
12419 ac_ext=c
12420 ac_cpp='$CPP $CPPFLAGS'
12421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12424
12425 else
12426 _lt_caught_CXX_error=yes
12427 fi
12428
12429 ac_ext=cpp
12430 ac_cpp='$CXXCPP $CPPFLAGS'
12431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12434
12435 archive_cmds_need_lc_CXX=no
12436 allow_undefined_flag_CXX=
12437 always_export_symbols_CXX=no
12438 archive_expsym_cmds_CXX=
12439 compiler_needs_object_CXX=no
12440 export_dynamic_flag_spec_CXX=
12441 hardcode_direct_CXX=no
12442 hardcode_direct_absolute_CXX=no
12443 hardcode_libdir_flag_spec_CXX=
12444 hardcode_libdir_separator_CXX=
12445 hardcode_minus_L_CXX=no
12446 hardcode_shlibpath_var_CXX=unsupported
12447 hardcode_automatic_CXX=no
12448 inherit_rpath_CXX=no
12449 module_cmds_CXX=
12450 module_expsym_cmds_CXX=
12451 link_all_deplibs_CXX=unknown
12452 old_archive_cmds_CXX=$old_archive_cmds
12453 reload_flag_CXX=$reload_flag
12454 reload_cmds_CXX=$reload_cmds
12455 no_undefined_flag_CXX=
12456 whole_archive_flag_spec_CXX=
12457 enable_shared_with_static_runtimes_CXX=no
12458
12459 # Source file extension for C++ test sources.
12460 ac_ext=cpp
12461
12462 # Object file extension for compiled C++ test sources.
12463 objext=o
12464 objext_CXX=$objext
12465
12466 # No sense in running all these tests if we already determined that
12467 # the CXX compiler isn't working. Some variables (like enable_shared)
12468 # are currently assumed to apply to all compilers on this platform,
12469 # and will be corrupted by setting them based on a non-working compiler.
12470 if test "$_lt_caught_CXX_error" != yes; then
12471 # Code to be used in simple compile tests
12472 lt_simple_compile_test_code="int some_variable = 0;"
12473
12474 # Code to be used in simple link tests
12475 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12476
12477 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12478
12479
12480
12481
12482
12483
12484 # If no C compiler was specified, use CC.
12485 LTCC=${LTCC-"$CC"}
12486
12487 # If no C compiler flags were specified, use CFLAGS.
12488 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12489
12490 # Allow CC to be a program name with arguments.
12491 compiler=$CC
12492
12493
12494 # save warnings/boilerplate of simple test code
12495 ac_outfile=conftest.$ac_objext
12496 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12497 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12498 _lt_compiler_boilerplate=`cat conftest.err`
12499 $RM conftest*
12500
12501 ac_outfile=conftest.$ac_objext
12502 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12503 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12504 _lt_linker_boilerplate=`cat conftest.err`
12505 $RM -r conftest*
12506
12507
12508 # Allow CC to be a program name with arguments.
12509 lt_save_CC=$CC
12510 lt_save_CFLAGS=$CFLAGS
12511 lt_save_LD=$LD
12512 lt_save_GCC=$GCC
12513 GCC=$GXX
12514 lt_save_with_gnu_ld=$with_gnu_ld
12515 lt_save_path_LD=$lt_cv_path_LD
12516 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12517 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12518 else
12519 $as_unset lt_cv_prog_gnu_ld
12520 fi
12521 if test -n "${lt_cv_path_LDCXX+set}"; then
12522 lt_cv_path_LD=$lt_cv_path_LDCXX
12523 else
12524 $as_unset lt_cv_path_LD
12525 fi
12526 test -z "${LDCXX+set}" || LD=$LDCXX
12527 CC=${CXX-"c++"}
12528 CFLAGS=$CXXFLAGS
12529 compiler=$CC
12530 compiler_CXX=$CC
12531 for cc_temp in $compiler""; do
12532 case $cc_temp in
12533 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12534 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12535 \-*) ;;
12536 *) break;;
12537 esac
12538 done
12539 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12540
12541
12542 if test -n "$compiler"; then
12543 # We don't want -fno-exception when compiling C++ code, so set the
12544 # no_builtin_flag separately
12545 if test "$GXX" = yes; then
12546 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12547 else
12548 lt_prog_compiler_no_builtin_flag_CXX=
12549 fi
12550
12551 if test "$GXX" = yes; then
12552 # Set up default GNU C++ configuration
12553
12554
12555
12556 # Check whether --with-gnu-ld was given.
12557 if test "${with_gnu_ld+set}" = set; then :
12558 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12559 else
12560 with_gnu_ld=no
12561 fi
12562
12563 ac_prog=ld
12564 if test "$GCC" = yes; then
12565 # Check if gcc -print-prog-name=ld gives a path.
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12567 $as_echo_n "checking for ld used by $CC... " >&6; }
12568 case $host in
12569 *-*-mingw*)
12570 # gcc leaves a trailing carriage return which upsets mingw
12571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12572 *)
12573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12574 esac
12575 case $ac_prog in
12576 # Accept absolute paths.
12577 [\\/]* | ?:[\\/]*)
12578 re_direlt='/[^/][^/]*/\.\./'
12579 # Canonicalize the pathname of ld
12580 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12581 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12582 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12583 done
12584 test -z "$LD" && LD="$ac_prog"
12585 ;;
12586 "")
12587 # If it fails, then pretend we aren't using GCC.
12588 ac_prog=ld
12589 ;;
12590 *)
12591 # If it is relative, then search for the first ld in PATH.
12592 with_gnu_ld=unknown
12593 ;;
12594 esac
12595 elif test "$with_gnu_ld" = yes; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12597 $as_echo_n "checking for GNU ld... " >&6; }
12598 else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12600 $as_echo_n "checking for non-GNU ld... " >&6; }
12601 fi
12602 if ${lt_cv_path_LD+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 if test -z "$LD"; then
12606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12607 for ac_dir in $PATH; do
12608 IFS="$lt_save_ifs"
12609 test -z "$ac_dir" && ac_dir=.
12610 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12611 lt_cv_path_LD="$ac_dir/$ac_prog"
12612 # Check to see if the program is GNU ld. I'd rather use --version,
12613 # but apparently some variants of GNU ld only accept -v.
12614 # Break only if it was the GNU/non-GNU ld that we prefer.
12615 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12616 *GNU* | *'with BFD'*)
12617 test "$with_gnu_ld" != no && break
12618 ;;
12619 *)
12620 test "$with_gnu_ld" != yes && break
12621 ;;
12622 esac
12623 fi
12624 done
12625 IFS="$lt_save_ifs"
12626 else
12627 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12628 fi
12629 fi
12630
12631 LD="$lt_cv_path_LD"
12632 if test -n "$LD"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12634 $as_echo "$LD" >&6; }
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12638 fi
12639 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12641 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12642 if ${lt_cv_prog_gnu_ld+:} false; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12646 case `$LD -v 2>&1 </dev/null` in
12647 *GNU* | *'with BFD'*)
12648 lt_cv_prog_gnu_ld=yes
12649 ;;
12650 *)
12651 lt_cv_prog_gnu_ld=no
12652 ;;
12653 esac
12654 fi
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12656 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12657 with_gnu_ld=$lt_cv_prog_gnu_ld
12658
12659
12660
12661
12662
12663
12664
12665 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12666 # archiving commands below assume that GNU ld is being used.
12667 if test "$with_gnu_ld" = yes; then
12668 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12670
12671 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12672 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12673
12674 # If archive_cmds runs LD, not CC, wlarc should be empty
12675 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12676 # investigate it a little bit more. (MM)
12677 wlarc='${wl}'
12678
12679 # ancient GNU ld didn't support --whole-archive et. al.
12680 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12681 $GREP 'no-whole-archive' > /dev/null; then
12682 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12683 else
12684 whole_archive_flag_spec_CXX=
12685 fi
12686 else
12687 with_gnu_ld=no
12688 wlarc=
12689
12690 # A generic and very simple default shared library creation
12691 # command for GNU C++ for the case where it uses the native
12692 # linker, instead of GNU ld. If possible, this setting should
12693 # overridden to take advantage of the native linker features on
12694 # the platform it is being used on.
12695 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12696 fi
12697
12698 # Commands to make compiler produce verbose output that lists
12699 # what "hidden" libraries, object files and flags are used when
12700 # linking a shared library.
12701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12702
12703 else
12704 GXX=no
12705 with_gnu_ld=no
12706 wlarc=
12707 fi
12708
12709 # PORTME: fill in a description of your system's C++ link characteristics
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12712 ld_shlibs_CXX=yes
12713 case $host_os in
12714 aix3*)
12715 # FIXME: insert proper C++ library support
12716 ld_shlibs_CXX=no
12717 ;;
12718 aix[4-9]*)
12719 if test "$host_cpu" = ia64; then
12720 # On IA64, the linker does run time linking by default, so we don't
12721 # have to do anything special.
12722 aix_use_runtimelinking=no
12723 exp_sym_flag='-Bexport'
12724 no_entry_flag=""
12725 else
12726 aix_use_runtimelinking=no
12727
12728 # Test if we are trying to use run time linking or normal
12729 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12730 # need to do runtime linking.
12731 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12732 for ld_flag in $LDFLAGS; do
12733 case $ld_flag in
12734 *-brtl*)
12735 aix_use_runtimelinking=yes
12736 break
12737 ;;
12738 esac
12739 done
12740 ;;
12741 esac
12742
12743 exp_sym_flag='-bexport'
12744 no_entry_flag='-bnoentry'
12745 fi
12746
12747 # When large executables or shared objects are built, AIX ld can
12748 # have problems creating the table of contents. If linking a library
12749 # or program results in "error TOC overflow" add -mminimal-toc to
12750 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12751 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12752
12753 archive_cmds_CXX=''
12754 hardcode_direct_CXX=yes
12755 hardcode_direct_absolute_CXX=yes
12756 hardcode_libdir_separator_CXX=':'
12757 link_all_deplibs_CXX=yes
12758 file_list_spec_CXX='${wl}-f,'
12759
12760 if test "$GXX" = yes; then
12761 case $host_os in aix4.[012]|aix4.[012].*)
12762 # We only want to do this on AIX 4.2 and lower, the check
12763 # below for broken collect2 doesn't work under 4.3+
12764 collect2name=`${CC} -print-prog-name=collect2`
12765 if test -f "$collect2name" &&
12766 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12767 then
12768 # We have reworked collect2
12769 :
12770 else
12771 # We have old collect2
12772 hardcode_direct_CXX=unsupported
12773 # It fails to find uninstalled libraries when the uninstalled
12774 # path is not listed in the libpath. Setting hardcode_minus_L
12775 # to unsupported forces relinking
12776 hardcode_minus_L_CXX=yes
12777 hardcode_libdir_flag_spec_CXX='-L$libdir'
12778 hardcode_libdir_separator_CXX=
12779 fi
12780 esac
12781 shared_flag='-shared'
12782 if test "$aix_use_runtimelinking" = yes; then
12783 shared_flag="$shared_flag "'${wl}-G'
12784 fi
12785 else
12786 # not using gcc
12787 if test "$host_cpu" = ia64; then
12788 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12789 # chokes on -Wl,-G. The following line is correct:
12790 shared_flag='-G'
12791 else
12792 if test "$aix_use_runtimelinking" = yes; then
12793 shared_flag='${wl}-G'
12794 else
12795 shared_flag='${wl}-bM:SRE'
12796 fi
12797 fi
12798 fi
12799
12800 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12801 # It seems that -bexpall does not export symbols beginning with
12802 # underscore (_), so it is better to generate a list of symbols to
12803 # export.
12804 always_export_symbols_CXX=yes
12805 if test "$aix_use_runtimelinking" = yes; then
12806 # Warning - without using the other runtime loading flags (-brtl),
12807 # -berok will link without error, but may produce a broken library.
12808 allow_undefined_flag_CXX='-berok'
12809 # Determine the default libpath from the value encoded in an empty
12810 # executable.
12811 if test "${lt_cv_aix_libpath+set}" = set; then
12812 aix_libpath=$lt_cv_aix_libpath
12813 else
12814 if ${lt_cv_aix_libpath__CXX+:} false; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12819
12820 int
12821 main ()
12822 {
12823
12824 ;
12825 return 0;
12826 }
12827 _ACEOF
12828 if ac_fn_cxx_try_link "$LINENO"; then :
12829
12830 lt_aix_libpath_sed='
12831 /Import File Strings/,/^$/ {
12832 /^0/ {
12833 s/^0 *\([^ ]*\) *$/\1/
12834 p
12835 }
12836 }'
12837 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12838 # Check for a 64-bit object if we didn't find anything.
12839 if test -z "$lt_cv_aix_libpath__CXX"; then
12840 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12841 fi
12842 fi
12843 rm -f core conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12845 if test -z "$lt_cv_aix_libpath__CXX"; then
12846 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12847 fi
12848
12849 fi
12850
12851 aix_libpath=$lt_cv_aix_libpath__CXX
12852 fi
12853
12854 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12855
12856 archive_expsym_cmds_CXX='$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"
12857 else
12858 if test "$host_cpu" = ia64; then
12859 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12860 allow_undefined_flag_CXX="-z nodefs"
12861 archive_expsym_cmds_CXX="\$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"
12862 else
12863 # Determine the default libpath from the value encoded in an
12864 # empty executable.
12865 if test "${lt_cv_aix_libpath+set}" = set; then
12866 aix_libpath=$lt_cv_aix_libpath
12867 else
12868 if ${lt_cv_aix_libpath__CXX+:} false; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12873
12874 int
12875 main ()
12876 {
12877
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 if ac_fn_cxx_try_link "$LINENO"; then :
12883
12884 lt_aix_libpath_sed='
12885 /Import File Strings/,/^$/ {
12886 /^0/ {
12887 s/^0 *\([^ ]*\) *$/\1/
12888 p
12889 }
12890 }'
12891 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12892 # Check for a 64-bit object if we didn't find anything.
12893 if test -z "$lt_cv_aix_libpath__CXX"; then
12894 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12895 fi
12896 fi
12897 rm -f core conftest.err conftest.$ac_objext \
12898 conftest$ac_exeext conftest.$ac_ext
12899 if test -z "$lt_cv_aix_libpath__CXX"; then
12900 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12901 fi
12902
12903 fi
12904
12905 aix_libpath=$lt_cv_aix_libpath__CXX
12906 fi
12907
12908 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12909 # Warning - without using the other run time loading flags,
12910 # -berok will link without error, but may produce a broken library.
12911 no_undefined_flag_CXX=' ${wl}-bernotok'
12912 allow_undefined_flag_CXX=' ${wl}-berok'
12913 if test "$with_gnu_ld" = yes; then
12914 # We only use this code for GNU lds that support --whole-archive.
12915 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12916 else
12917 # Exported symbols can be pulled into shared objects from archives
12918 whole_archive_flag_spec_CXX='$convenience'
12919 fi
12920 archive_cmds_need_lc_CXX=yes
12921 # This is similar to how AIX traditionally builds its shared
12922 # libraries.
12923 archive_expsym_cmds_CXX="\$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'
12924 fi
12925 fi
12926 ;;
12927
12928 beos*)
12929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12930 allow_undefined_flag_CXX=unsupported
12931 # Joseph Beckenbach <[email protected]> says some releases of gcc
12932 # support --undefined. This deserves some investigation. FIXME
12933 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12934 else
12935 ld_shlibs_CXX=no
12936 fi
12937 ;;
12938
12939 chorus*)
12940 case $cc_basename in
12941 *)
12942 # FIXME: insert proper C++ library support
12943 ld_shlibs_CXX=no
12944 ;;
12945 esac
12946 ;;
12947
12948 cygwin* | mingw* | pw32* | cegcc*)
12949 case $GXX,$cc_basename in
12950 ,cl* | no,cl*)
12951 # Native MSVC
12952 # hardcode_libdir_flag_spec is actually meaningless, as there is
12953 # no search path for DLLs.
12954 hardcode_libdir_flag_spec_CXX=' '
12955 allow_undefined_flag_CXX=unsupported
12956 always_export_symbols_CXX=yes
12957 file_list_spec_CXX='@'
12958 # Tell ltmain to make .lib files, not .a files.
12959 libext=lib
12960 # Tell ltmain to make .dll files, not .so files.
12961 shrext_cmds=".dll"
12962 # FIXME: Setting linknames here is a bad hack.
12963 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12964 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12965 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12966 else
12967 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12968 fi~
12969 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12970 linknames='
12971 # The linker will not automatically build a static lib if we build a DLL.
12972 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12973 enable_shared_with_static_runtimes_CXX=yes
12974 # Don't use ranlib
12975 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12976 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12977 lt_tool_outputfile="@TOOL_OUTPUT@"~
12978 case $lt_outputfile in
12979 *.exe|*.EXE) ;;
12980 *)
12981 lt_outputfile="$lt_outputfile.exe"
12982 lt_tool_outputfile="$lt_tool_outputfile.exe"
12983 ;;
12984 esac~
12985 func_to_tool_file "$lt_outputfile"~
12986 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12987 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12988 $RM "$lt_outputfile.manifest";
12989 fi'
12990 ;;
12991 *)
12992 # g++
12993 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12994 # as there is no search path for DLLs.
12995 hardcode_libdir_flag_spec_CXX='-L$libdir'
12996 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12997 allow_undefined_flag_CXX=unsupported
12998 always_export_symbols_CXX=no
12999 enable_shared_with_static_runtimes_CXX=yes
13000
13001 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13002 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13003 # If the export-symbols file already is a .def file (1st line
13004 # is EXPORTS), use it as is; otherwise, prepend...
13005 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13006 cp $export_symbols $output_objdir/$soname.def;
13007 else
13008 echo EXPORTS > $output_objdir/$soname.def;
13009 cat $export_symbols >> $output_objdir/$soname.def;
13010 fi~
13011 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13012 else
13013 ld_shlibs_CXX=no
13014 fi
13015 ;;
13016 esac
13017 ;;
13018 darwin* | rhapsody*)
13019
13020
13021 archive_cmds_need_lc_CXX=no
13022 hardcode_direct_CXX=no
13023 hardcode_automatic_CXX=yes
13024 hardcode_shlibpath_var_CXX=unsupported
13025 if test "$lt_cv_ld_force_load" = "yes"; then
13026 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13027
13028 else
13029 whole_archive_flag_spec_CXX=''
13030 fi
13031 link_all_deplibs_CXX=yes
13032 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13033 case $cc_basename in
13034 ifort*) _lt_dar_can_shared=yes ;;
13035 *) _lt_dar_can_shared=$GCC ;;
13036 esac
13037 if test "$_lt_dar_can_shared" = "yes"; then
13038 output_verbose_link_cmd=func_echo_all
13039 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13040 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13041 archive_expsym_cmds_CXX="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}"
13042 module_expsym_cmds_CXX="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}"
13043 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13044 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13045 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13046 fi
13047
13048 else
13049 ld_shlibs_CXX=no
13050 fi
13051
13052 ;;
13053
13054 dgux*)
13055 case $cc_basename in
13056 ec++*)
13057 # FIXME: insert proper C++ library support
13058 ld_shlibs_CXX=no
13059 ;;
13060 ghcx*)
13061 # Green Hills C++ Compiler
13062 # FIXME: insert proper C++ library support
13063 ld_shlibs_CXX=no
13064 ;;
13065 *)
13066 # FIXME: insert proper C++ library support
13067 ld_shlibs_CXX=no
13068 ;;
13069 esac
13070 ;;
13071
13072 freebsd2.*)
13073 # C++ shared libraries reported to be fairly broken before
13074 # switch to ELF
13075 ld_shlibs_CXX=no
13076 ;;
13077
13078 freebsd-elf*)
13079 archive_cmds_need_lc_CXX=no
13080 ;;
13081
13082 freebsd* | dragonfly*)
13083 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13084 # conventions
13085 ld_shlibs_CXX=yes
13086 ;;
13087
13088 haiku*)
13089 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13090 link_all_deplibs_CXX=yes
13091 ;;
13092
13093 hpux9*)
13094 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13095 hardcode_libdir_separator_CXX=:
13096 export_dynamic_flag_spec_CXX='${wl}-E'
13097 hardcode_direct_CXX=yes
13098 hardcode_minus_L_CXX=yes # Not in the search PATH,
13099 # but as the default
13100 # location of the library.
13101
13102 case $cc_basename in
13103 CC*)
13104 # FIXME: insert proper C++ library support
13105 ld_shlibs_CXX=no
13106 ;;
13107 aCC*)
13108 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13109 # Commands to make compiler produce verbose output that lists
13110 # what "hidden" libraries, object files and flags are used when
13111 # linking a shared library.
13112 #
13113 # There doesn't appear to be a way to prevent this compiler from
13114 # explicitly linking system object files so we need to strip them
13115 # from the output so that they don't get included in the library
13116 # dependencies.
13117 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13118 ;;
13119 *)
13120 if test "$GXX" = yes; then
13121 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13122 else
13123 # FIXME: insert proper C++ library support
13124 ld_shlibs_CXX=no
13125 fi
13126 ;;
13127 esac
13128 ;;
13129
13130 hpux10*|hpux11*)
13131 if test $with_gnu_ld = no; then
13132 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13133 hardcode_libdir_separator_CXX=:
13134
13135 case $host_cpu in
13136 hppa*64*|ia64*)
13137 ;;
13138 *)
13139 export_dynamic_flag_spec_CXX='${wl}-E'
13140 ;;
13141 esac
13142 fi
13143 case $host_cpu in
13144 hppa*64*|ia64*)
13145 hardcode_direct_CXX=no
13146 hardcode_shlibpath_var_CXX=no
13147 ;;
13148 *)
13149 hardcode_direct_CXX=yes
13150 hardcode_direct_absolute_CXX=yes
13151 hardcode_minus_L_CXX=yes # Not in the search PATH,
13152 # but as the default
13153 # location of the library.
13154 ;;
13155 esac
13156
13157 case $cc_basename in
13158 CC*)
13159 # FIXME: insert proper C++ library support
13160 ld_shlibs_CXX=no
13161 ;;
13162 aCC*)
13163 case $host_cpu in
13164 hppa*64*)
13165 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13166 ;;
13167 ia64*)
13168 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13169 ;;
13170 *)
13171 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13172 ;;
13173 esac
13174 # Commands to make compiler produce verbose output that lists
13175 # what "hidden" libraries, object files and flags are used when
13176 # linking a shared library.
13177 #
13178 # There doesn't appear to be a way to prevent this compiler from
13179 # explicitly linking system object files so we need to strip them
13180 # from the output so that they don't get included in the library
13181 # dependencies.
13182 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13183 ;;
13184 *)
13185 if test "$GXX" = yes; then
13186 if test $with_gnu_ld = no; then
13187 case $host_cpu in
13188 hppa*64*)
13189 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13190 ;;
13191 ia64*)
13192 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13193 ;;
13194 *)
13195 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13196 ;;
13197 esac
13198 fi
13199 else
13200 # FIXME: insert proper C++ library support
13201 ld_shlibs_CXX=no
13202 fi
13203 ;;
13204 esac
13205 ;;
13206
13207 interix[3-9]*)
13208 hardcode_direct_CXX=no
13209 hardcode_shlibpath_var_CXX=no
13210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13211 export_dynamic_flag_spec_CXX='${wl}-E'
13212 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13213 # Instead, shared libraries are loaded at an image base (0x10000000 by
13214 # default) and relocated if they conflict, which is a slow very memory
13215 # consuming and fragmenting process. To avoid this, we pick a random,
13216 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13217 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13218 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13219 archive_expsym_cmds_CXX='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'
13220 ;;
13221 irix5* | irix6*)
13222 case $cc_basename in
13223 CC*)
13224 # SGI C++
13225 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13226
13227 # Archives containing C++ object files must be created using
13228 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13229 # necessary to make sure instantiated templates are included
13230 # in the archive.
13231 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13232 ;;
13233 *)
13234 if test "$GXX" = yes; then
13235 if test "$with_gnu_ld" = no; then
13236 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13237 else
13238 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13239 fi
13240 fi
13241 link_all_deplibs_CXX=yes
13242 ;;
13243 esac
13244 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13245 hardcode_libdir_separator_CXX=:
13246 inherit_rpath_CXX=yes
13247 ;;
13248
13249 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13250 case $cc_basename in
13251 KCC*)
13252 # Kuck and Associates, Inc. (KAI) C++ Compiler
13253
13254 # KCC will only create a shared library if the output file
13255 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13256 # to its proper name (with version) after linking.
13257 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13258 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13259 # Commands to make compiler produce verbose output that lists
13260 # what "hidden" libraries, object files and flags are used when
13261 # linking a shared library.
13262 #
13263 # There doesn't appear to be a way to prevent this compiler from
13264 # explicitly linking system object files so we need to strip them
13265 # from the output so that they don't get included in the library
13266 # dependencies.
13267 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13268
13269 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13271
13272 # Archives containing C++ object files must be created using
13273 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13274 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13275 ;;
13276 icpc* | ecpc* )
13277 # Intel C++
13278 with_gnu_ld=yes
13279 # version 8.0 and above of icpc choke on multiply defined symbols
13280 # if we add $predep_objects and $postdep_objects, however 7.1 and
13281 # earlier do not add the objects themselves.
13282 case `$CC -V 2>&1` in
13283 *"Version 7."*)
13284 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13285 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13286 ;;
13287 *) # Version 8.0 or newer
13288 tmp_idyn=
13289 case $host_cpu in
13290 ia64*) tmp_idyn=' -i_dynamic';;
13291 esac
13292 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13294 ;;
13295 esac
13296 archive_cmds_need_lc_CXX=no
13297 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13298 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13299 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13300 ;;
13301 pgCC* | pgcpp*)
13302 # Portland Group C++ compiler
13303 case `$CC -V` in
13304 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13305 prelink_cmds_CXX='tpldir=Template.dir~
13306 rm -rf $tpldir~
13307 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13308 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13309 old_archive_cmds_CXX='tpldir=Template.dir~
13310 rm -rf $tpldir~
13311 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13312 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13313 $RANLIB $oldlib'
13314 archive_cmds_CXX='tpldir=Template.dir~
13315 rm -rf $tpldir~
13316 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13317 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13318 archive_expsym_cmds_CXX='tpldir=Template.dir~
13319 rm -rf $tpldir~
13320 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13321 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13322 ;;
13323 *) # Version 6 and above use weak symbols
13324 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13325 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13326 ;;
13327 esac
13328
13329 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13331 whole_archive_flag_spec_CXX='${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'
13332 ;;
13333 cxx*)
13334 # Compaq C++
13335 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13336 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13337
13338 runpath_var=LD_RUN_PATH
13339 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13340 hardcode_libdir_separator_CXX=:
13341
13342 # Commands to make compiler produce verbose output that lists
13343 # what "hidden" libraries, object files and flags are used when
13344 # linking a shared library.
13345 #
13346 # There doesn't appear to be a way to prevent this compiler from
13347 # explicitly linking system object files so we need to strip them
13348 # from the output so that they don't get included in the library
13349 # dependencies.
13350 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13351 ;;
13352 xl* | mpixl* | bgxl*)
13353 # IBM XL 8.0 on PPC, with GNU ld
13354 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13355 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13356 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13357 if test "x$supports_anon_versioning" = xyes; then
13358 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13360 echo "local: *; };" >> $output_objdir/$libname.ver~
13361 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13362 fi
13363 ;;
13364 *)
13365 case `$CC -V 2>&1 | sed 5q` in
13366 *Sun\ C*)
13367 # Sun C++ 5.9
13368 no_undefined_flag_CXX=' -zdefs'
13369 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13370 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13371 hardcode_libdir_flag_spec_CXX='-R$libdir'
13372 whole_archive_flag_spec_CXX='${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'
13373 compiler_needs_object_CXX=yes
13374
13375 # Not sure whether something based on
13376 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13377 # would be better.
13378 output_verbose_link_cmd='func_echo_all'
13379
13380 # Archives containing C++ object files must be created using
13381 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13382 # necessary to make sure instantiated templates are included
13383 # in the archive.
13384 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13385 ;;
13386 esac
13387 ;;
13388 esac
13389 ;;
13390
13391 lynxos*)
13392 # FIXME: insert proper C++ library support
13393 ld_shlibs_CXX=no
13394 ;;
13395
13396 m88k*)
13397 # FIXME: insert proper C++ library support
13398 ld_shlibs_CXX=no
13399 ;;
13400
13401 mvs*)
13402 case $cc_basename in
13403 cxx*)
13404 # FIXME: insert proper C++ library support
13405 ld_shlibs_CXX=no
13406 ;;
13407 *)
13408 # FIXME: insert proper C++ library support
13409 ld_shlibs_CXX=no
13410 ;;
13411 esac
13412 ;;
13413
13414 netbsd*)
13415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13416 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13417 wlarc=
13418 hardcode_libdir_flag_spec_CXX='-R$libdir'
13419 hardcode_direct_CXX=yes
13420 hardcode_shlibpath_var_CXX=no
13421 fi
13422 # Workaround some broken pre-1.5 toolchains
13423 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13424 ;;
13425
13426 *nto* | *qnx*)
13427 ld_shlibs_CXX=yes
13428 ;;
13429
13430 openbsd2*)
13431 # C++ shared libraries are fairly broken
13432 ld_shlibs_CXX=no
13433 ;;
13434
13435 openbsd*)
13436 if test -f /usr/libexec/ld.so; then
13437 hardcode_direct_CXX=yes
13438 hardcode_shlibpath_var_CXX=no
13439 hardcode_direct_absolute_CXX=yes
13440 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13443 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13444 export_dynamic_flag_spec_CXX='${wl}-E'
13445 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13446 fi
13447 output_verbose_link_cmd=func_echo_all
13448 else
13449 ld_shlibs_CXX=no
13450 fi
13451 ;;
13452
13453 osf3* | osf4* | osf5*)
13454 case $cc_basename in
13455 KCC*)
13456 # Kuck and Associates, Inc. (KAI) C++ Compiler
13457
13458 # KCC will only create a shared library if the output file
13459 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13460 # to its proper name (with version) after linking.
13461 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13462
13463 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13464 hardcode_libdir_separator_CXX=:
13465
13466 # Archives containing C++ object files must be created using
13467 # the KAI C++ compiler.
13468 case $host in
13469 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13470 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13471 esac
13472 ;;
13473 RCC*)
13474 # Rational C++ 2.4.1
13475 # FIXME: insert proper C++ library support
13476 ld_shlibs_CXX=no
13477 ;;
13478 cxx*)
13479 case $host in
13480 osf3*)
13481 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13482 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13483 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13484 ;;
13485 *)
13486 allow_undefined_flag_CXX=' -expect_unresolved \*'
13487 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13488 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13489 echo "-hidden">> $lib.exp~
13490 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13491 $RM $lib.exp'
13492 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13493 ;;
13494 esac
13495
13496 hardcode_libdir_separator_CXX=:
13497
13498 # Commands to make compiler produce verbose output that lists
13499 # what "hidden" libraries, object files and flags are used when
13500 # linking a shared library.
13501 #
13502 # There doesn't appear to be a way to prevent this compiler from
13503 # explicitly linking system object files so we need to strip them
13504 # from the output so that they don't get included in the library
13505 # dependencies.
13506 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13507 ;;
13508 *)
13509 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13510 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13511 case $host in
13512 osf3*)
13513 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13514 ;;
13515 *)
13516 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13517 ;;
13518 esac
13519
13520 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13521 hardcode_libdir_separator_CXX=:
13522
13523 # Commands to make compiler produce verbose output that lists
13524 # what "hidden" libraries, object files and flags are used when
13525 # linking a shared library.
13526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13527
13528 else
13529 # FIXME: insert proper C++ library support
13530 ld_shlibs_CXX=no
13531 fi
13532 ;;
13533 esac
13534 ;;
13535
13536 psos*)
13537 # FIXME: insert proper C++ library support
13538 ld_shlibs_CXX=no
13539 ;;
13540
13541 sunos4*)
13542 case $cc_basename in
13543 CC*)
13544 # Sun C++ 4.x
13545 # FIXME: insert proper C++ library support
13546 ld_shlibs_CXX=no
13547 ;;
13548 lcc*)
13549 # Lucid
13550 # FIXME: insert proper C++ library support
13551 ld_shlibs_CXX=no
13552 ;;
13553 *)
13554 # FIXME: insert proper C++ library support
13555 ld_shlibs_CXX=no
13556 ;;
13557 esac
13558 ;;
13559
13560 solaris*)
13561 case $cc_basename in
13562 CC* | sunCC*)
13563 # Sun C++ 4.2, 5.x and Centerline C++
13564 archive_cmds_need_lc_CXX=yes
13565 no_undefined_flag_CXX=' -zdefs'
13566 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13567 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13568 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13569
13570 hardcode_libdir_flag_spec_CXX='-R$libdir'
13571 hardcode_shlibpath_var_CXX=no
13572 case $host_os in
13573 solaris2.[0-5] | solaris2.[0-5].*) ;;
13574 *)
13575 # The compiler driver will combine and reorder linker options,
13576 # but understands `-z linker_flag'.
13577 # Supported since Solaris 2.6 (maybe 2.5.1?)
13578 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13579 ;;
13580 esac
13581 link_all_deplibs_CXX=yes
13582
13583 output_verbose_link_cmd='func_echo_all'
13584
13585 # Archives containing C++ object files must be created using
13586 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13587 # necessary to make sure instantiated templates are included
13588 # in the archive.
13589 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13590 ;;
13591 gcx*)
13592 # Green Hills C++ Compiler
13593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13594
13595 # The C++ compiler must be used to create the archive.
13596 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13597 ;;
13598 *)
13599 # GNU C++ compiler with Solaris linker
13600 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13601 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13602 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13603 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13604 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13605 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13606
13607 # Commands to make compiler produce verbose output that lists
13608 # what "hidden" libraries, object files and flags are used when
13609 # linking a shared library.
13610 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13611 else
13612 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13613 # platform.
13614 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13615 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13616 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13617
13618 # Commands to make compiler produce verbose output that lists
13619 # what "hidden" libraries, object files and flags are used when
13620 # linking a shared library.
13621 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13622 fi
13623
13624 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13625 case $host_os in
13626 solaris2.[0-5] | solaris2.[0-5].*) ;;
13627 *)
13628 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13629 ;;
13630 esac
13631 fi
13632 ;;
13633 esac
13634 ;;
13635
13636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13637 no_undefined_flag_CXX='${wl}-z,text'
13638 archive_cmds_need_lc_CXX=no
13639 hardcode_shlibpath_var_CXX=no
13640 runpath_var='LD_RUN_PATH'
13641
13642 case $cc_basename in
13643 CC*)
13644 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 ;;
13647 *)
13648 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650 ;;
13651 esac
13652 ;;
13653
13654 sysv5* | sco3.2v5* | sco5v6*)
13655 # Note: We can NOT use -z defs as we might desire, because we do not
13656 # link with -lc, and that would cause any symbols used from libc to
13657 # always be unresolved, which means just about no library would
13658 # ever link correctly. If we're not using GNU ld we use -z text
13659 # though, which does catch some bad symbols but isn't as heavy-handed
13660 # as -z defs.
13661 no_undefined_flag_CXX='${wl}-z,text'
13662 allow_undefined_flag_CXX='${wl}-z,nodefs'
13663 archive_cmds_need_lc_CXX=no
13664 hardcode_shlibpath_var_CXX=no
13665 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13666 hardcode_libdir_separator_CXX=':'
13667 link_all_deplibs_CXX=yes
13668 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13669 runpath_var='LD_RUN_PATH'
13670
13671 case $cc_basename in
13672 CC*)
13673 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13676 '"$old_archive_cmds_CXX"
13677 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13678 '"$reload_cmds_CXX"
13679 ;;
13680 *)
13681 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 ;;
13684 esac
13685 ;;
13686
13687 tandem*)
13688 case $cc_basename in
13689 NCC*)
13690 # NonStop-UX NCC 3.20
13691 # FIXME: insert proper C++ library support
13692 ld_shlibs_CXX=no
13693 ;;
13694 *)
13695 # FIXME: insert proper C++ library support
13696 ld_shlibs_CXX=no
13697 ;;
13698 esac
13699 ;;
13700
13701 vxworks*)
13702 # FIXME: insert proper C++ library support
13703 ld_shlibs_CXX=no
13704 ;;
13705
13706 *)
13707 # FIXME: insert proper C++ library support
13708 ld_shlibs_CXX=no
13709 ;;
13710 esac
13711
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13713 $as_echo "$ld_shlibs_CXX" >&6; }
13714 test "$ld_shlibs_CXX" = no && can_build_shared=no
13715
13716 GCC_CXX="$GXX"
13717 LD_CXX="$LD"
13718
13719 ## CAVEAT EMPTOR:
13720 ## There is no encapsulation within the following macros, do not change
13721 ## the running order or otherwise move them around unless you know exactly
13722 ## what you are doing...
13723 # Dependencies to place before and after the object being linked:
13724 predep_objects_CXX=
13725 postdep_objects_CXX=
13726 predeps_CXX=
13727 postdeps_CXX=
13728 compiler_lib_search_path_CXX=
13729
13730 cat > conftest.$ac_ext <<_LT_EOF
13731 class Foo
13732 {
13733 public:
13734 Foo (void) { a = 0; }
13735 private:
13736 int a;
13737 };
13738 _LT_EOF
13739
13740
13741 _lt_libdeps_save_CFLAGS=$CFLAGS
13742 case "$CC $CFLAGS " in #(
13743 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13744 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13745 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13746 esac
13747
13748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13749 (eval $ac_compile) 2>&5
13750 ac_status=$?
13751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13752 test $ac_status = 0; }; then
13753 # Parse the compiler output and extract the necessary
13754 # objects, libraries and library flags.
13755
13756 # Sentinel used to keep track of whether or not we are before
13757 # the conftest object file.
13758 pre_test_object_deps_done=no
13759
13760 for p in `eval "$output_verbose_link_cmd"`; do
13761 case ${prev}${p} in
13762
13763 -L* | -R* | -l*)
13764 # Some compilers place space between "-{L,R}" and the path.
13765 # Remove the space.
13766 if test $p = "-L" ||
13767 test $p = "-R"; then
13768 prev=$p
13769 continue
13770 fi
13771
13772 # Expand the sysroot to ease extracting the directories later.
13773 if test -z "$prev"; then
13774 case $p in
13775 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13776 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13777 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13778 esac
13779 fi
13780 case $p in
13781 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13782 esac
13783 if test "$pre_test_object_deps_done" = no; then
13784 case ${prev} in
13785 -L | -R)
13786 # Internal compiler library paths should come after those
13787 # provided the user. The postdeps already come after the
13788 # user supplied libs so there is no need to process them.
13789 if test -z "$compiler_lib_search_path_CXX"; then
13790 compiler_lib_search_path_CXX="${prev}${p}"
13791 else
13792 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13793 fi
13794 ;;
13795 # The "-l" case would never come before the object being
13796 # linked, so don't bother handling this case.
13797 esac
13798 else
13799 if test -z "$postdeps_CXX"; then
13800 postdeps_CXX="${prev}${p}"
13801 else
13802 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13803 fi
13804 fi
13805 prev=
13806 ;;
13807
13808 *.lto.$objext) ;; # Ignore GCC LTO objects
13809 *.$objext)
13810 # This assumes that the test object file only shows up
13811 # once in the compiler output.
13812 if test "$p" = "conftest.$objext"; then
13813 pre_test_object_deps_done=yes
13814 continue
13815 fi
13816
13817 if test "$pre_test_object_deps_done" = no; then
13818 if test -z "$predep_objects_CXX"; then
13819 predep_objects_CXX="$p"
13820 else
13821 predep_objects_CXX="$predep_objects_CXX $p"
13822 fi
13823 else
13824 if test -z "$postdep_objects_CXX"; then
13825 postdep_objects_CXX="$p"
13826 else
13827 postdep_objects_CXX="$postdep_objects_CXX $p"
13828 fi
13829 fi
13830 ;;
13831
13832 *) ;; # Ignore the rest.
13833
13834 esac
13835 done
13836
13837 # Clean up.
13838 rm -f a.out a.exe
13839 else
13840 echo "libtool.m4: error: problem compiling CXX test program"
13841 fi
13842
13843 $RM -f confest.$objext
13844 CFLAGS=$_lt_libdeps_save_CFLAGS
13845
13846 # PORTME: override above test on systems where it is broken
13847 case $host_os in
13848 interix[3-9]*)
13849 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13850 # hack all around it, let's just trust "g++" to DTRT.
13851 predep_objects_CXX=
13852 postdep_objects_CXX=
13853 postdeps_CXX=
13854 ;;
13855
13856 linux*)
13857 case `$CC -V 2>&1 | sed 5q` in
13858 *Sun\ C*)
13859 # Sun C++ 5.9
13860
13861 # The more standards-conforming stlport4 library is
13862 # incompatible with the Cstd library. Avoid specifying
13863 # it if it's in CXXFLAGS. Ignore libCrun as
13864 # -library=stlport4 depends on it.
13865 case " $CXX $CXXFLAGS " in
13866 *" -library=stlport4 "*)
13867 solaris_use_stlport4=yes
13868 ;;
13869 esac
13870
13871 if test "$solaris_use_stlport4" != yes; then
13872 postdeps_CXX='-library=Cstd -library=Crun'
13873 fi
13874 ;;
13875 esac
13876 ;;
13877
13878 solaris*)
13879 case $cc_basename in
13880 CC* | sunCC*)
13881 # The more standards-conforming stlport4 library is
13882 # incompatible with the Cstd library. Avoid specifying
13883 # it if it's in CXXFLAGS. Ignore libCrun as
13884 # -library=stlport4 depends on it.
13885 case " $CXX $CXXFLAGS " in
13886 *" -library=stlport4 "*)
13887 solaris_use_stlport4=yes
13888 ;;
13889 esac
13890
13891 # Adding this requires a known-good setup of shared libraries for
13892 # Sun compiler versions before 5.6, else PIC objects from an old
13893 # archive will be linked into the output, leading to subtle bugs.
13894 if test "$solaris_use_stlport4" != yes; then
13895 postdeps_CXX='-library=Cstd -library=Crun'
13896 fi
13897 ;;
13898 esac
13899 ;;
13900 esac
13901
13902
13903 case " $postdeps_CXX " in
13904 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13905 esac
13906 compiler_lib_search_dirs_CXX=
13907 if test -n "${compiler_lib_search_path_CXX}"; then
13908 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13909 fi
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941 lt_prog_compiler_wl_CXX=
13942 lt_prog_compiler_pic_CXX=
13943 lt_prog_compiler_static_CXX=
13944
13945
13946 # C++ specific cases for pic, static, wl, etc.
13947 if test "$GXX" = yes; then
13948 lt_prog_compiler_wl_CXX='-Wl,'
13949 lt_prog_compiler_static_CXX='-static'
13950
13951 case $host_os in
13952 aix*)
13953 # All AIX code is PIC.
13954 if test "$host_cpu" = ia64; then
13955 # AIX 5 now supports IA64 processor
13956 lt_prog_compiler_static_CXX='-Bstatic'
13957 fi
13958 ;;
13959
13960 amigaos*)
13961 case $host_cpu in
13962 powerpc)
13963 # see comment about AmigaOS4 .so support
13964 lt_prog_compiler_pic_CXX='-fPIC'
13965 ;;
13966 m68k)
13967 # FIXME: we need at least 68020 code to build shared libraries, but
13968 # adding the `-m68020' flag to GCC prevents building anything better,
13969 # like `-m68040'.
13970 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13971 ;;
13972 esac
13973 ;;
13974
13975 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13976 # PIC is the default for these OSes.
13977 ;;
13978 mingw* | cygwin* | os2* | pw32* | cegcc*)
13979 # This hack is so that the source file can tell whether it is being
13980 # built for inclusion in a dll (and should export symbols for example).
13981 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13982 # (--disable-auto-import) libraries
13983 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13984 ;;
13985 darwin* | rhapsody*)
13986 # PIC is the default on this platform
13987 # Common symbols not allowed in MH_DYLIB files
13988 lt_prog_compiler_pic_CXX='-fno-common'
13989 ;;
13990 *djgpp*)
13991 # DJGPP does not support shared libraries at all
13992 lt_prog_compiler_pic_CXX=
13993 ;;
13994 haiku*)
13995 # PIC is the default for Haiku.
13996 # The "-static" flag exists, but is broken.
13997 lt_prog_compiler_static_CXX=
13998 ;;
13999 interix[3-9]*)
14000 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14001 # Instead, we relocate shared libraries at runtime.
14002 ;;
14003 sysv4*MP*)
14004 if test -d /usr/nec; then
14005 lt_prog_compiler_pic_CXX=-Kconform_pic
14006 fi
14007 ;;
14008 hpux*)
14009 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14010 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14011 # sets the default TLS model and affects inlining.
14012 case $host_cpu in
14013 hppa*64*)
14014 ;;
14015 *)
14016 lt_prog_compiler_pic_CXX='-fPIC'
14017 ;;
14018 esac
14019 ;;
14020 *qnx* | *nto*)
14021 # QNX uses GNU C++, but need to define -shared option too, otherwise
14022 # it will coredump.
14023 lt_prog_compiler_pic_CXX='-fPIC -shared'
14024 ;;
14025 *)
14026 lt_prog_compiler_pic_CXX='-fPIC'
14027 ;;
14028 esac
14029 else
14030 case $host_os in
14031 aix[4-9]*)
14032 # All AIX code is PIC.
14033 if test "$host_cpu" = ia64; then
14034 # AIX 5 now supports IA64 processor
14035 lt_prog_compiler_static_CXX='-Bstatic'
14036 else
14037 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14038 fi
14039 ;;
14040 chorus*)
14041 case $cc_basename in
14042 cxch68*)
14043 # Green Hills C++ Compiler
14044 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14045 ;;
14046 esac
14047 ;;
14048 mingw* | cygwin* | os2* | pw32* | cegcc*)
14049 # This hack is so that the source file can tell whether it is being
14050 # built for inclusion in a dll (and should export symbols for example).
14051 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14052 ;;
14053 dgux*)
14054 case $cc_basename in
14055 ec++*)
14056 lt_prog_compiler_pic_CXX='-KPIC'
14057 ;;
14058 ghcx*)
14059 # Green Hills C++ Compiler
14060 lt_prog_compiler_pic_CXX='-pic'
14061 ;;
14062 *)
14063 ;;
14064 esac
14065 ;;
14066 freebsd* | dragonfly*)
14067 # FreeBSD uses GNU C++
14068 ;;
14069 hpux9* | hpux10* | hpux11*)
14070 case $cc_basename in
14071 CC*)
14072 lt_prog_compiler_wl_CXX='-Wl,'
14073 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14074 if test "$host_cpu" != ia64; then
14075 lt_prog_compiler_pic_CXX='+Z'
14076 fi
14077 ;;
14078 aCC*)
14079 lt_prog_compiler_wl_CXX='-Wl,'
14080 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14081 case $host_cpu in
14082 hppa*64*|ia64*)
14083 # +Z the default
14084 ;;
14085 *)
14086 lt_prog_compiler_pic_CXX='+Z'
14087 ;;
14088 esac
14089 ;;
14090 *)
14091 ;;
14092 esac
14093 ;;
14094 interix*)
14095 # This is c89, which is MS Visual C++ (no shared libs)
14096 # Anyone wants to do a port?
14097 ;;
14098 irix5* | irix6* | nonstopux*)
14099 case $cc_basename in
14100 CC*)
14101 lt_prog_compiler_wl_CXX='-Wl,'
14102 lt_prog_compiler_static_CXX='-non_shared'
14103 # CC pic flag -KPIC is the default.
14104 ;;
14105 *)
14106 ;;
14107 esac
14108 ;;
14109 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14110 case $cc_basename in
14111 KCC*)
14112 # KAI C++ Compiler
14113 lt_prog_compiler_wl_CXX='--backend -Wl,'
14114 lt_prog_compiler_pic_CXX='-fPIC'
14115 ;;
14116 ecpc* )
14117 # old Intel C++ for x86_64 which still supported -KPIC.
14118 lt_prog_compiler_wl_CXX='-Wl,'
14119 lt_prog_compiler_pic_CXX='-KPIC'
14120 lt_prog_compiler_static_CXX='-static'
14121 ;;
14122 icpc* )
14123 # Intel C++, used to be incompatible with GCC.
14124 # ICC 10 doesn't accept -KPIC any more.
14125 lt_prog_compiler_wl_CXX='-Wl,'
14126 lt_prog_compiler_pic_CXX='-fPIC'
14127 lt_prog_compiler_static_CXX='-static'
14128 ;;
14129 pgCC* | pgcpp*)
14130 # Portland Group C++ compiler
14131 lt_prog_compiler_wl_CXX='-Wl,'
14132 lt_prog_compiler_pic_CXX='-fpic'
14133 lt_prog_compiler_static_CXX='-Bstatic'
14134 ;;
14135 cxx*)
14136 # Compaq C++
14137 # Make sure the PIC flag is empty. It appears that all Alpha
14138 # Linux and Compaq Tru64 Unix objects are PIC.
14139 lt_prog_compiler_pic_CXX=
14140 lt_prog_compiler_static_CXX='-non_shared'
14141 ;;
14142 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14143 # IBM XL 8.0, 9.0 on PPC and BlueGene
14144 lt_prog_compiler_wl_CXX='-Wl,'
14145 lt_prog_compiler_pic_CXX='-qpic'
14146 lt_prog_compiler_static_CXX='-qstaticlink'
14147 ;;
14148 *)
14149 case `$CC -V 2>&1 | sed 5q` in
14150 *Sun\ C*)
14151 # Sun C++ 5.9
14152 lt_prog_compiler_pic_CXX='-KPIC'
14153 lt_prog_compiler_static_CXX='-Bstatic'
14154 lt_prog_compiler_wl_CXX='-Qoption ld '
14155 ;;
14156 esac
14157 ;;
14158 esac
14159 ;;
14160 lynxos*)
14161 ;;
14162 m88k*)
14163 ;;
14164 mvs*)
14165 case $cc_basename in
14166 cxx*)
14167 lt_prog_compiler_pic_CXX='-W c,exportall'
14168 ;;
14169 *)
14170 ;;
14171 esac
14172 ;;
14173 netbsd* | netbsdelf*-gnu)
14174 ;;
14175 *qnx* | *nto*)
14176 # QNX uses GNU C++, but need to define -shared option too, otherwise
14177 # it will coredump.
14178 lt_prog_compiler_pic_CXX='-fPIC -shared'
14179 ;;
14180 osf3* | osf4* | osf5*)
14181 case $cc_basename in
14182 KCC*)
14183 lt_prog_compiler_wl_CXX='--backend -Wl,'
14184 ;;
14185 RCC*)
14186 # Rational C++ 2.4.1
14187 lt_prog_compiler_pic_CXX='-pic'
14188 ;;
14189 cxx*)
14190 # Digital/Compaq C++
14191 lt_prog_compiler_wl_CXX='-Wl,'
14192 # Make sure the PIC flag is empty. It appears that all Alpha
14193 # Linux and Compaq Tru64 Unix objects are PIC.
14194 lt_prog_compiler_pic_CXX=
14195 lt_prog_compiler_static_CXX='-non_shared'
14196 ;;
14197 *)
14198 ;;
14199 esac
14200 ;;
14201 psos*)
14202 ;;
14203 solaris*)
14204 case $cc_basename in
14205 CC* | sunCC*)
14206 # Sun C++ 4.2, 5.x and Centerline C++
14207 lt_prog_compiler_pic_CXX='-KPIC'
14208 lt_prog_compiler_static_CXX='-Bstatic'
14209 lt_prog_compiler_wl_CXX='-Qoption ld '
14210 ;;
14211 gcx*)
14212 # Green Hills C++ Compiler
14213 lt_prog_compiler_pic_CXX='-PIC'
14214 ;;
14215 *)
14216 ;;
14217 esac
14218 ;;
14219 sunos4*)
14220 case $cc_basename in
14221 CC*)
14222 # Sun C++ 4.x
14223 lt_prog_compiler_pic_CXX='-pic'
14224 lt_prog_compiler_static_CXX='-Bstatic'
14225 ;;
14226 lcc*)
14227 # Lucid
14228 lt_prog_compiler_pic_CXX='-pic'
14229 ;;
14230 *)
14231 ;;
14232 esac
14233 ;;
14234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14235 case $cc_basename in
14236 CC*)
14237 lt_prog_compiler_wl_CXX='-Wl,'
14238 lt_prog_compiler_pic_CXX='-KPIC'
14239 lt_prog_compiler_static_CXX='-Bstatic'
14240 ;;
14241 esac
14242 ;;
14243 tandem*)
14244 case $cc_basename in
14245 NCC*)
14246 # NonStop-UX NCC 3.20
14247 lt_prog_compiler_pic_CXX='-KPIC'
14248 ;;
14249 *)
14250 ;;
14251 esac
14252 ;;
14253 vxworks*)
14254 ;;
14255 *)
14256 lt_prog_compiler_can_build_shared_CXX=no
14257 ;;
14258 esac
14259 fi
14260
14261 case $host_os in
14262 # For platforms which do not support PIC, -DPIC is meaningless:
14263 *djgpp*)
14264 lt_prog_compiler_pic_CXX=
14265 ;;
14266 *)
14267 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14268 ;;
14269 esac
14270
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14272 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14273 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14277 fi
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14279 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14280 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14281
14282 #
14283 # Check to make sure the PIC flag actually works.
14284 #
14285 if test -n "$lt_prog_compiler_pic_CXX"; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14287 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14288 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 lt_cv_prog_compiler_pic_works_CXX=no
14292 ac_outfile=conftest.$ac_objext
14293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14294 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14295 # Insert the option either (1) after the last *FLAGS variable, or
14296 # (2) before a word containing "conftest.", or (3) at the end.
14297 # Note that $ac_compile itself does not contain backslashes and begins
14298 # with a dollar sign (not a hyphen), so the echo should work correctly.
14299 # The option is referenced via a variable to avoid confusing sed.
14300 lt_compile=`echo "$ac_compile" | $SED \
14301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14303 -e 's:$: $lt_compiler_flag:'`
14304 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14305 (eval "$lt_compile" 2>conftest.err)
14306 ac_status=$?
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 if (exit $ac_status) && test -s "$ac_outfile"; then
14310 # The compiler can only warn and ignore the option if not recognized
14311 # So say no if there are warnings other than the usual output.
14312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14314 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14315 lt_cv_prog_compiler_pic_works_CXX=yes
14316 fi
14317 fi
14318 $RM conftest*
14319
14320 fi
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14322 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14323
14324 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14325 case $lt_prog_compiler_pic_CXX in
14326 "" | " "*) ;;
14327 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14328 esac
14329 else
14330 lt_prog_compiler_pic_CXX=
14331 lt_prog_compiler_can_build_shared_CXX=no
14332 fi
14333
14334 fi
14335
14336
14337
14338
14339
14340 #
14341 # Check to make sure the static flag actually works.
14342 #
14343 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14345 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14346 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14347 $as_echo_n "(cached) " >&6
14348 else
14349 lt_cv_prog_compiler_static_works_CXX=no
14350 save_LDFLAGS="$LDFLAGS"
14351 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14352 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14353 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14354 # The linker can only warn and ignore the option if not recognized
14355 # So say no if there are warnings
14356 if test -s conftest.err; then
14357 # Append any errors to the config.log.
14358 cat conftest.err 1>&5
14359 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14361 if diff conftest.exp conftest.er2 >/dev/null; then
14362 lt_cv_prog_compiler_static_works_CXX=yes
14363 fi
14364 else
14365 lt_cv_prog_compiler_static_works_CXX=yes
14366 fi
14367 fi
14368 $RM -r conftest*
14369 LDFLAGS="$save_LDFLAGS"
14370
14371 fi
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14373 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14374
14375 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14376 :
14377 else
14378 lt_prog_compiler_static_CXX=
14379 fi
14380
14381
14382
14383
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14385 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14386 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14387 $as_echo_n "(cached) " >&6
14388 else
14389 lt_cv_prog_compiler_c_o_CXX=no
14390 $RM -r conftest 2>/dev/null
14391 mkdir conftest
14392 cd conftest
14393 mkdir out
14394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14395
14396 lt_compiler_flag="-o out/conftest2.$ac_objext"
14397 # Insert the option either (1) after the last *FLAGS variable, or
14398 # (2) before a word containing "conftest.", or (3) at the end.
14399 # Note that $ac_compile itself does not contain backslashes and begins
14400 # with a dollar sign (not a hyphen), so the echo should work correctly.
14401 lt_compile=`echo "$ac_compile" | $SED \
14402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14404 -e 's:$: $lt_compiler_flag:'`
14405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14406 (eval "$lt_compile" 2>out/conftest.err)
14407 ac_status=$?
14408 cat out/conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14411 then
14412 # The compiler can only warn and ignore the option if not recognized
14413 # So say no if there are warnings
14414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14417 lt_cv_prog_compiler_c_o_CXX=yes
14418 fi
14419 fi
14420 chmod u+w . 2>&5
14421 $RM conftest*
14422 # SGI C++ compiler will create directory out/ii_files/ for
14423 # template instantiation
14424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14425 $RM out/* && rmdir out
14426 cd ..
14427 $RM -r conftest
14428 $RM conftest*
14429
14430 fi
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14432 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14433
14434
14435
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14437 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14438 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14439 $as_echo_n "(cached) " >&6
14440 else
14441 lt_cv_prog_compiler_c_o_CXX=no
14442 $RM -r conftest 2>/dev/null
14443 mkdir conftest
14444 cd conftest
14445 mkdir out
14446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14447
14448 lt_compiler_flag="-o out/conftest2.$ac_objext"
14449 # Insert the option either (1) after the last *FLAGS variable, or
14450 # (2) before a word containing "conftest.", or (3) at the end.
14451 # Note that $ac_compile itself does not contain backslashes and begins
14452 # with a dollar sign (not a hyphen), so the echo should work correctly.
14453 lt_compile=`echo "$ac_compile" | $SED \
14454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14456 -e 's:$: $lt_compiler_flag:'`
14457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14458 (eval "$lt_compile" 2>out/conftest.err)
14459 ac_status=$?
14460 cat out/conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14463 then
14464 # The compiler can only warn and ignore the option if not recognized
14465 # So say no if there are warnings
14466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14467 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14468 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14469 lt_cv_prog_compiler_c_o_CXX=yes
14470 fi
14471 fi
14472 chmod u+w . 2>&5
14473 $RM conftest*
14474 # SGI C++ compiler will create directory out/ii_files/ for
14475 # template instantiation
14476 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14477 $RM out/* && rmdir out
14478 cd ..
14479 $RM -r conftest
14480 $RM conftest*
14481
14482 fi
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14484 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14485
14486
14487
14488
14489 hard_links="nottested"
14490 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14491 # do not overwrite the value of need_locks provided by the user
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14493 $as_echo_n "checking if we can lock with hard links... " >&6; }
14494 hard_links=yes
14495 $RM conftest*
14496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14497 touch conftest.a
14498 ln conftest.a conftest.b 2>&5 || hard_links=no
14499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14501 $as_echo "$hard_links" >&6; }
14502 if test "$hard_links" = no; then
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14504 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14505 need_locks=warn
14506 fi
14507 else
14508 need_locks=no
14509 fi
14510
14511
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14514 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14515
14516 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14517 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14518 case $host_os in
14519 aix[4-9]*)
14520 # If we're using GNU nm, then we don't want the "-C" option.
14521 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14522 # Also, AIX nm treats weak defined symbols like other global defined
14523 # symbols, whereas GNU nm marks them as "W".
14524 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14525 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14526 else
14527 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14528 fi
14529 ;;
14530 pw32*)
14531 export_symbols_cmds_CXX="$ltdll_cmds"
14532 ;;
14533 cygwin* | mingw* | cegcc*)
14534 case $cc_basename in
14535 cl*)
14536 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14537 ;;
14538 *)
14539 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14540 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14541 ;;
14542 esac
14543 ;;
14544 linux* | k*bsd*-gnu | gnu*)
14545 link_all_deplibs_CXX=no
14546 ;;
14547 *)
14548 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14549 ;;
14550 esac
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14553 $as_echo "$ld_shlibs_CXX" >&6; }
14554 test "$ld_shlibs_CXX" = no && can_build_shared=no
14555
14556 with_gnu_ld_CXX=$with_gnu_ld
14557
14558
14559
14560
14561
14562
14563 #
14564 # Do we need to explicitly link libc?
14565 #
14566 case "x$archive_cmds_need_lc_CXX" in
14567 x|xyes)
14568 # Assume -lc should be added
14569 archive_cmds_need_lc_CXX=yes
14570
14571 if test "$enable_shared" = yes && test "$GCC" = yes; then
14572 case $archive_cmds_CXX in
14573 *'~'*)
14574 # FIXME: we may have to deal with multi-command sequences.
14575 ;;
14576 '$CC '*)
14577 # Test whether the compiler implicitly links with -lc since on some
14578 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14579 # to ld, don't add -lc before -lgcc.
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14581 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14582 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14583 $as_echo_n "(cached) " >&6
14584 else
14585 $RM conftest*
14586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14587
14588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14589 (eval $ac_compile) 2>&5
14590 ac_status=$?
14591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14592 test $ac_status = 0; } 2>conftest.err; then
14593 soname=conftest
14594 lib=conftest
14595 libobjs=conftest.$ac_objext
14596 deplibs=
14597 wl=$lt_prog_compiler_wl_CXX
14598 pic_flag=$lt_prog_compiler_pic_CXX
14599 compiler_flags=-v
14600 linker_flags=-v
14601 verstring=
14602 output_objdir=.
14603 libname=conftest
14604 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14605 allow_undefined_flag_CXX=
14606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14607 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14608 ac_status=$?
14609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14610 test $ac_status = 0; }
14611 then
14612 lt_cv_archive_cmds_need_lc_CXX=no
14613 else
14614 lt_cv_archive_cmds_need_lc_CXX=yes
14615 fi
14616 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14617 else
14618 cat conftest.err 1>&5
14619 fi
14620 $RM conftest*
14621
14622 fi
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14624 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14625 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14626 ;;
14627 esac
14628 fi
14629 ;;
14630 esac
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14694 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14695
14696 library_names_spec=
14697 libname_spec='lib$name'
14698 soname_spec=
14699 shrext_cmds=".so"
14700 postinstall_cmds=
14701 postuninstall_cmds=
14702 finish_cmds=
14703 finish_eval=
14704 shlibpath_var=
14705 shlibpath_overrides_runpath=unknown
14706 version_type=none
14707 dynamic_linker="$host_os ld.so"
14708 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14709 need_lib_prefix=unknown
14710 hardcode_into_libs=no
14711
14712 # when you set need_version to no, make sure it does not cause -set_version
14713 # flags to be left without arguments
14714 need_version=unknown
14715
14716 case $host_os in
14717 aix3*)
14718 version_type=linux # correct to gnu/linux during the next big refactor
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14720 shlibpath_var=LIBPATH
14721
14722 # AIX 3 has no versioning support, so we append a major version to the name.
14723 soname_spec='${libname}${release}${shared_ext}$major'
14724 ;;
14725
14726 aix[4-9]*)
14727 version_type=linux # correct to gnu/linux during the next big refactor
14728 need_lib_prefix=no
14729 need_version=no
14730 hardcode_into_libs=yes
14731 if test "$host_cpu" = ia64; then
14732 # AIX 5 supports IA64
14733 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14734 shlibpath_var=LD_LIBRARY_PATH
14735 else
14736 # With GCC up to 2.95.x, collect2 would create an import file
14737 # for dependence libraries. The import file would start with
14738 # the line `#! .'. This would cause the generated library to
14739 # depend on `.', always an invalid library. This was fixed in
14740 # development snapshots of GCC prior to 3.0.
14741 case $host_os in
14742 aix4 | aix4.[01] | aix4.[01].*)
14743 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14744 echo ' yes '
14745 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14746 :
14747 else
14748 can_build_shared=no
14749 fi
14750 ;;
14751 esac
14752 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14753 # soname into executable. Probably we can add versioning support to
14754 # collect2, so additional links can be useful in future.
14755 if test "$aix_use_runtimelinking" = yes; then
14756 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14757 # instead of lib<name>.a to let people know that these are not
14758 # typical AIX shared libraries.
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760 else
14761 # We preserve .a as extension for shared libraries through AIX4.2
14762 # and later when we are not doing run time linking.
14763 library_names_spec='${libname}${release}.a $libname.a'
14764 soname_spec='${libname}${release}${shared_ext}$major'
14765 fi
14766 shlibpath_var=LIBPATH
14767 fi
14768 ;;
14769
14770 amigaos*)
14771 case $host_cpu in
14772 powerpc)
14773 # Since July 2007 AmigaOS4 officially supports .so libraries.
14774 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 ;;
14777 m68k)
14778 library_names_spec='$libname.ixlibrary $libname.a'
14779 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14780 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'
14781 ;;
14782 esac
14783 ;;
14784
14785 beos*)
14786 library_names_spec='${libname}${shared_ext}'
14787 dynamic_linker="$host_os ld.so"
14788 shlibpath_var=LIBRARY_PATH
14789 ;;
14790
14791 bsdi[45]*)
14792 version_type=linux # correct to gnu/linux during the next big refactor
14793 need_version=no
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14795 soname_spec='${libname}${release}${shared_ext}$major'
14796 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14799 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14800 # the default ld.so.conf also contains /usr/contrib/lib and
14801 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14802 # libtool to hard-code these into programs
14803 ;;
14804
14805 cygwin* | mingw* | pw32* | cegcc*)
14806 version_type=windows
14807 shrext_cmds=".dll"
14808 need_version=no
14809 need_lib_prefix=no
14810
14811 case $GCC,$cc_basename in
14812 yes,*)
14813 # gcc
14814 library_names_spec='$libname.dll.a'
14815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14816 postinstall_cmds='base_file=`basename \${file}`~
14817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14818 dldir=$destdir/`dirname \$dlpath`~
14819 test -d \$dldir || mkdir -p \$dldir~
14820 $install_prog $dir/$dlname \$dldir/$dlname~
14821 chmod a+x \$dldir/$dlname~
14822 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14823 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14824 fi'
14825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14826 dlpath=$dir/\$dldll~
14827 $RM \$dlpath'
14828 shlibpath_overrides_runpath=yes
14829
14830 case $host_os in
14831 cygwin*)
14832 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14833 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14834
14835 ;;
14836 mingw* | cegcc*)
14837 # MinGW DLLs use traditional 'lib' prefix
14838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14839 ;;
14840 pw32*)
14841 # pw32 DLLs use 'pw' prefix rather than 'lib'
14842 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14843 ;;
14844 esac
14845 dynamic_linker='Win32 ld.exe'
14846 ;;
14847
14848 *,cl*)
14849 # Native MSVC
14850 libname_spec='$name'
14851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14852 library_names_spec='${libname}.dll.lib'
14853
14854 case $build_os in
14855 mingw*)
14856 sys_lib_search_path_spec=
14857 lt_save_ifs=$IFS
14858 IFS=';'
14859 for lt_path in $LIB
14860 do
14861 IFS=$lt_save_ifs
14862 # Let DOS variable expansion print the short 8.3 style file name.
14863 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14864 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14865 done
14866 IFS=$lt_save_ifs
14867 # Convert to MSYS style.
14868 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14869 ;;
14870 cygwin*)
14871 # Convert to unix form, then to dos form, then back to unix form
14872 # but this time dos style (no spaces!) so that the unix form looks
14873 # like /cygdrive/c/PROGRA~1:/cygdr...
14874 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14875 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14876 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14877 ;;
14878 *)
14879 sys_lib_search_path_spec="$LIB"
14880 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14881 # It is most probably a Windows format PATH.
14882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14883 else
14884 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14885 fi
14886 # FIXME: find the short name or the path components, as spaces are
14887 # common. (e.g. "Program Files" -> "PROGRA~1")
14888 ;;
14889 esac
14890
14891 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14892 postinstall_cmds='base_file=`basename \${file}`~
14893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14894 dldir=$destdir/`dirname \$dlpath`~
14895 test -d \$dldir || mkdir -p \$dldir~
14896 $install_prog $dir/$dlname \$dldir/$dlname'
14897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14898 dlpath=$dir/\$dldll~
14899 $RM \$dlpath'
14900 shlibpath_overrides_runpath=yes
14901 dynamic_linker='Win32 link.exe'
14902 ;;
14903
14904 *)
14905 # Assume MSVC wrapper
14906 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14907 dynamic_linker='Win32 ld.exe'
14908 ;;
14909 esac
14910 # FIXME: first we should search . and the directory the executable is in
14911 shlibpath_var=PATH
14912 ;;
14913
14914 darwin* | rhapsody*)
14915 dynamic_linker="$host_os dyld"
14916 version_type=darwin
14917 need_lib_prefix=no
14918 need_version=no
14919 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14920 soname_spec='${libname}${release}${major}$shared_ext'
14921 shlibpath_overrides_runpath=yes
14922 shlibpath_var=DYLD_LIBRARY_PATH
14923 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14924
14925 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14926 ;;
14927
14928 dgux*)
14929 version_type=linux # correct to gnu/linux during the next big refactor
14930 need_lib_prefix=no
14931 need_version=no
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14934 shlibpath_var=LD_LIBRARY_PATH
14935 ;;
14936
14937 freebsd* | dragonfly*)
14938 # DragonFly does not have aout. When/if they implement a new
14939 # versioning mechanism, adjust this.
14940 if test -x /usr/bin/objformat; then
14941 objformat=`/usr/bin/objformat`
14942 else
14943 case $host_os in
14944 freebsd[23].*) objformat=aout ;;
14945 *) objformat=elf ;;
14946 esac
14947 fi
14948 version_type=freebsd-$objformat
14949 case $version_type in
14950 freebsd-elf*)
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14952 need_version=no
14953 need_lib_prefix=no
14954 ;;
14955 freebsd-*)
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14957 need_version=yes
14958 ;;
14959 esac
14960 shlibpath_var=LD_LIBRARY_PATH
14961 case $host_os in
14962 freebsd2.*)
14963 shlibpath_overrides_runpath=yes
14964 ;;
14965 freebsd3.[01]* | freebsdelf3.[01]*)
14966 shlibpath_overrides_runpath=yes
14967 hardcode_into_libs=yes
14968 ;;
14969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14971 shlibpath_overrides_runpath=no
14972 hardcode_into_libs=yes
14973 ;;
14974 *) # from 4.6 on, and DragonFly
14975 shlibpath_overrides_runpath=yes
14976 hardcode_into_libs=yes
14977 ;;
14978 esac
14979 ;;
14980
14981 haiku*)
14982 version_type=linux # correct to gnu/linux during the next big refactor
14983 need_lib_prefix=no
14984 need_version=no
14985 dynamic_linker="$host_os runtime_loader"
14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14987 soname_spec='${libname}${release}${shared_ext}$major'
14988 shlibpath_var=LIBRARY_PATH
14989 shlibpath_overrides_runpath=yes
14990 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14991 hardcode_into_libs=yes
14992 ;;
14993
14994 hpux9* | hpux10* | hpux11*)
14995 # Give a soname corresponding to the major version so that dld.sl refuses to
14996 # link against other versions.
14997 version_type=sunos
14998 need_lib_prefix=no
14999 need_version=no
15000 case $host_cpu in
15001 ia64*)
15002 shrext_cmds='.so'
15003 hardcode_into_libs=yes
15004 dynamic_linker="$host_os dld.so"
15005 shlibpath_var=LD_LIBRARY_PATH
15006 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15008 soname_spec='${libname}${release}${shared_ext}$major'
15009 if test "X$HPUX_IA64_MODE" = X32; then
15010 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15011 else
15012 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15013 fi
15014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15015 ;;
15016 hppa*64*)
15017 shrext_cmds='.sl'
15018 hardcode_into_libs=yes
15019 dynamic_linker="$host_os dld.sl"
15020 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15026 ;;
15027 *)
15028 shrext_cmds='.sl'
15029 dynamic_linker="$host_os dld.sl"
15030 shlibpath_var=SHLIB_PATH
15031 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15033 soname_spec='${libname}${release}${shared_ext}$major'
15034 ;;
15035 esac
15036 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15037 postinstall_cmds='chmod 555 $lib'
15038 # or fails outright, so override atomically:
15039 install_override_mode=555
15040 ;;
15041
15042 interix[3-9]*)
15043 version_type=linux # correct to gnu/linux during the next big refactor
15044 need_lib_prefix=no
15045 need_version=no
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15047 soname_spec='${libname}${release}${shared_ext}$major'
15048 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15049 shlibpath_var=LD_LIBRARY_PATH
15050 shlibpath_overrides_runpath=no
15051 hardcode_into_libs=yes
15052 ;;
15053
15054 irix5* | irix6* | nonstopux*)
15055 case $host_os in
15056 nonstopux*) version_type=nonstopux ;;
15057 *)
15058 if test "$lt_cv_prog_gnu_ld" = yes; then
15059 version_type=linux # correct to gnu/linux during the next big refactor
15060 else
15061 version_type=irix
15062 fi ;;
15063 esac
15064 need_lib_prefix=no
15065 need_version=no
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15068 case $host_os in
15069 irix5* | nonstopux*)
15070 libsuff= shlibsuff=
15071 ;;
15072 *)
15073 case $LD in # libtool.m4 will add one of these switches to LD
15074 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15075 libsuff= shlibsuff= libmagic=32-bit;;
15076 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15077 libsuff=32 shlibsuff=N32 libmagic=N32;;
15078 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15079 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15080 *) libsuff= shlibsuff= libmagic=never-match;;
15081 esac
15082 ;;
15083 esac
15084 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15085 shlibpath_overrides_runpath=no
15086 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15087 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15088 hardcode_into_libs=yes
15089 ;;
15090
15091 # No shared lib support for Linux oldld, aout, or coff.
15092 linux*oldld* | linux*aout* | linux*coff*)
15093 dynamic_linker=no
15094 ;;
15095
15096 # This must be glibc/ELF.
15097 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15098 version_type=linux # correct to gnu/linux during the next big refactor
15099 need_lib_prefix=no
15100 need_version=no
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15104 shlibpath_var=LD_LIBRARY_PATH
15105 shlibpath_overrides_runpath=no
15106
15107 # Some binutils ld are patched to set DT_RUNPATH
15108 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 lt_cv_shlibpath_overrides_runpath=no
15112 save_LDFLAGS=$LDFLAGS
15113 save_libdir=$libdir
15114 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15115 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118
15119 int
15120 main ()
15121 {
15122
15123 ;
15124 return 0;
15125 }
15126 _ACEOF
15127 if ac_fn_cxx_try_link "$LINENO"; then :
15128 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15129 lt_cv_shlibpath_overrides_runpath=yes
15130 fi
15131 fi
15132 rm -f core conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15134 LDFLAGS=$save_LDFLAGS
15135 libdir=$save_libdir
15136
15137 fi
15138
15139 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15140
15141 # This implies no fast_install, which is unacceptable.
15142 # Some rework will be needed to allow for fast_install
15143 # before this can be enabled.
15144 hardcode_into_libs=yes
15145
15146 # Append ld.so.conf contents to the search path
15147 if test -f /etc/ld.so.conf; then
15148 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' ' '`
15149 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15150 fi
15151
15152 # We used to test for /lib/ld.so.1 and disable shared libraries on
15153 # powerpc, because MkLinux only supported shared libraries with the
15154 # GNU dynamic linker. Since this was broken with cross compilers,
15155 # most powerpc-linux boxes support dynamic linking these days and
15156 # people can always --disable-shared, the test was removed, and we
15157 # assume the GNU/Linux dynamic linker is in use.
15158 dynamic_linker='GNU/Linux ld.so'
15159 ;;
15160
15161 netbsdelf*-gnu)
15162 version_type=linux
15163 need_lib_prefix=no
15164 need_version=no
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15166 soname_spec='${libname}${release}${shared_ext}$major'
15167 shlibpath_var=LD_LIBRARY_PATH
15168 shlibpath_overrides_runpath=no
15169 hardcode_into_libs=yes
15170 dynamic_linker='NetBSD ld.elf_so'
15171 ;;
15172
15173 netbsd*)
15174 version_type=sunos
15175 need_lib_prefix=no
15176 need_version=no
15177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15180 dynamic_linker='NetBSD (a.out) ld.so'
15181 else
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 dynamic_linker='NetBSD ld.elf_so'
15185 fi
15186 shlibpath_var=LD_LIBRARY_PATH
15187 shlibpath_overrides_runpath=yes
15188 hardcode_into_libs=yes
15189 ;;
15190
15191 newsos6)
15192 version_type=linux # correct to gnu/linux during the next big refactor
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 shlibpath_overrides_runpath=yes
15196 ;;
15197
15198 *nto* | *qnx*)
15199 version_type=qnx
15200 need_lib_prefix=no
15201 need_version=no
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 shlibpath_var=LD_LIBRARY_PATH
15205 shlibpath_overrides_runpath=no
15206 hardcode_into_libs=yes
15207 dynamic_linker='ldqnx.so'
15208 ;;
15209
15210 openbsd*)
15211 version_type=sunos
15212 sys_lib_dlsearch_path_spec="/usr/lib"
15213 need_lib_prefix=no
15214 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15215 case $host_os in
15216 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15217 *) need_version=no ;;
15218 esac
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15223 case $host_os in
15224 openbsd2.[89] | openbsd2.[89].*)
15225 shlibpath_overrides_runpath=no
15226 ;;
15227 *)
15228 shlibpath_overrides_runpath=yes
15229 ;;
15230 esac
15231 else
15232 shlibpath_overrides_runpath=yes
15233 fi
15234 ;;
15235
15236 os2*)
15237 libname_spec='$name'
15238 shrext_cmds=".dll"
15239 need_lib_prefix=no
15240 library_names_spec='$libname${shared_ext} $libname.a'
15241 dynamic_linker='OS/2 ld.exe'
15242 shlibpath_var=LIBPATH
15243 ;;
15244
15245 osf3* | osf4* | osf5*)
15246 version_type=osf
15247 need_lib_prefix=no
15248 need_version=no
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251 shlibpath_var=LD_LIBRARY_PATH
15252 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15253 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15254 ;;
15255
15256 rdos*)
15257 dynamic_linker=no
15258 ;;
15259
15260 solaris*)
15261 version_type=linux # correct to gnu/linux during the next big refactor
15262 need_lib_prefix=no
15263 need_version=no
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265 soname_spec='${libname}${release}${shared_ext}$major'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 shlibpath_overrides_runpath=yes
15268 hardcode_into_libs=yes
15269 # ldd complains unless libraries are executable
15270 postinstall_cmds='chmod +x $lib'
15271 ;;
15272
15273 sunos4*)
15274 version_type=sunos
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15276 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15277 shlibpath_var=LD_LIBRARY_PATH
15278 shlibpath_overrides_runpath=yes
15279 if test "$with_gnu_ld" = yes; then
15280 need_lib_prefix=no
15281 fi
15282 need_version=yes
15283 ;;
15284
15285 sysv4 | sysv4.3*)
15286 version_type=linux # correct to gnu/linux during the next big refactor
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 case $host_vendor in
15291 sni)
15292 shlibpath_overrides_runpath=no
15293 need_lib_prefix=no
15294 runpath_var=LD_RUN_PATH
15295 ;;
15296 siemens)
15297 need_lib_prefix=no
15298 ;;
15299 motorola)
15300 need_lib_prefix=no
15301 need_version=no
15302 shlibpath_overrides_runpath=no
15303 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15304 ;;
15305 esac
15306 ;;
15307
15308 sysv4*MP*)
15309 if test -d /usr/nec ;then
15310 version_type=linux # correct to gnu/linux during the next big refactor
15311 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15312 soname_spec='$libname${shared_ext}.$major'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 fi
15315 ;;
15316
15317 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15318 version_type=freebsd-elf
15319 need_lib_prefix=no
15320 need_version=no
15321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 shlibpath_overrides_runpath=yes
15325 hardcode_into_libs=yes
15326 if test "$with_gnu_ld" = yes; then
15327 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15328 else
15329 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15330 case $host_os in
15331 sco3.2v5*)
15332 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15333 ;;
15334 esac
15335 fi
15336 sys_lib_dlsearch_path_spec='/usr/lib'
15337 ;;
15338
15339 tpf*)
15340 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15341 version_type=linux # correct to gnu/linux during the next big refactor
15342 need_lib_prefix=no
15343 need_version=no
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 shlibpath_overrides_runpath=no
15347 hardcode_into_libs=yes
15348 ;;
15349
15350 uts4*)
15351 version_type=linux # correct to gnu/linux during the next big refactor
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 ;;
15356
15357 *)
15358 dynamic_linker=no
15359 ;;
15360 esac
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15362 $as_echo "$dynamic_linker" >&6; }
15363 test "$dynamic_linker" = no && can_build_shared=no
15364
15365 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15366 if test "$GCC" = yes; then
15367 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15368 fi
15369
15370 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15371 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15372 fi
15373 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15374 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15375 fi
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15415 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15416 hardcode_action_CXX=
15417 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15418 test -n "$runpath_var_CXX" ||
15419 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15420
15421 # We can hardcode non-existent directories.
15422 if test "$hardcode_direct_CXX" != no &&
15423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15424 # have to relink, otherwise we might link with an installed library
15425 # when we should be linking with a yet-to-be-installed one
15426 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15427 test "$hardcode_minus_L_CXX" != no; then
15428 # Linking always hardcodes the temporary library directory.
15429 hardcode_action_CXX=relink
15430 else
15431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15432 hardcode_action_CXX=immediate
15433 fi
15434 else
15435 # We cannot hardcode anything, or else we can only hardcode existing
15436 # directories.
15437 hardcode_action_CXX=unsupported
15438 fi
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15440 $as_echo "$hardcode_action_CXX" >&6; }
15441
15442 if test "$hardcode_action_CXX" = relink ||
15443 test "$inherit_rpath_CXX" = yes; then
15444 # Fast installation is not supported
15445 enable_fast_install=no
15446 elif test "$shlibpath_overrides_runpath" = yes ||
15447 test "$enable_shared" = no; then
15448 # Fast installation is not necessary
15449 enable_fast_install=needless
15450 fi
15451
15452
15453
15454
15455
15456
15457
15458 fi # test -n "$compiler"
15459
15460 CC=$lt_save_CC
15461 CFLAGS=$lt_save_CFLAGS
15462 LDCXX=$LD
15463 LD=$lt_save_LD
15464 GCC=$lt_save_GCC
15465 with_gnu_ld=$lt_save_with_gnu_ld
15466 lt_cv_path_LDCXX=$lt_cv_path_LD
15467 lt_cv_path_LD=$lt_save_path_LD
15468 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15469 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15470 fi # test "$_lt_caught_CXX_error" != yes
15471
15472 ac_ext=c
15473 ac_cpp='$CPP $CPPFLAGS'
15474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15477
15478
15479 ac_ext=cpp
15480 ac_cpp='$CXXCPP $CPPFLAGS'
15481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15484
15485
15486 # Create the libtool executable so that we can use it in further tests.
15487 #
15488 : ${CONFIG_LT=./config.lt}
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15490 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
15491 as_write_fail=0
15492 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15493 #! $SHELL
15494 # Generated by $as_me.
15495 # Run this file to recreate a libtool stub with the current configuration.
15496 SHELL=\${CONFIG_SHELL-$SHELL}
15497 export SHELL
15498 _ASEOF
15499 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15500 ## -------------------- ##
15501 ## M4sh Initialization. ##
15502 ## -------------------- ##
15503
15504 # Be more Bourne compatible
15505 DUALCASE=1; export DUALCASE # for MKS sh
15506 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15507 emulate sh
15508 NULLCMD=:
15509 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15510 # is contrary to our usage. Disable this feature.
15511 alias -g '${1+"$@"}'='"$@"'
15512 setopt NO_GLOB_SUBST
15513 else
15514 case `(set -o) 2>/dev/null` in #(
15515 *posix*) :
15516 set -o posix ;; #(
15517 *) :
15518 ;;
15519 esac
15520 fi
15521
15522
15523 as_nl='
15524 '
15525 export as_nl
15526 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15527 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15530 # Prefer a ksh shell builtin over an external printf program on Solaris,
15531 # but without wasting forks for bash or zsh.
15532 if test -z "$BASH_VERSION$ZSH_VERSION" \
15533 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15534 as_echo='print -r --'
15535 as_echo_n='print -rn --'
15536 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15537 as_echo='printf %s\n'
15538 as_echo_n='printf %s'
15539 else
15540 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15541 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15542 as_echo_n='/usr/ucb/echo -n'
15543 else
15544 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15545 as_echo_n_body='eval
15546 arg=$1;
15547 case $arg in #(
15548 *"$as_nl"*)
15549 expr "X$arg" : "X\\(.*\\)$as_nl";
15550 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15551 esac;
15552 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15553 '
15554 export as_echo_n_body
15555 as_echo_n='sh -c $as_echo_n_body as_echo'
15556 fi
15557 export as_echo_body
15558 as_echo='sh -c $as_echo_body as_echo'
15559 fi
15560
15561 # The user is always right.
15562 if test "${PATH_SEPARATOR+set}" != set; then
15563 PATH_SEPARATOR=:
15564 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15565 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15566 PATH_SEPARATOR=';'
15567 }
15568 fi
15569
15570
15571 # IFS
15572 # We need space, tab and new line, in precisely that order. Quoting is
15573 # there to prevent editors from complaining about space-tab.
15574 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15575 # splitting by setting IFS to empty value.)
15576 IFS=" "" $as_nl"
15577
15578 # Find who we are. Look in the path if we contain no directory separator.
15579 as_myself=
15580 case $0 in #((
15581 *[\\/]* ) as_myself=$0 ;;
15582 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15583 for as_dir in $PATH
15584 do
15585 IFS=$as_save_IFS
15586 test -z "$as_dir" && as_dir=.
15587 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15588 done
15589 IFS=$as_save_IFS
15590
15591 ;;
15592 esac
15593 # We did not find ourselves, most probably we were run as `sh COMMAND'
15594 # in which case we are not to be found in the path.
15595 if test "x$as_myself" = x; then
15596 as_myself=$0
15597 fi
15598 if test ! -f "$as_myself"; then
15599 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15600 exit 1
15601 fi
15602
15603 # Unset variables that we do not need and which cause bugs (e.g. in
15604 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15605 # suppresses any "Segmentation fault" message there. '((' could
15606 # trigger a bug in pdksh 5.2.14.
15607 for as_var in BASH_ENV ENV MAIL MAILPATH
15608 do eval test x\${$as_var+set} = xset \
15609 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15610 done
15611 PS1='$ '
15612 PS2='> '
15613 PS4='+ '
15614
15615 # NLS nuisances.
15616 LC_ALL=C
15617 export LC_ALL
15618 LANGUAGE=C
15619 export LANGUAGE
15620
15621 # CDPATH.
15622 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15623
15624
15625 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15626 # ----------------------------------------
15627 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15628 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15629 # script with STATUS, using 1 if that was 0.
15630 as_fn_error ()
15631 {
15632 as_status=$1; test $as_status -eq 0 && as_status=1
15633 if test "$4"; then
15634 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15635 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15636 fi
15637 $as_echo "$as_me: error: $2" >&2
15638 as_fn_exit $as_status
15639 } # as_fn_error
15640
15641
15642 # as_fn_set_status STATUS
15643 # -----------------------
15644 # Set $? to STATUS, without forking.
15645 as_fn_set_status ()
15646 {
15647 return $1
15648 } # as_fn_set_status
15649
15650 # as_fn_exit STATUS
15651 # -----------------
15652 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15653 as_fn_exit ()
15654 {
15655 set +e
15656 as_fn_set_status $1
15657 exit $1
15658 } # as_fn_exit
15659
15660 # as_fn_unset VAR
15661 # ---------------
15662 # Portably unset VAR.
15663 as_fn_unset ()
15664 {
15665 { eval $1=; unset $1;}
15666 }
15667 as_unset=as_fn_unset
15668 # as_fn_append VAR VALUE
15669 # ----------------------
15670 # Append the text in VALUE to the end of the definition contained in VAR. Take
15671 # advantage of any shell optimizations that allow amortized linear growth over
15672 # repeated appends, instead of the typical quadratic growth present in naive
15673 # implementations.
15674 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15675 eval 'as_fn_append ()
15676 {
15677 eval $1+=\$2
15678 }'
15679 else
15680 as_fn_append ()
15681 {
15682 eval $1=\$$1\$2
15683 }
15684 fi # as_fn_append
15685
15686 # as_fn_arith ARG...
15687 # ------------------
15688 # Perform arithmetic evaluation on the ARGs, and store the result in the
15689 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15690 # must be portable across $(()) and expr.
15691 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15692 eval 'as_fn_arith ()
15693 {
15694 as_val=$(( $* ))
15695 }'
15696 else
15697 as_fn_arith ()
15698 {
15699 as_val=`expr "$@" || test $? -eq 1`
15700 }
15701 fi # as_fn_arith
15702
15703
15704 if expr a : '\(a\)' >/dev/null 2>&1 &&
15705 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15706 as_expr=expr
15707 else
15708 as_expr=false
15709 fi
15710
15711 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15712 as_basename=basename
15713 else
15714 as_basename=false
15715 fi
15716
15717 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15718 as_dirname=dirname
15719 else
15720 as_dirname=false
15721 fi
15722
15723 as_me=`$as_basename -- "$0" ||
15724 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15725 X"$0" : 'X\(//\)$' \| \
15726 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15727 $as_echo X/"$0" |
15728 sed '/^.*\/\([^/][^/]*\)\/*$/{
15729 s//\1/
15730 q
15731 }
15732 /^X\/\(\/\/\)$/{
15733 s//\1/
15734 q
15735 }
15736 /^X\/\(\/\).*/{
15737 s//\1/
15738 q
15739 }
15740 s/.*/./; q'`
15741
15742 # Avoid depending upon Character Ranges.
15743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15746 as_cr_digits='0123456789'
15747 as_cr_alnum=$as_cr_Letters$as_cr_digits
15748
15749 ECHO_C= ECHO_N= ECHO_T=
15750 case `echo -n x` in #(((((
15751 -n*)
15752 case `echo 'xy\c'` in
15753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15754 xy) ECHO_C='\c';;
15755 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15756 ECHO_T=' ';;
15757 esac;;
15758 *)
15759 ECHO_N='-n';;
15760 esac
15761
15762 rm -f conf$$ conf$$.exe conf$$.file
15763 if test -d conf$$.dir; then
15764 rm -f conf$$.dir/conf$$.file
15765 else
15766 rm -f conf$$.dir
15767 mkdir conf$$.dir 2>/dev/null
15768 fi
15769 if (echo >conf$$.file) 2>/dev/null; then
15770 if ln -s conf$$.file conf$$ 2>/dev/null; then
15771 as_ln_s='ln -s'
15772 # ... but there are two gotchas:
15773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15775 # In both cases, we have to default to `cp -pR'.
15776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15777 as_ln_s='cp -pR'
15778 elif ln conf$$.file conf$$ 2>/dev/null; then
15779 as_ln_s=ln
15780 else
15781 as_ln_s='cp -pR'
15782 fi
15783 else
15784 as_ln_s='cp -pR'
15785 fi
15786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15787 rmdir conf$$.dir 2>/dev/null
15788
15789
15790 # as_fn_mkdir_p
15791 # -------------
15792 # Create "$as_dir" as a directory, including parents if necessary.
15793 as_fn_mkdir_p ()
15794 {
15795
15796 case $as_dir in #(
15797 -*) as_dir=./$as_dir;;
15798 esac
15799 test -d "$as_dir" || eval $as_mkdir_p || {
15800 as_dirs=
15801 while :; do
15802 case $as_dir in #(
15803 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15804 *) as_qdir=$as_dir;;
15805 esac
15806 as_dirs="'$as_qdir' $as_dirs"
15807 as_dir=`$as_dirname -- "$as_dir" ||
15808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15809 X"$as_dir" : 'X\(//\)[^/]' \| \
15810 X"$as_dir" : 'X\(//\)$' \| \
15811 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15812 $as_echo X"$as_dir" |
15813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15814 s//\1/
15815 q
15816 }
15817 /^X\(\/\/\)[^/].*/{
15818 s//\1/
15819 q
15820 }
15821 /^X\(\/\/\)$/{
15822 s//\1/
15823 q
15824 }
15825 /^X\(\/\).*/{
15826 s//\1/
15827 q
15828 }
15829 s/.*/./; q'`
15830 test -d "$as_dir" && break
15831 done
15832 test -z "$as_dirs" || eval "mkdir $as_dirs"
15833 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15834
15835
15836 } # as_fn_mkdir_p
15837 if mkdir -p . 2>/dev/null; then
15838 as_mkdir_p='mkdir -p "$as_dir"'
15839 else
15840 test -d ./-p && rmdir ./-p
15841 as_mkdir_p=false
15842 fi
15843
15844
15845 # as_fn_executable_p FILE
15846 # -----------------------
15847 # Test if FILE is an executable regular file.
15848 as_fn_executable_p ()
15849 {
15850 test -f "$1" && test -x "$1"
15851 } # as_fn_executable_p
15852 as_test_x='test -x'
15853 as_executable_p=as_fn_executable_p
15854
15855 # Sed expression to map a string onto a valid CPP name.
15856 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15857
15858 # Sed expression to map a string onto a valid variable name.
15859 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15860
15861
15862 exec 6>&1
15863 ## --------------------------------- ##
15864 ## Main body of "$CONFIG_LT" script. ##
15865 ## --------------------------------- ##
15866 _ASEOF
15867 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15868
15869 cat >>"$CONFIG_LT" <<\_LTEOF
15870 lt_cl_silent=false
15871 exec 5>>config.log
15872 {
15873 echo
15874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15875 ## Running $as_me. ##
15876 _ASBOX
15877 } >&5
15878
15879 lt_cl_help="\
15880 \`$as_me' creates a local libtool stub from the current configuration,
15881 for use in further configure time tests before the real libtool is
15882 generated.
15883
15884 Usage: $0 [OPTIONS]
15885
15886 -h, --help print this help, then exit
15887 -V, --version print version number, then exit
15888 -q, --quiet do not print progress messages
15889 -d, --debug don't remove temporary files
15890
15891 Report bugs to <[email protected]>."
15892
15893 lt_cl_version="\
15894 libodb-boost config.lt 2.4.0
15895 configured by $0, generated by GNU Autoconf 2.69.
15896
15897 Copyright (C) 2011 Free Software Foundation, Inc.
15898 This config.lt script is free software; the Free Software Foundation
15899 gives unlimited permision to copy, distribute and modify it."
15900
15901 while test $# != 0
15902 do
15903 case $1 in
15904 --version | --v* | -V )
15905 echo "$lt_cl_version"; exit 0 ;;
15906 --help | --h* | -h )
15907 echo "$lt_cl_help"; exit 0 ;;
15908 --debug | --d* | -d )
15909 debug=: ;;
15910 --quiet | --q* | --silent | --s* | -q )
15911 lt_cl_silent=: ;;
15912
15913 -*) as_fn_error $? "unrecognized option: $1
15914 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15915
15916 *) as_fn_error $? "unrecognized argument: $1
15917 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15918 esac
15919 shift
15920 done
15921
15922 if $lt_cl_silent; then
15923 exec 6>/dev/null
15924 fi
15925 _LTEOF
15926
15927 cat >>"$CONFIG_LT" <<_LTEOF
15928
15929
15930 # The HP-UX ksh and POSIX shell print the target directory to stdout
15931 # if CDPATH is set.
15932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15933
15934 sed_quote_subst='$sed_quote_subst'
15935 double_quote_subst='$double_quote_subst'
15936 delay_variable_subst='$delay_variable_subst'
15937 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15938 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15939 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15940 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15941 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15942 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15943 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15944 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15945 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15946 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15947 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15948 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15949 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15950 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15951 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15952 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15953 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15954 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15955 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15956 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15957 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15958 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15959 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15960 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15961 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15962 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15963 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15964 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15965 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15966 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15967 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15968 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15969 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15970 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15971 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15972 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15973 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15974 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15975 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15976 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15977 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15978 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15979 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15980 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15981 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15982 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15983 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15984 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15985 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15986 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15987 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15988 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15989 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15990 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15991 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15992 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15993 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15994 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"`'
15995 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15996 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15997 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15998 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15999 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16000 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16001 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16002 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16003 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16004 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16005 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16006 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16007 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16008 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16009 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16010 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16011 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16012 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16013 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16014 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16015 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16016 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16017 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16018 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16019 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16020 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16021 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16022 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16023 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16024 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16025 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16026 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16027 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16028 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16029 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16030 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16031 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16032 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16033 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16034 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16035 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16036 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16037 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16038 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16039 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16040 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16041 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16042 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16043 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16044 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16045 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16046 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16047 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16048 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16049 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16050 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16051 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16052 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16053 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16054 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16055 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16056 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16057 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16058 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16059 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16060 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16061 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16062 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16063 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16064 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16065 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16066 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16067 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16068 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16069 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16070 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16071 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16072 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16073 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16074 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16075 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16076 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16077 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16078 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16079 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16080 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16081 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16082 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16083 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16084 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16085 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16086 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16087 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16088 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16089 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16090 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16091 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16092 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16093 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16094 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16095 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16096 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16097 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16098 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16099 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16100 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16101 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16102 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16103 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16104 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16105 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16106 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16107 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16108 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16109 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16110 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16111 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16112 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16113 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16114 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16115 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16116 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16117 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16118 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16119 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16120 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16121 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16122
16123 LTCC='$LTCC'
16124 LTCFLAGS='$LTCFLAGS'
16125 compiler='$compiler_DEFAULT'
16126
16127 # A function that is used when there is no print builtin or printf.
16128 func_fallback_echo ()
16129 {
16130 eval 'cat <<_LTECHO_EOF
16131 \$1
16132 _LTECHO_EOF'
16133 }
16134
16135 # Quote evaled strings.
16136 for var in AS \
16137 DLLTOOL \
16138 OBJDUMP \
16139 SHELL \
16140 ECHO \
16141 PATH_SEPARATOR \
16142 SED \
16143 GREP \
16144 EGREP \
16145 FGREP \
16146 LD \
16147 NM \
16148 LN_S \
16149 lt_SP2NL \
16150 lt_NL2SP \
16151 reload_flag \
16152 deplibs_check_method \
16153 file_magic_cmd \
16154 file_magic_glob \
16155 want_nocaseglob \
16156 sharedlib_from_linklib_cmd \
16157 AR \
16158 AR_FLAGS \
16159 archiver_list_spec \
16160 STRIP \
16161 RANLIB \
16162 CC \
16163 CFLAGS \
16164 compiler \
16165 lt_cv_sys_global_symbol_pipe \
16166 lt_cv_sys_global_symbol_to_cdecl \
16167 lt_cv_sys_global_symbol_to_c_name_address \
16168 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16169 nm_file_list_spec \
16170 lt_prog_compiler_no_builtin_flag \
16171 lt_prog_compiler_pic \
16172 lt_prog_compiler_wl \
16173 lt_prog_compiler_static \
16174 lt_cv_prog_compiler_c_o \
16175 need_locks \
16176 MANIFEST_TOOL \
16177 DSYMUTIL \
16178 NMEDIT \
16179 LIPO \
16180 OTOOL \
16181 OTOOL64 \
16182 shrext_cmds \
16183 export_dynamic_flag_spec \
16184 whole_archive_flag_spec \
16185 compiler_needs_object \
16186 with_gnu_ld \
16187 allow_undefined_flag \
16188 no_undefined_flag \
16189 hardcode_libdir_flag_spec \
16190 hardcode_libdir_separator \
16191 exclude_expsyms \
16192 include_expsyms \
16193 file_list_spec \
16194 variables_saved_for_relink \
16195 libname_spec \
16196 library_names_spec \
16197 soname_spec \
16198 install_override_mode \
16199 finish_eval \
16200 old_striplib \
16201 striplib \
16202 compiler_lib_search_dirs \
16203 predep_objects \
16204 postdep_objects \
16205 predeps \
16206 postdeps \
16207 compiler_lib_search_path \
16208 LD_CXX \
16209 reload_flag_CXX \
16210 compiler_CXX \
16211 lt_prog_compiler_no_builtin_flag_CXX \
16212 lt_prog_compiler_pic_CXX \
16213 lt_prog_compiler_wl_CXX \
16214 lt_prog_compiler_static_CXX \
16215 lt_cv_prog_compiler_c_o_CXX \
16216 export_dynamic_flag_spec_CXX \
16217 whole_archive_flag_spec_CXX \
16218 compiler_needs_object_CXX \
16219 with_gnu_ld_CXX \
16220 allow_undefined_flag_CXX \
16221 no_undefined_flag_CXX \
16222 hardcode_libdir_flag_spec_CXX \
16223 hardcode_libdir_separator_CXX \
16224 exclude_expsyms_CXX \
16225 include_expsyms_CXX \
16226 file_list_spec_CXX \
16227 compiler_lib_search_dirs_CXX \
16228 predep_objects_CXX \
16229 postdep_objects_CXX \
16230 predeps_CXX \
16231 postdeps_CXX \
16232 compiler_lib_search_path_CXX; do
16233 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16234 *[\\\\\\\`\\"\\\$]*)
16235 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16236 ;;
16237 *)
16238 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16239 ;;
16240 esac
16241 done
16242
16243 # Double-quote double-evaled strings.
16244 for var in reload_cmds \
16245 old_postinstall_cmds \
16246 old_postuninstall_cmds \
16247 old_archive_cmds \
16248 extract_expsyms_cmds \
16249 old_archive_from_new_cmds \
16250 old_archive_from_expsyms_cmds \
16251 archive_cmds \
16252 archive_expsym_cmds \
16253 module_cmds \
16254 module_expsym_cmds \
16255 export_symbols_cmds \
16256 prelink_cmds \
16257 postlink_cmds \
16258 postinstall_cmds \
16259 postuninstall_cmds \
16260 finish_cmds \
16261 sys_lib_search_path_spec \
16262 sys_lib_dlsearch_path_spec \
16263 reload_cmds_CXX \
16264 old_archive_cmds_CXX \
16265 old_archive_from_new_cmds_CXX \
16266 old_archive_from_expsyms_cmds_CXX \
16267 archive_cmds_CXX \
16268 archive_expsym_cmds_CXX \
16269 module_cmds_CXX \
16270 module_expsym_cmds_CXX \
16271 export_symbols_cmds_CXX \
16272 prelink_cmds_CXX \
16273 postlink_cmds_CXX; do
16274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16275 *[\\\\\\\`\\"\\\$]*)
16276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16277 ;;
16278 *)
16279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16280 ;;
16281 esac
16282 done
16283
16284 ac_aux_dir='$ac_aux_dir'
16285 xsi_shell='$xsi_shell'
16286 lt_shell_append='$lt_shell_append'
16287
16288 # See if we are running on zsh, and set the options which allow our
16289 # commands through without removal of \ escapes INIT.
16290 if test -n "\${ZSH_VERSION+set}" ; then
16291 setopt NO_GLOB_SUBST
16292 fi
16293
16294
16295 PACKAGE='$PACKAGE'
16296 VERSION='$VERSION'
16297 TIMESTAMP='$TIMESTAMP'
16298 RM='$RM'
16299 ofile='$ofile'
16300
16301
16302
16303
16304
16305 _LTEOF
16306
16307 cat >>"$CONFIG_LT" <<\_LTEOF
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16309 $as_echo "$as_me: creating $ofile" >&6;}
16310
16311
16312 # See if we are running on zsh, and set the options which allow our
16313 # commands through without removal of \ escapes.
16314 if test -n "${ZSH_VERSION+set}" ; then
16315 setopt NO_GLOB_SUBST
16316 fi
16317
16318 cfgfile="${ofile}T"
16319 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16320 $RM "$cfgfile"
16321
16322 cat <<_LT_EOF >> "$cfgfile"
16323 #! $SHELL
16324
16325 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16326 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16327 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16328 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16329 #
16330 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16331 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16332 # Foundation, Inc.
16333 # Written by Gordon Matzigkeit, 1996
16334 #
16335 # This file is part of GNU Libtool.
16336 #
16337 # GNU Libtool is free software; you can redistribute it and/or
16338 # modify it under the terms of the GNU General Public License as
16339 # published by the Free Software Foundation; either version 2 of
16340 # the License, or (at your option) any later version.
16341 #
16342 # As a special exception to the GNU General Public License,
16343 # if you distribute this file as part of a program or library that
16344 # is built using GNU Libtool, you may include this file under the
16345 # same distribution terms that you use for the rest of that program.
16346 #
16347 # GNU Libtool is distributed in the hope that it will be useful,
16348 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16349 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16350 # GNU General Public License for more details.
16351 #
16352 # You should have received a copy of the GNU General Public License
16353 # along with GNU Libtool; see the file COPYING. If not, a copy
16354 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16355 # obtained by writing to the Free Software Foundation, Inc.,
16356 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16357
16358
16359 # The names of the tagged configurations supported by this script.
16360 available_tags="CXX "
16361
16362 # ### BEGIN LIBTOOL CONFIG
16363
16364 # Which release of libtool.m4 was used?
16365 macro_version=$macro_version
16366 macro_revision=$macro_revision
16367
16368 # Assembler program.
16369 AS=$lt_AS
16370
16371 # DLL creation program.
16372 DLLTOOL=$lt_DLLTOOL
16373
16374 # Object dumper program.
16375 OBJDUMP=$lt_OBJDUMP
16376
16377 # Whether or not to build shared libraries.
16378 build_libtool_libs=$enable_shared
16379
16380 # Whether or not to build static libraries.
16381 build_old_libs=$enable_static
16382
16383 # What type of objects to build.
16384 pic_mode=$pic_mode
16385
16386 # Whether or not to optimize for fast installation.
16387 fast_install=$enable_fast_install
16388
16389 # Shell to use when invoking shell scripts.
16390 SHELL=$lt_SHELL
16391
16392 # An echo program that protects backslashes.
16393 ECHO=$lt_ECHO
16394
16395 # The PATH separator for the build system.
16396 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16397
16398 # The host system.
16399 host_alias=$host_alias
16400 host=$host
16401 host_os=$host_os
16402
16403 # The build system.
16404 build_alias=$build_alias
16405 build=$build
16406 build_os=$build_os
16407
16408 # A sed program that does not truncate output.
16409 SED=$lt_SED
16410
16411 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16412 Xsed="\$SED -e 1s/^X//"
16413
16414 # A grep program that handles long lines.
16415 GREP=$lt_GREP
16416
16417 # An ERE matcher.
16418 EGREP=$lt_EGREP
16419
16420 # A literal string matcher.
16421 FGREP=$lt_FGREP
16422
16423 # A BSD- or MS-compatible name lister.
16424 NM=$lt_NM
16425
16426 # Whether we need soft or hard links.
16427 LN_S=$lt_LN_S
16428
16429 # What is the maximum length of a command?
16430 max_cmd_len=$max_cmd_len
16431
16432 # Object file suffix (normally "o").
16433 objext=$ac_objext
16434
16435 # Executable file suffix (normally "").
16436 exeext=$exeext
16437
16438 # whether the shell understands "unset".
16439 lt_unset=$lt_unset
16440
16441 # turn spaces into newlines.
16442 SP2NL=$lt_lt_SP2NL
16443
16444 # turn newlines into spaces.
16445 NL2SP=$lt_lt_NL2SP
16446
16447 # convert \$build file names to \$host format.
16448 to_host_file_cmd=$lt_cv_to_host_file_cmd
16449
16450 # convert \$build files to toolchain format.
16451 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16452
16453 # Method to check whether dependent libraries are shared objects.
16454 deplibs_check_method=$lt_deplibs_check_method
16455
16456 # Command to use when deplibs_check_method = "file_magic".
16457 file_magic_cmd=$lt_file_magic_cmd
16458
16459 # How to find potential files when deplibs_check_method = "file_magic".
16460 file_magic_glob=$lt_file_magic_glob
16461
16462 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16463 want_nocaseglob=$lt_want_nocaseglob
16464
16465 # Command to associate shared and link libraries.
16466 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16467
16468 # The archiver.
16469 AR=$lt_AR
16470
16471 # Flags to create an archive.
16472 AR_FLAGS=$lt_AR_FLAGS
16473
16474 # How to feed a file listing to the archiver.
16475 archiver_list_spec=$lt_archiver_list_spec
16476
16477 # A symbol stripping program.
16478 STRIP=$lt_STRIP
16479
16480 # Commands used to install an old-style archive.
16481 RANLIB=$lt_RANLIB
16482 old_postinstall_cmds=$lt_old_postinstall_cmds
16483 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16484
16485 # Whether to use a lock for old archive extraction.
16486 lock_old_archive_extraction=$lock_old_archive_extraction
16487
16488 # A C compiler.
16489 LTCC=$lt_CC
16490
16491 # LTCC compiler flags.
16492 LTCFLAGS=$lt_CFLAGS
16493
16494 # Take the output of nm and produce a listing of raw symbols and C names.
16495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16496
16497 # Transform the output of nm in a proper C declaration.
16498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16499
16500 # Transform the output of nm in a C name address pair.
16501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16502
16503 # Transform the output of nm in a C name address pair when lib prefix is needed.
16504 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16505
16506 # Specify filename containing input files for \$NM.
16507 nm_file_list_spec=$lt_nm_file_list_spec
16508
16509 # The root where to search for dependent libraries,and in which our libraries should be installed.
16510 lt_sysroot=$lt_sysroot
16511
16512 # The name of the directory that contains temporary libtool files.
16513 objdir=$objdir
16514
16515 # Used to examine libraries when file_magic_cmd begins with "file".
16516 MAGIC_CMD=$MAGIC_CMD
16517
16518 # Must we lock files when doing compilation?
16519 need_locks=$lt_need_locks
16520
16521 # Manifest tool.
16522 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16523
16524 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16525 DSYMUTIL=$lt_DSYMUTIL
16526
16527 # Tool to change global to local symbols on Mac OS X.
16528 NMEDIT=$lt_NMEDIT
16529
16530 # Tool to manipulate fat objects and archives on Mac OS X.
16531 LIPO=$lt_LIPO
16532
16533 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16534 OTOOL=$lt_OTOOL
16535
16536 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16537 OTOOL64=$lt_OTOOL64
16538
16539 # Old archive suffix (normally "a").
16540 libext=$libext
16541
16542 # Shared library suffix (normally ".so").
16543 shrext_cmds=$lt_shrext_cmds
16544
16545 # The commands to extract the exported symbol list from a shared archive.
16546 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16547
16548 # Variables whose values should be saved in libtool wrapper scripts and
16549 # restored at link time.
16550 variables_saved_for_relink=$lt_variables_saved_for_relink
16551
16552 # Do we need the "lib" prefix for modules?
16553 need_lib_prefix=$need_lib_prefix
16554
16555 # Do we need a version for libraries?
16556 need_version=$need_version
16557
16558 # Library versioning type.
16559 version_type=$version_type
16560
16561 # Shared library runtime path variable.
16562 runpath_var=$runpath_var
16563
16564 # Shared library path variable.
16565 shlibpath_var=$shlibpath_var
16566
16567 # Is shlibpath searched before the hard-coded library search path?
16568 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16569
16570 # Format of library name prefix.
16571 libname_spec=$lt_libname_spec
16572
16573 # List of archive names. First name is the real one, the rest are links.
16574 # The last name is the one that the linker finds with -lNAME
16575 library_names_spec=$lt_library_names_spec
16576
16577 # The coded name of the library, if different from the real name.
16578 soname_spec=$lt_soname_spec
16579
16580 # Permission mode override for installation of shared libraries.
16581 install_override_mode=$lt_install_override_mode
16582
16583 # Command to use after installation of a shared archive.
16584 postinstall_cmds=$lt_postinstall_cmds
16585
16586 # Command to use after uninstallation of a shared archive.
16587 postuninstall_cmds=$lt_postuninstall_cmds
16588
16589 # Commands used to finish a libtool library installation in a directory.
16590 finish_cmds=$lt_finish_cmds
16591
16592 # As "finish_cmds", except a single script fragment to be evaled but
16593 # not shown.
16594 finish_eval=$lt_finish_eval
16595
16596 # Whether we should hardcode library paths into libraries.
16597 hardcode_into_libs=$hardcode_into_libs
16598
16599 # Compile-time system search path for libraries.
16600 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16601
16602 # Run-time system search path for libraries.
16603 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16604
16605 # Whether dlopen is supported.
16606 dlopen_support=$enable_dlopen
16607
16608 # Whether dlopen of programs is supported.
16609 dlopen_self=$enable_dlopen_self
16610
16611 # Whether dlopen of statically linked programs is supported.
16612 dlopen_self_static=$enable_dlopen_self_static
16613
16614 # Commands to strip libraries.
16615 old_striplib=$lt_old_striplib
16616 striplib=$lt_striplib
16617
16618
16619 # The linker used to build libraries.
16620 LD=$lt_LD
16621
16622 # How to create reloadable object files.
16623 reload_flag=$lt_reload_flag
16624 reload_cmds=$lt_reload_cmds
16625
16626 # Commands used to build an old-style archive.
16627 old_archive_cmds=$lt_old_archive_cmds
16628
16629 # A language specific compiler.
16630 CC=$lt_compiler
16631
16632 # Is the compiler the GNU compiler?
16633 with_gcc=$GCC
16634
16635 # Compiler flag to turn off builtin functions.
16636 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16637
16638 # Additional compiler flags for building library objects.
16639 pic_flag=$lt_lt_prog_compiler_pic
16640
16641 # How to pass a linker flag through the compiler.
16642 wl=$lt_lt_prog_compiler_wl
16643
16644 # Compiler flag to prevent dynamic linking.
16645 link_static_flag=$lt_lt_prog_compiler_static
16646
16647 # Does compiler simultaneously support -c and -o options?
16648 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16649
16650 # Whether or not to add -lc for building shared libraries.
16651 build_libtool_need_lc=$archive_cmds_need_lc
16652
16653 # Whether or not to disallow shared libs when runtime libs are static.
16654 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16655
16656 # Compiler flag to allow reflexive dlopens.
16657 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16658
16659 # Compiler flag to generate shared objects directly from archives.
16660 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16661
16662 # Whether the compiler copes with passing no objects directly.
16663 compiler_needs_object=$lt_compiler_needs_object
16664
16665 # Create an old-style archive from a shared archive.
16666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16667
16668 # Create a temporary old-style archive to link instead of a shared archive.
16669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16670
16671 # Commands used to build a shared archive.
16672 archive_cmds=$lt_archive_cmds
16673 archive_expsym_cmds=$lt_archive_expsym_cmds
16674
16675 # Commands used to build a loadable module if different from building
16676 # a shared archive.
16677 module_cmds=$lt_module_cmds
16678 module_expsym_cmds=$lt_module_expsym_cmds
16679
16680 # Whether we are building with GNU ld or not.
16681 with_gnu_ld=$lt_with_gnu_ld
16682
16683 # Flag that allows shared libraries with undefined symbols to be built.
16684 allow_undefined_flag=$lt_allow_undefined_flag
16685
16686 # Flag that enforces no undefined symbols.
16687 no_undefined_flag=$lt_no_undefined_flag
16688
16689 # Flag to hardcode \$libdir into a binary during linking.
16690 # This must work even if \$libdir does not exist
16691 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16692
16693 # Whether we need a single "-rpath" flag with a separated argument.
16694 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16695
16696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16697 # DIR into the resulting binary.
16698 hardcode_direct=$hardcode_direct
16699
16700 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16701 # DIR into the resulting binary and the resulting library dependency is
16702 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16703 # library is relocated.
16704 hardcode_direct_absolute=$hardcode_direct_absolute
16705
16706 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16707 # into the resulting binary.
16708 hardcode_minus_L=$hardcode_minus_L
16709
16710 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16711 # into the resulting binary.
16712 hardcode_shlibpath_var=$hardcode_shlibpath_var
16713
16714 # Set to "yes" if building a shared library automatically hardcodes DIR
16715 # into the library and all subsequent libraries and executables linked
16716 # against it.
16717 hardcode_automatic=$hardcode_automatic
16718
16719 # Set to yes if linker adds runtime paths of dependent libraries
16720 # to runtime path list.
16721 inherit_rpath=$inherit_rpath
16722
16723 # Whether libtool must link a program against all its dependency libraries.
16724 link_all_deplibs=$link_all_deplibs
16725
16726 # Set to "yes" if exported symbols are required.
16727 always_export_symbols=$always_export_symbols
16728
16729 # The commands to list exported symbols.
16730 export_symbols_cmds=$lt_export_symbols_cmds
16731
16732 # Symbols that should not be listed in the preloaded symbols.
16733 exclude_expsyms=$lt_exclude_expsyms
16734
16735 # Symbols that must always be exported.
16736 include_expsyms=$lt_include_expsyms
16737
16738 # Commands necessary for linking programs (against libraries) with templates.
16739 prelink_cmds=$lt_prelink_cmds
16740
16741 # Commands necessary for finishing linking programs.
16742 postlink_cmds=$lt_postlink_cmds
16743
16744 # Specify filename containing input files.
16745 file_list_spec=$lt_file_list_spec
16746
16747 # How to hardcode a shared library path into an executable.
16748 hardcode_action=$hardcode_action
16749
16750 # The directories searched by this compiler when creating a shared library.
16751 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16752
16753 # Dependencies to place before and after the objects being linked to
16754 # create a shared library.
16755 predep_objects=$lt_predep_objects
16756 postdep_objects=$lt_postdep_objects
16757 predeps=$lt_predeps
16758 postdeps=$lt_postdeps
16759
16760 # The library search path used internally by the compiler when linking
16761 # a shared library.
16762 compiler_lib_search_path=$lt_compiler_lib_search_path
16763
16764 # ### END LIBTOOL CONFIG
16765
16766 _LT_EOF
16767
16768 case $host_os in
16769 aix3*)
16770 cat <<\_LT_EOF >> "$cfgfile"
16771 # AIX sometimes has problems with the GCC collect2 program. For some
16772 # reason, if we set the COLLECT_NAMES environment variable, the problems
16773 # vanish in a puff of smoke.
16774 if test "X${COLLECT_NAMES+set}" != Xset; then
16775 COLLECT_NAMES=
16776 export COLLECT_NAMES
16777 fi
16778 _LT_EOF
16779 ;;
16780 esac
16781
16782
16783 ltmain="$ac_aux_dir/ltmain.sh"
16784
16785
16786 # We use sed instead of cat because bash on DJGPP gets confused if
16787 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16788 # text mode, it properly converts lines to CR/LF. This bash problem
16789 # is reportedly fixed, but why not run on old versions too?
16790 sed '$q' "$ltmain" >> "$cfgfile" \
16791 || (rm -f "$cfgfile"; exit 1)
16792
16793 if test x"$xsi_shell" = xyes; then
16794 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16795 func_dirname ()\
16796 {\
16797 \ case ${1} in\
16798 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16799 \ * ) func_dirname_result="${3}" ;;\
16800 \ esac\
16801 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16802 && mv -f "$cfgfile.tmp" "$cfgfile" \
16803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16804 test 0 -eq $? || _lt_function_replace_fail=:
16805
16806
16807 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16808 func_basename ()\
16809 {\
16810 \ func_basename_result="${1##*/}"\
16811 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16812 && mv -f "$cfgfile.tmp" "$cfgfile" \
16813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16814 test 0 -eq $? || _lt_function_replace_fail=:
16815
16816
16817 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16818 func_dirname_and_basename ()\
16819 {\
16820 \ case ${1} in\
16821 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16822 \ * ) func_dirname_result="${3}" ;;\
16823 \ esac\
16824 \ func_basename_result="${1##*/}"\
16825 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16826 && mv -f "$cfgfile.tmp" "$cfgfile" \
16827 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16828 test 0 -eq $? || _lt_function_replace_fail=:
16829
16830
16831 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16832 func_stripname ()\
16833 {\
16834 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16835 \ # positional parameters, so assign one to ordinary parameter first.\
16836 \ func_stripname_result=${3}\
16837 \ func_stripname_result=${func_stripname_result#"${1}"}\
16838 \ func_stripname_result=${func_stripname_result%"${2}"}\
16839 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16840 && mv -f "$cfgfile.tmp" "$cfgfile" \
16841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16842 test 0 -eq $? || _lt_function_replace_fail=:
16843
16844
16845 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16846 func_split_long_opt ()\
16847 {\
16848 \ func_split_long_opt_name=${1%%=*}\
16849 \ func_split_long_opt_arg=${1#*=}\
16850 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16851 && mv -f "$cfgfile.tmp" "$cfgfile" \
16852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16853 test 0 -eq $? || _lt_function_replace_fail=:
16854
16855
16856 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16857 func_split_short_opt ()\
16858 {\
16859 \ func_split_short_opt_arg=${1#??}\
16860 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16861 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16862 && mv -f "$cfgfile.tmp" "$cfgfile" \
16863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16864 test 0 -eq $? || _lt_function_replace_fail=:
16865
16866
16867 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16868 func_lo2o ()\
16869 {\
16870 \ case ${1} in\
16871 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16872 \ *) func_lo2o_result=${1} ;;\
16873 \ esac\
16874 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16875 && mv -f "$cfgfile.tmp" "$cfgfile" \
16876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16877 test 0 -eq $? || _lt_function_replace_fail=:
16878
16879
16880 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16881 func_xform ()\
16882 {\
16883 func_xform_result=${1%.*}.lo\
16884 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16885 && mv -f "$cfgfile.tmp" "$cfgfile" \
16886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16887 test 0 -eq $? || _lt_function_replace_fail=:
16888
16889
16890 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16891 func_arith ()\
16892 {\
16893 func_arith_result=$(( $* ))\
16894 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16895 && mv -f "$cfgfile.tmp" "$cfgfile" \
16896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16897 test 0 -eq $? || _lt_function_replace_fail=:
16898
16899
16900 sed -e '/^func_len ()$/,/^} # func_len /c\
16901 func_len ()\
16902 {\
16903 func_len_result=${#1}\
16904 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16905 && mv -f "$cfgfile.tmp" "$cfgfile" \
16906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16907 test 0 -eq $? || _lt_function_replace_fail=:
16908
16909 fi
16910
16911 if test x"$lt_shell_append" = xyes; then
16912 sed -e '/^func_append ()$/,/^} # func_append /c\
16913 func_append ()\
16914 {\
16915 eval "${1}+=\\${2}"\
16916 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16917 && mv -f "$cfgfile.tmp" "$cfgfile" \
16918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16919 test 0 -eq $? || _lt_function_replace_fail=:
16920
16921
16922 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16923 func_append_quoted ()\
16924 {\
16925 \ func_quote_for_eval "${2}"\
16926 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16927 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16928 && mv -f "$cfgfile.tmp" "$cfgfile" \
16929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16930 test 0 -eq $? || _lt_function_replace_fail=:
16931
16932
16933 # Save a `func_append' function call where possible by direct use of '+='
16934 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16935 && mv -f "$cfgfile.tmp" "$cfgfile" \
16936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16937 test 0 -eq $? || _lt_function_replace_fail=:
16938 else
16939 # Save a `func_append' function call even when '+=' is not available
16940 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16941 && mv -f "$cfgfile.tmp" "$cfgfile" \
16942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16943 test 0 -eq $? || _lt_function_replace_fail=:
16944 fi
16945
16946 if test x"$_lt_function_replace_fail" = x":"; then
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16948 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16949 fi
16950
16951
16952 mv -f "$cfgfile" "$ofile" ||
16953 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16954 chmod +x "$ofile"
16955
16956
16957 cat <<_LT_EOF >> "$ofile"
16958
16959 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16960
16961 # The linker used to build libraries.
16962 LD=$lt_LD_CXX
16963
16964 # How to create reloadable object files.
16965 reload_flag=$lt_reload_flag_CXX
16966 reload_cmds=$lt_reload_cmds_CXX
16967
16968 # Commands used to build an old-style archive.
16969 old_archive_cmds=$lt_old_archive_cmds_CXX
16970
16971 # A language specific compiler.
16972 CC=$lt_compiler_CXX
16973
16974 # Is the compiler the GNU compiler?
16975 with_gcc=$GCC_CXX
16976
16977 # Compiler flag to turn off builtin functions.
16978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16979
16980 # Additional compiler flags for building library objects.
16981 pic_flag=$lt_lt_prog_compiler_pic_CXX
16982
16983 # How to pass a linker flag through the compiler.
16984 wl=$lt_lt_prog_compiler_wl_CXX
16985
16986 # Compiler flag to prevent dynamic linking.
16987 link_static_flag=$lt_lt_prog_compiler_static_CXX
16988
16989 # Does compiler simultaneously support -c and -o options?
16990 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16991
16992 # Whether or not to add -lc for building shared libraries.
16993 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16994
16995 # Whether or not to disallow shared libs when runtime libs are static.
16996 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16997
16998 # Compiler flag to allow reflexive dlopens.
16999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17000
17001 # Compiler flag to generate shared objects directly from archives.
17002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17003
17004 # Whether the compiler copes with passing no objects directly.
17005 compiler_needs_object=$lt_compiler_needs_object_CXX
17006
17007 # Create an old-style archive from a shared archive.
17008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17009
17010 # Create a temporary old-style archive to link instead of a shared archive.
17011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17012
17013 # Commands used to build a shared archive.
17014 archive_cmds=$lt_archive_cmds_CXX
17015 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17016
17017 # Commands used to build a loadable module if different from building
17018 # a shared archive.
17019 module_cmds=$lt_module_cmds_CXX
17020 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17021
17022 # Whether we are building with GNU ld or not.
17023 with_gnu_ld=$lt_with_gnu_ld_CXX
17024
17025 # Flag that allows shared libraries with undefined symbols to be built.
17026 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17027
17028 # Flag that enforces no undefined symbols.
17029 no_undefined_flag=$lt_no_undefined_flag_CXX
17030
17031 # Flag to hardcode \$libdir into a binary during linking.
17032 # This must work even if \$libdir does not exist
17033 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17034
17035 # Whether we need a single "-rpath" flag with a separated argument.
17036 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17037
17038 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17039 # DIR into the resulting binary.
17040 hardcode_direct=$hardcode_direct_CXX
17041
17042 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17043 # DIR into the resulting binary and the resulting library dependency is
17044 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17045 # library is relocated.
17046 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17047
17048 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17049 # into the resulting binary.
17050 hardcode_minus_L=$hardcode_minus_L_CXX
17051
17052 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17053 # into the resulting binary.
17054 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17055
17056 # Set to "yes" if building a shared library automatically hardcodes DIR
17057 # into the library and all subsequent libraries and executables linked
17058 # against it.
17059 hardcode_automatic=$hardcode_automatic_CXX
17060
17061 # Set to yes if linker adds runtime paths of dependent libraries
17062 # to runtime path list.
17063 inherit_rpath=$inherit_rpath_CXX
17064
17065 # Whether libtool must link a program against all its dependency libraries.
17066 link_all_deplibs=$link_all_deplibs_CXX
17067
17068 # Set to "yes" if exported symbols are required.
17069 always_export_symbols=$always_export_symbols_CXX
17070
17071 # The commands to list exported symbols.
17072 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17073
17074 # Symbols that should not be listed in the preloaded symbols.
17075 exclude_expsyms=$lt_exclude_expsyms_CXX
17076
17077 # Symbols that must always be exported.
17078 include_expsyms=$lt_include_expsyms_CXX
17079
17080 # Commands necessary for linking programs (against libraries) with templates.
17081 prelink_cmds=$lt_prelink_cmds_CXX
17082
17083 # Commands necessary for finishing linking programs.
17084 postlink_cmds=$lt_postlink_cmds_CXX
17085
17086 # Specify filename containing input files.
17087 file_list_spec=$lt_file_list_spec_CXX
17088
17089 # How to hardcode a shared library path into an executable.
17090 hardcode_action=$hardcode_action_CXX
17091
17092 # The directories searched by this compiler when creating a shared library.
17093 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17094
17095 # Dependencies to place before and after the objects being linked to
17096 # create a shared library.
17097 predep_objects=$lt_predep_objects_CXX
17098 postdep_objects=$lt_postdep_objects_CXX
17099 predeps=$lt_predeps_CXX
17100 postdeps=$lt_postdeps_CXX
17101
17102 # The library search path used internally by the compiler when linking
17103 # a shared library.
17104 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17105
17106 # ### END LIBTOOL TAG CONFIG: CXX
17107 _LT_EOF
17108
17109
17110 as_fn_exit 0
17111 _LTEOF
17112 chmod +x "$CONFIG_LT"
17113
17114 # configure is writing to config.log, but config.lt does its own redirection,
17115 # appending to config.log, which fails on DOS, as config.log is still kept
17116 # open by configure. Here we exec the FD to /dev/null, effectively closing
17117 # config.log, so it can be properly (re)opened and appended to by config.lt.
17118 lt_cl_success=:
17119 test "$silent" = yes &&
17120 lt_config_lt_args="$lt_config_lt_args --quiet"
17121 exec 5>/dev/null
17122 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17123 exec 5>>config.log
17124 $lt_cl_success || as_fn_exit 1
17125
17126
17127 # Check for threads.
17128 #
17129
17130
17131 threads_thread_keyword=no
17132
17133 # Check whether --enable-threads was given.
17134 if test "${enable_threads+set}" = set; then :
17135 enableval=$enable_threads; if test x"$enableval" = xno; then :
17136 threads=none
17137 else
17138 threads=check
17139 fi
17140 else
17141 threads=check
17142 fi
17143
17144
17145 # If thread support is not disabled by the user, figure out what we can use.
17146 #
17147 if test x$threads = xcheck; then
17148 case $host_os in
17149 windows* | mingw*)
17150 case $host_os in
17151 mingw*)
17152 CXXFLAGS="$CXXFLAGS -mthreads"
17153 ;;
17154 esac
17155
17156 # Newer versions of GCC can be configured to use either Win32 or POSIX
17157 # threads. It appears that -mthreads should be used in both cases but
17158 # if the model is POSIX then GCC will also link -lpthread by default.
17159 # Use that fact to test which model we have.
17160 #
17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h. */
17163 #include <pthread.h>
17164 int
17165 main ()
17166 {
17167 pthread_create(0,0,0,0);
17168 ;
17169 return 0;
17170 }
17171 _ACEOF
17172 if ac_fn_cxx_try_link "$LINENO"; then :
17173 threads=posix
17174 else
17175 threads=win32
17176 fi
17177 rm -f core conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17179 ;;
17180 *)
17181
17182
17183
17184 ac_ext=cpp
17185 ac_cpp='$CXXCPP $CPPFLAGS'
17186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17189
17190 acx_pthread_ok=no
17191
17192 # We used to check for pthread.h first, but this fails if pthread.h
17193 # requires special compiler flags (e.g. on True64 or Sequent).
17194 # It gets checked for in the link test anyway.
17195
17196 # First of all, check if the user has set any of the PTHREAD_LIBS,
17197 # etcetera environment variables, and if threads linking works using
17198 # them:
17199 if test x"$PTHREAD_LIBS$PTHREAD_CXXFLAGS" != x; then
17200 save_CXXFLAGS="$CXXFLAGS"
17201 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17202 save_LIBS="$LIBS"
17203 LIBS="$PTHREAD_LIBS $LIBS"
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS" >&5
17205 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS... " >&6; }
17206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207 /* end confdefs.h. */
17208
17209 /* Override any GCC internal prototype to avoid an error.
17210 Use char because int might match the return type of a GCC
17211 builtin and then its argument prototype would still apply. */
17212 #ifdef __cplusplus
17213 extern "C"
17214 #endif
17215 char pthread_join ();
17216 int
17217 main ()
17218 {
17219 return pthread_join ();
17220 ;
17221 return 0;
17222 }
17223 _ACEOF
17224 if ac_fn_cxx_try_link "$LINENO"; then :
17225 acx_pthread_ok=yes
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext \
17228 conftest$ac_exeext conftest.$ac_ext
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17230 $as_echo "$acx_pthread_ok" >&6; }
17231 if test x"$acx_pthread_ok" = xno; then
17232 PTHREAD_LIBS=""
17233 PTHREAD_CXXFLAGS=""
17234 fi
17235 LIBS="$save_LIBS"
17236 CXXFLAGS="$save_CXXFLAGS"
17237 fi
17238
17239 # We must check for the threads library under a number of different
17240 # names; the ordering is very important because some systems
17241 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17242 # libraries is broken (non-POSIX).
17243
17244 # Create a list of thread flags to try. Items starting with a "-" are
17245 # C compiler flags, and other items are library names, except for "none"
17246 # which indicates that we try without any flags at all, and "pthread-config"
17247 # which is a program returning the flags for the Pth emulation library.
17248
17249 # CS: On GNU/Linux with gcc both -pthread and -lpthread are valid.
17250 # However, libtool links libraries with -nostdlib which results in
17251 # -pthread being stripped from the linker command line. To resolve
17252 # this we move pthread from after -mthreads to after pthreads.
17253 #
17254 acx_pthread_flags="pthreads pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
17255
17256 # The ordering *is* (sometimes) important. Some notes on the
17257 # individual items follow:
17258
17259 # pthreads: AIX (must check this before -lpthread)
17260 # none: in case threads are in libc; should be tried before -Kthread and
17261 # other compiler flags to prevent continual compiler warnings
17262 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17263 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17264 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17265 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17266 # -pthreads: Solaris/gcc
17267 # -mthreads: Mingw32/gcc, Lynx/gcc
17268 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17269 # doesn't hurt to check since this sometimes defines pthreads too;
17270 # also defines -D_REENTRANT)
17271 # ... -mt is also the pthreads flag for HP/aCC
17272 # pthread: Linux, etcetera
17273 # --thread-safe: KAI C++
17274 # pthread-config: use pthread-config program (for GNU Pth library)
17275
17276 case "${host_cpu}-${host_os}" in
17277 *solaris*)
17278
17279 # On Solaris (at least, for some versions), libc contains stubbed
17280 # (non-functional) versions of the pthreads routines, so link-based
17281 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17282 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17283 # a function called by this macro, so we could check for that, but
17284 # who knows whether they'll stub that too in a future libc.) So,
17285 # we'll just look for -pthreads and -lpthread first:
17286
17287 # CS: Move -mt to the front of the list; Sun CC will use -mt,
17288 # gcc will use -pthreads.
17289 #
17290 acx_pthread_flags="-mt -pthreads pthread -pthread $acx_pthread_flags"
17291 ;;
17292 esac
17293
17294 if test x"$acx_pthread_ok" = xno; then
17295 for flag in $acx_pthread_flags; do
17296
17297 case $flag in
17298 none)
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17300 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17301 ;;
17302
17303 -*)
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17305 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17306 PTHREAD_CXXFLAGS="$flag"
17307 ;;
17308
17309 pthread-config)
17310 # Extract the first word of "pthread-config", so it can be a program name with args.
17311 set dummy pthread-config; ac_word=$2
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17313 $as_echo_n "checking for $ac_word... " >&6; }
17314 if ${ac_cv_prog_acx_pthread_config+:} false; then :
17315 $as_echo_n "(cached) " >&6
17316 else
17317 if test -n "$acx_pthread_config"; then
17318 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17319 else
17320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17321 for as_dir in $PATH
17322 do
17323 IFS=$as_save_IFS
17324 test -z "$as_dir" && as_dir=.
17325 for ac_exec_ext in '' $ac_executable_extensions; do
17326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17327 ac_cv_prog_acx_pthread_config="yes"
17328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17329 break 2
17330 fi
17331 done
17332 done
17333 IFS=$as_save_IFS
17334
17335 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17336 fi
17337 fi
17338 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17339 if test -n "$acx_pthread_config"; then
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17341 $as_echo "$acx_pthread_config" >&6; }
17342 else
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17344 $as_echo "no" >&6; }
17345 fi
17346
17347
17348 if test x"$acx_pthread_config" = xno; then continue; fi
17349 PTHREAD_CXXFLAGS="`pthread-config --cflags`"
17350 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17351 ;;
17352
17353 *)
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17355 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17356 PTHREAD_LIBS="-l$flag"
17357 ;;
17358 esac
17359
17360 save_LIBS="$LIBS"
17361 save_CXXFLAGS="$CXXFLAGS"
17362 LIBS="$PTHREAD_LIBS $LIBS"
17363 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17364
17365 # Check for various functions. We must include pthread.h,
17366 # since some functions may be macros. (On the Sequent, we
17367 # need a special flag -Kthread to make this header compile.)
17368 # We check for pthread_join because it is in -lpthread on IRIX
17369 # while pthread_create is in libc. We check for pthread_attr_init
17370 # due to DEC craziness with -lpthreads. We check for
17371 # pthread_cleanup_push because it is one of the few pthread
17372 # functions on Solaris that doesn't have a non-functional libc stub.
17373 # We try pthread_create on general principles.
17374 #
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17377 #include <pthread.h>
17378 int
17379 main ()
17380 {
17381 pthread_t th; pthread_join(th, 0);
17382 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17383 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17384 ;
17385 return 0;
17386 }
17387 _ACEOF
17388 if ac_fn_cxx_try_link "$LINENO"; then :
17389 acx_pthread_ok=yes
17390 fi
17391 rm -f core conftest.err conftest.$ac_objext \
17392 conftest$ac_exeext conftest.$ac_ext
17393
17394 LIBS="$save_LIBS"
17395 CXXFLAGS="$save_CXXFLAGS"
17396
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17398 $as_echo "$acx_pthread_ok" >&6; }
17399 if test "x$acx_pthread_ok" = xyes; then
17400 break;
17401 fi
17402
17403 PTHREAD_LIBS=""
17404 PTHREAD_CXXFLAGS=""
17405 done
17406 fi
17407
17408 # Various other checks:
17409 if test "x$acx_pthread_ok" = xyes; then
17410 save_LIBS="$LIBS"
17411 LIBS="$PTHREAD_LIBS $LIBS"
17412 save_CXXFLAGS="$CXXFLAGS"
17413 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17414
17415
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17417 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17418 flag=no
17419 case "${host_cpu}-${host_os}" in
17420 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17421 # CS: Add _REENTRANT in Linux to emulate -pthread.
17422 #
17423 *-linux* | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17424 esac
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17426 $as_echo "${flag}" >&6; }
17427 if test "x$flag" != xno; then
17428 PTHREAD_CXXFLAGS="$flag $PTHREAD_CXXFLAGS"
17429 fi
17430
17431 LIBS="$save_LIBS"
17432 CXXFLAGS="$save_CXXFLAGS"
17433
17434
17435 else
17436 PTHREAD_CXX="$CXX"
17437 fi
17438
17439
17440
17441
17442
17443 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17444 if test x"$acx_pthread_ok" = xyes; then
17445
17446 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17447
17448 :
17449 else
17450 acx_pthread_ok=no
17451
17452 fi
17453 ac_ext=cpp
17454 ac_cpp='$CXXCPP $CPPFLAGS'
17455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17458
17459
17460
17461 if test x$acx_pthread_ok = xyes; then
17462 threads=posix
17463 LIBS="$LIBS $PTHREAD_LIBS"
17464 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17465
17466 # Check if we can use the __thread keyword.
17467 #
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread keyword" >&5
17469 $as_echo_n "checking for __thread keyword... " >&6; }
17470
17471
17472
17473 ac_ext=cpp
17474 ac_cpp='$CXXCPP $CPPFLAGS'
17475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17478
17479
17480 if test -d .libs; then
17481 delete_libs_dir=no
17482 else
17483 delete_libs_dir=yes
17484 fi
17485
17486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487 /* end confdefs.h. */
17488
17489
17490 __thread int tls_var;
17491
17492 int
17493 main ()
17494 {
17495 tls_var = 0;
17496 }
17497
17498 _ACEOF
17499 if ac_fn_cxx_try_compile "$LINENO"; then :
17500
17501 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17502 if { { case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505 esac
17506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17507 $as_echo "$ac_try_echo"; } >&5
17508 (eval "$ac_try") 2>&5
17509 ac_status=$?
17510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17511 test $ac_status = 0; }; then
17512 libtool_link_ok=yes
17513 else
17514 libtool_link_ok=no
17515 fi
17516
17517 else
17518
17519 libtool_link_ok=no
17520
17521 fi
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523
17524 if test x"$delete_libs_dir" = xyes; then
17525 rm -rf .libs
17526 fi
17527
17528 if test x"$libtool_link_ok" = xyes; then
17529 threads_thread_keyword=yes
17530 :
17531 else
17532
17533 :
17534 fi
17535
17536 ac_ext=cpp
17537 ac_cpp='$CXXCPP $CPPFLAGS'
17538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17541
17542
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $threads_thread_keyword" >&5
17544 $as_echo "$threads_thread_keyword" >&6; }
17545 fi
17546 ;;
17547 esac
17548 fi
17549
17550 if test x$threads = xcheck; then
17551 as_fn_error $? "thread support not available; use --disable-threads to force single-threaded mode" "$LINENO" 5
17552 fi
17553
17554
17555 # Check for boost.
17556 #
17557
17558 libboost_found=no
17559
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost base headers" >&5
17561 $as_echo_n "checking for boost base headers... " >&6; }
17562
17563
17564 # Check whether --with-boost was given.
17565 if test "${with_boost+set}" = set; then :
17566 withval=$with_boost; libboost_dir=${withval}
17567 else
17568 libboost_dir=
17569 fi
17570
17571
17572 # If libboost_dir was given, add the necessary preprocessor and linker flags.
17573 #
17574 if test x"$libboost_dir" != x; then
17575 save_CPPFLAGS="$CPPFLAGS"
17576 save_LDFLAGS="$LDFLAGS"
17577
17578 case $ac_pwd in #((
17579 .) abs_libboost_dir=$libboost_dir;;
17580 *)
17581 case $libboost_dir in #(((
17582 .) abs_libboost_dir=$ac_pwd;;
17583 [\\/]* | ?:[\\/]* ) abs_libboost_dir=$libboost_dir;;
17584 *) abs_libboost_dir=$ac_pwd/$libboost_dir;;
17585 esac;;
17586 esac
17587
17588 CPPFLAGS="$CPPFLAGS -I$abs_libboost_dir"
17589 LDFLAGS="$LDFLAGS -L$abs_libboost_dir/stage/lib"
17590 fi
17591
17592
17593
17594 ac_ext=cpp
17595 ac_cpp='$CXXCPP $CPPFLAGS'
17596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17599
17600
17601 if test -d .libs; then
17602 delete_libs_dir=no
17603 else
17604 delete_libs_dir=yes
17605 fi
17606
17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17609
17610
17611 #include <boost/version.hpp>
17612
17613 #ifndef BOOST_VERSION
17614 # error BOOST_VERSION not defined
17615 #endif
17616
17617 int
17618 main ()
17619 {
17620 }
17621
17622 _ACEOF
17623 if ac_fn_cxx_try_compile "$LINENO"; then :
17624
17625 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17626 if { { case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629 esac
17630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17631 $as_echo "$ac_try_echo"; } >&5
17632 (eval "$ac_try") 2>&5
17633 ac_status=$?
17634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17635 test $ac_status = 0; }; then
17636 libtool_link_ok=yes
17637 else
17638 libtool_link_ok=no
17639 fi
17640
17641 else
17642
17643 libtool_link_ok=no
17644
17645 fi
17646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17647
17648 if test x"$delete_libs_dir" = xyes; then
17649 rm -rf .libs
17650 fi
17651
17652 if test x"$libtool_link_ok" = xyes; then
17653
17654 libboost_found=yes
17655
17656 :
17657 else
17658
17659 :
17660 fi
17661
17662 ac_ext=cpp
17663 ac_cpp='$CXXCPP $CPPFLAGS'
17664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17667
17668
17669 if test x"$libboost_found" = xno; then
17670 if test x"$libboost_dir" != x; then
17671 CPPFLAGS="$save_CPPFLAGS"
17672 LDFLAGS="$save_LDFLAGS"
17673 fi
17674 fi
17675
17676 if test x"$libboost_found" = xyes; then
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17678 $as_echo "yes" >&6; }
17679
17680 else
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17682 $as_echo "no" >&6; }
17683 as_fn_error $? "boost is not found; consider using CPPFLAGS/LDFLAGS or --with-boost=DIR to specify its location" "$LINENO" 5
17684 fi
17685
17686
17687
17688 libboost_system_found=no
17689
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost system library" >&5
17691 $as_echo_n "checking for boost system library... " >&6; }
17692
17693 save_LIBS="$LIBS"
17694 LIBS="-lboost_system $LIBS"
17695
17696
17697
17698 ac_ext=cpp
17699 ac_cpp='$CXXCPP $CPPFLAGS'
17700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17703
17704
17705 if test -d .libs; then
17706 delete_libs_dir=no
17707 else
17708 delete_libs_dir=yes
17709 fi
17710
17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17713
17714
17715 int
17716 main ()
17717 {
17718 }
17719
17720 _ACEOF
17721 if ac_fn_cxx_try_compile "$LINENO"; then :
17722
17723 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17724 if { { case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17727 esac
17728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17729 $as_echo "$ac_try_echo"; } >&5
17730 (eval "$ac_try") 2>&5
17731 ac_status=$?
17732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17733 test $ac_status = 0; }; then
17734 libtool_link_ok=yes
17735 else
17736 libtool_link_ok=no
17737 fi
17738
17739 else
17740
17741 libtool_link_ok=no
17742
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745
17746 if test x"$delete_libs_dir" = xyes; then
17747 rm -rf .libs
17748 fi
17749
17750 if test x"$libtool_link_ok" = xyes; then
17751 libboost_system_found=yes
17752 :
17753 else
17754
17755 :
17756 fi
17757
17758 ac_ext=cpp
17759 ac_cpp='$CXXCPP $CPPFLAGS'
17760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17763
17764
17765 # Try to fall back on the -mt version for backwards-compatibility.
17766 #
17767 if test x"$libboost_system_found" = xno; then
17768 LIBS="-lboost_system-mt $save_LIBS"
17769
17770
17771 ac_ext=cpp
17772 ac_cpp='$CXXCPP $CPPFLAGS'
17773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17776
17777
17778 if test -d .libs; then
17779 delete_libs_dir=no
17780 else
17781 delete_libs_dir=yes
17782 fi
17783
17784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17785 /* end confdefs.h. */
17786
17787
17788 int
17789 main ()
17790 {
17791 }
17792
17793 _ACEOF
17794 if ac_fn_cxx_try_compile "$LINENO"; then :
17795
17796 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17797 if { { case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17800 esac
17801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17802 $as_echo "$ac_try_echo"; } >&5
17803 (eval "$ac_try") 2>&5
17804 ac_status=$?
17805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17806 test $ac_status = 0; }; then
17807 libtool_link_ok=yes
17808 else
17809 libtool_link_ok=no
17810 fi
17811
17812 else
17813
17814 libtool_link_ok=no
17815
17816 fi
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17818
17819 if test x"$delete_libs_dir" = xyes; then
17820 rm -rf .libs
17821 fi
17822
17823 if test x"$libtool_link_ok" = xyes; then
17824 libboost_system_found=yes
17825 :
17826 else
17827
17828 :
17829 fi
17830
17831 ac_ext=cpp
17832 ac_cpp='$CXXCPP $CPPFLAGS'
17833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17836
17837 fi
17838
17839 if test x"$libboost_system_found" = xno; then
17840 LIBS="$save_LIBS"
17841 fi
17842
17843 if test x"$libboost_system_found" = xyes; then
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17845 $as_echo "yes" >&6; }
17846
17847 else
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849 $as_echo "no" >&6; }
17850
17851 fi
17852
17853
17854
17855 # Check for libodb.
17856 #
17857
17858 libodb_found=no
17859
17860
17861 # Check whether --with-libodb was given.
17862 if test "${with_libodb+set}" = set; then :
17863 withval=$with_libodb; libodb_dir=${withval}
17864 else
17865 libodb_dir=
17866 fi
17867
17868
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libodb" >&5
17870 $as_echo_n "checking for libodb... " >&6; }
17871
17872 # If libodb_dir was given, add the necessary preprocessor and linker flags.
17873 #
17874 if test x"$libodb_dir" != x; then
17875 save_CPPFLAGS="$CPPFLAGS"
17876 save_LDFLAGS="$LDFLAGS"
17877
17878 case $ac_pwd in #((
17879 .) abs_libodb_dir=$libodb_dir;;
17880 *)
17881 case $libodb_dir in #(((
17882 .) abs_libodb_dir=$ac_pwd;;
17883 [\\/]* | ?:[\\/]* ) abs_libodb_dir=$libodb_dir;;
17884 *) abs_libodb_dir=$ac_pwd/$libodb_dir;;
17885 esac;;
17886 esac
17887
17888 CPPFLAGS="$CPPFLAGS -I$abs_libodb_dir"
17889 LDFLAGS="$LDFLAGS -L$abs_libodb_dir/odb"
17890 fi
17891
17892 save_LIBS="$LIBS"
17893 LIBS="-lodb $LIBS"
17894
17895
17896
17897 ac_ext=cpp
17898 ac_cpp='$CXXCPP $CPPFLAGS'
17899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17902
17903
17904 if test -d .libs; then
17905 delete_libs_dir=no
17906 else
17907 delete_libs_dir=yes
17908 fi
17909
17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911 /* end confdefs.h. */
17912
17913
17914 #include <odb/exception.hxx>
17915
17916 void
17917 f ()
17918 {
17919 }
17920
17921 const char*
17922 g ()
17923 {
17924 try
17925 {
17926 f ();
17927 }
17928 catch (const odb::exception& e)
17929 {
17930 return e.what ();
17931 }
17932 return 0;
17933 }
17934
17935 int
17936 main ()
17937 {
17938 const char* m (g ());
17939 return m != 0;
17940 }
17941
17942 _ACEOF
17943 if ac_fn_cxx_try_compile "$LINENO"; then :
17944
17945 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17946 if { { case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949 esac
17950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17951 $as_echo "$ac_try_echo"; } >&5
17952 (eval "$ac_try") 2>&5
17953 ac_status=$?
17954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17955 test $ac_status = 0; }; then
17956 libtool_link_ok=yes
17957 else
17958 libtool_link_ok=no
17959 fi
17960
17961 else
17962
17963 libtool_link_ok=no
17964
17965 fi
17966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17967
17968 if test x"$delete_libs_dir" = xyes; then
17969 rm -rf .libs
17970 fi
17971
17972 if test x"$libtool_link_ok" = xyes; then
17973 libodb_found=yes
17974 :
17975 else
17976
17977 :
17978 fi
17979
17980 ac_ext=cpp
17981 ac_cpp='$CXXCPP $CPPFLAGS'
17982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17985
17986
17987 if test x"$libodb_found" = xno; then
17988 LIBS="$save_LIBS"
17989
17990 if test x"$libodb_dir" != x; then
17991 CPPFLAGS="$save_CPPFLAGS"
17992 LDFLAGS="$save_LDFLAGS"
17993 fi
17994 fi
17995
17996 if test x"$libodb_found" = xyes; then
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17998 $as_echo "yes" >&6; }
17999
18000 else
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18002 $as_echo "no" >&6; }
18003 as_fn_error $? "libodb is not found; consider using --with-libodb=DIR" "$LINENO" 5
18004 fi
18005
18006
18007 # Define LIBODB_BOOST_STATIC_LIB if we are build static library on certain
18008 # platforms.
18009 #
18010
18011 if test x$enable_shared = xno; then
18012 case $host_os in
18013 mingw*)
18014
18015 $as_echo "#define LIBODB_BOOST_STATIC_LIB 1" >>confdefs.h
18016
18017 ;;
18018 esac
18019 fi
18020
18021
18022 # Allow the user to specify the pkgconfig directory.
18023 #
18024
18025
18026 # Check whether --with-pkgconfigdir was given.
18027 if test "${with_pkgconfigdir+set}" = set; then :
18028 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
18029 else
18030 pkgconfigdir='${libdir}/pkgconfig'
18031 fi
18032
18033
18034
18035
18036 # Check if we should disable rpath.
18037 #
18038
18039
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
18041 $as_echo_n "checking whether to use rpath... " >&6; }
18042 # Check whether --enable-rpath was given.
18043 if test "${enable_rpath+set}" = set; then :
18044 enableval=$enable_rpath; libtool_rpath="$enable_rpath"
18045 else
18046 libtool_rpath="yes"
18047 fi
18048
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libtool_rpath" >&5
18050 $as_echo "$libtool_rpath" >&6; }
18051
18052 # Patch libtool to not use rpath if requested.
18053 #
18054 ac_config_commands="$ac_config_commands libtool-rpath-patch"
18055
18056
18057
18058 # Output.
18059 #
18060 ac_config_headers="$ac_config_headers odb/boost/config.h odb/boost/details/config.h"
18061
18062 ac_config_files="$ac_config_files libodb-boost.pc Makefile odb/boost/Makefile"
18063
18064 cat >confcache <<\_ACEOF
18065 # This file is a shell script that caches the results of configure
18066 # tests run on this system so they can be shared between configure
18067 # scripts and configure runs, see configure's option --config-cache.
18068 # It is not useful on other systems. If it contains results you don't
18069 # want to keep, you may remove or edit it.
18070 #
18071 # config.status only pays attention to the cache file if you give it
18072 # the --recheck option to rerun configure.
18073 #
18074 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18075 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18076 # following values.
18077
18078 _ACEOF
18079
18080 # The following way of writing the cache mishandles newlines in values,
18081 # but we know of no workaround that is simple, portable, and efficient.
18082 # So, we kill variables containing newlines.
18083 # Ultrix sh set writes to stderr and can't be redirected directly,
18084 # and sets the high bit in the cache file unless we assign to the vars.
18085 (
18086 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18087 eval ac_val=\$$ac_var
18088 case $ac_val in #(
18089 *${as_nl}*)
18090 case $ac_var in #(
18091 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18092 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18093 esac
18094 case $ac_var in #(
18095 _ | IFS | as_nl) ;; #(
18096 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18097 *) { eval $ac_var=; unset $ac_var;} ;;
18098 esac ;;
18099 esac
18100 done
18101
18102 (set) 2>&1 |
18103 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18104 *${as_nl}ac_space=\ *)
18105 # `set' does not quote correctly, so add quotes: double-quote
18106 # substitution turns \\\\ into \\, and sed turns \\ into \.
18107 sed -n \
18108 "s/'/'\\\\''/g;
18109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18110 ;; #(
18111 *)
18112 # `set' quotes correctly as required by POSIX, so do not add quotes.
18113 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18114 ;;
18115 esac |
18116 sort
18117 ) |
18118 sed '
18119 /^ac_cv_env_/b end
18120 t clear
18121 :clear
18122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18123 t end
18124 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18125 :end' >>confcache
18126 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18127 if test -w "$cache_file"; then
18128 if test "x$cache_file" != "x/dev/null"; then
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18130 $as_echo "$as_me: updating cache $cache_file" >&6;}
18131 if test ! -f "$cache_file" || test -h "$cache_file"; then
18132 cat confcache >"$cache_file"
18133 else
18134 case $cache_file in #(
18135 */* | ?:*)
18136 mv -f confcache "$cache_file"$$ &&
18137 mv -f "$cache_file"$$ "$cache_file" ;; #(
18138 *)
18139 mv -f confcache "$cache_file" ;;
18140 esac
18141 fi
18142 fi
18143 else
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18145 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18146 fi
18147 fi
18148 rm -f confcache
18149
18150 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18151 # Let make expand exec_prefix.
18152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18153
18154 DEFS=-DHAVE_CONFIG_H
18155
18156 ac_libobjs=
18157 ac_ltlibobjs=
18158 U=
18159 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18160 # 1. Remove the extension, and $U if already installed.
18161 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18162 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18163 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18164 # will be set to the directory where LIBOBJS objects are built.
18165 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18166 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18167 done
18168 LIBOBJS=$ac_libobjs
18169
18170 LTLIBOBJS=$ac_ltlibobjs
18171
18172
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18174 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18175 if test -n "$am_sleep_pid"; then
18176 # Hide warnings about reused PIDs.
18177 wait $am_sleep_pid 2>/dev/null
18178 fi
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18180 $as_echo "done" >&6; }
18181 if test -n "$EXEEXT"; then
18182 am__EXEEXT_TRUE=
18183 am__EXEEXT_FALSE='#'
18184 else
18185 am__EXEEXT_TRUE='#'
18186 am__EXEEXT_FALSE=
18187 fi
18188
18189 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18190 as_fn_error $? "conditional \"AMDEP\" was never defined.
18191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18192 fi
18193 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18194 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18196 fi
18197 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18198 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18200 fi
18201
18202 : "${CONFIG_STATUS=./config.status}"
18203 ac_write_fail=0
18204 ac_clean_files_save=$ac_clean_files
18205 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18207 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18208 as_write_fail=0
18209 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18210 #! $SHELL
18211 # Generated by $as_me.
18212 # Run this file to recreate the current configuration.
18213 # Compiler output produced by configure, useful for debugging
18214 # configure, is in config.log if it exists.
18215
18216 debug=false
18217 ac_cs_recheck=false
18218 ac_cs_silent=false
18219
18220 SHELL=\${CONFIG_SHELL-$SHELL}
18221 export SHELL
18222 _ASEOF
18223 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18224 ## -------------------- ##
18225 ## M4sh Initialization. ##
18226 ## -------------------- ##
18227
18228 # Be more Bourne compatible
18229 DUALCASE=1; export DUALCASE # for MKS sh
18230 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18231 emulate sh
18232 NULLCMD=:
18233 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18234 # is contrary to our usage. Disable this feature.
18235 alias -g '${1+"$@"}'='"$@"'
18236 setopt NO_GLOB_SUBST
18237 else
18238 case `(set -o) 2>/dev/null` in #(
18239 *posix*) :
18240 set -o posix ;; #(
18241 *) :
18242 ;;
18243 esac
18244 fi
18245
18246
18247 as_nl='
18248 '
18249 export as_nl
18250 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18251 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18252 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18253 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18254 # Prefer a ksh shell builtin over an external printf program on Solaris,
18255 # but without wasting forks for bash or zsh.
18256 if test -z "$BASH_VERSION$ZSH_VERSION" \
18257 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18258 as_echo='print -r --'
18259 as_echo_n='print -rn --'
18260 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18261 as_echo='printf %s\n'
18262 as_echo_n='printf %s'
18263 else
18264 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18265 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18266 as_echo_n='/usr/ucb/echo -n'
18267 else
18268 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18269 as_echo_n_body='eval
18270 arg=$1;
18271 case $arg in #(
18272 *"$as_nl"*)
18273 expr "X$arg" : "X\\(.*\\)$as_nl";
18274 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18275 esac;
18276 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18277 '
18278 export as_echo_n_body
18279 as_echo_n='sh -c $as_echo_n_body as_echo'
18280 fi
18281 export as_echo_body
18282 as_echo='sh -c $as_echo_body as_echo'
18283 fi
18284
18285 # The user is always right.
18286 if test "${PATH_SEPARATOR+set}" != set; then
18287 PATH_SEPARATOR=:
18288 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18289 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18290 PATH_SEPARATOR=';'
18291 }
18292 fi
18293
18294
18295 # IFS
18296 # We need space, tab and new line, in precisely that order. Quoting is
18297 # there to prevent editors from complaining about space-tab.
18298 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18299 # splitting by setting IFS to empty value.)
18300 IFS=" "" $as_nl"
18301
18302 # Find who we are. Look in the path if we contain no directory separator.
18303 as_myself=
18304 case $0 in #((
18305 *[\\/]* ) as_myself=$0 ;;
18306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18307 for as_dir in $PATH
18308 do
18309 IFS=$as_save_IFS
18310 test -z "$as_dir" && as_dir=.
18311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18312 done
18313 IFS=$as_save_IFS
18314
18315 ;;
18316 esac
18317 # We did not find ourselves, most probably we were run as `sh COMMAND'
18318 # in which case we are not to be found in the path.
18319 if test "x$as_myself" = x; then
18320 as_myself=$0
18321 fi
18322 if test ! -f "$as_myself"; then
18323 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18324 exit 1
18325 fi
18326
18327 # Unset variables that we do not need and which cause bugs (e.g. in
18328 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18329 # suppresses any "Segmentation fault" message there. '((' could
18330 # trigger a bug in pdksh 5.2.14.
18331 for as_var in BASH_ENV ENV MAIL MAILPATH
18332 do eval test x\${$as_var+set} = xset \
18333 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18334 done
18335 PS1='$ '
18336 PS2='> '
18337 PS4='+ '
18338
18339 # NLS nuisances.
18340 LC_ALL=C
18341 export LC_ALL
18342 LANGUAGE=C
18343 export LANGUAGE
18344
18345 # CDPATH.
18346 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18347
18348
18349 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18350 # ----------------------------------------
18351 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18352 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18353 # script with STATUS, using 1 if that was 0.
18354 as_fn_error ()
18355 {
18356 as_status=$1; test $as_status -eq 0 && as_status=1
18357 if test "$4"; then
18358 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18359 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18360 fi
18361 $as_echo "$as_me: error: $2" >&2
18362 as_fn_exit $as_status
18363 } # as_fn_error
18364
18365
18366 # as_fn_set_status STATUS
18367 # -----------------------
18368 # Set $? to STATUS, without forking.
18369 as_fn_set_status ()
18370 {
18371 return $1
18372 } # as_fn_set_status
18373
18374 # as_fn_exit STATUS
18375 # -----------------
18376 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18377 as_fn_exit ()
18378 {
18379 set +e
18380 as_fn_set_status $1
18381 exit $1
18382 } # as_fn_exit
18383
18384 # as_fn_unset VAR
18385 # ---------------
18386 # Portably unset VAR.
18387 as_fn_unset ()
18388 {
18389 { eval $1=; unset $1;}
18390 }
18391 as_unset=as_fn_unset
18392 # as_fn_append VAR VALUE
18393 # ----------------------
18394 # Append the text in VALUE to the end of the definition contained in VAR. Take
18395 # advantage of any shell optimizations that allow amortized linear growth over
18396 # repeated appends, instead of the typical quadratic growth present in naive
18397 # implementations.
18398 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18399 eval 'as_fn_append ()
18400 {
18401 eval $1+=\$2
18402 }'
18403 else
18404 as_fn_append ()
18405 {
18406 eval $1=\$$1\$2
18407 }
18408 fi # as_fn_append
18409
18410 # as_fn_arith ARG...
18411 # ------------------
18412 # Perform arithmetic evaluation on the ARGs, and store the result in the
18413 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18414 # must be portable across $(()) and expr.
18415 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18416 eval 'as_fn_arith ()
18417 {
18418 as_val=$(( $* ))
18419 }'
18420 else
18421 as_fn_arith ()
18422 {
18423 as_val=`expr "$@" || test $? -eq 1`
18424 }
18425 fi # as_fn_arith
18426
18427
18428 if expr a : '\(a\)' >/dev/null 2>&1 &&
18429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18430 as_expr=expr
18431 else
18432 as_expr=false
18433 fi
18434
18435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18436 as_basename=basename
18437 else
18438 as_basename=false
18439 fi
18440
18441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18442 as_dirname=dirname
18443 else
18444 as_dirname=false
18445 fi
18446
18447 as_me=`$as_basename -- "$0" ||
18448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18449 X"$0" : 'X\(//\)$' \| \
18450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18451 $as_echo X/"$0" |
18452 sed '/^.*\/\([^/][^/]*\)\/*$/{
18453 s//\1/
18454 q
18455 }
18456 /^X\/\(\/\/\)$/{
18457 s//\1/
18458 q
18459 }
18460 /^X\/\(\/\).*/{
18461 s//\1/
18462 q
18463 }
18464 s/.*/./; q'`
18465
18466 # Avoid depending upon Character Ranges.
18467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18470 as_cr_digits='0123456789'
18471 as_cr_alnum=$as_cr_Letters$as_cr_digits
18472
18473 ECHO_C= ECHO_N= ECHO_T=
18474 case `echo -n x` in #(((((
18475 -n*)
18476 case `echo 'xy\c'` in
18477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18478 xy) ECHO_C='\c';;
18479 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18480 ECHO_T=' ';;
18481 esac;;
18482 *)
18483 ECHO_N='-n';;
18484 esac
18485
18486 rm -f conf$$ conf$$.exe conf$$.file
18487 if test -d conf$$.dir; then
18488 rm -f conf$$.dir/conf$$.file
18489 else
18490 rm -f conf$$.dir
18491 mkdir conf$$.dir 2>/dev/null
18492 fi
18493 if (echo >conf$$.file) 2>/dev/null; then
18494 if ln -s conf$$.file conf$$ 2>/dev/null; then
18495 as_ln_s='ln -s'
18496 # ... but there are two gotchas:
18497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18499 # In both cases, we have to default to `cp -pR'.
18500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18501 as_ln_s='cp -pR'
18502 elif ln conf$$.file conf$$ 2>/dev/null; then
18503 as_ln_s=ln
18504 else
18505 as_ln_s='cp -pR'
18506 fi
18507 else
18508 as_ln_s='cp -pR'
18509 fi
18510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18511 rmdir conf$$.dir 2>/dev/null
18512
18513
18514 # as_fn_mkdir_p
18515 # -------------
18516 # Create "$as_dir" as a directory, including parents if necessary.
18517 as_fn_mkdir_p ()
18518 {
18519
18520 case $as_dir in #(
18521 -*) as_dir=./$as_dir;;
18522 esac
18523 test -d "$as_dir" || eval $as_mkdir_p || {
18524 as_dirs=
18525 while :; do
18526 case $as_dir in #(
18527 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18528 *) as_qdir=$as_dir;;
18529 esac
18530 as_dirs="'$as_qdir' $as_dirs"
18531 as_dir=`$as_dirname -- "$as_dir" ||
18532 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18533 X"$as_dir" : 'X\(//\)[^/]' \| \
18534 X"$as_dir" : 'X\(//\)$' \| \
18535 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18536 $as_echo X"$as_dir" |
18537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18538 s//\1/
18539 q
18540 }
18541 /^X\(\/\/\)[^/].*/{
18542 s//\1/
18543 q
18544 }
18545 /^X\(\/\/\)$/{
18546 s//\1/
18547 q
18548 }
18549 /^X\(\/\).*/{
18550 s//\1/
18551 q
18552 }
18553 s/.*/./; q'`
18554 test -d "$as_dir" && break
18555 done
18556 test -z "$as_dirs" || eval "mkdir $as_dirs"
18557 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18558
18559
18560 } # as_fn_mkdir_p
18561 if mkdir -p . 2>/dev/null; then
18562 as_mkdir_p='mkdir -p "$as_dir"'
18563 else
18564 test -d ./-p && rmdir ./-p
18565 as_mkdir_p=false
18566 fi
18567
18568
18569 # as_fn_executable_p FILE
18570 # -----------------------
18571 # Test if FILE is an executable regular file.
18572 as_fn_executable_p ()
18573 {
18574 test -f "$1" && test -x "$1"
18575 } # as_fn_executable_p
18576 as_test_x='test -x'
18577 as_executable_p=as_fn_executable_p
18578
18579 # Sed expression to map a string onto a valid CPP name.
18580 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18581
18582 # Sed expression to map a string onto a valid variable name.
18583 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18584
18585
18586 exec 6>&1
18587 ## ----------------------------------- ##
18588 ## Main body of $CONFIG_STATUS script. ##
18589 ## ----------------------------------- ##
18590 _ASEOF
18591 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18592
18593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18594 # Save the log message, to keep $0 and so on meaningful, and to
18595 # report actual input values of CONFIG_FILES etc. instead of their
18596 # values after options handling.
18597 ac_log="
18598 This file was extended by libodb-boost $as_me 2.4.0, which was
18599 generated by GNU Autoconf 2.69. Invocation command line was
18600
18601 CONFIG_FILES = $CONFIG_FILES
18602 CONFIG_HEADERS = $CONFIG_HEADERS
18603 CONFIG_LINKS = $CONFIG_LINKS
18604 CONFIG_COMMANDS = $CONFIG_COMMANDS
18605 $ $0 $@
18606
18607 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18608 "
18609
18610 _ACEOF
18611
18612 case $ac_config_files in *"
18613 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18614 esac
18615
18616 case $ac_config_headers in *"
18617 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18618 esac
18619
18620
18621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18622 # Files that config.status was made for.
18623 config_files="$ac_config_files"
18624 config_headers="$ac_config_headers"
18625 config_commands="$ac_config_commands"
18626
18627 _ACEOF
18628
18629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18630 ac_cs_usage="\
18631 \`$as_me' instantiates files and other configuration actions
18632 from templates according to the current configuration. Unless the files
18633 and actions are specified as TAGs, all are instantiated by default.
18634
18635 Usage: $0 [OPTION]... [TAG]...
18636
18637 -h, --help print this help, then exit
18638 -V, --version print version number and configuration settings, then exit
18639 --config print configuration, then exit
18640 -q, --quiet, --silent
18641 do not print progress messages
18642 -d, --debug don't remove temporary files
18643 --recheck update $as_me by reconfiguring in the same conditions
18644 --file=FILE[:TEMPLATE]
18645 instantiate the configuration file FILE
18646 --header=FILE[:TEMPLATE]
18647 instantiate the configuration header FILE
18648
18649 Configuration files:
18650 $config_files
18651
18652 Configuration headers:
18653 $config_headers
18654
18655 Configuration commands:
18656 $config_commands
18657
18658 Report bugs to <[email protected]>."
18659
18660 _ACEOF
18661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18662 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18663 ac_cs_version="\\
18664 libodb-boost config.status 2.4.0
18665 configured by $0, generated by GNU Autoconf 2.69,
18666 with options \\"\$ac_cs_config\\"
18667
18668 Copyright (C) 2012 Free Software Foundation, Inc.
18669 This config.status script is free software; the Free Software Foundation
18670 gives unlimited permission to copy, distribute and modify it."
18671
18672 ac_pwd='$ac_pwd'
18673 srcdir='$srcdir'
18674 INSTALL='$INSTALL'
18675 MKDIR_P='$MKDIR_P'
18676 AWK='$AWK'
18677 test -n "\$AWK" || AWK=awk
18678 _ACEOF
18679
18680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18681 # The default lists apply if the user does not specify any file.
18682 ac_need_defaults=:
18683 while test $# != 0
18684 do
18685 case $1 in
18686 --*=?*)
18687 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18688 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18689 ac_shift=:
18690 ;;
18691 --*=)
18692 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18693 ac_optarg=
18694 ac_shift=:
18695 ;;
18696 *)
18697 ac_option=$1
18698 ac_optarg=$2
18699 ac_shift=shift
18700 ;;
18701 esac
18702
18703 case $ac_option in
18704 # Handling of the options.
18705 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18706 ac_cs_recheck=: ;;
18707 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18708 $as_echo "$ac_cs_version"; exit ;;
18709 --config | --confi | --conf | --con | --co | --c )
18710 $as_echo "$ac_cs_config"; exit ;;
18711 --debug | --debu | --deb | --de | --d | -d )
18712 debug=: ;;
18713 --file | --fil | --fi | --f )
18714 $ac_shift
18715 case $ac_optarg in
18716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18717 '') as_fn_error $? "missing file argument" ;;
18718 esac
18719 as_fn_append CONFIG_FILES " '$ac_optarg'"
18720 ac_need_defaults=false;;
18721 --header | --heade | --head | --hea )
18722 $ac_shift
18723 case $ac_optarg in
18724 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18725 esac
18726 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18727 ac_need_defaults=false;;
18728 --he | --h)
18729 # Conflict between --help and --header
18730 as_fn_error $? "ambiguous option: \`$1'
18731 Try \`$0 --help' for more information.";;
18732 --help | --hel | -h )
18733 $as_echo "$ac_cs_usage"; exit ;;
18734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18735 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18736 ac_cs_silent=: ;;
18737
18738 # This is an error.
18739 -*) as_fn_error $? "unrecognized option: \`$1'
18740 Try \`$0 --help' for more information." ;;
18741
18742 *) as_fn_append ac_config_targets " $1"
18743 ac_need_defaults=false ;;
18744
18745 esac
18746 shift
18747 done
18748
18749 ac_configure_extra_args=
18750
18751 if $ac_cs_silent; then
18752 exec 6>/dev/null
18753 ac_configure_extra_args="$ac_configure_extra_args --silent"
18754 fi
18755
18756 _ACEOF
18757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18758 if \$ac_cs_recheck; then
18759 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18760 shift
18761 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18762 CONFIG_SHELL='$SHELL'
18763 export CONFIG_SHELL
18764 exec "\$@"
18765 fi
18766
18767 _ACEOF
18768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18769 exec 5>>config.log
18770 {
18771 echo
18772 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18773 ## Running $as_me. ##
18774 _ASBOX
18775 $as_echo "$ac_log"
18776 } >&5
18777
18778 _ACEOF
18779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18780 #
18781 # INIT-COMMANDS
18782 #
18783 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18784
18785
18786 # The HP-UX ksh and POSIX shell print the target directory to stdout
18787 # if CDPATH is set.
18788 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18789
18790 sed_quote_subst='$sed_quote_subst'
18791 double_quote_subst='$double_quote_subst'
18792 delay_variable_subst='$delay_variable_subst'
18793 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18794 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18795 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18796 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18797 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18798 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18799 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18800 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18801 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18802 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18803 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18804 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18805 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18806 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18807 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18808 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18809 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18810 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18811 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18812 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18813 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18814 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18815 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18816 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18817 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18818 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18819 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18820 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18821 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18822 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18823 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18824 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18825 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18826 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18827 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18828 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18829 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18830 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18831 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18832 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18833 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18834 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18835 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18836 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18837 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18838 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18839 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18840 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18841 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18842 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18843 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18844 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18845 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18846 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18847 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18848 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18849 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18850 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"`'
18851 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18852 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18853 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18854 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18855 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18856 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18857 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18858 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18859 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18860 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18861 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18862 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18863 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18864 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18865 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18866 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18867 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18868 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18869 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18870 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18871 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18872 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18873 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18874 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18875 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18876 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18877 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18878 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18879 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18880 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18881 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18882 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18883 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18884 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18885 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18886 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18887 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18888 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18889 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18890 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18891 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18892 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18893 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18894 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18895 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18896 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18897 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18898 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18899 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18900 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18901 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18902 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18903 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18904 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18905 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18906 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18907 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18908 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18909 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18910 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18911 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18912 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18913 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18914 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18915 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18916 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18917 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18918 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18919 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18920 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18921 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18922 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18923 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18924 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18925 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18926 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18927 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18928 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18929 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18930 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18931 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18932 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18933 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18934 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18935 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18936 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18937 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18938 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18939 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18940 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18941 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18942 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18943 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18944 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18945 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18946 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18947 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18948 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18949 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18950 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18951 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18952 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18953 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18954 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18955 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18956 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18957 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18958 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18959 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18960 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18961 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18962 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18963 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18964 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18965 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18966 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18967 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18968 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18969 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18970 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18971 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18972 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18973 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18974 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18975 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18976 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18977 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18978
18979 LTCC='$LTCC'
18980 LTCFLAGS='$LTCFLAGS'
18981 compiler='$compiler_DEFAULT'
18982
18983 # A function that is used when there is no print builtin or printf.
18984 func_fallback_echo ()
18985 {
18986 eval 'cat <<_LTECHO_EOF
18987 \$1
18988 _LTECHO_EOF'
18989 }
18990
18991 # Quote evaled strings.
18992 for var in AS \
18993 DLLTOOL \
18994 OBJDUMP \
18995 SHELL \
18996 ECHO \
18997 PATH_SEPARATOR \
18998 SED \
18999 GREP \
19000 EGREP \
19001 FGREP \
19002 LD \
19003 NM \
19004 LN_S \
19005 lt_SP2NL \
19006 lt_NL2SP \
19007 reload_flag \
19008 deplibs_check_method \
19009 file_magic_cmd \
19010 file_magic_glob \
19011 want_nocaseglob \
19012 sharedlib_from_linklib_cmd \
19013 AR \
19014 AR_FLAGS \
19015 archiver_list_spec \
19016 STRIP \
19017 RANLIB \
19018 CC \
19019 CFLAGS \
19020 compiler \
19021 lt_cv_sys_global_symbol_pipe \
19022 lt_cv_sys_global_symbol_to_cdecl \
19023 lt_cv_sys_global_symbol_to_c_name_address \
19024 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19025 nm_file_list_spec \
19026 lt_prog_compiler_no_builtin_flag \
19027 lt_prog_compiler_pic \
19028 lt_prog_compiler_wl \
19029 lt_prog_compiler_static \
19030 lt_cv_prog_compiler_c_o \
19031 need_locks \
19032 MANIFEST_TOOL \
19033 DSYMUTIL \
19034 NMEDIT \
19035 LIPO \
19036 OTOOL \
19037 OTOOL64 \
19038 shrext_cmds \
19039 export_dynamic_flag_spec \
19040 whole_archive_flag_spec \
19041 compiler_needs_object \
19042 with_gnu_ld \
19043 allow_undefined_flag \
19044 no_undefined_flag \
19045 hardcode_libdir_flag_spec \
19046 hardcode_libdir_separator \
19047 exclude_expsyms \
19048 include_expsyms \
19049 file_list_spec \
19050 variables_saved_for_relink \
19051 libname_spec \
19052 library_names_spec \
19053 soname_spec \
19054 install_override_mode \
19055 finish_eval \
19056 old_striplib \
19057 striplib \
19058 compiler_lib_search_dirs \
19059 predep_objects \
19060 postdep_objects \
19061 predeps \
19062 postdeps \
19063 compiler_lib_search_path \
19064 LD_CXX \
19065 reload_flag_CXX \
19066 compiler_CXX \
19067 lt_prog_compiler_no_builtin_flag_CXX \
19068 lt_prog_compiler_pic_CXX \
19069 lt_prog_compiler_wl_CXX \
19070 lt_prog_compiler_static_CXX \
19071 lt_cv_prog_compiler_c_o_CXX \
19072 export_dynamic_flag_spec_CXX \
19073 whole_archive_flag_spec_CXX \
19074 compiler_needs_object_CXX \
19075 with_gnu_ld_CXX \
19076 allow_undefined_flag_CXX \
19077 no_undefined_flag_CXX \
19078 hardcode_libdir_flag_spec_CXX \
19079 hardcode_libdir_separator_CXX \
19080 exclude_expsyms_CXX \
19081 include_expsyms_CXX \
19082 file_list_spec_CXX \
19083 compiler_lib_search_dirs_CXX \
19084 predep_objects_CXX \
19085 postdep_objects_CXX \
19086 predeps_CXX \
19087 postdeps_CXX \
19088 compiler_lib_search_path_CXX; do
19089 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19090 *[\\\\\\\`\\"\\\$]*)
19091 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19092 ;;
19093 *)
19094 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19095 ;;
19096 esac
19097 done
19098
19099 # Double-quote double-evaled strings.
19100 for var in reload_cmds \
19101 old_postinstall_cmds \
19102 old_postuninstall_cmds \
19103 old_archive_cmds \
19104 extract_expsyms_cmds \
19105 old_archive_from_new_cmds \
19106 old_archive_from_expsyms_cmds \
19107 archive_cmds \
19108 archive_expsym_cmds \
19109 module_cmds \
19110 module_expsym_cmds \
19111 export_symbols_cmds \
19112 prelink_cmds \
19113 postlink_cmds \
19114 postinstall_cmds \
19115 postuninstall_cmds \
19116 finish_cmds \
19117 sys_lib_search_path_spec \
19118 sys_lib_dlsearch_path_spec \
19119 reload_cmds_CXX \
19120 old_archive_cmds_CXX \
19121 old_archive_from_new_cmds_CXX \
19122 old_archive_from_expsyms_cmds_CXX \
19123 archive_cmds_CXX \
19124 archive_expsym_cmds_CXX \
19125 module_cmds_CXX \
19126 module_expsym_cmds_CXX \
19127 export_symbols_cmds_CXX \
19128 prelink_cmds_CXX \
19129 postlink_cmds_CXX; do
19130 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19131 *[\\\\\\\`\\"\\\$]*)
19132 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19133 ;;
19134 *)
19135 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19136 ;;
19137 esac
19138 done
19139
19140 ac_aux_dir='$ac_aux_dir'
19141 xsi_shell='$xsi_shell'
19142 lt_shell_append='$lt_shell_append'
19143
19144 # See if we are running on zsh, and set the options which allow our
19145 # commands through without removal of \ escapes INIT.
19146 if test -n "\${ZSH_VERSION+set}" ; then
19147 setopt NO_GLOB_SUBST
19148 fi
19149
19150
19151 PACKAGE='$PACKAGE'
19152 VERSION='$VERSION'
19153 TIMESTAMP='$TIMESTAMP'
19154 RM='$RM'
19155 ofile='$ofile'
19156
19157
19158
19159 ac_aux_dir='$ac_aux_dir'
19160
19161
19162 libtool_use_rpath=$libtool_rpath
19163
19164 _ACEOF
19165
19166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19167
19168 # Handling of arguments.
19169 for ac_config_target in $ac_config_targets
19170 do
19171 case $ac_config_target in
19172 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19173 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19174 "libtool-rpath-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-rpath-patch" ;;
19175 "odb/boost/config.h") CONFIG_HEADERS="$CONFIG_HEADERS odb/boost/config.h" ;;
19176 "odb/boost/details/config.h") CONFIG_HEADERS="$CONFIG_HEADERS odb/boost/details/config.h" ;;
19177 "libodb-boost.pc") CONFIG_FILES="$CONFIG_FILES libodb-boost.pc" ;;
19178 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19179 "odb/boost/Makefile") CONFIG_FILES="$CONFIG_FILES odb/boost/Makefile" ;;
19180
19181 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19182 esac
19183 done
19184
19185
19186 # If the user did not use the arguments to specify the items to instantiate,
19187 # then the envvar interface is used. Set only those that are not.
19188 # We use the long form for the default assignment because of an extremely
19189 # bizarre bug on SunOS 4.1.3.
19190 if $ac_need_defaults; then
19191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19192 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19193 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19194 fi
19195
19196 # Have a temporary directory for convenience. Make it in the build tree
19197 # simply because there is no reason against having it here, and in addition,
19198 # creating and moving files from /tmp can sometimes cause problems.
19199 # Hook for its removal unless debugging.
19200 # Note that there is a small window in which the directory will not be cleaned:
19201 # after its creation but before its name has been assigned to `$tmp'.
19202 $debug ||
19203 {
19204 tmp= ac_tmp=
19205 trap 'exit_status=$?
19206 : "${ac_tmp:=$tmp}"
19207 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19208 ' 0
19209 trap 'as_fn_exit 1' 1 2 13 15
19210 }
19211 # Create a (secure) tmp directory for tmp files.
19212
19213 {
19214 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19215 test -d "$tmp"
19216 } ||
19217 {
19218 tmp=./conf$$-$RANDOM
19219 (umask 077 && mkdir "$tmp")
19220 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19221 ac_tmp=$tmp
19222
19223 # Set up the scripts for CONFIG_FILES section.
19224 # No need to generate them if there are no CONFIG_FILES.
19225 # This happens for instance with `./config.status config.h'.
19226 if test -n "$CONFIG_FILES"; then
19227
19228
19229 ac_cr=`echo X | tr X '\015'`
19230 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19231 # But we know of no other shell where ac_cr would be empty at this
19232 # point, so we can use a bashism as a fallback.
19233 if test "x$ac_cr" = x; then
19234 eval ac_cr=\$\'\\r\'
19235 fi
19236 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19237 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19238 ac_cs_awk_cr='\\r'
19239 else
19240 ac_cs_awk_cr=$ac_cr
19241 fi
19242
19243 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19244 _ACEOF
19245
19246
19247 {
19248 echo "cat >conf$$subs.awk <<_ACEOF" &&
19249 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19250 echo "_ACEOF"
19251 } >conf$$subs.sh ||
19252 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19253 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19254 ac_delim='%!_!# '
19255 for ac_last_try in false false false false false :; do
19256 . ./conf$$subs.sh ||
19257 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19258
19259 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19260 if test $ac_delim_n = $ac_delim_num; then
19261 break
19262 elif $ac_last_try; then
19263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19264 else
19265 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19266 fi
19267 done
19268 rm -f conf$$subs.sh
19269
19270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19271 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19272 _ACEOF
19273 sed -n '
19274 h
19275 s/^/S["/; s/!.*/"]=/
19276 p
19277 g
19278 s/^[^!]*!//
19279 :repl
19280 t repl
19281 s/'"$ac_delim"'$//
19282 t delim
19283 :nl
19284 h
19285 s/\(.\{148\}\)..*/\1/
19286 t more1
19287 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19288 p
19289 n
19290 b repl
19291 :more1
19292 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19293 p
19294 g
19295 s/.\{148\}//
19296 t nl
19297 :delim
19298 h
19299 s/\(.\{148\}\)..*/\1/
19300 t more2
19301 s/["\\]/\\&/g; s/^/"/; s/$/"/
19302 p
19303 b
19304 :more2
19305 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19306 p
19307 g
19308 s/.\{148\}//
19309 t delim
19310 ' <conf$$subs.awk | sed '
19311 /^[^""]/{
19312 N
19313 s/\n//
19314 }
19315 ' >>$CONFIG_STATUS || ac_write_fail=1
19316 rm -f conf$$subs.awk
19317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19318 _ACAWK
19319 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19320 for (key in S) S_is_set[key] = 1
19321 FS = ""
19322
19323 }
19324 {
19325 line = $ 0
19326 nfields = split(line, field, "@")
19327 substed = 0
19328 len = length(field[1])
19329 for (i = 2; i < nfields; i++) {
19330 key = field[i]
19331 keylen = length(key)
19332 if (S_is_set[key]) {
19333 value = S[key]
19334 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19335 len += length(value) + length(field[++i])
19336 substed = 1
19337 } else
19338 len += 1 + keylen
19339 }
19340
19341 print line
19342 }
19343
19344 _ACAWK
19345 _ACEOF
19346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19347 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19348 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19349 else
19350 cat
19351 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19352 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19353 _ACEOF
19354
19355 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19356 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19357 # trailing colons and then remove the whole line if VPATH becomes empty
19358 # (actually we leave an empty line to preserve line numbers).
19359 if test "x$srcdir" = x.; then
19360 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19361 h
19362 s///
19363 s/^/:/
19364 s/[ ]*$/:/
19365 s/:\$(srcdir):/:/g
19366 s/:\${srcdir}:/:/g
19367 s/:@srcdir@:/:/g
19368 s/^:*//
19369 s/:*$//
19370 x
19371 s/\(=[ ]*\).*/\1/
19372 G
19373 s/\n//
19374 s/^[^=]*=[ ]*$//
19375 }'
19376 fi
19377
19378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19379 fi # test -n "$CONFIG_FILES"
19380
19381 # Set up the scripts for CONFIG_HEADERS section.
19382 # No need to generate them if there are no CONFIG_HEADERS.
19383 # This happens for instance with `./config.status Makefile'.
19384 if test -n "$CONFIG_HEADERS"; then
19385 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19386 BEGIN {
19387 _ACEOF
19388
19389 # Transform confdefs.h into an awk script `defines.awk', embedded as
19390 # here-document in config.status, that substitutes the proper values into
19391 # config.h.in to produce config.h.
19392
19393 # Create a delimiter string that does not exist in confdefs.h, to ease
19394 # handling of long lines.
19395 ac_delim='%!_!# '
19396 for ac_last_try in false false :; do
19397 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19398 if test -z "$ac_tt"; then
19399 break
19400 elif $ac_last_try; then
19401 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19402 else
19403 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19404 fi
19405 done
19406
19407 # For the awk script, D is an array of macro values keyed by name,
19408 # likewise P contains macro parameters if any. Preserve backslash
19409 # newline sequences.
19410
19411 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19412 sed -n '
19413 s/.\{148\}/&'"$ac_delim"'/g
19414 t rset
19415 :rset
19416 s/^[ ]*#[ ]*define[ ][ ]*/ /
19417 t def
19418 d
19419 :def
19420 s/\\$//
19421 t bsnl
19422 s/["\\]/\\&/g
19423 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19424 D["\1"]=" \3"/p
19425 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19426 d
19427 :bsnl
19428 s/["\\]/\\&/g
19429 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19430 D["\1"]=" \3\\\\\\n"\\/p
19431 t cont
19432 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19433 t cont
19434 d
19435 :cont
19436 n
19437 s/.\{148\}/&'"$ac_delim"'/g
19438 t clear
19439 :clear
19440 s/\\$//
19441 t bsnlc
19442 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19443 d
19444 :bsnlc
19445 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19446 b cont
19447 ' <confdefs.h | sed '
19448 s/'"$ac_delim"'/"\\\
19449 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19450
19451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19452 for (key in D) D_is_set[key] = 1
19453 FS = ""
19454 }
19455 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19456 line = \$ 0
19457 split(line, arg, " ")
19458 if (arg[1] == "#") {
19459 defundef = arg[2]
19460 mac1 = arg[3]
19461 } else {
19462 defundef = substr(arg[1], 2)
19463 mac1 = arg[2]
19464 }
19465 split(mac1, mac2, "(") #)
19466 macro = mac2[1]
19467 prefix = substr(line, 1, index(line, defundef) - 1)
19468 if (D_is_set[macro]) {
19469 # Preserve the white space surrounding the "#".
19470 print prefix "define", macro P[macro] D[macro]
19471 next
19472 } else {
19473 # Replace #undef with comments. This is necessary, for example,
19474 # in the case of _POSIX_SOURCE, which is predefined and required
19475 # on some systems where configure will not decide to define it.
19476 if (defundef == "undef") {
19477 print "/*", prefix defundef, macro, "*/"
19478 next
19479 }
19480 }
19481 }
19482 { print }
19483 _ACAWK
19484 _ACEOF
19485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19486 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19487 fi # test -n "$CONFIG_HEADERS"
19488
19489
19490 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19491 shift
19492 for ac_tag
19493 do
19494 case $ac_tag in
19495 :[FHLC]) ac_mode=$ac_tag; continue;;
19496 esac
19497 case $ac_mode$ac_tag in
19498 :[FHL]*:*);;
19499 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19500 :[FH]-) ac_tag=-:-;;
19501 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19502 esac
19503 ac_save_IFS=$IFS
19504 IFS=:
19505 set x $ac_tag
19506 IFS=$ac_save_IFS
19507 shift
19508 ac_file=$1
19509 shift
19510
19511 case $ac_mode in
19512 :L) ac_source=$1;;
19513 :[FH])
19514 ac_file_inputs=
19515 for ac_f
19516 do
19517 case $ac_f in
19518 -) ac_f="$ac_tmp/stdin";;
19519 *) # Look for the file first in the build tree, then in the source tree
19520 # (if the path is not absolute). The absolute path cannot be DOS-style,
19521 # because $ac_f cannot contain `:'.
19522 test -f "$ac_f" ||
19523 case $ac_f in
19524 [\\/$]*) false;;
19525 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19526 esac ||
19527 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19528 esac
19529 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19530 as_fn_append ac_file_inputs " '$ac_f'"
19531 done
19532
19533 # Let's still pretend it is `configure' which instantiates (i.e., don't
19534 # use $as_me), people would be surprised to read:
19535 # /* config.h. Generated by config.status. */
19536 configure_input='Generated from '`
19537 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19538 `' by configure.'
19539 if test x"$ac_file" != x-; then
19540 configure_input="$ac_file. $configure_input"
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19542 $as_echo "$as_me: creating $ac_file" >&6;}
19543 fi
19544 # Neutralize special characters interpreted by sed in replacement strings.
19545 case $configure_input in #(
19546 *\&* | *\|* | *\\* )
19547 ac_sed_conf_input=`$as_echo "$configure_input" |
19548 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19549 *) ac_sed_conf_input=$configure_input;;
19550 esac
19551
19552 case $ac_tag in
19553 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19554 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19555 esac
19556 ;;
19557 esac
19558
19559 ac_dir=`$as_dirname -- "$ac_file" ||
19560 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19561 X"$ac_file" : 'X\(//\)[^/]' \| \
19562 X"$ac_file" : 'X\(//\)$' \| \
19563 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19564 $as_echo X"$ac_file" |
19565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19566 s//\1/
19567 q
19568 }
19569 /^X\(\/\/\)[^/].*/{
19570 s//\1/
19571 q
19572 }
19573 /^X\(\/\/\)$/{
19574 s//\1/
19575 q
19576 }
19577 /^X\(\/\).*/{
19578 s//\1/
19579 q
19580 }
19581 s/.*/./; q'`
19582 as_dir="$ac_dir"; as_fn_mkdir_p
19583 ac_builddir=.
19584
19585 case "$ac_dir" in
19586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19587 *)
19588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19589 # A ".." for each directory in $ac_dir_suffix.
19590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19591 case $ac_top_builddir_sub in
19592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19594 esac ;;
19595 esac
19596 ac_abs_top_builddir=$ac_pwd
19597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19598 # for backward compatibility:
19599 ac_top_builddir=$ac_top_build_prefix
19600
19601 case $srcdir in
19602 .) # We are building in place.
19603 ac_srcdir=.
19604 ac_top_srcdir=$ac_top_builddir_sub
19605 ac_abs_top_srcdir=$ac_pwd ;;
19606 [\\/]* | ?:[\\/]* ) # Absolute name.
19607 ac_srcdir=$srcdir$ac_dir_suffix;
19608 ac_top_srcdir=$srcdir
19609 ac_abs_top_srcdir=$srcdir ;;
19610 *) # Relative name.
19611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19612 ac_top_srcdir=$ac_top_build_prefix$srcdir
19613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19614 esac
19615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19616
19617
19618 case $ac_mode in
19619 :F)
19620 #
19621 # CONFIG_FILE
19622 #
19623
19624 case $INSTALL in
19625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19626 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19627 esac
19628 ac_MKDIR_P=$MKDIR_P
19629 case $MKDIR_P in
19630 [\\/$]* | ?:[\\/]* ) ;;
19631 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19632 esac
19633 _ACEOF
19634
19635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19636 # If the template does not know about datarootdir, expand it.
19637 # FIXME: This hack should be removed a few years after 2.60.
19638 ac_datarootdir_hack=; ac_datarootdir_seen=
19639 ac_sed_dataroot='
19640 /datarootdir/ {
19641 p
19642 q
19643 }
19644 /@datadir@/p
19645 /@docdir@/p
19646 /@infodir@/p
19647 /@localedir@/p
19648 /@mandir@/p'
19649 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19650 *datarootdir*) ac_datarootdir_seen=yes;;
19651 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19653 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19654 _ACEOF
19655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19656 ac_datarootdir_hack='
19657 s&@datadir@&$datadir&g
19658 s&@docdir@&$docdir&g
19659 s&@infodir@&$infodir&g
19660 s&@localedir@&$localedir&g
19661 s&@mandir@&$mandir&g
19662 s&\\\${datarootdir}&$datarootdir&g' ;;
19663 esac
19664 _ACEOF
19665
19666 # Neutralize VPATH when `$srcdir' = `.'.
19667 # Shell code in configure.ac might set extrasub.
19668 # FIXME: do we really want to maintain this feature?
19669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19670 ac_sed_extra="$ac_vpsub
19671 $extrasub
19672 _ACEOF
19673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19674 :t
19675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19676 s|@configure_input@|$ac_sed_conf_input|;t t
19677 s&@top_builddir@&$ac_top_builddir_sub&;t t
19678 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19679 s&@srcdir@&$ac_srcdir&;t t
19680 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19681 s&@top_srcdir@&$ac_top_srcdir&;t t
19682 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19683 s&@builddir@&$ac_builddir&;t t
19684 s&@abs_builddir@&$ac_abs_builddir&;t t
19685 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19686 s&@INSTALL@&$ac_INSTALL&;t t
19687 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19688 $ac_datarootdir_hack
19689 "
19690 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19691 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19692
19693 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19694 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19695 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19696 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19698 which seems to be undefined. Please make sure it is defined" >&5
19699 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19700 which seems to be undefined. Please make sure it is defined" >&2;}
19701
19702 rm -f "$ac_tmp/stdin"
19703 case $ac_file in
19704 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19705 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19706 esac \
19707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19708 ;;
19709 :H)
19710 #
19711 # CONFIG_HEADER
19712 #
19713 if test x"$ac_file" != x-; then
19714 {
19715 $as_echo "/* $configure_input */" \
19716 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19717 } >"$ac_tmp/config.h" \
19718 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19719 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19721 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19722 else
19723 rm -f "$ac_file"
19724 mv "$ac_tmp/config.h" "$ac_file" \
19725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19726 fi
19727 else
19728 $as_echo "/* $configure_input */" \
19729 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19730 || as_fn_error $? "could not create -" "$LINENO" 5
19731 fi
19732 # Compute "$ac_file"'s index in $config_headers.
19733 _am_arg="$ac_file"
19734 _am_stamp_count=1
19735 for _am_header in $config_headers :; do
19736 case $_am_header in
19737 $_am_arg | $_am_arg:* )
19738 break ;;
19739 * )
19740 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19741 esac
19742 done
19743 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19744 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19745 X"$_am_arg" : 'X\(//\)[^/]' \| \
19746 X"$_am_arg" : 'X\(//\)$' \| \
19747 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19748 $as_echo X"$_am_arg" |
19749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19750 s//\1/
19751 q
19752 }
19753 /^X\(\/\/\)[^/].*/{
19754 s//\1/
19755 q
19756 }
19757 /^X\(\/\/\)$/{
19758 s//\1/
19759 q
19760 }
19761 /^X\(\/\).*/{
19762 s//\1/
19763 q
19764 }
19765 s/.*/./; q'`/stamp-h$_am_stamp_count
19766 ;;
19767
19768 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19769 $as_echo "$as_me: executing $ac_file commands" >&6;}
19770 ;;
19771 esac
19772
19773
19774 case $ac_file$ac_mode in
19775 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19776 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19777 # are listed without --file. Let's play safe and only enable the eval
19778 # if we detect the quoting.
19779 case $CONFIG_FILES in
19780 *\'*) eval set x "$CONFIG_FILES" ;;
19781 *) set x $CONFIG_FILES ;;
19782 esac
19783 shift
19784 for mf
19785 do
19786 # Strip MF so we end up with the name of the file.
19787 mf=`echo "$mf" | sed -e 's/:.*$//'`
19788 # Check whether this is an Automake generated Makefile or not.
19789 # We used to match only the files named 'Makefile.in', but
19790 # some people rename them; so instead we look at the file content.
19791 # Grep'ing the first line is not enough: some people post-process
19792 # each Makefile.in and add a new line on top of each file to say so.
19793 # Grep'ing the whole file is not good either: AIX grep has a line
19794 # limit of 2048, but all sed's we know have understand at least 4000.
19795 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19796 dirpart=`$as_dirname -- "$mf" ||
19797 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19798 X"$mf" : 'X\(//\)[^/]' \| \
19799 X"$mf" : 'X\(//\)$' \| \
19800 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19801 $as_echo X"$mf" |
19802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19803 s//\1/
19804 q
19805 }
19806 /^X\(\/\/\)[^/].*/{
19807 s//\1/
19808 q
19809 }
19810 /^X\(\/\/\)$/{
19811 s//\1/
19812 q
19813 }
19814 /^X\(\/\).*/{
19815 s//\1/
19816 q
19817 }
19818 s/.*/./; q'`
19819 else
19820 continue
19821 fi
19822 # Extract the definition of DEPDIR, am__include, and am__quote
19823 # from the Makefile without running 'make'.
19824 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19825 test -z "$DEPDIR" && continue
19826 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19827 test -z "am__include" && continue
19828 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19829 # Find all dependency output files, they are included files with
19830 # $(DEPDIR) in their names. We invoke sed twice because it is the
19831 # simplest approach to changing $(DEPDIR) to its actual value in the
19832 # expansion.
19833 for file in `sed -n "
19834 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19835 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19836 # Make sure the directory exists.
19837 test -f "$dirpart/$file" && continue
19838 fdir=`$as_dirname -- "$file" ||
19839 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19840 X"$file" : 'X\(//\)[^/]' \| \
19841 X"$file" : 'X\(//\)$' \| \
19842 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19843 $as_echo X"$file" |
19844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19845 s//\1/
19846 q
19847 }
19848 /^X\(\/\/\)[^/].*/{
19849 s//\1/
19850 q
19851 }
19852 /^X\(\/\/\)$/{
19853 s//\1/
19854 q
19855 }
19856 /^X\(\/\).*/{
19857 s//\1/
19858 q
19859 }
19860 s/.*/./; q'`
19861 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19862 # echo "creating $dirpart/$file"
19863 echo '# dummy' > "$dirpart/$file"
19864 done
19865 done
19866 }
19867 ;;
19868 "libtool":C)
19869
19870 # See if we are running on zsh, and set the options which allow our
19871 # commands through without removal of \ escapes.
19872 if test -n "${ZSH_VERSION+set}" ; then
19873 setopt NO_GLOB_SUBST
19874 fi
19875
19876 cfgfile="${ofile}T"
19877 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19878 $RM "$cfgfile"
19879
19880 cat <<_LT_EOF >> "$cfgfile"
19881 #! $SHELL
19882
19883 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19884 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19885 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19886 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19887 #
19888 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19889 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19890 # Foundation, Inc.
19891 # Written by Gordon Matzigkeit, 1996
19892 #
19893 # This file is part of GNU Libtool.
19894 #
19895 # GNU Libtool is free software; you can redistribute it and/or
19896 # modify it under the terms of the GNU General Public License as
19897 # published by the Free Software Foundation; either version 2 of
19898 # the License, or (at your option) any later version.
19899 #
19900 # As a special exception to the GNU General Public License,
19901 # if you distribute this file as part of a program or library that
19902 # is built using GNU Libtool, you may include this file under the
19903 # same distribution terms that you use for the rest of that program.
19904 #
19905 # GNU Libtool is distributed in the hope that it will be useful,
19906 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19907 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19908 # GNU General Public License for more details.
19909 #
19910 # You should have received a copy of the GNU General Public License
19911 # along with GNU Libtool; see the file COPYING. If not, a copy
19912 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19913 # obtained by writing to the Free Software Foundation, Inc.,
19914 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19915
19916
19917 # The names of the tagged configurations supported by this script.
19918 available_tags="CXX "
19919
19920 # ### BEGIN LIBTOOL CONFIG
19921
19922 # Which release of libtool.m4 was used?
19923 macro_version=$macro_version
19924 macro_revision=$macro_revision
19925
19926 # Assembler program.
19927 AS=$lt_AS
19928
19929 # DLL creation program.
19930 DLLTOOL=$lt_DLLTOOL
19931
19932 # Object dumper program.
19933 OBJDUMP=$lt_OBJDUMP
19934
19935 # Whether or not to build shared libraries.
19936 build_libtool_libs=$enable_shared
19937
19938 # Whether or not to build static libraries.
19939 build_old_libs=$enable_static
19940
19941 # What type of objects to build.
19942 pic_mode=$pic_mode
19943
19944 # Whether or not to optimize for fast installation.
19945 fast_install=$enable_fast_install
19946
19947 # Shell to use when invoking shell scripts.
19948 SHELL=$lt_SHELL
19949
19950 # An echo program that protects backslashes.
19951 ECHO=$lt_ECHO
19952
19953 # The PATH separator for the build system.
19954 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19955
19956 # The host system.
19957 host_alias=$host_alias
19958 host=$host
19959 host_os=$host_os
19960
19961 # The build system.
19962 build_alias=$build_alias
19963 build=$build
19964 build_os=$build_os
19965
19966 # A sed program that does not truncate output.
19967 SED=$lt_SED
19968
19969 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19970 Xsed="\$SED -e 1s/^X//"
19971
19972 # A grep program that handles long lines.
19973 GREP=$lt_GREP
19974
19975 # An ERE matcher.
19976 EGREP=$lt_EGREP
19977
19978 # A literal string matcher.
19979 FGREP=$lt_FGREP
19980
19981 # A BSD- or MS-compatible name lister.
19982 NM=$lt_NM
19983
19984 # Whether we need soft or hard links.
19985 LN_S=$lt_LN_S
19986
19987 # What is the maximum length of a command?
19988 max_cmd_len=$max_cmd_len
19989
19990 # Object file suffix (normally "o").
19991 objext=$ac_objext
19992
19993 # Executable file suffix (normally "").
19994 exeext=$exeext
19995
19996 # whether the shell understands "unset".
19997 lt_unset=$lt_unset
19998
19999 # turn spaces into newlines.
20000 SP2NL=$lt_lt_SP2NL
20001
20002 # turn newlines into spaces.
20003 NL2SP=$lt_lt_NL2SP
20004
20005 # convert \$build file names to \$host format.
20006 to_host_file_cmd=$lt_cv_to_host_file_cmd
20007
20008 # convert \$build files to toolchain format.
20009 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20010
20011 # Method to check whether dependent libraries are shared objects.
20012 deplibs_check_method=$lt_deplibs_check_method
20013
20014 # Command to use when deplibs_check_method = "file_magic".
20015 file_magic_cmd=$lt_file_magic_cmd
20016
20017 # How to find potential files when deplibs_check_method = "file_magic".
20018 file_magic_glob=$lt_file_magic_glob
20019
20020 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20021 want_nocaseglob=$lt_want_nocaseglob
20022
20023 # Command to associate shared and link libraries.
20024 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20025
20026 # The archiver.
20027 AR=$lt_AR
20028
20029 # Flags to create an archive.
20030 AR_FLAGS=$lt_AR_FLAGS
20031
20032 # How to feed a file listing to the archiver.
20033 archiver_list_spec=$lt_archiver_list_spec
20034
20035 # A symbol stripping program.
20036 STRIP=$lt_STRIP
20037
20038 # Commands used to install an old-style archive.
20039 RANLIB=$lt_RANLIB
20040 old_postinstall_cmds=$lt_old_postinstall_cmds
20041 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20042
20043 # Whether to use a lock for old archive extraction.
20044 lock_old_archive_extraction=$lock_old_archive_extraction
20045
20046 # A C compiler.
20047 LTCC=$lt_CC
20048
20049 # LTCC compiler flags.
20050 LTCFLAGS=$lt_CFLAGS
20051
20052 # Take the output of nm and produce a listing of raw symbols and C names.
20053 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20054
20055 # Transform the output of nm in a proper C declaration.
20056 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20057
20058 # Transform the output of nm in a C name address pair.
20059 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20060
20061 # Transform the output of nm in a C name address pair when lib prefix is needed.
20062 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20063
20064 # Specify filename containing input files for \$NM.
20065 nm_file_list_spec=$lt_nm_file_list_spec
20066
20067 # The root where to search for dependent libraries,and in which our libraries should be installed.
20068 lt_sysroot=$lt_sysroot
20069
20070 # The name of the directory that contains temporary libtool files.
20071 objdir=$objdir
20072
20073 # Used to examine libraries when file_magic_cmd begins with "file".
20074 MAGIC_CMD=$MAGIC_CMD
20075
20076 # Must we lock files when doing compilation?
20077 need_locks=$lt_need_locks
20078
20079 # Manifest tool.
20080 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20081
20082 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20083 DSYMUTIL=$lt_DSYMUTIL
20084
20085 # Tool to change global to local symbols on Mac OS X.
20086 NMEDIT=$lt_NMEDIT
20087
20088 # Tool to manipulate fat objects and archives on Mac OS X.
20089 LIPO=$lt_LIPO
20090
20091 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20092 OTOOL=$lt_OTOOL
20093
20094 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20095 OTOOL64=$lt_OTOOL64
20096
20097 # Old archive suffix (normally "a").
20098 libext=$libext
20099
20100 # Shared library suffix (normally ".so").
20101 shrext_cmds=$lt_shrext_cmds
20102
20103 # The commands to extract the exported symbol list from a shared archive.
20104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20105
20106 # Variables whose values should be saved in libtool wrapper scripts and
20107 # restored at link time.
20108 variables_saved_for_relink=$lt_variables_saved_for_relink
20109
20110 # Do we need the "lib" prefix for modules?
20111 need_lib_prefix=$need_lib_prefix
20112
20113 # Do we need a version for libraries?
20114 need_version=$need_version
20115
20116 # Library versioning type.
20117 version_type=$version_type
20118
20119 # Shared library runtime path variable.
20120 runpath_var=$runpath_var
20121
20122 # Shared library path variable.
20123 shlibpath_var=$shlibpath_var
20124
20125 # Is shlibpath searched before the hard-coded library search path?
20126 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20127
20128 # Format of library name prefix.
20129 libname_spec=$lt_libname_spec
20130
20131 # List of archive names. First name is the real one, the rest are links.
20132 # The last name is the one that the linker finds with -lNAME
20133 library_names_spec=$lt_library_names_spec
20134
20135 # The coded name of the library, if different from the real name.
20136 soname_spec=$lt_soname_spec
20137
20138 # Permission mode override for installation of shared libraries.
20139 install_override_mode=$lt_install_override_mode
20140
20141 # Command to use after installation of a shared archive.
20142 postinstall_cmds=$lt_postinstall_cmds
20143
20144 # Command to use after uninstallation of a shared archive.
20145 postuninstall_cmds=$lt_postuninstall_cmds
20146
20147 # Commands used to finish a libtool library installation in a directory.
20148 finish_cmds=$lt_finish_cmds
20149
20150 # As "finish_cmds", except a single script fragment to be evaled but
20151 # not shown.
20152 finish_eval=$lt_finish_eval
20153
20154 # Whether we should hardcode library paths into libraries.
20155 hardcode_into_libs=$hardcode_into_libs
20156
20157 # Compile-time system search path for libraries.
20158 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20159
20160 # Run-time system search path for libraries.
20161 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20162
20163 # Whether dlopen is supported.
20164 dlopen_support=$enable_dlopen
20165
20166 # Whether dlopen of programs is supported.
20167 dlopen_self=$enable_dlopen_self
20168
20169 # Whether dlopen of statically linked programs is supported.
20170 dlopen_self_static=$enable_dlopen_self_static
20171
20172 # Commands to strip libraries.
20173 old_striplib=$lt_old_striplib
20174 striplib=$lt_striplib
20175
20176
20177 # The linker used to build libraries.
20178 LD=$lt_LD
20179
20180 # How to create reloadable object files.
20181 reload_flag=$lt_reload_flag
20182 reload_cmds=$lt_reload_cmds
20183
20184 # Commands used to build an old-style archive.
20185 old_archive_cmds=$lt_old_archive_cmds
20186
20187 # A language specific compiler.
20188 CC=$lt_compiler
20189
20190 # Is the compiler the GNU compiler?
20191 with_gcc=$GCC
20192
20193 # Compiler flag to turn off builtin functions.
20194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20195
20196 # Additional compiler flags for building library objects.
20197 pic_flag=$lt_lt_prog_compiler_pic
20198
20199 # How to pass a linker flag through the compiler.
20200 wl=$lt_lt_prog_compiler_wl
20201
20202 # Compiler flag to prevent dynamic linking.
20203 link_static_flag=$lt_lt_prog_compiler_static
20204
20205 # Does compiler simultaneously support -c and -o options?
20206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20207
20208 # Whether or not to add -lc for building shared libraries.
20209 build_libtool_need_lc=$archive_cmds_need_lc
20210
20211 # Whether or not to disallow shared libs when runtime libs are static.
20212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20213
20214 # Compiler flag to allow reflexive dlopens.
20215 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20216
20217 # Compiler flag to generate shared objects directly from archives.
20218 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20219
20220 # Whether the compiler copes with passing no objects directly.
20221 compiler_needs_object=$lt_compiler_needs_object
20222
20223 # Create an old-style archive from a shared archive.
20224 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20225
20226 # Create a temporary old-style archive to link instead of a shared archive.
20227 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20228
20229 # Commands used to build a shared archive.
20230 archive_cmds=$lt_archive_cmds
20231 archive_expsym_cmds=$lt_archive_expsym_cmds
20232
20233 # Commands used to build a loadable module if different from building
20234 # a shared archive.
20235 module_cmds=$lt_module_cmds
20236 module_expsym_cmds=$lt_module_expsym_cmds
20237
20238 # Whether we are building with GNU ld or not.
20239 with_gnu_ld=$lt_with_gnu_ld
20240
20241 # Flag that allows shared libraries with undefined symbols to be built.
20242 allow_undefined_flag=$lt_allow_undefined_flag
20243
20244 # Flag that enforces no undefined symbols.
20245 no_undefined_flag=$lt_no_undefined_flag
20246
20247 # Flag to hardcode \$libdir into a binary during linking.
20248 # This must work even if \$libdir does not exist
20249 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20250
20251 # Whether we need a single "-rpath" flag with a separated argument.
20252 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20253
20254 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20255 # DIR into the resulting binary.
20256 hardcode_direct=$hardcode_direct
20257
20258 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20259 # DIR into the resulting binary and the resulting library dependency is
20260 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20261 # library is relocated.
20262 hardcode_direct_absolute=$hardcode_direct_absolute
20263
20264 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20265 # into the resulting binary.
20266 hardcode_minus_L=$hardcode_minus_L
20267
20268 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20269 # into the resulting binary.
20270 hardcode_shlibpath_var=$hardcode_shlibpath_var
20271
20272 # Set to "yes" if building a shared library automatically hardcodes DIR
20273 # into the library and all subsequent libraries and executables linked
20274 # against it.
20275 hardcode_automatic=$hardcode_automatic
20276
20277 # Set to yes if linker adds runtime paths of dependent libraries
20278 # to runtime path list.
20279 inherit_rpath=$inherit_rpath
20280
20281 # Whether libtool must link a program against all its dependency libraries.
20282 link_all_deplibs=$link_all_deplibs
20283
20284 # Set to "yes" if exported symbols are required.
20285 always_export_symbols=$always_export_symbols
20286
20287 # The commands to list exported symbols.
20288 export_symbols_cmds=$lt_export_symbols_cmds
20289
20290 # Symbols that should not be listed in the preloaded symbols.
20291 exclude_expsyms=$lt_exclude_expsyms
20292
20293 # Symbols that must always be exported.
20294 include_expsyms=$lt_include_expsyms
20295
20296 # Commands necessary for linking programs (against libraries) with templates.
20297 prelink_cmds=$lt_prelink_cmds
20298
20299 # Commands necessary for finishing linking programs.
20300 postlink_cmds=$lt_postlink_cmds
20301
20302 # Specify filename containing input files.
20303 file_list_spec=$lt_file_list_spec
20304
20305 # How to hardcode a shared library path into an executable.
20306 hardcode_action=$hardcode_action
20307
20308 # The directories searched by this compiler when creating a shared library.
20309 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20310
20311 # Dependencies to place before and after the objects being linked to
20312 # create a shared library.
20313 predep_objects=$lt_predep_objects
20314 postdep_objects=$lt_postdep_objects
20315 predeps=$lt_predeps
20316 postdeps=$lt_postdeps
20317
20318 # The library search path used internally by the compiler when linking
20319 # a shared library.
20320 compiler_lib_search_path=$lt_compiler_lib_search_path
20321
20322 # ### END LIBTOOL CONFIG
20323
20324 _LT_EOF
20325
20326 case $host_os in
20327 aix3*)
20328 cat <<\_LT_EOF >> "$cfgfile"
20329 # AIX sometimes has problems with the GCC collect2 program. For some
20330 # reason, if we set the COLLECT_NAMES environment variable, the problems
20331 # vanish in a puff of smoke.
20332 if test "X${COLLECT_NAMES+set}" != Xset; then
20333 COLLECT_NAMES=
20334 export COLLECT_NAMES
20335 fi
20336 _LT_EOF
20337 ;;
20338 esac
20339
20340
20341 ltmain="$ac_aux_dir/ltmain.sh"
20342
20343
20344 # We use sed instead of cat because bash on DJGPP gets confused if
20345 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20346 # text mode, it properly converts lines to CR/LF. This bash problem
20347 # is reportedly fixed, but why not run on old versions too?
20348 sed '$q' "$ltmain" >> "$cfgfile" \
20349 || (rm -f "$cfgfile"; exit 1)
20350
20351 if test x"$xsi_shell" = xyes; then
20352 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20353 func_dirname ()\
20354 {\
20355 \ case ${1} in\
20356 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20357 \ * ) func_dirname_result="${3}" ;;\
20358 \ esac\
20359 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20360 && mv -f "$cfgfile.tmp" "$cfgfile" \
20361 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20362 test 0 -eq $? || _lt_function_replace_fail=:
20363
20364
20365 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20366 func_basename ()\
20367 {\
20368 \ func_basename_result="${1##*/}"\
20369 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20370 && mv -f "$cfgfile.tmp" "$cfgfile" \
20371 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20372 test 0 -eq $? || _lt_function_replace_fail=:
20373
20374
20375 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20376 func_dirname_and_basename ()\
20377 {\
20378 \ case ${1} in\
20379 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20380 \ * ) func_dirname_result="${3}" ;;\
20381 \ esac\
20382 \ func_basename_result="${1##*/}"\
20383 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20384 && mv -f "$cfgfile.tmp" "$cfgfile" \
20385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20386 test 0 -eq $? || _lt_function_replace_fail=:
20387
20388
20389 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20390 func_stripname ()\
20391 {\
20392 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20393 \ # positional parameters, so assign one to ordinary parameter first.\
20394 \ func_stripname_result=${3}\
20395 \ func_stripname_result=${func_stripname_result#"${1}"}\
20396 \ func_stripname_result=${func_stripname_result%"${2}"}\
20397 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20398 && mv -f "$cfgfile.tmp" "$cfgfile" \
20399 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20400 test 0 -eq $? || _lt_function_replace_fail=:
20401
20402
20403 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20404 func_split_long_opt ()\
20405 {\
20406 \ func_split_long_opt_name=${1%%=*}\
20407 \ func_split_long_opt_arg=${1#*=}\
20408 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20409 && mv -f "$cfgfile.tmp" "$cfgfile" \
20410 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20411 test 0 -eq $? || _lt_function_replace_fail=:
20412
20413
20414 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20415 func_split_short_opt ()\
20416 {\
20417 \ func_split_short_opt_arg=${1#??}\
20418 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20419 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20420 && mv -f "$cfgfile.tmp" "$cfgfile" \
20421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20422 test 0 -eq $? || _lt_function_replace_fail=:
20423
20424
20425 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20426 func_lo2o ()\
20427 {\
20428 \ case ${1} in\
20429 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20430 \ *) func_lo2o_result=${1} ;;\
20431 \ esac\
20432 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20433 && mv -f "$cfgfile.tmp" "$cfgfile" \
20434 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20435 test 0 -eq $? || _lt_function_replace_fail=:
20436
20437
20438 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20439 func_xform ()\
20440 {\
20441 func_xform_result=${1%.*}.lo\
20442 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20443 && mv -f "$cfgfile.tmp" "$cfgfile" \
20444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20445 test 0 -eq $? || _lt_function_replace_fail=:
20446
20447
20448 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20449 func_arith ()\
20450 {\
20451 func_arith_result=$(( $* ))\
20452 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20453 && mv -f "$cfgfile.tmp" "$cfgfile" \
20454 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20455 test 0 -eq $? || _lt_function_replace_fail=:
20456
20457
20458 sed -e '/^func_len ()$/,/^} # func_len /c\
20459 func_len ()\
20460 {\
20461 func_len_result=${#1}\
20462 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20463 && mv -f "$cfgfile.tmp" "$cfgfile" \
20464 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20465 test 0 -eq $? || _lt_function_replace_fail=:
20466
20467 fi
20468
20469 if test x"$lt_shell_append" = xyes; then
20470 sed -e '/^func_append ()$/,/^} # func_append /c\
20471 func_append ()\
20472 {\
20473 eval "${1}+=\\${2}"\
20474 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20475 && mv -f "$cfgfile.tmp" "$cfgfile" \
20476 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20477 test 0 -eq $? || _lt_function_replace_fail=:
20478
20479
20480 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20481 func_append_quoted ()\
20482 {\
20483 \ func_quote_for_eval "${2}"\
20484 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20485 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20486 && mv -f "$cfgfile.tmp" "$cfgfile" \
20487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20488 test 0 -eq $? || _lt_function_replace_fail=:
20489
20490
20491 # Save a `func_append' function call where possible by direct use of '+='
20492 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20493 && mv -f "$cfgfile.tmp" "$cfgfile" \
20494 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20495 test 0 -eq $? || _lt_function_replace_fail=:
20496 else
20497 # Save a `func_append' function call even when '+=' is not available
20498 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20499 && mv -f "$cfgfile.tmp" "$cfgfile" \
20500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20501 test 0 -eq $? || _lt_function_replace_fail=:
20502 fi
20503
20504 if test x"$_lt_function_replace_fail" = x":"; then
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20506 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20507 fi
20508
20509
20510 mv -f "$cfgfile" "$ofile" ||
20511 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20512 chmod +x "$ofile"
20513
20514
20515 cat <<_LT_EOF >> "$ofile"
20516
20517 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20518
20519 # The linker used to build libraries.
20520 LD=$lt_LD_CXX
20521
20522 # How to create reloadable object files.
20523 reload_flag=$lt_reload_flag_CXX
20524 reload_cmds=$lt_reload_cmds_CXX
20525
20526 # Commands used to build an old-style archive.
20527 old_archive_cmds=$lt_old_archive_cmds_CXX
20528
20529 # A language specific compiler.
20530 CC=$lt_compiler_CXX
20531
20532 # Is the compiler the GNU compiler?
20533 with_gcc=$GCC_CXX
20534
20535 # Compiler flag to turn off builtin functions.
20536 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20537
20538 # Additional compiler flags for building library objects.
20539 pic_flag=$lt_lt_prog_compiler_pic_CXX
20540
20541 # How to pass a linker flag through the compiler.
20542 wl=$lt_lt_prog_compiler_wl_CXX
20543
20544 # Compiler flag to prevent dynamic linking.
20545 link_static_flag=$lt_lt_prog_compiler_static_CXX
20546
20547 # Does compiler simultaneously support -c and -o options?
20548 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20549
20550 # Whether or not to add -lc for building shared libraries.
20551 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20552
20553 # Whether or not to disallow shared libs when runtime libs are static.
20554 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20555
20556 # Compiler flag to allow reflexive dlopens.
20557 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20558
20559 # Compiler flag to generate shared objects directly from archives.
20560 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20561
20562 # Whether the compiler copes with passing no objects directly.
20563 compiler_needs_object=$lt_compiler_needs_object_CXX
20564
20565 # Create an old-style archive from a shared archive.
20566 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20567
20568 # Create a temporary old-style archive to link instead of a shared archive.
20569 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20570
20571 # Commands used to build a shared archive.
20572 archive_cmds=$lt_archive_cmds_CXX
20573 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20574
20575 # Commands used to build a loadable module if different from building
20576 # a shared archive.
20577 module_cmds=$lt_module_cmds_CXX
20578 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20579
20580 # Whether we are building with GNU ld or not.
20581 with_gnu_ld=$lt_with_gnu_ld_CXX
20582
20583 # Flag that allows shared libraries with undefined symbols to be built.
20584 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20585
20586 # Flag that enforces no undefined symbols.
20587 no_undefined_flag=$lt_no_undefined_flag_CXX
20588
20589 # Flag to hardcode \$libdir into a binary during linking.
20590 # This must work even if \$libdir does not exist
20591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20592
20593 # Whether we need a single "-rpath" flag with a separated argument.
20594 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20595
20596 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20597 # DIR into the resulting binary.
20598 hardcode_direct=$hardcode_direct_CXX
20599
20600 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20601 # DIR into the resulting binary and the resulting library dependency is
20602 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20603 # library is relocated.
20604 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20605
20606 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20607 # into the resulting binary.
20608 hardcode_minus_L=$hardcode_minus_L_CXX
20609
20610 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20611 # into the resulting binary.
20612 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20613
20614 # Set to "yes" if building a shared library automatically hardcodes DIR
20615 # into the library and all subsequent libraries and executables linked
20616 # against it.
20617 hardcode_automatic=$hardcode_automatic_CXX
20618
20619 # Set to yes if linker adds runtime paths of dependent libraries
20620 # to runtime path list.
20621 inherit_rpath=$inherit_rpath_CXX
20622
20623 # Whether libtool must link a program against all its dependency libraries.
20624 link_all_deplibs=$link_all_deplibs_CXX
20625
20626 # Set to "yes" if exported symbols are required.
20627 always_export_symbols=$always_export_symbols_CXX
20628
20629 # The commands to list exported symbols.
20630 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20631
20632 # Symbols that should not be listed in the preloaded symbols.
20633 exclude_expsyms=$lt_exclude_expsyms_CXX
20634
20635 # Symbols that must always be exported.
20636 include_expsyms=$lt_include_expsyms_CXX
20637
20638 # Commands necessary for linking programs (against libraries) with templates.
20639 prelink_cmds=$lt_prelink_cmds_CXX
20640
20641 # Commands necessary for finishing linking programs.
20642 postlink_cmds=$lt_postlink_cmds_CXX
20643
20644 # Specify filename containing input files.
20645 file_list_spec=$lt_file_list_spec_CXX
20646
20647 # How to hardcode a shared library path into an executable.
20648 hardcode_action=$hardcode_action_CXX
20649
20650 # The directories searched by this compiler when creating a shared library.
20651 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20652
20653 # Dependencies to place before and after the objects being linked to
20654 # create a shared library.
20655 predep_objects=$lt_predep_objects_CXX
20656 postdep_objects=$lt_postdep_objects_CXX
20657 predeps=$lt_predeps_CXX
20658 postdeps=$lt_postdeps_CXX
20659
20660 # The library search path used internally by the compiler when linking
20661 # a shared library.
20662 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20663
20664 # ### END LIBTOOL TAG CONFIG: CXX
20665 _LT_EOF
20666
20667 ;;
20668 "libtool-rpath-patch":C) if test "$libtool_use_rpath" = "no"; then
20669 sed < libtool > libtool-2 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_NO_RPATH__ "/'
20670 mv libtool-2 libtool
20671 chmod 755 libtool
20672 fi ;;
20673
20674 esac
20675 done # for ac_tag
20676
20677
20678 as_fn_exit 0
20679 _ACEOF
20680 ac_clean_files=$ac_clean_files_save
20681
20682 test $ac_write_fail = 0 ||
20683 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20684
20685
20686 # configure is writing to config.log, and then calls config.status.
20687 # config.status does its own redirection, appending to config.log.
20688 # Unfortunately, on DOS this fails, as config.log is still kept open
20689 # by configure, so config.status won't be able to write to it; its
20690 # output is simply discarded. So we exec the FD to /dev/null,
20691 # effectively closing config.log, so it can be properly (re)opened and
20692 # appended to by config.status. When coming back to configure, we
20693 # need to make the FD available again.
20694 if test "$no_create" != yes; then
20695 ac_cs_success=:
20696 ac_config_status_args=
20697 test "$silent" = yes &&
20698 ac_config_status_args="$ac_config_status_args --quiet"
20699 exec 5>/dev/null
20700 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20701 exec 5>>config.log
20702 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20703 # would make configure fail if this is the last instruction.
20704 $ac_cs_success || as_fn_exit 1
20705 fi
20706 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20708 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20709 fi
20710