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-qt 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-qt'
592 PACKAGE_TARNAME='libodb-qt'
593 PACKAGE_VERSION='2.4.0'
594 PACKAGE_STRING='libodb-qt 2.4.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="odb/qt/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 pkg_config
641 PTHREAD_CXX
642 PTHREAD_CXXFLAGS
643 PTHREAD_LIBS
644 acx_pthread_config
645 CXXCPP
646 am__fastdepCXX_FALSE
647 am__fastdepCXX_TRUE
648 CXXDEPMODE
649 ac_ct_CXX
650 CXXFLAGS
651 CXX
652 CPP
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 MANIFEST_TOOL
659 RANLIB
660 LN_S
661 NM
662 ac_ct_DUMPBIN
663 DUMPBIN
664 LD
665 FGREP
666 EGREP
667 GREP
668 SED
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 LIBTOOL
678 OBJDUMP
679 DLLTOOL
680 AS
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 ac_ct_AR
699 AR
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_dependency_tracking
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 with_sysroot
771 enable_libtool_lock
772 enable_threads
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-qt 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-qt]
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-qt 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-libodb=DIR location of libodb build directory
1429 --with-pkgconfigdir=DIR location of pkgconfig dir (default is
1430 libdir/pkgconfig)
1431
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1440 CPP C preprocessor
1441 CXX C++ compiler command
1442 CXXFLAGS C++ compiler flags
1443 CXXCPP C++ preprocessor
1444
1445 Use these variables to override the choices made by `configure' or to help
1446 it to find libraries and programs with nonstandard names/locations.
1447
1448 Report bugs to <[email protected]>.
1449 _ACEOF
1450 ac_status=$?
1451 fi
1452
1453 if test "$ac_init_help" = "recursive"; then
1454 # If there are subdirs, report their specific --help.
1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456 test -d "$ac_dir" ||
1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458 continue
1459 ac_builddir=.
1460
1461 case "$ac_dir" in
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *)
1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465 # A ".." for each directory in $ac_dir_suffix.
1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467 case $ac_top_builddir_sub in
1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 esac ;;
1471 esac
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1476
1477 case $srcdir in
1478 .) # We are building in place.
1479 ac_srcdir=.
1480 ac_top_srcdir=$ac_top_builddir_sub
1481 ac_abs_top_srcdir=$ac_pwd ;;
1482 [\\/]* | ?:[\\/]* ) # Absolute name.
1483 ac_srcdir=$srcdir$ac_dir_suffix;
1484 ac_top_srcdir=$srcdir
1485 ac_abs_top_srcdir=$srcdir ;;
1486 *) # Relative name.
1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488 ac_top_srcdir=$ac_top_build_prefix$srcdir
1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490 esac
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493 cd "$ac_dir" || { ac_status=$?; continue; }
1494 # Check for guested configure.
1495 if test -f "$ac_srcdir/configure.gnu"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498 elif test -f "$ac_srcdir/configure"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure" --help=recursive
1501 else
1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503 fi || ac_status=$?
1504 cd "$ac_pwd" || { ac_status=$?; break; }
1505 done
1506 fi
1507
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1510 cat <<\_ACEOF
1511 libodb-qt configure 2.4.0
1512 generated by GNU Autoconf 2.69
1513
1514 Copyright (C) 2012 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1517 _ACEOF
1518 exit
1519 fi
1520
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1524
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1529 {
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext
1532 if { { ac_try="$ac_compile"
1533 case "(($ac_try" in
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_compile") 2>conftest.err
1540 ac_status=$?
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1545 fi
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest.$ac_objext; then :
1551 ac_retval=0
1552 else
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1555
1556 ac_retval=1
1557 fi
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1560
1561 } # ac_fn_c_try_compile
1562
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_link ()
1567 {
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext conftest$ac_exeext
1570 if { { ac_try="$ac_link"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest$ac_exeext && {
1589 test "$cross_compiling" = yes ||
1590 test -x conftest$ac_exeext
1591 }; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601 # interfere with the next link command; also delete a directory that is
1602 # left behind by Apple's compiler. We do this before executing the actions.
1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_link
1608
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \${$3+:} false; then :
1619 $as_echo_n "(cached) " >&6
1620 else
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 $4
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_compile "$LINENO"; then :
1627 eval "$3=yes"
1628 else
1629 eval "$3=no"
1630 fi
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 fi
1633 eval ac_res=\$$3
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638 } # ac_fn_c_check_header_compile
1639
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_cpp ()
1644 {
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1659 fi
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } > conftest.i && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 }; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=1
1671 fi
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1674
1675 } # ac_fn_c_try_cpp
1676
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1681 ac_fn_c_try_run ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>&5
1692 ac_status=$?
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695 { { case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_try") 2>&5
1702 ac_status=$?
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; }; }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: program exited with status $ac_status" >&5
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=$ac_status
1712 fi
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1716
1717 } # ac_fn_c_try_run
1718
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729 else
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1734 #define $2 innocuous_$2
1735
1736 /* System header to define __stub macros and hopefully few prototypes,
1737 which can conflict with char $2 (); below.
1738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739 <limits.h> exists even on freestanding compilers. */
1740
1741 #ifdef __STDC__
1742 # include <limits.h>
1743 #else
1744 # include <assert.h>
1745 #endif
1746
1747 #undef $2
1748
1749 /* Override any GCC internal prototype to avoid an error.
1750 Use char because int might match the return type of a GCC
1751 builtin and then its argument prototype would still apply. */
1752 #ifdef __cplusplus
1753 extern "C"
1754 #endif
1755 char $2 ();
1756 /* The GNU C library defines this for functions which it implements
1757 to always fail with ENOSYS. Some functions are actually named
1758 something starting with __ and the normal name is an alias. */
1759 #if defined __stub_$2 || defined __stub___$2
1760 choke me
1761 #endif
1762
1763 int
1764 main ()
1765 {
1766 return $2 ();
1767 ;
1768 return 0;
1769 }
1770 _ACEOF
1771 if ac_fn_c_try_link "$LINENO"; then :
1772 eval "$3=yes"
1773 else
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext \
1777 conftest$ac_exeext conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_func
1785
1786 # ac_fn_cxx_try_compile LINENO
1787 # ----------------------------
1788 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_cxx_try_compile ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext
1793 if { { ac_try="$ac_compile"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_compile") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_cxx_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest.$ac_objext; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1821
1822 } # ac_fn_cxx_try_compile
1823
1824 # ac_fn_cxx_try_cpp LINENO
1825 # ------------------------
1826 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_cxx_try_cpp ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_cpp conftest.$ac_ext"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1843 fi
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } > conftest.i && {
1846 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1847 test ! -s conftest.err
1848 }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 ac_retval=1
1855 fi
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1858
1859 } # ac_fn_cxx_try_cpp
1860
1861 # ac_fn_cxx_try_link LINENO
1862 # -------------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_link ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1881 fi
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_cxx_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 test -x conftest$ac_exeext
1889 }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_retval=1
1896 fi
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1904
1905 } # ac_fn_cxx_try_link
1906 cat >config.log <<_ACEOF
1907 This file contains any messages produced by compilers while
1908 running configure, to aid debugging if configure makes a mistake.
1909
1910 It was created by libodb-qt $as_me 2.4.0, which was
1911 generated by GNU Autoconf 2.69. Invocation command line was
1912
1913 $ $0 $@
1914
1915 _ACEOF
1916 exec 5>>config.log
1917 {
1918 cat <<_ASUNAME
1919 ## --------- ##
1920 ## Platform. ##
1921 ## --------- ##
1922
1923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1924 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1925 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1926 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1927 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1928
1929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1931
1932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1939
1940 _ASUNAME
1941
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 $as_echo "PATH: $as_dir"
1948 done
1949 IFS=$as_save_IFS
1950
1951 } >&5
1952
1953 cat >&5 <<_ACEOF
1954
1955
1956 ## ----------- ##
1957 ## Core tests. ##
1958 ## ----------- ##
1959
1960 _ACEOF
1961
1962
1963 # Keep a trace of the command line.
1964 # Strip out --no-create and --no-recursion so they do not pile up.
1965 # Strip out --silent because we don't want to record it for future runs.
1966 # Also quote any args containing shell meta-characters.
1967 # Make two passes to allow for proper duplicate-argument suppression.
1968 ac_configure_args=
1969 ac_configure_args0=
1970 ac_configure_args1=
1971 ac_must_keep_next=false
1972 for ac_pass in 1 2
1973 do
1974 for ac_arg
1975 do
1976 case $ac_arg in
1977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1979 | -silent | --silent | --silen | --sile | --sil)
1980 continue ;;
1981 *\'*)
1982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1983 esac
1984 case $ac_pass in
1985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1986 2)
1987 as_fn_append ac_configure_args1 " '$ac_arg'"
1988 if test $ac_must_keep_next = true; then
1989 ac_must_keep_next=false # Got value, back to normal.
1990 else
1991 case $ac_arg in
1992 *=* | --config-cache | -C | -disable-* | --disable-* \
1993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1995 | -with-* | --with-* | -without-* | --without-* | --x)
1996 case "$ac_configure_args0 " in
1997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1998 esac
1999 ;;
2000 -* ) ac_must_keep_next=true ;;
2001 esac
2002 fi
2003 as_fn_append ac_configure_args " '$ac_arg'"
2004 ;;
2005 esac
2006 done
2007 done
2008 { ac_configure_args0=; unset ac_configure_args0;}
2009 { ac_configure_args1=; unset ac_configure_args1;}
2010
2011 # When interrupted or exit'd, cleanup temporary files, and complete
2012 # config.log. We remove comments because anyway the quotes in there
2013 # would cause problems or look ugly.
2014 # WARNING: Use '\'' to represent an apostrophe within the trap.
2015 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2016 trap 'exit_status=$?
2017 # Save into config.log some information that might help in debugging.
2018 {
2019 echo
2020
2021 $as_echo "## ---------------- ##
2022 ## Cache variables. ##
2023 ## ---------------- ##"
2024 echo
2025 # The following way of writing the cache mishandles newlines in values,
2026 (
2027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in #(
2030 *${as_nl}*)
2031 case $ac_var in #(
2032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2034 esac
2035 case $ac_var in #(
2036 _ | IFS | as_nl) ;; #(
2037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2038 *) { eval $ac_var=; unset $ac_var;} ;;
2039 esac ;;
2040 esac
2041 done
2042 (set) 2>&1 |
2043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2044 *${as_nl}ac_space=\ *)
2045 sed -n \
2046 "s/'\''/'\''\\\\'\'''\''/g;
2047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2048 ;; #(
2049 *)
2050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2051 ;;
2052 esac |
2053 sort
2054 )
2055 echo
2056
2057 $as_echo "## ----------------- ##
2058 ## Output variables. ##
2059 ## ----------------- ##"
2060 echo
2061 for ac_var in $ac_subst_vars
2062 do
2063 eval ac_val=\$$ac_var
2064 case $ac_val in
2065 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066 esac
2067 $as_echo "$ac_var='\''$ac_val'\''"
2068 done | sort
2069 echo
2070
2071 if test -n "$ac_subst_files"; then
2072 $as_echo "## ------------------- ##
2073 ## File substitutions. ##
2074 ## ------------------- ##"
2075 echo
2076 for ac_var in $ac_subst_files
2077 do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in
2080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 esac
2082 $as_echo "$ac_var='\''$ac_val'\''"
2083 done | sort
2084 echo
2085 fi
2086
2087 if test -s confdefs.h; then
2088 $as_echo "## ----------- ##
2089 ## confdefs.h. ##
2090 ## ----------- ##"
2091 echo
2092 cat confdefs.h
2093 echo
2094 fi
2095 test "$ac_signal" != 0 &&
2096 $as_echo "$as_me: caught signal $ac_signal"
2097 $as_echo "$as_me: exit $exit_status"
2098 } >&5
2099 rm -f core *.core core.conftest.* &&
2100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2101 exit $exit_status
2102 ' 0
2103 for ac_signal in 1 2 13 15; do
2104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2105 done
2106 ac_signal=0
2107
2108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2109 rm -f -r conftest* confdefs.h
2110
2111 $as_echo "/* confdefs.h */" > confdefs.h
2112
2113 # Predefined preprocessor variables.
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_NAME "$PACKAGE_NAME"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_STRING "$PACKAGE_STRING"
2129 _ACEOF
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2133 _ACEOF
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_URL "$PACKAGE_URL"
2137 _ACEOF
2138
2139
2140 # Let the site file select an alternate cache file if it wants to.
2141 # Prefer an explicitly selected file to automatically selected ones.
2142 ac_site_file1=NONE
2143 ac_site_file2=NONE
2144 if test -n "$CONFIG_SITE"; then
2145 # We do not want a PATH search for config.site.
2146 case $CONFIG_SITE in #((
2147 -*) ac_site_file1=./$CONFIG_SITE;;
2148 */*) ac_site_file1=$CONFIG_SITE;;
2149 *) ac_site_file1=./$CONFIG_SITE;;
2150 esac
2151 elif test "x$prefix" != xNONE; then
2152 ac_site_file1=$prefix/share/config.site
2153 ac_site_file2=$prefix/etc/config.site
2154 else
2155 ac_site_file1=$ac_default_prefix/share/config.site
2156 ac_site_file2=$ac_default_prefix/etc/config.site
2157 fi
2158 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2159 do
2160 test "x$ac_site_file" = xNONE && continue
2161 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2163 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2164 sed 's/^/| /' "$ac_site_file" >&5
2165 . "$ac_site_file" \
2166 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 as_fn_error $? "failed to load site script $ac_site_file
2169 See \`config.log' for more details" "$LINENO" 5; }
2170 fi
2171 done
2172
2173 if test -r "$cache_file"; then
2174 # Some versions of bash will fail to source /dev/null (special files
2175 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2176 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2178 $as_echo "$as_me: loading cache $cache_file" >&6;}
2179 case $cache_file in
2180 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2181 *) . "./$cache_file";;
2182 esac
2183 fi
2184 else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2186 $as_echo "$as_me: creating cache $cache_file" >&6;}
2187 >$cache_file
2188 fi
2189
2190 # Check that the precious variables saved in the cache have kept the same
2191 # value.
2192 ac_cache_corrupted=false
2193 for ac_var in $ac_precious_vars; do
2194 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2195 eval ac_new_set=\$ac_env_${ac_var}_set
2196 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2197 eval ac_new_val=\$ac_env_${ac_var}_value
2198 case $ac_old_set,$ac_new_set in
2199 set,)
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2201 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2202 ac_cache_corrupted=: ;;
2203 ,set)
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2205 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2206 ac_cache_corrupted=: ;;
2207 ,);;
2208 *)
2209 if test "x$ac_old_val" != "x$ac_new_val"; then
2210 # differences in whitespace do not lead to failure.
2211 ac_old_val_w=`echo x $ac_old_val`
2212 ac_new_val_w=`echo x $ac_new_val`
2213 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2215 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2216 ac_cache_corrupted=:
2217 else
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2219 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2220 eval $ac_var=\$ac_old_val
2221 fi
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2223 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2225 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2226 fi;;
2227 esac
2228 # Pass precious variables to config.status.
2229 if test "$ac_new_set" = set; then
2230 case $ac_new_val in
2231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2232 *) ac_arg=$ac_var=$ac_new_val ;;
2233 esac
2234 case " $ac_configure_args " in
2235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2236 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2237 esac
2238 fi
2239 done
2240 if $ac_cache_corrupted; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2244 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2245 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2246 fi
2247 ## -------------------- ##
2248 ## Main body of script. ##
2249 ## -------------------- ##
2250
2251 ac_ext=c
2252 ac_cpp='$CPP $CPPFLAGS'
2253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256
2257
2258 ac_aux_dir=
2259 for ac_dir in config "$srcdir"/config; do
2260 if test -f "$ac_dir/install-sh"; then
2261 ac_aux_dir=$ac_dir
2262 ac_install_sh="$ac_aux_dir/install-sh -c"
2263 break
2264 elif test -f "$ac_dir/install.sh"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/install.sh -c"
2267 break
2268 elif test -f "$ac_dir/shtool"; then
2269 ac_aux_dir=$ac_dir
2270 ac_install_sh="$ac_aux_dir/shtool install -c"
2271 break
2272 fi
2273 done
2274 if test -z "$ac_aux_dir"; then
2275 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2276 fi
2277
2278 # These three variables are undocumented and unsupported,
2279 # and are intended to be withdrawn in a future Autoconf release.
2280 # They can cause serious problems if a builder's source tree is in a directory
2281 # whose full name contains unusual characters.
2282 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2283 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2284 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2285
2286
2287
2288
2289
2290 am__api_version='1.12'
2291
2292 # Find a good install program. We prefer a C program (faster),
2293 # so one script is as good as another. But avoid the broken or
2294 # incompatible versions:
2295 # SysV /etc/install, /usr/sbin/install
2296 # SunOS /usr/etc/install
2297 # IRIX /sbin/install
2298 # AIX /bin/install
2299 # AmigaOS /C/install, which installs bootblocks on floppy discs
2300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2303 # OS/2's system install, which has a completely different semantic
2304 # ./install, which can be erroneously created by make from ./install.sh.
2305 # Reject install programs that cannot install multiple files.
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2307 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2308 if test -z "$INSTALL"; then
2309 if ${ac_cv_path_install+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 # Account for people who put trailing slashes in PATH elements.
2318 case $as_dir/ in #((
2319 ./ | .// | /[cC]/* | \
2320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2321 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2322 /usr/ucb/* ) ;;
2323 *)
2324 # OSF1 and SCO ODT 3.0 have their own names for install.
2325 # Don't use installbsd from OSF since it installs stuff as root
2326 # by default.
2327 for ac_prog in ginstall scoinst install; do
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2330 if test $ac_prog = install &&
2331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2332 # AIX install. It has an incompatible calling convention.
2333 :
2334 elif test $ac_prog = install &&
2335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2336 # program-specific install script used by HP pwplus--don't use.
2337 :
2338 else
2339 rm -rf conftest.one conftest.two conftest.dir
2340 echo one > conftest.one
2341 echo two > conftest.two
2342 mkdir conftest.dir
2343 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2344 test -s conftest.one && test -s conftest.two &&
2345 test -s conftest.dir/conftest.one &&
2346 test -s conftest.dir/conftest.two
2347 then
2348 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2349 break 3
2350 fi
2351 fi
2352 fi
2353 done
2354 done
2355 ;;
2356 esac
2357
2358 done
2359 IFS=$as_save_IFS
2360
2361 rm -rf conftest.one conftest.two conftest.dir
2362
2363 fi
2364 if test "${ac_cv_path_install+set}" = set; then
2365 INSTALL=$ac_cv_path_install
2366 else
2367 # As a last resort, use the slow shell script. Don't cache a
2368 # value for INSTALL within a source directory, because that will
2369 # break other packages using the cache if that directory is
2370 # removed, or if the value is a relative name.
2371 INSTALL=$ac_install_sh
2372 fi
2373 fi
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2375 $as_echo "$INSTALL" >&6; }
2376
2377 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2378 # It thinks the first close brace ends the variable substitution.
2379 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2380
2381 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2382
2383 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2384
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2386 $as_echo_n "checking whether build environment is sane... " >&6; }
2387 # Reject unsafe characters in $srcdir or the absolute working directory
2388 # name. Accept space and tab only in the latter.
2389 am_lf='
2390 '
2391 case `pwd` in
2392 *[\\\"\#\$\&\'\`$am_lf]*)
2393 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2394 esac
2395 case $srcdir in
2396 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2397 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2398 esac
2399
2400 # Do 'set' in a subshell so we don't clobber the current shell's
2401 # arguments. Must try -L first in case configure is actually a
2402 # symlink; some systems play weird games with the mod time of symlinks
2403 # (eg FreeBSD returns the mod time of the symlink's containing
2404 # directory).
2405 if (
2406 am_has_slept=no
2407 for am_try in 1 2; do
2408 echo "timestamp, slept: $am_has_slept" > conftest.file
2409 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2410 if test "$*" = "X"; then
2411 # -L didn't work.
2412 set X `ls -t "$srcdir/configure" conftest.file`
2413 fi
2414 if test "$*" != "X $srcdir/configure conftest.file" \
2415 && test "$*" != "X conftest.file $srcdir/configure"; then
2416
2417 # If neither matched, then we have a broken ls. This can happen
2418 # if, for instance, CONFIG_SHELL is bash and it inherits a
2419 # broken ls alias from the environment. This has actually
2420 # happened. Such a system could not be considered "sane".
2421 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2422 alias in your environment" "$LINENO" 5
2423 fi
2424 if test "$2" = conftest.file || test $am_try -eq 2; then
2425 break
2426 fi
2427 # Just in case.
2428 sleep 1
2429 am_has_slept=yes
2430 done
2431 test "$2" = conftest.file
2432 )
2433 then
2434 # Ok.
2435 :
2436 else
2437 as_fn_error $? "newly created file is older than distributed files!
2438 Check your system clock" "$LINENO" 5
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441 $as_echo "yes" >&6; }
2442 # If we didn't sleep, we still need to ensure time stamps of config.status and
2443 # generated files are strictly newer.
2444 am_sleep_pid=
2445 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2446 ( sleep 1 ) &
2447 am_sleep_pid=$!
2448 fi
2449
2450 rm -f conftest.file
2451
2452 test "$program_prefix" != NONE &&
2453 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2454 # Use a double $ so make ignores it.
2455 test "$program_suffix" != NONE &&
2456 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2457 # Double any \ or $.
2458 # By default was `s,x,x', remove it if useless.
2459 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2460 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2461
2462 # expand $ac_aux_dir to an absolute path
2463 am_aux_dir=`cd $ac_aux_dir && pwd`
2464
2465 if test x"${MISSING+set}" != xset; then
2466 case $am_aux_dir in
2467 *\ * | *\ *)
2468 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2469 *)
2470 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2471 esac
2472 fi
2473 # Use eval to expand $SHELL
2474 if eval "$MISSING --run true"; then
2475 am_missing_run="$MISSING --run "
2476 else
2477 am_missing_run=
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2479 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2480 fi
2481
2482 if test x"${install_sh}" != xset; then
2483 case $am_aux_dir in
2484 *\ * | *\ *)
2485 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2486 *)
2487 install_sh="\${SHELL} $am_aux_dir/install-sh"
2488 esac
2489 fi
2490
2491 # Installed binaries are usually stripped using 'strip' when the user
2492 # run "make install-strip". However 'strip' might not be the right
2493 # tool to use in cross-compilation environments, therefore Automake
2494 # will honor the 'STRIP' environment variable to overrule this program.
2495 if test "$cross_compiling" != no; then
2496 if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}strip; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if ${ac_cv_prog_STRIP+:} false; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$STRIP"; then
2505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi
2523 fi
2524 STRIP=$ac_cv_prog_STRIP
2525 if test -n "$STRIP"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2527 $as_echo "$STRIP" >&6; }
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2531 fi
2532
2533
2534 fi
2535 if test -z "$ac_cv_prog_STRIP"; then
2536 ac_ct_STRIP=$STRIP
2537 # Extract the first word of "strip", so it can be a program name with args.
2538 set dummy strip; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$ac_ct_STRIP"; then
2545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554 ac_cv_prog_ac_ct_STRIP="strip"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2565 if test -n "$ac_ct_STRIP"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2567 $as_echo "$ac_ct_STRIP" >&6; }
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2572
2573 if test "x$ac_ct_STRIP" = x; then
2574 STRIP=":"
2575 else
2576 case $cross_compiling:$ac_tool_warned in
2577 yes:)
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2580 ac_tool_warned=yes ;;
2581 esac
2582 STRIP=$ac_ct_STRIP
2583 fi
2584 else
2585 STRIP="$ac_cv_prog_STRIP"
2586 fi
2587
2588 fi
2589 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2592 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2593 if test -z "$MKDIR_P"; then
2594 if ${ac_cv_path_mkdir+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_prog in mkdir gmkdir; do
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2605 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2606 'mkdir (GNU coreutils) '* | \
2607 'mkdir (coreutils) '* | \
2608 'mkdir (fileutils) '4.1*)
2609 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2610 break 3;;
2611 esac
2612 done
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618
2619 test -d ./--version && rmdir ./--version
2620 if test "${ac_cv_path_mkdir+set}" = set; then
2621 MKDIR_P="$ac_cv_path_mkdir -p"
2622 else
2623 # As a last resort, use the slow shell script. Don't cache a
2624 # value for MKDIR_P within a source directory, because that will
2625 # break other packages using the cache if that directory is
2626 # removed, or if the value is a relative name.
2627 MKDIR_P="$ac_install_sh -d"
2628 fi
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2631 $as_echo "$MKDIR_P" >&6; }
2632
2633 for ac_prog in gawk mawk nawk awk
2634 do
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_AWK+:} false; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 if test -n "$AWK"; then
2643 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_AWK="$ac_prog"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 AWK=$ac_cv_prog_AWK
2663 if test -n "$AWK"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2665 $as_echo "$AWK" >&6; }
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 fi
2670
2671
2672 test -n "$AWK" && break
2673 done
2674
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2676 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2677 set x ${MAKE-make}
2678 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2679 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 cat >conftest.make <<\_ACEOF
2683 SHELL = /bin/sh
2684 all:
2685 @echo '@@@%%%=$(MAKE)=@@@%%%'
2686 _ACEOF
2687 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2688 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2689 *@@@%%%=?*=@@@%%%*)
2690 eval ac_cv_prog_make_${ac_make}_set=yes;;
2691 *)
2692 eval ac_cv_prog_make_${ac_make}_set=no;;
2693 esac
2694 rm -f conftest.make
2695 fi
2696 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2698 $as_echo "yes" >&6; }
2699 SET_MAKE=
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2703 SET_MAKE="MAKE=${MAKE-make}"
2704 fi
2705
2706 rm -rf .tst 2>/dev/null
2707 mkdir .tst 2>/dev/null
2708 if test -d .tst; then
2709 am__leading_dot=.
2710 else
2711 am__leading_dot=_
2712 fi
2713 rmdir .tst 2>/dev/null
2714
2715 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2716 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2717 # is not polluted with repeated "-I."
2718 am__isrc=' -I$(srcdir)'
2719 # test to see if srcdir already configured
2720 if test -f $srcdir/config.status; then
2721 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2722 fi
2723 fi
2724
2725 # test whether we have cygpath
2726 if test -z "$CYGPATH_W"; then
2727 if (cygpath --version) >/dev/null 2>/dev/null; then
2728 CYGPATH_W='cygpath -w'
2729 else
2730 CYGPATH_W=echo
2731 fi
2732 fi
2733
2734
2735 # Define the identity of the package.
2736 PACKAGE='libodb-qt'
2737 VERSION='2.4.0'
2738
2739
2740 cat >>confdefs.h <<_ACEOF
2741 #define PACKAGE "$PACKAGE"
2742 _ACEOF
2743
2744
2745 cat >>confdefs.h <<_ACEOF
2746 #define VERSION "$VERSION"
2747 _ACEOF
2748
2749 # Some tools Automake needs.
2750
2751 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2752
2753
2754 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2755
2756
2757 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2758
2759
2760 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2761
2762
2763 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2764
2765 # For better backward compatibility. To be removed once Automake 1.9.x
2766 # dies out for good. For more background, see:
2767 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2768 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2769 mkdir_p='$(MKDIR_P)'
2770
2771 # We need awk for the "check" target. The system "awk" is bad on
2772 # some platforms.
2773 # Always define AMTAR for backward compatibility. Yes, it's still used
2774 # in the wild :-( We should find a proper way to deprecate it ...
2775 AMTAR='$${TAR-tar}'
2776
2777
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2779 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2780 # Loop over all known methods to create a tar archive until one works.
2781 _am_tools='gnutar plaintar pax cpio none'
2782 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2783 # Do not fold the above two line into one, because Tru64 sh and
2784 # Solaris sh will not grok spaces in the rhs of '-'.
2785 for _am_tool in $_am_tools
2786 do
2787 case $_am_tool in
2788 gnutar)
2789 for _am_tar in tar gnutar gtar;
2790 do
2791 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2792 ($_am_tar --version) >&5 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } && break
2796 done
2797 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2798 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2799 am__untar="$_am_tar -xf -"
2800 ;;
2801 plaintar)
2802 # Must skip GNU tar: if it does not support --format= it doesn't create
2803 # ustar tarball either.
2804 (tar --version) >/dev/null 2>&1 && continue
2805 am__tar='tar chf - "$$tardir"'
2806 am__tar_='tar chf - "$tardir"'
2807 am__untar='tar xf -'
2808 ;;
2809 pax)
2810 am__tar='pax -L -x ustar -w "$$tardir"'
2811 am__tar_='pax -L -x ustar -w "$tardir"'
2812 am__untar='pax -r'
2813 ;;
2814 cpio)
2815 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2816 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2817 am__untar='cpio -i -H ustar -d'
2818 ;;
2819 none)
2820 am__tar=false
2821 am__tar_=false
2822 am__untar=false
2823 ;;
2824 esac
2825
2826 # If the value was cached, stop now. We just wanted to have am__tar
2827 # and am__untar set.
2828 test -n "${am_cv_prog_tar_ustar}" && break
2829
2830 # tar/untar a dummy directory, and stop if the command works
2831 rm -rf conftest.dir
2832 mkdir conftest.dir
2833 echo GrepMe > conftest.dir/file
2834 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2835 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }
2839 rm -rf conftest.dir
2840 if test -s conftest.tar; then
2841 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2842 ($am__untar <conftest.tar) >&5 2>&5
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }
2846 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2847 fi
2848 done
2849 rm -rf conftest.dir
2850
2851 if ${am_cv_prog_tar_ustar+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 am_cv_prog_tar_ustar=$_am_tool
2855 fi
2856
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2858 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2859
2860
2861
2862
2863
2864 DEPDIR="${am__leading_dot}deps"
2865
2866 ac_config_commands="$ac_config_commands depfiles"
2867
2868
2869 am_make=${MAKE-make}
2870 cat > confinc << 'END'
2871 am__doit:
2872 @echo this is the am__doit target
2873 .PHONY: am__doit
2874 END
2875 # If we don't find an include directive, just comment out the code.
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2877 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2878 am__include="#"
2879 am__quote=
2880 _am_result=none
2881 # First try GNU make style include.
2882 echo "include confinc" > confmf
2883 # Ignore all kinds of additional output from 'make'.
2884 case `$am_make -s -f confmf 2> /dev/null` in #(
2885 *the\ am__doit\ target*)
2886 am__include=include
2887 am__quote=
2888 _am_result=GNU
2889 ;;
2890 esac
2891 # Now try BSD make style include.
2892 if test "$am__include" = "#"; then
2893 echo '.include "confinc"' > confmf
2894 case `$am_make -s -f confmf 2> /dev/null` in #(
2895 *the\ am__doit\ target*)
2896 am__include=.include
2897 am__quote="\""
2898 _am_result=BSD
2899 ;;
2900 esac
2901 fi
2902
2903
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2905 $as_echo "$_am_result" >&6; }
2906 rm -f confinc confmf
2907
2908 # Check whether --enable-dependency-tracking was given.
2909 if test "${enable_dependency_tracking+set}" = set; then :
2910 enableval=$enable_dependency_tracking;
2911 fi
2912
2913 if test "x$enable_dependency_tracking" != xno; then
2914 am_depcomp="$ac_aux_dir/depcomp"
2915 AMDEPBACKSLASH='\'
2916 am__nodep='_no'
2917 fi
2918 if test "x$enable_dependency_tracking" != xno; then
2919 AMDEP_TRUE=
2920 AMDEP_FALSE='#'
2921 else
2922 AMDEP_TRUE='#'
2923 AMDEP_FALSE=
2924 fi
2925
2926
2927 ac_ext=c
2928 ac_cpp='$CPP $CPPFLAGS'
2929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_CC+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$CC"; then
2941 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2953 fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 CC=$ac_cv_prog_CC
2961 if test -n "$CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970 fi
2971 if test -z "$ac_cv_prog_CC"; then
2972 ac_ct_CC=$CC
2973 # Extract the first word of "gcc", so it can be a program name with args.
2974 set dummy gcc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$ac_ct_CC"; then
2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_ac_ct_CC="gcc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003 $as_echo "$ac_ct_CC" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009 if test "x$ac_ct_CC" = x; then
3010 CC=""
3011 else
3012 case $cross_compiling:$ac_tool_warned in
3013 yes:)
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018 CC=$ac_ct_CC
3019 fi
3020 else
3021 CC="$ac_cv_prog_CC"
3022 fi
3023
3024 if test -z "$CC"; then
3025 if test -n "$ac_tool_prefix"; then
3026 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}cc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_CC="${ac_tool_prefix}cc"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3046 fi
3047 done
3048 done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3060 fi
3061
3062
3063 fi
3064 fi
3065 if test -z "$CC"; then
3066 # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 if test -n "$CC"; then
3074 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076 ac_prog_rejected=no
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085 ac_prog_rejected=yes
3086 continue
3087 fi
3088 ac_cv_prog_CC="cc"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 if test $ac_prog_rejected = yes; then
3097 # We found a bogon in the path, so make sure we never use it.
3098 set dummy $ac_cv_prog_CC
3099 shift
3100 if test $# != 0; then
3101 # We chose a different compiler from the bogus one.
3102 # However, it has the same basename, so the bogon will be chosen
3103 # first if we set CC to just the basename; use the full file name.
3104 shift
3105 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3106 fi
3107 fi
3108 fi
3109 fi
3110 CC=$ac_cv_prog_CC
3111 if test -n "$CC"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120 fi
3121 if test -z "$CC"; then
3122 if test -n "$ac_tool_prefix"; then
3123 for ac_prog in cl.exe
3124 do
3125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_CC+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test -n "$CC"; then
3133 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 break 2
3145 fi
3146 done
3147 done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 CC=$ac_cv_prog_CC
3153 if test -n "$CC"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3155 $as_echo "$CC" >&6; }
3156 else
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161
3162 test -n "$CC" && break
3163 done
3164 fi
3165 if test -z "$CC"; then
3166 ac_ct_CC=$CC
3167 for ac_prog in cl.exe
3168 do
3169 # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 if test -n "$ac_ct_CC"; then
3177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_ac_ct_CC="$ac_prog"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3189 fi
3190 done
3191 done
3192 IFS=$as_save_IFS
3193
3194 fi
3195 fi
3196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3197 if test -n "$ac_ct_CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3199 $as_echo "$ac_ct_CC" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206 test -n "$ac_ct_CC" && break
3207 done
3208
3209 if test "x$ac_ct_CC" = x; then
3210 CC=""
3211 else
3212 case $cross_compiling:$ac_tool_warned in
3213 yes:)
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3216 ac_tool_warned=yes ;;
3217 esac
3218 CC=$ac_ct_CC
3219 fi
3220 fi
3221
3222 fi
3223
3224
3225 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3227 as_fn_error $? "no acceptable C compiler found in \$PATH
3228 See \`config.log' for more details" "$LINENO" 5; }
3229
3230 # Provide some information about the compiler.
3231 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3232 set X $ac_compile
3233 ac_compiler=$2
3234 for ac_option in --version -v -V -qversion; do
3235 { { ac_try="$ac_compiler $ac_option >&5"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3243 ac_status=$?
3244 if test -s conftest.err; then
3245 sed '10a\
3246 ... rest of stderr output deleted ...
3247 10q' conftest.err >conftest.er1
3248 cat conftest.er1 >&5
3249 fi
3250 rm -f conftest.er1 conftest.err
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }
3253 done
3254
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3257
3258 int
3259 main ()
3260 {
3261
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 ac_clean_files_save=$ac_clean_files
3267 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3268 # Try to create an executable without -o first, disregard a.out.
3269 # It will help us diagnose broken compilers, and finding out an intuition
3270 # of exeext.
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3272 $as_echo_n "checking whether the C compiler works... " >&6; }
3273 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3274
3275 # The possible output files:
3276 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3277
3278 ac_rmfiles=
3279 for ac_file in $ac_files
3280 do
3281 case $ac_file in
3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3284 esac
3285 done
3286 rm -f $ac_rmfiles
3287
3288 if { { ac_try="$ac_link_default"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_link_default") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3300 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3301 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3302 # so that the user can short-circuit this test for compilers unknown to
3303 # Autoconf.
3304 for ac_file in $ac_files ''
3305 do
3306 test -f "$ac_file" || continue
3307 case $ac_file in
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3309 ;;
3310 [ab].out )
3311 # We found the default executable, but exeext='' is most
3312 # certainly right.
3313 break;;
3314 *.* )
3315 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3316 then :; else
3317 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318 fi
3319 # We set ac_cv_exeext here because the later test for it is not
3320 # safe: cross compilers may not add the suffix if given an `-o'
3321 # argument, so we may need to know it at that point already.
3322 # Even if this section looks crufty: it has the advantage of
3323 # actually working.
3324 break;;
3325 * )
3326 break;;
3327 esac
3328 done
3329 test "$ac_cv_exeext" = no && ac_cv_exeext=
3330
3331 else
3332 ac_file=''
3333 fi
3334 if test -z "$ac_file"; then :
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3337 $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error 77 "C compiler cannot create executables
3343 See \`config.log' for more details" "$LINENO" 5; }
3344 else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3346 $as_echo "yes" >&6; }
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3349 $as_echo_n "checking for C compiler default output file name... " >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3351 $as_echo "$ac_file" >&6; }
3352 ac_exeext=$ac_cv_exeext
3353
3354 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3355 ac_clean_files=$ac_clean_files_save
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3357 $as_echo_n "checking for suffix of executables... " >&6; }
3358 if { { ac_try="$ac_link"
3359 case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365 (eval "$ac_link") 2>&5
3366 ac_status=$?
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }; then :
3369 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3370 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3371 # work properly (i.e., refer to `conftest.exe'), while it won't with
3372 # `rm'.
3373 for ac_file in conftest.exe conftest conftest.*; do
3374 test -f "$ac_file" || continue
3375 case $ac_file in
3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3377 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 break;;
3379 * ) break;;
3380 esac
3381 done
3382 else
3383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3386 See \`config.log' for more details" "$LINENO" 5; }
3387 fi
3388 rm -f conftest conftest$ac_cv_exeext
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3390 $as_echo "$ac_cv_exeext" >&6; }
3391
3392 rm -f conftest.$ac_ext
3393 EXEEXT=$ac_cv_exeext
3394 ac_exeext=$EXEEXT
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397 #include <stdio.h>
3398 int
3399 main ()
3400 {
3401 FILE *f = fopen ("conftest.out", "w");
3402 return ferror (f) || fclose (f) != 0;
3403
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 ac_clean_files="$ac_clean_files conftest.out"
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3412 $as_echo_n "checking whether we are cross compiling... " >&6; }
3413 if test "$cross_compiling" != yes; then
3414 { { ac_try="$ac_link"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_link") 2>&5
3422 ac_status=$?
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }
3425 if { ac_try='./conftest$ac_cv_exeext'
3426 { { case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_try") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; }; then
3436 cross_compiling=no
3437 else
3438 if test "$cross_compiling" = maybe; then
3439 cross_compiling=yes
3440 else
3441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "cannot run C compiled programs.
3444 If you meant to cross compile, use \`--host'.
3445 See \`config.log' for more details" "$LINENO" 5; }
3446 fi
3447 fi
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3450 $as_echo "$cross_compiling" >&6; }
3451
3452 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3453 ac_clean_files=$ac_clean_files_save
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3455 $as_echo_n "checking for suffix of object files... " >&6; }
3456 if ${ac_cv_objext+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main ()
3464 {
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.o conftest.obj
3471 if { { ac_try="$ac_compile"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_compile") 2>&5
3479 ac_status=$?
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; then :
3482 for ac_file in conftest.o conftest.obj conftest.*; do
3483 test -f "$ac_file" || continue;
3484 case $ac_file in
3485 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3486 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3487 break;;
3488 esac
3489 done
3490 else
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error $? "cannot compute suffix of object files: cannot compile
3497 See \`config.log' for more details" "$LINENO" 5; }
3498 fi
3499 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3500 fi
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3502 $as_echo "$ac_cv_objext" >&6; }
3503 OBJEXT=$ac_cv_objext
3504 ac_objext=$OBJEXT
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3506 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3507 if ${ac_cv_c_compiler_gnu+:} false; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512
3513 int
3514 main ()
3515 {
3516 #ifndef __GNUC__
3517 choke me
3518 #endif
3519
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 if ac_fn_c_try_compile "$LINENO"; then :
3525 ac_compiler_gnu=yes
3526 else
3527 ac_compiler_gnu=no
3528 fi
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3531
3532 fi
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3536 GCC=yes
3537 else
3538 GCC=
3539 fi
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if ${ac_cv_prog_cc_g+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 ac_save_c_werror_flag=$ac_c_werror_flag
3548 ac_c_werror_flag=yes
3549 ac_cv_prog_cc_g=no
3550 CFLAGS="-g"
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3553
3554 int
3555 main ()
3556 {
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_cv_prog_cc_g=yes
3564 else
3565 CFLAGS=""
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3568
3569 int
3570 main ()
3571 {
3572
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 if ac_fn_c_try_compile "$LINENO"; then :
3578
3579 else
3580 ac_c_werror_flag=$ac_save_c_werror_flag
3581 CFLAGS="-g"
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_cv_prog_cc_g=yes
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 ac_c_werror_flag=$ac_save_c_werror_flag
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3604 $as_echo "$ac_cv_prog_cc_g" >&6; }
3605 if test "$ac_test_CFLAGS" = set; then
3606 CFLAGS=$ac_save_CFLAGS
3607 elif test $ac_cv_prog_cc_g = yes; then
3608 if test "$GCC" = yes; then
3609 CFLAGS="-g -O2"
3610 else
3611 CFLAGS="-g"
3612 fi
3613 else
3614 if test "$GCC" = yes; then
3615 CFLAGS="-O2"
3616 else
3617 CFLAGS=
3618 fi
3619 fi
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3621 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3622 if ${ac_cv_prog_cc_c89+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 ac_cv_prog_cc_c89=no
3626 ac_save_CC=$CC
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 #include <stdarg.h>
3630 #include <stdio.h>
3631 struct stat;
3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3633 struct buf { int x; };
3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635 static char *e (p, i)
3636 char **p;
3637 int i;
3638 {
3639 return p[i];
3640 }
3641 static char *f (char * (*g) (char **, int), char **p, ...)
3642 {
3643 char *s;
3644 va_list v;
3645 va_start (v,p);
3646 s = g (p, va_arg (v,int));
3647 va_end (v);
3648 return s;
3649 }
3650
3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3652 function prototypes and stuff, but not '\xHH' hex character constants.
3653 These don't provoke an error unfortunately, instead are silently treated
3654 as 'x'. The following induces an error, until -std is added to get
3655 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3656 array size at least. It's necessary to write '\x00'==0 to get something
3657 that's true only with -std. */
3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659
3660 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3661 inside strings and character constants. */
3662 #define FOO(x) 'x'
3663 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3664
3665 int test (int i, double x);
3666 struct s1 {int (*f) (int a);};
3667 struct s2 {int (*f) (double a);};
3668 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3669 int argc;
3670 char **argv;
3671 int
3672 main ()
3673 {
3674 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3680 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681 do
3682 CC="$ac_save_CC $ac_arg"
3683 if ac_fn_c_try_compile "$LINENO"; then :
3684 ac_cv_prog_cc_c89=$ac_arg
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext
3687 test "x$ac_cv_prog_cc_c89" != "xno" && break
3688 done
3689 rm -f conftest.$ac_ext
3690 CC=$ac_save_CC
3691
3692 fi
3693 # AC_CACHE_VAL
3694 case "x$ac_cv_prog_cc_c89" in
3695 x)
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3697 $as_echo "none needed" >&6; } ;;
3698 xno)
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3700 $as_echo "unsupported" >&6; } ;;
3701 *)
3702 CC="$CC $ac_cv_prog_cc_c89"
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3704 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3705 esac
3706 if test "x$ac_cv_prog_cc_c89" != xno; then :
3707
3708 fi
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715
3716 depcc="$CC" am_compiler_list=
3717
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3719 $as_echo_n "checking dependency style of $depcc... " >&6; }
3720 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3724 # We make a subdir and do the tests there. Otherwise we can end up
3725 # making bogus files that we don't know about and never remove. For
3726 # instance it was reported that on HP-UX the gcc test will end up
3727 # making a dummy file named 'D' -- because '-MD' means "put the output
3728 # in D".
3729 rm -rf conftest.dir
3730 mkdir conftest.dir
3731 # Copy depcomp to subdir because otherwise we won't find it if we're
3732 # using a relative directory.
3733 cp "$am_depcomp" conftest.dir
3734 cd conftest.dir
3735 # We will build objects and dependencies in a subdirectory because
3736 # it helps to detect inapplicable dependency modes. For instance
3737 # both Tru64's cc and ICC support -MD to output dependencies as a
3738 # side effect of compilation, but ICC will put the dependencies in
3739 # the current directory while Tru64 will put them in the object
3740 # directory.
3741 mkdir sub
3742
3743 am_cv_CC_dependencies_compiler_type=none
3744 if test "$am_compiler_list" = ""; then
3745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3746 fi
3747 am__universal=false
3748 case " $depcc " in #(
3749 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3750 esac
3751
3752 for depmode in $am_compiler_list; do
3753 # Setup a source with many dependencies, because some compilers
3754 # like to wrap large dependency lists on column 80 (with \), and
3755 # we should not choose a depcomp mode which is confused by this.
3756 #
3757 # We need to recreate these files for each test, as the compiler may
3758 # overwrite some of them when testing with obscure command lines.
3759 # This happens at least with the AIX C compiler.
3760 : > sub/conftest.c
3761 for i in 1 2 3 4 5 6; do
3762 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3763 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3764 # Solaris 10 /bin/sh.
3765 echo '/* dummy */' > sub/conftst$i.h
3766 done
3767 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3768
3769 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3770 # mode. It turns out that the SunPro C++ compiler does not properly
3771 # handle '-M -o', and we need to detect this. Also, some Intel
3772 # versions had trouble with output in subdirs.
3773 am__obj=sub/conftest.${OBJEXT-o}
3774 am__minus_obj="-o $am__obj"
3775 case $depmode in
3776 gcc)
3777 # This depmode causes a compiler race in universal mode.
3778 test "$am__universal" = false || continue
3779 ;;
3780 nosideeffect)
3781 # After this tag, mechanisms are not by side-effect, so they'll
3782 # only be used when explicitly requested.
3783 if test "x$enable_dependency_tracking" = xyes; then
3784 continue
3785 else
3786 break
3787 fi
3788 ;;
3789 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3790 # This compiler won't grok '-c -o', but also, the minuso test has
3791 # not run yet. These depmodes are late enough in the game, and
3792 # so weak that their functioning should not be impacted.
3793 am__obj=conftest.${OBJEXT-o}
3794 am__minus_obj=
3795 ;;
3796 none) break ;;
3797 esac
3798 if depmode=$depmode \
3799 source=sub/conftest.c object=$am__obj \
3800 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3801 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3802 >/dev/null 2>conftest.err &&
3803 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3804 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3805 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3806 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3807 # icc doesn't choke on unknown options, it will just issue warnings
3808 # or remarks (even with -Werror). So we grep stderr for any message
3809 # that says an option was ignored or not supported.
3810 # When given -MP, icc 7.0 and 7.1 complain thusly:
3811 # icc: Command line warning: ignoring option '-M'; no argument required
3812 # The diagnosis changed in icc 8.0:
3813 # icc: Command line remark: option '-MP' not supported
3814 if (grep 'ignoring option' conftest.err ||
3815 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3816 am_cv_CC_dependencies_compiler_type=$depmode
3817 break
3818 fi
3819 fi
3820 done
3821
3822 cd ..
3823 rm -rf conftest.dir
3824 else
3825 am_cv_CC_dependencies_compiler_type=none
3826 fi
3827
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3830 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3831 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3832
3833 if
3834 test "x$enable_dependency_tracking" != xno \
3835 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3836 am__fastdepCC_TRUE=
3837 am__fastdepCC_FALSE='#'
3838 else
3839 am__fastdepCC_TRUE='#'
3840 am__fastdepCC_FALSE=
3841 fi
3842
3843
3844
3845 if test -n "$ac_tool_prefix"; then
3846 for ac_prog in ar lib "link -lib"
3847 do
3848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if ${ac_cv_prog_AR+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 if test -n "$AR"; then
3856 ac_cv_prog_AR="$AR" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 break 2
3868 fi
3869 done
3870 done
3871 IFS=$as_save_IFS
3872
3873 fi
3874 fi
3875 AR=$ac_cv_prog_AR
3876 if test -n "$AR"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3878 $as_echo "$AR" >&6; }
3879 else
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 fi
3883
3884
3885 test -n "$AR" && break
3886 done
3887 fi
3888 if test -z "$AR"; then
3889 ac_ct_AR=$AR
3890 for ac_prog in ar lib "link -lib"
3891 do
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy $ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$ac_ct_AR"; then
3900 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3904 do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_ac_ct_AR="$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3912 fi
3913 done
3914 done
3915 IFS=$as_save_IFS
3916
3917 fi
3918 fi
3919 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3920 if test -n "$ac_ct_AR"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3922 $as_echo "$ac_ct_AR" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3926 fi
3927
3928
3929 test -n "$ac_ct_AR" && break
3930 done
3931
3932 if test "x$ac_ct_AR" = x; then
3933 AR="false"
3934 else
3935 case $cross_compiling:$ac_tool_warned in
3936 yes:)
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3939 ac_tool_warned=yes ;;
3940 esac
3941 AR=$ac_ct_AR
3942 fi
3943 fi
3944
3945 : ${AR=ar}
3946
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3948 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3949 if ${am_cv_ar_interface+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 am_cv_ar_interface=ar
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 int some_variable = 0;
3956 _ACEOF
3957 if ac_fn_c_try_compile "$LINENO"; then :
3958 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3960 (eval $am_ar_try) 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }
3964 if test "$ac_status" -eq 0; then
3965 am_cv_ar_interface=ar
3966 else
3967 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3969 (eval $am_ar_try) 2>&5
3970 ac_status=$?
3971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }
3973 if test "$ac_status" -eq 0; then
3974 am_cv_ar_interface=lib
3975 else
3976 am_cv_ar_interface=unknown
3977 fi
3978 fi
3979 rm -f conftest.lib libconftest.a
3980
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3986 $as_echo "$am_cv_ar_interface" >&6; }
3987
3988 case $am_cv_ar_interface in
3989 ar)
3990 ;;
3991 lib)
3992 # Microsoft lib, so override with the ar-lib wrapper script.
3993 # FIXME: It is wrong to rewrite AR.
3994 # But if we don't then we get into trouble of one sort or another.
3995 # A longer-term fix would be to have automake use am__AR in this case,
3996 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3997 # similar.
3998 AR="$am_aux_dir/ar-lib $AR"
3999 ;;
4000 unknown)
4001 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4002 ;;
4003 esac
4004 # Required by automake 1.12.
4005
4006 case `pwd` in
4007 *\ * | *\ *)
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4009 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4010 esac
4011
4012
4013
4014 macro_version='2.4.2'
4015 macro_revision='1.3337'
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029 ltmain="$ac_aux_dir/ltmain.sh"
4030
4031 # Make sure we can run config.sub.
4032 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4033 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4034
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4036 $as_echo_n "checking build system type... " >&6; }
4037 if ${ac_cv_build+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 ac_build_alias=$build_alias
4041 test "x$ac_build_alias" = x &&
4042 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4043 test "x$ac_build_alias" = x &&
4044 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4045 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4046 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4047
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4050 $as_echo "$ac_cv_build" >&6; }
4051 case $ac_cv_build in
4052 *-*-*) ;;
4053 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4054 esac
4055 build=$ac_cv_build
4056 ac_save_IFS=$IFS; IFS='-'
4057 set x $ac_cv_build
4058 shift
4059 build_cpu=$1
4060 build_vendor=$2
4061 shift; shift
4062 # Remember, the first character of IFS is used to create $*,
4063 # except with old shells:
4064 build_os=$*
4065 IFS=$ac_save_IFS
4066 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4067
4068
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4070 $as_echo_n "checking host system type... " >&6; }
4071 if ${ac_cv_host+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 if test "x$host_alias" = x; then
4075 ac_cv_host=$ac_cv_build
4076 else
4077 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4078 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4079 fi
4080
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4083 $as_echo "$ac_cv_host" >&6; }
4084 case $ac_cv_host in
4085 *-*-*) ;;
4086 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4087 esac
4088 host=$ac_cv_host
4089 ac_save_IFS=$IFS; IFS='-'
4090 set x $ac_cv_host
4091 shift
4092 host_cpu=$1
4093 host_vendor=$2
4094 shift; shift
4095 # Remember, the first character of IFS is used to create $*,
4096 # except with old shells:
4097 host_os=$*
4098 IFS=$ac_save_IFS
4099 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4100
4101
4102 # Backslashify metacharacters that are still active within
4103 # double-quoted strings.
4104 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4105
4106 # Same as above, but do not quote variable references.
4107 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4108
4109 # Sed substitution to delay expansion of an escaped shell variable in a
4110 # double_quote_subst'ed string.
4111 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4112
4113 # Sed substitution to delay expansion of an escaped single quote.
4114 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4115
4116 # Sed substitution to avoid accidental globbing in evaled expressions
4117 no_glob_subst='s/\*/\\\*/g'
4118
4119 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4122
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4124 $as_echo_n "checking how to print strings... " >&6; }
4125 # Test print first, because it will be a builtin if present.
4126 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4127 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4128 ECHO='print -r --'
4129 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4130 ECHO='printf %s\n'
4131 else
4132 # Use this function as a fallback that always works.
4133 func_fallback_echo ()
4134 {
4135 eval 'cat <<_LTECHO_EOF
4136 $1
4137 _LTECHO_EOF'
4138 }
4139 ECHO='func_fallback_echo'
4140 fi
4141
4142 # func_echo_all arg...
4143 # Invoke $ECHO with all args, space-separated.
4144 func_echo_all ()
4145 {
4146 $ECHO ""
4147 }
4148
4149 case "$ECHO" in
4150 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4151 $as_echo "printf" >&6; } ;;
4152 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4153 $as_echo "print -r" >&6; } ;;
4154 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4155 $as_echo "cat" >&6; } ;;
4156 esac
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4172 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4173 if ${ac_cv_path_SED+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4177 for ac_i in 1 2 3 4 5 6 7; do
4178 ac_script="$ac_script$as_nl$ac_script"
4179 done
4180 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4181 { ac_script=; unset ac_script;}
4182 if test -z "$SED"; then
4183 ac_path_SED_found=false
4184 # Loop through the user's path and test for each of PROGNAME-LIST
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_prog in sed gsed; do
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4193 as_fn_executable_p "$ac_path_SED" || continue
4194 # Check for GNU ac_path_SED and select it if it is found.
4195 # Check for GNU $ac_path_SED
4196 case `"$ac_path_SED" --version 2>&1` in
4197 *GNU*)
4198 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4199 *)
4200 ac_count=0
4201 $as_echo_n 0123456789 >"conftest.in"
4202 while :
4203 do
4204 cat "conftest.in" "conftest.in" >"conftest.tmp"
4205 mv "conftest.tmp" "conftest.in"
4206 cp "conftest.in" "conftest.nl"
4207 $as_echo '' >> "conftest.nl"
4208 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210 as_fn_arith $ac_count + 1 && ac_count=$as_val
4211 if test $ac_count -gt ${ac_path_SED_max-0}; then
4212 # Best one so far, save it but keep looking for a better one
4213 ac_cv_path_SED="$ac_path_SED"
4214 ac_path_SED_max=$ac_count
4215 fi
4216 # 10*(2^10) chars as input seems more than enough
4217 test $ac_count -gt 10 && break
4218 done
4219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220 esac
4221
4222 $ac_path_SED_found && break 3
4223 done
4224 done
4225 done
4226 IFS=$as_save_IFS
4227 if test -z "$ac_cv_path_SED"; then
4228 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4229 fi
4230 else
4231 ac_cv_path_SED=$SED
4232 fi
4233
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4236 $as_echo "$ac_cv_path_SED" >&6; }
4237 SED="$ac_cv_path_SED"
4238 rm -f conftest.sed
4239
4240 test -z "$SED" && SED=sed
4241 Xsed="$SED -e 1s/^X//"
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4254 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4255 if ${ac_cv_path_GREP+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if test -z "$GREP"; then
4259 ac_path_GREP_found=false
4260 # Loop through the user's path and test for each of PROGNAME-LIST
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263 do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_prog in grep ggrep; do
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4269 as_fn_executable_p "$ac_path_GREP" || continue
4270 # Check for GNU ac_path_GREP and select it if it is found.
4271 # Check for GNU $ac_path_GREP
4272 case `"$ac_path_GREP" --version 2>&1` in
4273 *GNU*)
4274 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4275 *)
4276 ac_count=0
4277 $as_echo_n 0123456789 >"conftest.in"
4278 while :
4279 do
4280 cat "conftest.in" "conftest.in" >"conftest.tmp"
4281 mv "conftest.tmp" "conftest.in"
4282 cp "conftest.in" "conftest.nl"
4283 $as_echo 'GREP' >> "conftest.nl"
4284 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286 as_fn_arith $ac_count + 1 && ac_count=$as_val
4287 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4288 # Best one so far, save it but keep looking for a better one
4289 ac_cv_path_GREP="$ac_path_GREP"
4290 ac_path_GREP_max=$ac_count
4291 fi
4292 # 10*(2^10) chars as input seems more than enough
4293 test $ac_count -gt 10 && break
4294 done
4295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296 esac
4297
4298 $ac_path_GREP_found && break 3
4299 done
4300 done
4301 done
4302 IFS=$as_save_IFS
4303 if test -z "$ac_cv_path_GREP"; then
4304 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4305 fi
4306 else
4307 ac_cv_path_GREP=$GREP
4308 fi
4309
4310 fi
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4312 $as_echo "$ac_cv_path_GREP" >&6; }
4313 GREP="$ac_cv_path_GREP"
4314
4315
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4317 $as_echo_n "checking for egrep... " >&6; }
4318 if ${ac_cv_path_EGREP+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4322 then ac_cv_path_EGREP="$GREP -E"
4323 else
4324 if test -z "$EGREP"; then
4325 ac_path_EGREP_found=false
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_prog in egrep; do
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4335 as_fn_executable_p "$ac_path_EGREP" || continue
4336 # Check for GNU ac_path_EGREP and select it if it is found.
4337 # Check for GNU $ac_path_EGREP
4338 case `"$ac_path_EGREP" --version 2>&1` in
4339 *GNU*)
4340 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4341 *)
4342 ac_count=0
4343 $as_echo_n 0123456789 >"conftest.in"
4344 while :
4345 do
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
4349 $as_echo 'EGREP' >> "conftest.nl"
4350 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352 as_fn_arith $ac_count + 1 && ac_count=$as_val
4353 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_EGREP="$ac_path_EGREP"
4356 ac_path_EGREP_max=$ac_count
4357 fi
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4360 done
4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362 esac
4363
4364 $ac_path_EGREP_found && break 3
4365 done
4366 done
4367 done
4368 IFS=$as_save_IFS
4369 if test -z "$ac_cv_path_EGREP"; then
4370 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371 fi
4372 else
4373 ac_cv_path_EGREP=$EGREP
4374 fi
4375
4376 fi
4377 fi
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4379 $as_echo "$ac_cv_path_EGREP" >&6; }
4380 EGREP="$ac_cv_path_EGREP"
4381
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4384 $as_echo_n "checking for fgrep... " >&6; }
4385 if ${ac_cv_path_FGREP+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4389 then ac_cv_path_FGREP="$GREP -F"
4390 else
4391 if test -z "$FGREP"; then
4392 ac_path_FGREP_found=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4396 do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_prog in fgrep; do
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4402 as_fn_executable_p "$ac_path_FGREP" || continue
4403 # Check for GNU ac_path_FGREP and select it if it is found.
4404 # Check for GNU $ac_path_FGREP
4405 case `"$ac_path_FGREP" --version 2>&1` in
4406 *GNU*)
4407 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4408 *)
4409 ac_count=0
4410 $as_echo_n 0123456789 >"conftest.in"
4411 while :
4412 do
4413 cat "conftest.in" "conftest.in" >"conftest.tmp"
4414 mv "conftest.tmp" "conftest.in"
4415 cp "conftest.in" "conftest.nl"
4416 $as_echo 'FGREP' >> "conftest.nl"
4417 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419 as_fn_arith $ac_count + 1 && ac_count=$as_val
4420 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4421 # Best one so far, save it but keep looking for a better one
4422 ac_cv_path_FGREP="$ac_path_FGREP"
4423 ac_path_FGREP_max=$ac_count
4424 fi
4425 # 10*(2^10) chars as input seems more than enough
4426 test $ac_count -gt 10 && break
4427 done
4428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429 esac
4430
4431 $ac_path_FGREP_found && break 3
4432 done
4433 done
4434 done
4435 IFS=$as_save_IFS
4436 if test -z "$ac_cv_path_FGREP"; then
4437 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4438 fi
4439 else
4440 ac_cv_path_FGREP=$FGREP
4441 fi
4442
4443 fi
4444 fi
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4446 $as_echo "$ac_cv_path_FGREP" >&6; }
4447 FGREP="$ac_cv_path_FGREP"
4448
4449
4450 test -z "$GREP" && GREP=grep
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470 # Check whether --with-gnu-ld was given.
4471 if test "${with_gnu_ld+set}" = set; then :
4472 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4473 else
4474 with_gnu_ld=no
4475 fi
4476
4477 ac_prog=ld
4478 if test "$GCC" = yes; then
4479 # Check if gcc -print-prog-name=ld gives a path.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4481 $as_echo_n "checking for ld used by $CC... " >&6; }
4482 case $host in
4483 *-*-mingw*)
4484 # gcc leaves a trailing carriage return which upsets mingw
4485 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4486 *)
4487 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4488 esac
4489 case $ac_prog in
4490 # Accept absolute paths.
4491 [\\/]* | ?:[\\/]*)
4492 re_direlt='/[^/][^/]*/\.\./'
4493 # Canonicalize the pathname of ld
4494 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4495 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4496 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4497 done
4498 test -z "$LD" && LD="$ac_prog"
4499 ;;
4500 "")
4501 # If it fails, then pretend we aren't using GCC.
4502 ac_prog=ld
4503 ;;
4504 *)
4505 # If it is relative, then search for the first ld in PATH.
4506 with_gnu_ld=unknown
4507 ;;
4508 esac
4509 elif test "$with_gnu_ld" = yes; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4511 $as_echo_n "checking for GNU ld... " >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4514 $as_echo_n "checking for non-GNU ld... " >&6; }
4515 fi
4516 if ${lt_cv_path_LD+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 if test -z "$LD"; then
4520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4521 for ac_dir in $PATH; do
4522 IFS="$lt_save_ifs"
4523 test -z "$ac_dir" && ac_dir=.
4524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4525 lt_cv_path_LD="$ac_dir/$ac_prog"
4526 # Check to see if the program is GNU ld. I'd rather use --version,
4527 # but apparently some variants of GNU ld only accept -v.
4528 # Break only if it was the GNU/non-GNU ld that we prefer.
4529 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4530 *GNU* | *'with BFD'*)
4531 test "$with_gnu_ld" != no && break
4532 ;;
4533 *)
4534 test "$with_gnu_ld" != yes && break
4535 ;;
4536 esac
4537 fi
4538 done
4539 IFS="$lt_save_ifs"
4540 else
4541 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4542 fi
4543 fi
4544
4545 LD="$lt_cv_path_LD"
4546 if test -n "$LD"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4548 $as_echo "$LD" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4555 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4556 if ${lt_cv_prog_gnu_ld+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4560 case `$LD -v 2>&1 </dev/null` in
4561 *GNU* | *'with BFD'*)
4562 lt_cv_prog_gnu_ld=yes
4563 ;;
4564 *)
4565 lt_cv_prog_gnu_ld=no
4566 ;;
4567 esac
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4570 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4571 with_gnu_ld=$lt_cv_prog_gnu_ld
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4582 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4583 if ${lt_cv_path_NM+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if test -n "$NM"; then
4587 # Let the user override the test.
4588 lt_cv_path_NM="$NM"
4589 else
4590 lt_nm_to_check="${ac_tool_prefix}nm"
4591 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4592 lt_nm_to_check="$lt_nm_to_check nm"
4593 fi
4594 for lt_tmp_nm in $lt_nm_to_check; do
4595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4596 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4597 IFS="$lt_save_ifs"
4598 test -z "$ac_dir" && ac_dir=.
4599 tmp_nm="$ac_dir/$lt_tmp_nm"
4600 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4601 # Check to see if the nm accepts a BSD-compat flag.
4602 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4603 # nm: unknown option "B" ignored
4604 # Tru64's nm complains that /dev/null is an invalid object file
4605 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4606 */dev/null* | *'Invalid file or object type'*)
4607 lt_cv_path_NM="$tmp_nm -B"
4608 break
4609 ;;
4610 *)
4611 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4612 */dev/null*)
4613 lt_cv_path_NM="$tmp_nm -p"
4614 break
4615 ;;
4616 *)
4617 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4618 continue # so that we can try to find one that supports BSD flags
4619 ;;
4620 esac
4621 ;;
4622 esac
4623 fi
4624 done
4625 IFS="$lt_save_ifs"
4626 done
4627 : ${lt_cv_path_NM=no}
4628 fi
4629 fi
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4631 $as_echo "$lt_cv_path_NM" >&6; }
4632 if test "$lt_cv_path_NM" != "no"; then
4633 NM="$lt_cv_path_NM"
4634 else
4635 # Didn't find any BSD compatible name lister, look for dumpbin.
4636 if test -n "$DUMPBIN"; then :
4637 # Let the user override the test.
4638 else
4639 if test -n "$ac_tool_prefix"; then
4640 for ac_prog in dumpbin "link -dump"
4641 do
4642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_DUMPBIN+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$DUMPBIN"; then
4650 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 DUMPBIN=$ac_cv_prog_DUMPBIN
4670 if test -n "$DUMPBIN"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4672 $as_echo "$DUMPBIN" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679 test -n "$DUMPBIN" && break
4680 done
4681 fi
4682 if test -z "$DUMPBIN"; then
4683 ac_ct_DUMPBIN=$DUMPBIN
4684 for ac_prog in dumpbin "link -dump"
4685 do
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$ac_ct_DUMPBIN"; then
4694 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4706 fi
4707 done
4708 done
4709 IFS=$as_save_IFS
4710
4711 fi
4712 fi
4713 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4714 if test -n "$ac_ct_DUMPBIN"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4716 $as_echo "$ac_ct_DUMPBIN" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4720 fi
4721
4722
4723 test -n "$ac_ct_DUMPBIN" && break
4724 done
4725
4726 if test "x$ac_ct_DUMPBIN" = x; then
4727 DUMPBIN=":"
4728 else
4729 case $cross_compiling:$ac_tool_warned in
4730 yes:)
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4734 esac
4735 DUMPBIN=$ac_ct_DUMPBIN
4736 fi
4737 fi
4738
4739 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4740 *COFF*)
4741 DUMPBIN="$DUMPBIN -symbols"
4742 ;;
4743 *)
4744 DUMPBIN=:
4745 ;;
4746 esac
4747 fi
4748
4749 if test "$DUMPBIN" != ":"; then
4750 NM="$DUMPBIN"
4751 fi
4752 fi
4753 test -z "$NM" && NM=nm
4754
4755
4756
4757
4758
4759
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4761 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4762 if ${lt_cv_nm_interface+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 lt_cv_nm_interface="BSD nm"
4766 echo "int some_variable = 0;" > conftest.$ac_ext
4767 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4768 (eval "$ac_compile" 2>conftest.err)
4769 cat conftest.err >&5
4770 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4771 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4772 cat conftest.err >&5
4773 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4774 cat conftest.out >&5
4775 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4776 lt_cv_nm_interface="MS dumpbin"
4777 fi
4778 rm -f conftest*
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4781 $as_echo "$lt_cv_nm_interface" >&6; }
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4784 $as_echo_n "checking whether ln -s works... " >&6; }
4785 LN_S=$as_ln_s
4786 if test "$LN_S" = "ln -s"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4788 $as_echo "yes" >&6; }
4789 else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4791 $as_echo "no, using $LN_S" >&6; }
4792 fi
4793
4794 # find the maximum length of command line arguments
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4796 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4797 if ${lt_cv_sys_max_cmd_len+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 i=0
4801 teststring="ABCD"
4802
4803 case $build_os in
4804 msdosdjgpp*)
4805 # On DJGPP, this test can blow up pretty badly due to problems in libc
4806 # (any single argument exceeding 2000 bytes causes a buffer overrun
4807 # during glob expansion). Even if it were fixed, the result of this
4808 # check would be larger than it should be.
4809 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4810 ;;
4811
4812 gnu*)
4813 # Under GNU Hurd, this test is not required because there is
4814 # no limit to the length of command line arguments.
4815 # Libtool will interpret -1 as no limit whatsoever
4816 lt_cv_sys_max_cmd_len=-1;
4817 ;;
4818
4819 cygwin* | mingw* | cegcc*)
4820 # On Win9x/ME, this test blows up -- it succeeds, but takes
4821 # about 5 minutes as the teststring grows exponentially.
4822 # Worse, since 9x/ME are not pre-emptively multitasking,
4823 # you end up with a "frozen" computer, even though with patience
4824 # the test eventually succeeds (with a max line length of 256k).
4825 # Instead, let's just punt: use the minimum linelength reported by
4826 # all of the supported platforms: 8192 (on NT/2K/XP).
4827 lt_cv_sys_max_cmd_len=8192;
4828 ;;
4829
4830 mint*)
4831 # On MiNT this can take a long time and run out of memory.
4832 lt_cv_sys_max_cmd_len=8192;
4833 ;;
4834
4835 amigaos*)
4836 # On AmigaOS with pdksh, this test takes hours, literally.
4837 # So we just punt and use a minimum line length of 8192.
4838 lt_cv_sys_max_cmd_len=8192;
4839 ;;
4840
4841 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4842 # This has been around since 386BSD, at least. Likely further.
4843 if test -x /sbin/sysctl; then
4844 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4845 elif test -x /usr/sbin/sysctl; then
4846 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4847 else
4848 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4849 fi
4850 # And add a safety zone
4851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4853 ;;
4854
4855 interix*)
4856 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4857 lt_cv_sys_max_cmd_len=196608
4858 ;;
4859
4860 os2*)
4861 # The test takes a long time on OS/2.
4862 lt_cv_sys_max_cmd_len=8192
4863 ;;
4864
4865 osf*)
4866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4868 # nice to cause kernel panics so lets avoid the loop below.
4869 # First set a reasonable default.
4870 lt_cv_sys_max_cmd_len=16384
4871 #
4872 if test -x /sbin/sysconfig; then
4873 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4874 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4875 esac
4876 fi
4877 ;;
4878 sco3.2v5*)
4879 lt_cv_sys_max_cmd_len=102400
4880 ;;
4881 sysv5* | sco5v6* | sysv4.2uw2*)
4882 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4883 if test -n "$kargmax"; then
4884 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4885 else
4886 lt_cv_sys_max_cmd_len=32768
4887 fi
4888 ;;
4889 *)
4890 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4891 if test -n "$lt_cv_sys_max_cmd_len" && \
4892 test undefined != "$lt_cv_sys_max_cmd_len"; then
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4895 else
4896 # Make teststring a little bigger before we do anything with it.
4897 # a 1K string should be a reasonable start.
4898 for i in 1 2 3 4 5 6 7 8 ; do
4899 teststring=$teststring$teststring
4900 done
4901 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4902 # If test is not a shell built-in, we'll probably end up computing a
4903 # maximum length that is only half of the actual maximum length, but
4904 # we can't tell.
4905 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4906 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4907 test $i != 17 # 1/2 MB should be enough
4908 do
4909 i=`expr $i + 1`
4910 teststring=$teststring$teststring
4911 done
4912 # Only check the string length outside the loop.
4913 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4914 teststring=
4915 # Add a significant safety factor because C++ compilers can tack on
4916 # massive amounts of additional arguments before passing them to the
4917 # linker. It appears as though 1/2 is a usable value.
4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4919 fi
4920 ;;
4921 esac
4922
4923 fi
4924
4925 if test -n $lt_cv_sys_max_cmd_len ; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4927 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4928 else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4930 $as_echo "none" >&6; }
4931 fi
4932 max_cmd_len=$lt_cv_sys_max_cmd_len
4933
4934
4935
4936
4937
4938
4939 : ${CP="cp -f"}
4940 : ${MV="mv -f"}
4941 : ${RM="rm -f"}
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4944 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4945 # Try some XSI features
4946 xsi_shell=no
4947 ( _lt_dummy="a/b/c"
4948 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4949 = c,a/b,b/c, \
4950 && eval 'test $(( 1 + 1 )) -eq 2 \
4951 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4952 && xsi_shell=yes
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4954 $as_echo "$xsi_shell" >&6; }
4955
4956
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4958 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4959 lt_shell_append=no
4960 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4961 >/dev/null 2>&1 \
4962 && lt_shell_append=yes
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4964 $as_echo "$lt_shell_append" >&6; }
4965
4966
4967 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4968 lt_unset=unset
4969 else
4970 lt_unset=false
4971 fi
4972
4973
4974
4975
4976
4977 # test EBCDIC or ASCII
4978 case `echo X|tr X '\101'` in
4979 A) # ASCII based system
4980 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4981 lt_SP2NL='tr \040 \012'
4982 lt_NL2SP='tr \015\012 \040\040'
4983 ;;
4984 *) # EBCDIC based system
4985 lt_SP2NL='tr \100 \n'
4986 lt_NL2SP='tr \r\n \100\100'
4987 ;;
4988 esac
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4999 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5000 if ${lt_cv_to_host_file_cmd+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 case $host in
5004 *-*-mingw* )
5005 case $build in
5006 *-*-mingw* ) # actually msys
5007 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5008 ;;
5009 *-*-cygwin* )
5010 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5011 ;;
5012 * ) # otherwise, assume *nix
5013 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5014 ;;
5015 esac
5016 ;;
5017 *-*-cygwin* )
5018 case $build in
5019 *-*-mingw* ) # actually msys
5020 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5021 ;;
5022 *-*-cygwin* )
5023 lt_cv_to_host_file_cmd=func_convert_file_noop
5024 ;;
5025 * ) # otherwise, assume *nix
5026 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5027 ;;
5028 esac
5029 ;;
5030 * ) # unhandled hosts (and "normal" native builds)
5031 lt_cv_to_host_file_cmd=func_convert_file_noop
5032 ;;
5033 esac
5034
5035 fi
5036
5037 to_host_file_cmd=$lt_cv_to_host_file_cmd
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5039 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5040
5041
5042
5043
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5046 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5047 if ${lt_cv_to_tool_file_cmd+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 #assume ordinary cross tools, or native build.
5051 lt_cv_to_tool_file_cmd=func_convert_file_noop
5052 case $host in
5053 *-*-mingw* )
5054 case $build in
5055 *-*-mingw* ) # actually msys
5056 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5057 ;;
5058 esac
5059 ;;
5060 esac
5061
5062 fi
5063
5064 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5066 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5067
5068
5069
5070
5071
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5073 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5074 if ${lt_cv_ld_reload_flag+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 lt_cv_ld_reload_flag='-r'
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5080 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5081 reload_flag=$lt_cv_ld_reload_flag
5082 case $reload_flag in
5083 "" | " "*) ;;
5084 *) reload_flag=" $reload_flag" ;;
5085 esac
5086 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5087 case $host_os in
5088 cygwin* | mingw* | pw32* | cegcc*)
5089 if test "$GCC" != yes; then
5090 reload_cmds=false
5091 fi
5092 ;;
5093 darwin*)
5094 if test "$GCC" = yes; then
5095 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5096 else
5097 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5098 fi
5099 ;;
5100 esac
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110 if test -n "$ac_tool_prefix"; then
5111 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5112 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_OBJDUMP+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 if test -n "$OBJDUMP"; then
5119 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 OBJDUMP=$ac_cv_prog_OBJDUMP
5139 if test -n "$OBJDUMP"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5141 $as_echo "$OBJDUMP" >&6; }
5142 else
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148 fi
5149 if test -z "$ac_cv_prog_OBJDUMP"; then
5150 ac_ct_OBJDUMP=$OBJDUMP
5151 # Extract the first word of "objdump", so it can be a program name with args.
5152 set dummy objdump; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 if test -n "$ac_ct_OBJDUMP"; then
5159 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5160 else
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 break 2
5171 fi
5172 done
5173 done
5174 IFS=$as_save_IFS
5175
5176 fi
5177 fi
5178 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5179 if test -n "$ac_ct_OBJDUMP"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5181 $as_echo "$ac_ct_OBJDUMP" >&6; }
5182 else
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187 if test "x$ac_ct_OBJDUMP" = x; then
5188 OBJDUMP="false"
5189 else
5190 case $cross_compiling:$ac_tool_warned in
5191 yes:)
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5194 ac_tool_warned=yes ;;
5195 esac
5196 OBJDUMP=$ac_ct_OBJDUMP
5197 fi
5198 else
5199 OBJDUMP="$ac_cv_prog_OBJDUMP"
5200 fi
5201
5202 test -z "$OBJDUMP" && OBJDUMP=objdump
5203
5204
5205
5206
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5210 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5211 if ${lt_cv_deplibs_check_method+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 lt_cv_file_magic_cmd='$MAGIC_CMD'
5215 lt_cv_file_magic_test_file=
5216 lt_cv_deplibs_check_method='unknown'
5217 # Need to set the preceding variable on all platforms that support
5218 # interlibrary dependencies.
5219 # 'none' -- dependencies not supported.
5220 # `unknown' -- same as none, but documents that we really don't know.
5221 # 'pass_all' -- all dependencies passed with no checks.
5222 # 'test_compile' -- check by making test program.
5223 # 'file_magic [[regex]]' -- check by looking for files in library path
5224 # which responds to the $file_magic_cmd with a given extended regex.
5225 # If you have `file' or equivalent on your system and you're not sure
5226 # whether `pass_all' will *always* work, you probably want this one.
5227
5228 case $host_os in
5229 aix[4-9]*)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232
5233 beos*)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
5236
5237 bsdi[45]*)
5238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5239 lt_cv_file_magic_cmd='/usr/bin/file -L'
5240 lt_cv_file_magic_test_file=/shlib/libc.so
5241 ;;
5242
5243 cygwin*)
5244 # func_win32_libid is a shell function defined in ltmain.sh
5245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5246 lt_cv_file_magic_cmd='func_win32_libid'
5247 ;;
5248
5249 mingw* | pw32*)
5250 # Base MSYS/MinGW do not provide the 'file' command needed by
5251 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5252 # unless we find 'file', for example because we are cross-compiling.
5253 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5254 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5256 lt_cv_file_magic_cmd='func_win32_libid'
5257 else
5258 # Keep this pattern in sync with the one in func_win32_libid.
5259 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5260 lt_cv_file_magic_cmd='$OBJDUMP -f'
5261 fi
5262 ;;
5263
5264 cegcc*)
5265 # use the weaker test based on 'objdump'. See mingw*.
5266 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5267 lt_cv_file_magic_cmd='$OBJDUMP -f'
5268 ;;
5269
5270 darwin* | rhapsody*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274 freebsd* | dragonfly*)
5275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5276 case $host_cpu in
5277 i*86 )
5278 # Not sure whether the presence of OpenBSD here was a mistake.
5279 # Let's accept both of them until this is cleared up.
5280 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5281 lt_cv_file_magic_cmd=/usr/bin/file
5282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5283 ;;
5284 esac
5285 else
5286 lt_cv_deplibs_check_method=pass_all
5287 fi
5288 ;;
5289
5290 haiku*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294 hpux10.20* | hpux11*)
5295 lt_cv_file_magic_cmd=/usr/bin/file
5296 case $host_cpu in
5297 ia64*)
5298 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5299 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5300 ;;
5301 hppa*64*)
5302 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]'
5303 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5304 ;;
5305 *)
5306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5307 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5308 ;;
5309 esac
5310 ;;
5311
5312 interix[3-9]*)
5313 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5315 ;;
5316
5317 irix5* | irix6* | nonstopux*)
5318 case $LD in
5319 *-32|*"-32 ") libmagic=32-bit;;
5320 *-n32|*"-n32 ") libmagic=N32;;
5321 *-64|*"-64 ") libmagic=64-bit;;
5322 *) libmagic=never-match;;
5323 esac
5324 lt_cv_deplibs_check_method=pass_all
5325 ;;
5326
5327 # This must be glibc/ELF.
5328 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
5332 netbsd* | netbsdelf*-gnu)
5333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5335 else
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5337 fi
5338 ;;
5339
5340 newos6*)
5341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5342 lt_cv_file_magic_cmd=/usr/bin/file
5343 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5344 ;;
5345
5346 *nto* | *qnx*)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349
5350 openbsd*)
5351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5353 else
5354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5355 fi
5356 ;;
5357
5358 osf3* | osf4* | osf5*)
5359 lt_cv_deplibs_check_method=pass_all
5360 ;;
5361
5362 rdos*)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365
5366 solaris*)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369
5370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5371 lt_cv_deplibs_check_method=pass_all
5372 ;;
5373
5374 sysv4 | sysv4.3*)
5375 case $host_vendor in
5376 motorola)
5377 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]'
5378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5379 ;;
5380 ncr)
5381 lt_cv_deplibs_check_method=pass_all
5382 ;;
5383 sequent)
5384 lt_cv_file_magic_cmd='/bin/file'
5385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5386 ;;
5387 sni)
5388 lt_cv_file_magic_cmd='/bin/file'
5389 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5390 lt_cv_file_magic_test_file=/lib/libc.so
5391 ;;
5392 siemens)
5393 lt_cv_deplibs_check_method=pass_all
5394 ;;
5395 pc)
5396 lt_cv_deplibs_check_method=pass_all
5397 ;;
5398 esac
5399 ;;
5400
5401 tpf*)
5402 lt_cv_deplibs_check_method=pass_all
5403 ;;
5404 esac
5405
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5408 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5409
5410 file_magic_glob=
5411 want_nocaseglob=no
5412 if test "$build" = "$host"; then
5413 case $host_os in
5414 mingw* | pw32*)
5415 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5416 want_nocaseglob=yes
5417 else
5418 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5419 fi
5420 ;;
5421 esac
5422 fi
5423
5424 file_magic_cmd=$lt_cv_file_magic_cmd
5425 deplibs_check_method=$lt_cv_deplibs_check_method
5426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_DLLTOOL+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$DLLTOOL"; then
5458 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5462 do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5470 fi
5471 done
5472 done
5473 IFS=$as_save_IFS
5474
5475 fi
5476 fi
5477 DLLTOOL=$ac_cv_prog_DLLTOOL
5478 if test -n "$DLLTOOL"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5480 $as_echo "$DLLTOOL" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5484 fi
5485
5486
5487 fi
5488 if test -z "$ac_cv_prog_DLLTOOL"; then
5489 ac_ct_DLLTOOL=$DLLTOOL
5490 # Extract the first word of "dlltool", so it can be a program name with args.
5491 set dummy dlltool; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$ac_ct_DLLTOOL"; then
5498 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5518 if test -n "$ac_ct_DLLTOOL"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5520 $as_echo "$ac_ct_DLLTOOL" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526 if test "x$ac_ct_DLLTOOL" = x; then
5527 DLLTOOL="false"
5528 else
5529 case $cross_compiling:$ac_tool_warned in
5530 yes:)
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned=yes ;;
5534 esac
5535 DLLTOOL=$ac_ct_DLLTOOL
5536 fi
5537 else
5538 DLLTOOL="$ac_cv_prog_DLLTOOL"
5539 fi
5540
5541 test -z "$DLLTOOL" && DLLTOOL=dlltool
5542
5543
5544
5545
5546
5547
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5550 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5551 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 lt_cv_sharedlib_from_linklib_cmd='unknown'
5555
5556 case $host_os in
5557 cygwin* | mingw* | pw32* | cegcc*)
5558 # two different shell functions defined in ltmain.sh
5559 # decide which to use based on capabilities of $DLLTOOL
5560 case `$DLLTOOL --help 2>&1` in
5561 *--identify-strict*)
5562 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5563 ;;
5564 *)
5565 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5566 ;;
5567 esac
5568 ;;
5569 *)
5570 # fallback: assume linklib IS sharedlib
5571 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5572 ;;
5573 esac
5574
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5577 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5578 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5579 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5580
5581
5582
5583
5584
5585
5586
5587 if test -n "$ac_tool_prefix"; then
5588 for ac_prog in ar
5589 do
5590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if ${ac_cv_prog_AR+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 if test -n "$AR"; then
5598 ac_cv_prog_AR="$AR" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611 done
5612 done
5613 IFS=$as_save_IFS
5614
5615 fi
5616 fi
5617 AR=$ac_cv_prog_AR
5618 if test -n "$AR"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5620 $as_echo "$AR" >&6; }
5621 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5625
5626
5627 test -n "$AR" && break
5628 done
5629 fi
5630 if test -z "$AR"; then
5631 ac_ct_AR=$AR
5632 for ac_prog in ar
5633 do
5634 # Extract the first word of "$ac_prog", so it can be a program name with args.
5635 set dummy $ac_prog; ac_word=$2
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637 $as_echo_n "checking for $ac_word... " >&6; }
5638 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 if test -n "$ac_ct_AR"; then
5642 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5646 do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_ac_ct_AR="$ac_prog"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655 done
5656 done
5657 IFS=$as_save_IFS
5658
5659 fi
5660 fi
5661 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5662 if test -n "$ac_ct_AR"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5664 $as_echo "$ac_ct_AR" >&6; }
5665 else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667 $as_echo "no" >&6; }
5668 fi
5669
5670
5671 test -n "$ac_ct_AR" && break
5672 done
5673
5674 if test "x$ac_ct_AR" = x; then
5675 AR="false"
5676 else
5677 case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683 AR=$ac_ct_AR
5684 fi
5685 fi
5686
5687 : ${AR=ar}
5688 : ${AR_FLAGS=cru}
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5701 $as_echo_n "checking for archiver @FILE support... " >&6; }
5702 if ${lt_cv_ar_at_file+:} false; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 lt_cv_ar_at_file=no
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708
5709 int
5710 main ()
5711 {
5712
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718 echo conftest.$ac_objext > conftest.lst
5719 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5721 (eval $lt_ar_try) 2>&5
5722 ac_status=$?
5723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5724 test $ac_status = 0; }
5725 if test "$ac_status" -eq 0; then
5726 # Ensure the archiver fails upon bogus file names.
5727 rm -f conftest.$ac_objext libconftest.a
5728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5729 (eval $lt_ar_try) 2>&5
5730 ac_status=$?
5731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5732 test $ac_status = 0; }
5733 if test "$ac_status" -ne 0; then
5734 lt_cv_ar_at_file=@
5735 fi
5736 fi
5737 rm -f conftest.* libconftest.a
5738
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5744 $as_echo "$lt_cv_ar_at_file" >&6; }
5745
5746 if test "x$lt_cv_ar_at_file" = xno; then
5747 archiver_list_spec=
5748 else
5749 archiver_list_spec=$lt_cv_ar_at_file
5750 fi
5751
5752
5753
5754
5755
5756
5757
5758 if test -n "$ac_tool_prefix"; then
5759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5760 set dummy ${ac_tool_prefix}strip; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_STRIP+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -n "$STRIP"; then
5767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780 done
5781 done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
5786 STRIP=$ac_cv_prog_STRIP
5787 if test -n "$STRIP"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5789 $as_echo "$STRIP" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795
5796 fi
5797 if test -z "$ac_cv_prog_STRIP"; then
5798 ac_ct_STRIP=$STRIP
5799 # Extract the first word of "strip", so it can be a program name with args.
5800 set dummy strip; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 if test -n "$ac_ct_STRIP"; then
5807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_prog_ac_ct_STRIP="strip"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820 done
5821 done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5827 if test -n "$ac_ct_STRIP"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5829 $as_echo "$ac_ct_STRIP" >&6; }
5830 else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835 if test "x$ac_ct_STRIP" = x; then
5836 STRIP=":"
5837 else
5838 case $cross_compiling:$ac_tool_warned in
5839 yes:)
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842 ac_tool_warned=yes ;;
5843 esac
5844 STRIP=$ac_ct_STRIP
5845 fi
5846 else
5847 STRIP="$ac_cv_prog_STRIP"
5848 fi
5849
5850 test -z "$STRIP" && STRIP=:
5851
5852
5853
5854
5855
5856
5857 if test -n "$ac_tool_prefix"; then
5858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_RANLIB+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -n "$RANLIB"; then
5866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 RANLIB=$ac_cv_prog_RANLIB
5886 if test -n "$RANLIB"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5888 $as_echo "$RANLIB" >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894
5895 fi
5896 if test -z "$ac_cv_prog_RANLIB"; then
5897 ac_ct_RANLIB=$RANLIB
5898 # Extract the first word of "ranlib", so it can be a program name with args.
5899 set dummy ranlib; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if test -n "$ac_ct_RANLIB"; then
5906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915 ac_cv_prog_ac_ct_RANLIB="ranlib"
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 break 2
5918 fi
5919 done
5920 done
5921 IFS=$as_save_IFS
5922
5923 fi
5924 fi
5925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5926 if test -n "$ac_ct_RANLIB"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5928 $as_echo "$ac_ct_RANLIB" >&6; }
5929 else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933
5934 if test "x$ac_ct_RANLIB" = x; then
5935 RANLIB=":"
5936 else
5937 case $cross_compiling:$ac_tool_warned in
5938 yes:)
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5941 ac_tool_warned=yes ;;
5942 esac
5943 RANLIB=$ac_ct_RANLIB
5944 fi
5945 else
5946 RANLIB="$ac_cv_prog_RANLIB"
5947 fi
5948
5949 test -z "$RANLIB" && RANLIB=:
5950
5951
5952
5953
5954
5955
5956 # Determine commands to create old-style static archives.
5957 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5958 old_postinstall_cmds='chmod 644 $oldlib'
5959 old_postuninstall_cmds=
5960
5961 if test -n "$RANLIB"; then
5962 case $host_os in
5963 openbsd*)
5964 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5965 ;;
5966 *)
5967 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5968 ;;
5969 esac
5970 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5971 fi
5972
5973 case $host_os in
5974 darwin*)
5975 lock_old_archive_extraction=yes ;;
5976 *)
5977 lock_old_archive_extraction=no ;;
5978 esac
5979
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 # If no C compiler was specified, use CC.
6019 LTCC=${LTCC-"$CC"}
6020
6021 # If no C compiler flags were specified, use CFLAGS.
6022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6023
6024 # Allow CC to be a program name with arguments.
6025 compiler=$CC
6026
6027
6028 # Check for command to grab the raw symbol name followed by C symbol from nm.
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6030 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6031 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6032 $as_echo_n "(cached) " >&6
6033 else
6034
6035 # These are sane defaults that work on at least a few old systems.
6036 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6037
6038 # Character class describing NM global symbol codes.
6039 symcode='[BCDEGRST]'
6040
6041 # Regexp to match symbols that can be accessed directly from C.
6042 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6043
6044 # Define system-specific variables.
6045 case $host_os in
6046 aix*)
6047 symcode='[BCDT]'
6048 ;;
6049 cygwin* | mingw* | pw32* | cegcc*)
6050 symcode='[ABCDGISTW]'
6051 ;;
6052 hpux*)
6053 if test "$host_cpu" = ia64; then
6054 symcode='[ABCDEGRST]'
6055 fi
6056 ;;
6057 irix* | nonstopux*)
6058 symcode='[BCDEGRST]'
6059 ;;
6060 osf*)
6061 symcode='[BCDEGQRST]'
6062 ;;
6063 solaris*)
6064 symcode='[BDRT]'
6065 ;;
6066 sco3.2v5*)
6067 symcode='[DT]'
6068 ;;
6069 sysv4.2uw2*)
6070 symcode='[DT]'
6071 ;;
6072 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6073 symcode='[ABDT]'
6074 ;;
6075 sysv4)
6076 symcode='[DFNSTU]'
6077 ;;
6078 esac
6079
6080 # If we're using GNU nm, then use its standard symbol codes.
6081 case `$NM -V 2>&1` in
6082 *GNU* | *'with BFD'*)
6083 symcode='[ABCDGIRSTW]' ;;
6084 esac
6085
6086 # Transform an extracted symbol line into a proper C declaration.
6087 # Some systems (esp. on ia64) link data and code symbols differently,
6088 # so use this general approach.
6089 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6090
6091 # Transform an extracted symbol line into symbol name and symbol address
6092 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6093 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'"
6094
6095 # Handle CRLF in mingw tool chain
6096 opt_cr=
6097 case $build_os in
6098 mingw*)
6099 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6100 ;;
6101 esac
6102
6103 # Try without a prefix underscore, then with it.
6104 for ac_symprfx in "" "_"; do
6105
6106 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6107 symxfrm="\\1 $ac_symprfx\\2 \\2"
6108
6109 # Write the raw and C identifiers.
6110 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6111 # Fake it for dumpbin and say T for any non-static function
6112 # and D for any global variable.
6113 # Also find C++ and __fastcall symbols from MSVC++,
6114 # which start with @ or ?.
6115 lt_cv_sys_global_symbol_pipe="$AWK '"\
6116 " {last_section=section; section=\$ 3};"\
6117 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6118 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6119 " \$ 0!~/External *\|/{next};"\
6120 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6121 " {if(hide[section]) next};"\
6122 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6123 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6124 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6125 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6126 " ' prfx=^$ac_symprfx"
6127 else
6128 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6129 fi
6130 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6131
6132 # Check to see that the pipe works correctly.
6133 pipe_works=no
6134
6135 rm -f conftest*
6136 cat > conftest.$ac_ext <<_LT_EOF
6137 #ifdef __cplusplus
6138 extern "C" {
6139 #endif
6140 char nm_test_var;
6141 void nm_test_func(void);
6142 void nm_test_func(void){}
6143 #ifdef __cplusplus
6144 }
6145 #endif
6146 int main(){nm_test_var='a';nm_test_func();return(0);}
6147 _LT_EOF
6148
6149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6150 (eval $ac_compile) 2>&5
6151 ac_status=$?
6152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153 test $ac_status = 0; }; then
6154 # Now try to grab the symbols.
6155 nlist=conftest.nm
6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6157 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6158 ac_status=$?
6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; } && test -s "$nlist"; then
6161 # Try sorting and uniquifying the output.
6162 if sort "$nlist" | uniq > "$nlist"T; then
6163 mv -f "$nlist"T "$nlist"
6164 else
6165 rm -f "$nlist"T
6166 fi
6167
6168 # Make sure that we snagged all the symbols we need.
6169 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6170 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6171 cat <<_LT_EOF > conftest.$ac_ext
6172 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6173 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6174 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6175 relocations are performed -- see ld's documentation on pseudo-relocs. */
6176 # define LT_DLSYM_CONST
6177 #elif defined(__osf__)
6178 /* This system does not cope well with relocations in const data. */
6179 # define LT_DLSYM_CONST
6180 #else
6181 # define LT_DLSYM_CONST const
6182 #endif
6183
6184 #ifdef __cplusplus
6185 extern "C" {
6186 #endif
6187
6188 _LT_EOF
6189 # Now generate the symbol file.
6190 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6191
6192 cat <<_LT_EOF >> conftest.$ac_ext
6193
6194 /* The mapping between symbol names and symbols. */
6195 LT_DLSYM_CONST struct {
6196 const char *name;
6197 void *address;
6198 }
6199 lt__PROGRAM__LTX_preloaded_symbols[] =
6200 {
6201 { "@PROGRAM@", (void *) 0 },
6202 _LT_EOF
6203 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6204 cat <<\_LT_EOF >> conftest.$ac_ext
6205 {0, (void *) 0}
6206 };
6207
6208 /* This works around a problem in FreeBSD linker */
6209 #ifdef FREEBSD_WORKAROUND
6210 static const void *lt_preloaded_setup() {
6211 return lt__PROGRAM__LTX_preloaded_symbols;
6212 }
6213 #endif
6214
6215 #ifdef __cplusplus
6216 }
6217 #endif
6218 _LT_EOF
6219 # Now try linking the two files.
6220 mv conftest.$ac_objext conftstm.$ac_objext
6221 lt_globsym_save_LIBS=$LIBS
6222 lt_globsym_save_CFLAGS=$CFLAGS
6223 LIBS="conftstm.$ac_objext"
6224 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6226 (eval $ac_link) 2>&5
6227 ac_status=$?
6228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6229 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6230 pipe_works=yes
6231 fi
6232 LIBS=$lt_globsym_save_LIBS
6233 CFLAGS=$lt_globsym_save_CFLAGS
6234 else
6235 echo "cannot find nm_test_func in $nlist" >&5
6236 fi
6237 else
6238 echo "cannot find nm_test_var in $nlist" >&5
6239 fi
6240 else
6241 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6242 fi
6243 else
6244 echo "$progname: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6246 fi
6247 rm -rf conftest* conftst*
6248
6249 # Do not use the global_symbol_pipe unless it works.
6250 if test "$pipe_works" = yes; then
6251 break
6252 else
6253 lt_cv_sys_global_symbol_pipe=
6254 fi
6255 done
6256
6257 fi
6258
6259 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6260 lt_cv_sys_global_symbol_to_cdecl=
6261 fi
6262 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6264 $as_echo "failed" >&6; }
6265 else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6267 $as_echo "ok" >&6; }
6268 fi
6269
6270 # Response file support.
6271 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6272 nm_file_list_spec='@'
6273 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6274 nm_file_list_spec='@'
6275 fi
6276
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6304 $as_echo_n "checking for sysroot... " >&6; }
6305
6306 # Check whether --with-sysroot was given.
6307 if test "${with_sysroot+set}" = set; then :
6308 withval=$with_sysroot;
6309 else
6310 with_sysroot=no
6311 fi
6312
6313
6314 lt_sysroot=
6315 case ${with_sysroot} in #(
6316 yes)
6317 if test "$GCC" = yes; then
6318 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6319 fi
6320 ;; #(
6321 /*)
6322 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6323 ;; #(
6324 no|'')
6325 ;; #(
6326 *)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6328 $as_echo "${with_sysroot}" >&6; }
6329 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6330 ;;
6331 esac
6332
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6334 $as_echo "${lt_sysroot:-no}" >&6; }
6335
6336
6337
6338
6339
6340 # Check whether --enable-libtool-lock was given.
6341 if test "${enable_libtool_lock+set}" = set; then :
6342 enableval=$enable_libtool_lock;
6343 fi
6344
6345 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6346
6347 # Some flags need to be propagated to the compiler or linker for good
6348 # libtool support.
6349 case $host in
6350 ia64-*-hpux*)
6351 # Find out which ABI we are using.
6352 echo 'int i;' > conftest.$ac_ext
6353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6354 (eval $ac_compile) 2>&5
6355 ac_status=$?
6356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6357 test $ac_status = 0; }; then
6358 case `/usr/bin/file conftest.$ac_objext` in
6359 *ELF-32*)
6360 HPUX_IA64_MODE="32"
6361 ;;
6362 *ELF-64*)
6363 HPUX_IA64_MODE="64"
6364 ;;
6365 esac
6366 fi
6367 rm -rf conftest*
6368 ;;
6369 *-*-irix6*)
6370 # Find out which ABI we are using.
6371 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6373 (eval $ac_compile) 2>&5
6374 ac_status=$?
6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376 test $ac_status = 0; }; then
6377 if test "$lt_cv_prog_gnu_ld" = yes; then
6378 case `/usr/bin/file conftest.$ac_objext` in
6379 *32-bit*)
6380 LD="${LD-ld} -melf32bsmip"
6381 ;;
6382 *N32*)
6383 LD="${LD-ld} -melf32bmipn32"
6384 ;;
6385 *64-bit*)
6386 LD="${LD-ld} -melf64bmip"
6387 ;;
6388 esac
6389 else
6390 case `/usr/bin/file conftest.$ac_objext` in
6391 *32-bit*)
6392 LD="${LD-ld} -32"
6393 ;;
6394 *N32*)
6395 LD="${LD-ld} -n32"
6396 ;;
6397 *64-bit*)
6398 LD="${LD-ld} -64"
6399 ;;
6400 esac
6401 fi
6402 fi
6403 rm -rf conftest*
6404 ;;
6405
6406 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6407 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6408 # Find out which ABI we are using.
6409 echo 'int i;' > conftest.$ac_ext
6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6411 (eval $ac_compile) 2>&5
6412 ac_status=$?
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; }; then
6415 case `/usr/bin/file conftest.o` in
6416 *32-bit*)
6417 case $host in
6418 x86_64-*kfreebsd*-gnu)
6419 LD="${LD-ld} -m elf_i386_fbsd"
6420 ;;
6421 x86_64-*linux*)
6422 case `/usr/bin/file conftest.o` in
6423 *x86-64*)
6424 LD="${LD-ld} -m elf32_x86_64"
6425 ;;
6426 *)
6427 LD="${LD-ld} -m elf_i386"
6428 ;;
6429 esac
6430 ;;
6431 ppc64-*linux*|powerpc64-*linux*)
6432 LD="${LD-ld} -m elf32ppclinux"
6433 ;;
6434 s390x-*linux*)
6435 LD="${LD-ld} -m elf_s390"
6436 ;;
6437 sparc64-*linux*)
6438 LD="${LD-ld} -m elf32_sparc"
6439 ;;
6440 esac
6441 ;;
6442 *64-bit*)
6443 case $host in
6444 x86_64-*kfreebsd*-gnu)
6445 LD="${LD-ld} -m elf_x86_64_fbsd"
6446 ;;
6447 x86_64-*linux*)
6448 LD="${LD-ld} -m elf_x86_64"
6449 ;;
6450 ppc*-*linux*|powerpc*-*linux*)
6451 LD="${LD-ld} -m elf64ppc"
6452 ;;
6453 s390*-*linux*|s390*-*tpf*)
6454 LD="${LD-ld} -m elf64_s390"
6455 ;;
6456 sparc*-*linux*)
6457 LD="${LD-ld} -m elf64_sparc"
6458 ;;
6459 esac
6460 ;;
6461 esac
6462 fi
6463 rm -rf conftest*
6464 ;;
6465
6466 *-*-sco3.2v5*)
6467 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6468 SAVE_CFLAGS="$CFLAGS"
6469 CFLAGS="$CFLAGS -belf"
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6471 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6472 if ${lt_cv_cc_needs_belf+:} false; then :
6473 $as_echo_n "(cached) " >&6
6474 else
6475 ac_ext=c
6476 ac_cpp='$CPP $CPPFLAGS'
6477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6480
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483
6484 int
6485 main ()
6486 {
6487
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_c_try_link "$LINENO"; then :
6493 lt_cv_cc_needs_belf=yes
6494 else
6495 lt_cv_cc_needs_belf=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext \
6498 conftest$ac_exeext conftest.$ac_ext
6499 ac_ext=c
6500 ac_cpp='$CPP $CPPFLAGS'
6501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6504
6505 fi
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6507 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6508 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6509 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6510 CFLAGS="$SAVE_CFLAGS"
6511 fi
6512 ;;
6513 *-*solaris*)
6514 # Find out which ABI we are using.
6515 echo 'int i;' > conftest.$ac_ext
6516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6517 (eval $ac_compile) 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; then
6521 case `/usr/bin/file conftest.o` in
6522 *64-bit*)
6523 case $lt_cv_prog_gnu_ld in
6524 yes*)
6525 case $host in
6526 i?86-*-solaris*)
6527 LD="${LD-ld} -m elf_x86_64"
6528 ;;
6529 sparc*-*-solaris*)
6530 LD="${LD-ld} -m elf64_sparc"
6531 ;;
6532 esac
6533 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6534 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6535 LD="${LD-ld}_sol2"
6536 fi
6537 ;;
6538 *)
6539 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6540 LD="${LD-ld} -64"
6541 fi
6542 ;;
6543 esac
6544 ;;
6545 esac
6546 fi
6547 rm -rf conftest*
6548 ;;
6549 esac
6550
6551 need_locks="$enable_libtool_lock"
6552
6553 if test -n "$ac_tool_prefix"; then
6554 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6555 set dummy ${ac_tool_prefix}mt; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test -n "$MANIFEST_TOOL"; then
6562 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575 done
6576 done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6582 if test -n "$MANIFEST_TOOL"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6584 $as_echo "$MANIFEST_TOOL" >&6; }
6585 else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590
6591 fi
6592 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6593 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6594 # Extract the first word of "mt", so it can be a program name with args.
6595 set dummy mt; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 if test -n "$ac_ct_MANIFEST_TOOL"; then
6602 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6622 if test -n "$ac_ct_MANIFEST_TOOL"; then
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6624 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6628 fi
6629
6630 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6631 MANIFEST_TOOL=":"
6632 else
6633 case $cross_compiling:$ac_tool_warned in
6634 yes:)
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6640 fi
6641 else
6642 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6643 fi
6644
6645 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6647 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6648 if ${lt_cv_path_mainfest_tool+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 lt_cv_path_mainfest_tool=no
6652 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6653 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6654 cat conftest.err >&5
6655 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6656 lt_cv_path_mainfest_tool=yes
6657 fi
6658 rm -f conftest*
6659 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6661 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6662 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6663 MANIFEST_TOOL=:
6664 fi
6665
6666
6667
6668
6669
6670
6671 case $host_os in
6672 rhapsody* | darwin*)
6673 if test -n "$ac_tool_prefix"; then
6674 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6675 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 if test -n "$DSYMUTIL"; then
6682 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699 fi
6700 fi
6701 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6702 if test -n "$DSYMUTIL"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6704 $as_echo "$DSYMUTIL" >&6; }
6705 else
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6708 fi
6709
6710
6711 fi
6712 if test -z "$ac_cv_prog_DSYMUTIL"; then
6713 ac_ct_DSYMUTIL=$DSYMUTIL
6714 # Extract the first word of "dsymutil", so it can be a program name with args.
6715 set dummy dsymutil; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if test -n "$ac_ct_DSYMUTIL"; then
6722 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6731 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6734 fi
6735 done
6736 done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6742 if test -n "$ac_ct_DSYMUTIL"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6744 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6745 else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750 if test "x$ac_ct_DSYMUTIL" = x; then
6751 DSYMUTIL=":"
6752 else
6753 case $cross_compiling:$ac_tool_warned in
6754 yes:)
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757 ac_tool_warned=yes ;;
6758 esac
6759 DSYMUTIL=$ac_ct_DSYMUTIL
6760 fi
6761 else
6762 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6763 fi
6764
6765 if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if ${ac_cv_prog_NMEDIT+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 if test -n "$NMEDIT"; then
6774 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 NMEDIT=$ac_cv_prog_NMEDIT
6794 if test -n "$NMEDIT"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6796 $as_echo "$NMEDIT" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800 fi
6801
6802
6803 fi
6804 if test -z "$ac_cv_prog_NMEDIT"; then
6805 ac_ct_NMEDIT=$NMEDIT
6806 # Extract the first word of "nmedit", so it can be a program name with args.
6807 set dummy nmedit; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$ac_ct_NMEDIT"; then
6814 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6834 if test -n "$ac_ct_NMEDIT"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6836 $as_echo "$ac_ct_NMEDIT" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842 if test "x$ac_ct_NMEDIT" = x; then
6843 NMEDIT=":"
6844 else
6845 case $cross_compiling:$ac_tool_warned in
6846 yes:)
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849 ac_tool_warned=yes ;;
6850 esac
6851 NMEDIT=$ac_ct_NMEDIT
6852 fi
6853 else
6854 NMEDIT="$ac_cv_prog_NMEDIT"
6855 fi
6856
6857 if test -n "$ac_tool_prefix"; then
6858 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6859 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_LIPO+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$LIPO"; then
6866 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 LIPO=$ac_cv_prog_LIPO
6886 if test -n "$LIPO"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6888 $as_echo "$LIPO" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893
6894
6895 fi
6896 if test -z "$ac_cv_prog_LIPO"; then
6897 ac_ct_LIPO=$LIPO
6898 # Extract the first word of "lipo", so it can be a program name with args.
6899 set dummy lipo; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 if test -n "$ac_ct_LIPO"; then
6906 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_ac_ct_LIPO="lipo"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919 done
6920 done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6926 if test -n "$ac_ct_LIPO"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6928 $as_echo "$ac_ct_LIPO" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934 if test "x$ac_ct_LIPO" = x; then
6935 LIPO=":"
6936 else
6937 case $cross_compiling:$ac_tool_warned in
6938 yes:)
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6941 ac_tool_warned=yes ;;
6942 esac
6943 LIPO=$ac_ct_LIPO
6944 fi
6945 else
6946 LIPO="$ac_cv_prog_LIPO"
6947 fi
6948
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}otool; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_OTOOL+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 if test -n "$OTOOL"; then
6958 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 OTOOL=$ac_cv_prog_OTOOL
6978 if test -n "$OTOOL"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6980 $as_echo "$OTOOL" >&6; }
6981 else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986
6987 fi
6988 if test -z "$ac_cv_prog_OTOOL"; then
6989 ac_ct_OTOOL=$OTOOL
6990 # Extract the first word of "otool", so it can be a program name with args.
6991 set dummy otool; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 if test -n "$ac_ct_OTOOL"; then
6998 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_ac_ct_OTOOL="otool"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7018 if test -n "$ac_ct_OTOOL"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7020 $as_echo "$ac_ct_OTOOL" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026 if test "x$ac_ct_OTOOL" = x; then
7027 OTOOL=":"
7028 else
7029 case $cross_compiling:$ac_tool_warned in
7030 yes:)
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7033 ac_tool_warned=yes ;;
7034 esac
7035 OTOOL=$ac_ct_OTOOL
7036 fi
7037 else
7038 OTOOL="$ac_cv_prog_OTOOL"
7039 fi
7040
7041 if test -n "$ac_tool_prefix"; then
7042 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7043 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_prog_OTOOL64+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 if test -n "$OTOOL64"; then
7050 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 OTOOL64=$ac_cv_prog_OTOOL64
7070 if test -n "$OTOOL64"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7072 $as_echo "$OTOOL64" >&6; }
7073 else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078
7079 fi
7080 if test -z "$ac_cv_prog_OTOOL64"; then
7081 ac_ct_OTOOL64=$OTOOL64
7082 # Extract the first word of "otool64", so it can be a program name with args.
7083 set dummy otool64; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 if test -n "$ac_ct_OTOOL64"; then
7090 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099 ac_cv_prog_ac_ct_OTOOL64="otool64"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7102 fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107 fi
7108 fi
7109 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7110 if test -n "$ac_ct_OTOOL64"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7112 $as_echo "$ac_ct_OTOOL64" >&6; }
7113 else
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 fi
7117
7118 if test "x$ac_ct_OTOOL64" = x; then
7119 OTOOL64=":"
7120 else
7121 case $cross_compiling:$ac_tool_warned in
7122 yes:)
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7125 ac_tool_warned=yes ;;
7126 esac
7127 OTOOL64=$ac_ct_OTOOL64
7128 fi
7129 else
7130 OTOOL64="$ac_cv_prog_OTOOL64"
7131 fi
7132
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7160 $as_echo_n "checking for -single_module linker flag... " >&6; }
7161 if ${lt_cv_apple_cc_single_mod+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 lt_cv_apple_cc_single_mod=no
7165 if test -z "${LT_MULTI_MODULE}"; then
7166 # By default we will add the -single_module flag. You can override
7167 # by either setting the environment variable LT_MULTI_MODULE
7168 # non-empty at configure time, or by adding -multi_module to the
7169 # link flags.
7170 rm -rf libconftest.dylib*
7171 echo "int foo(void){return 1;}" > conftest.c
7172 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7173 -dynamiclib -Wl,-single_module conftest.c" >&5
7174 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7175 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7176 _lt_result=$?
7177 # If there is a non-empty error log, and "single_module"
7178 # appears in it, assume the flag caused a linker warning
7179 if test -s conftest.err && $GREP single_module conftest.err; then
7180 cat conftest.err >&5
7181 # Otherwise, if the output was created with a 0 exit code from
7182 # the compiler, it worked.
7183 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7184 lt_cv_apple_cc_single_mod=yes
7185 else
7186 cat conftest.err >&5
7187 fi
7188 rm -rf libconftest.dylib*
7189 rm -f conftest.*
7190 fi
7191 fi
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7193 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7194
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7196 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7197 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 lt_cv_ld_exported_symbols_list=no
7201 save_LDFLAGS=$LDFLAGS
7202 echo "_main" > conftest.sym
7203 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206
7207 int
7208 main ()
7209 {
7210
7211 ;
7212 return 0;
7213 }
7214 _ACEOF
7215 if ac_fn_c_try_link "$LINENO"; then :
7216 lt_cv_ld_exported_symbols_list=yes
7217 else
7218 lt_cv_ld_exported_symbols_list=no
7219 fi
7220 rm -f core conftest.err conftest.$ac_objext \
7221 conftest$ac_exeext conftest.$ac_ext
7222 LDFLAGS="$save_LDFLAGS"
7223
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7226 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7227
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7229 $as_echo_n "checking for -force_load linker flag... " >&6; }
7230 if ${lt_cv_ld_force_load+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 lt_cv_ld_force_load=no
7234 cat > conftest.c << _LT_EOF
7235 int forced_loaded() { return 2;}
7236 _LT_EOF
7237 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7238 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7239 echo "$AR cru libconftest.a conftest.o" >&5
7240 $AR cru libconftest.a conftest.o 2>&5
7241 echo "$RANLIB libconftest.a" >&5
7242 $RANLIB libconftest.a 2>&5
7243 cat > conftest.c << _LT_EOF
7244 int main() { return 0;}
7245 _LT_EOF
7246 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7247 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7248 _lt_result=$?
7249 if test -s conftest.err && $GREP force_load conftest.err; then
7250 cat conftest.err >&5
7251 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7252 lt_cv_ld_force_load=yes
7253 else
7254 cat conftest.err >&5
7255 fi
7256 rm -f conftest.err libconftest.a conftest conftest.c
7257 rm -rf conftest.dSYM
7258
7259 fi
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7261 $as_echo "$lt_cv_ld_force_load" >&6; }
7262 case $host_os in
7263 rhapsody* | darwin1.[012])
7264 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7265 darwin1.*)
7266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7267 darwin*) # darwin 5.x on
7268 # if running on 10.5 or later, the deployment target defaults
7269 # to the OS version, if on x86, and 10.4, the deployment
7270 # target defaults to 10.4. Don't you love it?
7271 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7272 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7273 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7274 10.[012]*)
7275 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7276 10.*)
7277 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7278 esac
7279 ;;
7280 esac
7281 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7282 _lt_dar_single_mod='$single_module'
7283 fi
7284 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7285 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7286 else
7287 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7288 fi
7289 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7290 _lt_dsymutil='~$DSYMUTIL $lib || :'
7291 else
7292 _lt_dsymutil=
7293 fi
7294 ;;
7295 esac
7296
7297 ac_ext=c
7298 ac_cpp='$CPP $CPPFLAGS'
7299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7303 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7304 # On Suns, sometimes $CPP names a directory.
7305 if test -n "$CPP" && test -d "$CPP"; then
7306 CPP=
7307 fi
7308 if test -z "$CPP"; then
7309 if ${ac_cv_prog_CPP+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 # Double quotes because CPP needs to be expanded
7313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7314 do
7315 ac_preproc_ok=false
7316 for ac_c_preproc_warn_flag in '' yes
7317 do
7318 # Use a header file that comes with gcc, so configuring glibc
7319 # with a fresh cross-compiler works.
7320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7321 # <limits.h> exists even on freestanding compilers.
7322 # On the NeXT, cc -E runs the code through the compiler's parser,
7323 # not just through cpp. "Syntax error" is here to catch this case.
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326 #ifdef __STDC__
7327 # include <limits.h>
7328 #else
7329 # include <assert.h>
7330 #endif
7331 Syntax error
7332 _ACEOF
7333 if ac_fn_c_try_cpp "$LINENO"; then :
7334
7335 else
7336 # Broken: fails on valid input.
7337 continue
7338 fi
7339 rm -f conftest.err conftest.i conftest.$ac_ext
7340
7341 # OK, works on sane cases. Now check whether nonexistent headers
7342 # can be detected and how.
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345 #include <ac_nonexistent.h>
7346 _ACEOF
7347 if ac_fn_c_try_cpp "$LINENO"; then :
7348 # Broken: success on invalid input.
7349 continue
7350 else
7351 # Passes both tests.
7352 ac_preproc_ok=:
7353 break
7354 fi
7355 rm -f conftest.err conftest.i conftest.$ac_ext
7356
7357 done
7358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7359 rm -f conftest.i conftest.err conftest.$ac_ext
7360 if $ac_preproc_ok; then :
7361 break
7362 fi
7363
7364 done
7365 ac_cv_prog_CPP=$CPP
7366
7367 fi
7368 CPP=$ac_cv_prog_CPP
7369 else
7370 ac_cv_prog_CPP=$CPP
7371 fi
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7373 $as_echo "$CPP" >&6; }
7374 ac_preproc_ok=false
7375 for ac_c_preproc_warn_flag in '' yes
7376 do
7377 # Use a header file that comes with gcc, so configuring glibc
7378 # with a fresh cross-compiler works.
7379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7380 # <limits.h> exists even on freestanding compilers.
7381 # On the NeXT, cc -E runs the code through the compiler's parser,
7382 # not just through cpp. "Syntax error" is here to catch this case.
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7385 #ifdef __STDC__
7386 # include <limits.h>
7387 #else
7388 # include <assert.h>
7389 #endif
7390 Syntax error
7391 _ACEOF
7392 if ac_fn_c_try_cpp "$LINENO"; then :
7393
7394 else
7395 # Broken: fails on valid input.
7396 continue
7397 fi
7398 rm -f conftest.err conftest.i conftest.$ac_ext
7399
7400 # OK, works on sane cases. Now check whether nonexistent headers
7401 # can be detected and how.
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 #include <ac_nonexistent.h>
7405 _ACEOF
7406 if ac_fn_c_try_cpp "$LINENO"; then :
7407 # Broken: success on invalid input.
7408 continue
7409 else
7410 # Passes both tests.
7411 ac_preproc_ok=:
7412 break
7413 fi
7414 rm -f conftest.err conftest.i conftest.$ac_ext
7415
7416 done
7417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7418 rm -f conftest.i conftest.err conftest.$ac_ext
7419 if $ac_preproc_ok; then :
7420
7421 else
7422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7424 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7425 See \`config.log' for more details" "$LINENO" 5; }
7426 fi
7427
7428 ac_ext=c
7429 ac_cpp='$CPP $CPPFLAGS'
7430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7433
7434
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7436 $as_echo_n "checking for ANSI C header files... " >&6; }
7437 if ${ac_cv_header_stdc+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #include <stdlib.h>
7443 #include <stdarg.h>
7444 #include <string.h>
7445 #include <float.h>
7446
7447 int
7448 main ()
7449 {
7450
7451 ;
7452 return 0;
7453 }
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 ac_cv_header_stdc=yes
7457 else
7458 ac_cv_header_stdc=no
7459 fi
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461
7462 if test $ac_cv_header_stdc = yes; then
7463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 #include <string.h>
7467
7468 _ACEOF
7469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7470 $EGREP "memchr" >/dev/null 2>&1; then :
7471
7472 else
7473 ac_cv_header_stdc=no
7474 fi
7475 rm -f conftest*
7476
7477 fi
7478
7479 if test $ac_cv_header_stdc = yes; then
7480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7483 #include <stdlib.h>
7484
7485 _ACEOF
7486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7487 $EGREP "free" >/dev/null 2>&1; then :
7488
7489 else
7490 ac_cv_header_stdc=no
7491 fi
7492 rm -f conftest*
7493
7494 fi
7495
7496 if test $ac_cv_header_stdc = yes; then
7497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7498 if test "$cross_compiling" = yes; then :
7499 :
7500 else
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 #include <ctype.h>
7504 #include <stdlib.h>
7505 #if ((' ' & 0x0FF) == 0x020)
7506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7508 #else
7509 # define ISLOWER(c) \
7510 (('a' <= (c) && (c) <= 'i') \
7511 || ('j' <= (c) && (c) <= 'r') \
7512 || ('s' <= (c) && (c) <= 'z'))
7513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7514 #endif
7515
7516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7517 int
7518 main ()
7519 {
7520 int i;
7521 for (i = 0; i < 256; i++)
7522 if (XOR (islower (i), ISLOWER (i))
7523 || toupper (i) != TOUPPER (i))
7524 return 2;
7525 return 0;
7526 }
7527 _ACEOF
7528 if ac_fn_c_try_run "$LINENO"; then :
7529
7530 else
7531 ac_cv_header_stdc=no
7532 fi
7533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7534 conftest.$ac_objext conftest.beam conftest.$ac_ext
7535 fi
7536
7537 fi
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7540 $as_echo "$ac_cv_header_stdc" >&6; }
7541 if test $ac_cv_header_stdc = yes; then
7542
7543 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7544
7545 fi
7546
7547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7548 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7549 inttypes.h stdint.h unistd.h
7550 do :
7551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7552 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7553 "
7554 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7555 cat >>confdefs.h <<_ACEOF
7556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7557 _ACEOF
7558
7559 fi
7560
7561 done
7562
7563
7564 for ac_header in dlfcn.h
7565 do :
7566 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7567 "
7568 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7569 cat >>confdefs.h <<_ACEOF
7570 #define HAVE_DLFCN_H 1
7571 _ACEOF
7572
7573 fi
7574
7575 done
7576
7577
7578
7579
7580
7581 # Set options
7582 enable_win32_dll=yes
7583
7584 case $host in
7585 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7586 if test -n "$ac_tool_prefix"; then
7587 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7588 set dummy ${ac_tool_prefix}as; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_AS+:} false; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 if test -n "$AS"; then
7595 ac_cv_prog_AS="$AS" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_AS="${ac_tool_prefix}as"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 AS=$ac_cv_prog_AS
7615 if test -n "$AS"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7617 $as_echo "$AS" >&6; }
7618 else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 fi
7622
7623
7624 fi
7625 if test -z "$ac_cv_prog_AS"; then
7626 ac_ct_AS=$AS
7627 # Extract the first word of "as", so it can be a program name with args.
7628 set dummy as; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 if test -n "$ac_ct_AS"; then
7635 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_ac_ct_AS="as"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652 fi
7653 fi
7654 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7655 if test -n "$ac_ct_AS"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7657 $as_echo "$ac_ct_AS" >&6; }
7658 else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663 if test "x$ac_ct_AS" = x; then
7664 AS="false"
7665 else
7666 case $cross_compiling:$ac_tool_warned in
7667 yes:)
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670 ac_tool_warned=yes ;;
7671 esac
7672 AS=$ac_ct_AS
7673 fi
7674 else
7675 AS="$ac_cv_prog_AS"
7676 fi
7677
7678 if test -n "$ac_tool_prefix"; then
7679 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7680 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_DLLTOOL+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 if test -n "$DLLTOOL"; then
7687 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700 done
7701 done
7702 IFS=$as_save_IFS
7703
7704 fi
7705 fi
7706 DLLTOOL=$ac_cv_prog_DLLTOOL
7707 if test -n "$DLLTOOL"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7709 $as_echo "$DLLTOOL" >&6; }
7710 else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715
7716 fi
7717 if test -z "$ac_cv_prog_DLLTOOL"; then
7718 ac_ct_DLLTOOL=$DLLTOOL
7719 # Extract the first word of "dlltool", so it can be a program name with args.
7720 set dummy dlltool; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 if test -n "$ac_ct_DLLTOOL"; then
7727 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7739 fi
7740 done
7741 done
7742 IFS=$as_save_IFS
7743
7744 fi
7745 fi
7746 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7747 if test -n "$ac_ct_DLLTOOL"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7749 $as_echo "$ac_ct_DLLTOOL" >&6; }
7750 else
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7753 fi
7754
7755 if test "x$ac_ct_DLLTOOL" = x; then
7756 DLLTOOL="false"
7757 else
7758 case $cross_compiling:$ac_tool_warned in
7759 yes:)
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762 ac_tool_warned=yes ;;
7763 esac
7764 DLLTOOL=$ac_ct_DLLTOOL
7765 fi
7766 else
7767 DLLTOOL="$ac_cv_prog_DLLTOOL"
7768 fi
7769
7770 if test -n "$ac_tool_prefix"; then
7771 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7772 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if ${ac_cv_prog_OBJDUMP+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 if test -n "$OBJDUMP"; then
7779 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792 done
7793 done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 OBJDUMP=$ac_cv_prog_OBJDUMP
7799 if test -n "$OBJDUMP"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7801 $as_echo "$OBJDUMP" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807
7808 fi
7809 if test -z "$ac_cv_prog_OBJDUMP"; then
7810 ac_ct_OBJDUMP=$OBJDUMP
7811 # Extract the first word of "objdump", so it can be a program name with args.
7812 set dummy objdump; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$ac_ct_OBJDUMP"; then
7819 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7831 fi
7832 done
7833 done
7834 IFS=$as_save_IFS
7835
7836 fi
7837 fi
7838 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7839 if test -n "$ac_ct_OBJDUMP"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7841 $as_echo "$ac_ct_OBJDUMP" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847 if test "x$ac_ct_OBJDUMP" = x; then
7848 OBJDUMP="false"
7849 else
7850 case $cross_compiling:$ac_tool_warned in
7851 yes:)
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854 ac_tool_warned=yes ;;
7855 esac
7856 OBJDUMP=$ac_ct_OBJDUMP
7857 fi
7858 else
7859 OBJDUMP="$ac_cv_prog_OBJDUMP"
7860 fi
7861
7862 ;;
7863 esac
7864
7865 test -z "$AS" && AS=as
7866
7867
7868
7869
7870
7871 test -z "$DLLTOOL" && DLLTOOL=dlltool
7872
7873
7874
7875
7876
7877 test -z "$OBJDUMP" && OBJDUMP=objdump
7878
7879
7880
7881
7882
7883
7884
7885 enable_dlopen=no
7886
7887
7888
7889 # Check whether --enable-shared was given.
7890 if test "${enable_shared+set}" = set; then :
7891 enableval=$enable_shared; p=${PACKAGE-default}
7892 case $enableval in
7893 yes) enable_shared=yes ;;
7894 no) enable_shared=no ;;
7895 *)
7896 enable_shared=no
7897 # Look at the argument we got. We use all the common list separators.
7898 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7899 for pkg in $enableval; do
7900 IFS="$lt_save_ifs"
7901 if test "X$pkg" = "X$p"; then
7902 enable_shared=yes
7903 fi
7904 done
7905 IFS="$lt_save_ifs"
7906 ;;
7907 esac
7908 else
7909 enable_shared=yes
7910 fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920 # Check whether --enable-static was given.
7921 if test "${enable_static+set}" = set; then :
7922 enableval=$enable_static; p=${PACKAGE-default}
7923 case $enableval in
7924 yes) enable_static=yes ;;
7925 no) enable_static=no ;;
7926 *)
7927 enable_static=no
7928 # Look at the argument we got. We use all the common list separators.
7929 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7930 for pkg in $enableval; do
7931 IFS="$lt_save_ifs"
7932 if test "X$pkg" = "X$p"; then
7933 enable_static=yes
7934 fi
7935 done
7936 IFS="$lt_save_ifs"
7937 ;;
7938 esac
7939 else
7940 enable_static=yes
7941 fi
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952 # Check whether --with-pic was given.
7953 if test "${with_pic+set}" = set; then :
7954 withval=$with_pic; lt_p=${PACKAGE-default}
7955 case $withval in
7956 yes|no) pic_mode=$withval ;;
7957 *)
7958 pic_mode=default
7959 # Look at the argument we got. We use all the common list separators.
7960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7961 for lt_pkg in $withval; do
7962 IFS="$lt_save_ifs"
7963 if test "X$lt_pkg" = "X$lt_p"; then
7964 pic_mode=yes
7965 fi
7966 done
7967 IFS="$lt_save_ifs"
7968 ;;
7969 esac
7970 else
7971 pic_mode=default
7972 fi
7973
7974
7975 test -z "$pic_mode" && pic_mode=default
7976
7977
7978
7979
7980
7981
7982
7983 # Check whether --enable-fast-install was given.
7984 if test "${enable_fast_install+set}" = set; then :
7985 enableval=$enable_fast_install; p=${PACKAGE-default}
7986 case $enableval in
7987 yes) enable_fast_install=yes ;;
7988 no) enable_fast_install=no ;;
7989 *)
7990 enable_fast_install=no
7991 # Look at the argument we got. We use all the common list separators.
7992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7993 for pkg in $enableval; do
7994 IFS="$lt_save_ifs"
7995 if test "X$pkg" = "X$p"; then
7996 enable_fast_install=yes
7997 fi
7998 done
7999 IFS="$lt_save_ifs"
8000 ;;
8001 esac
8002 else
8003 enable_fast_install=yes
8004 fi
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016 # This can be used to rebuild libtool when needed
8017 LIBTOOL_DEPS="$ltmain"
8018
8019 # Always use our own libtool.
8020 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051 test -z "$LN_S" && LN_S="ln -s"
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066 if test -n "${ZSH_VERSION+set}" ; then
8067 setopt NO_GLOB_SUBST
8068 fi
8069
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8071 $as_echo_n "checking for objdir... " >&6; }
8072 if ${lt_cv_objdir+:} false; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 rm -f .libs 2>/dev/null
8076 mkdir .libs 2>/dev/null
8077 if test -d .libs; then
8078 lt_cv_objdir=.libs
8079 else
8080 # MS-DOS does not allow filenames that begin with a dot.
8081 lt_cv_objdir=_libs
8082 fi
8083 rmdir .libs 2>/dev/null
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8086 $as_echo "$lt_cv_objdir" >&6; }
8087 objdir=$lt_cv_objdir
8088
8089
8090
8091
8092
8093 cat >>confdefs.h <<_ACEOF
8094 #define LT_OBJDIR "$lt_cv_objdir/"
8095 _ACEOF
8096
8097
8098
8099
8100 case $host_os in
8101 aix3*)
8102 # AIX sometimes has problems with the GCC collect2 program. For some
8103 # reason, if we set the COLLECT_NAMES environment variable, the problems
8104 # vanish in a puff of smoke.
8105 if test "X${COLLECT_NAMES+set}" != Xset; then
8106 COLLECT_NAMES=
8107 export COLLECT_NAMES
8108 fi
8109 ;;
8110 esac
8111
8112 # Global variables:
8113 ofile=libtool
8114 can_build_shared=yes
8115
8116 # All known linkers require a `.a' archive for static linking (except MSVC,
8117 # which needs '.lib').
8118 libext=a
8119
8120 with_gnu_ld="$lt_cv_prog_gnu_ld"
8121
8122 old_CC="$CC"
8123 old_CFLAGS="$CFLAGS"
8124
8125 # Set sane defaults for various variables
8126 test -z "$CC" && CC=cc
8127 test -z "$LTCC" && LTCC=$CC
8128 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8129 test -z "$LD" && LD=ld
8130 test -z "$ac_objext" && ac_objext=o
8131
8132 for cc_temp in $compiler""; do
8133 case $cc_temp in
8134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8136 \-*) ;;
8137 *) break;;
8138 esac
8139 done
8140 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8141
8142
8143 # Only perform the check for file, if the check method requires it
8144 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8145 case $deplibs_check_method in
8146 file_magic*)
8147 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8149 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8150 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 case $MAGIC_CMD in
8154 [\\/*] | ?:[\\/]*)
8155 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8156 ;;
8157 *)
8158 lt_save_MAGIC_CMD="$MAGIC_CMD"
8159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8160 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8161 for ac_dir in $ac_dummy; do
8162 IFS="$lt_save_ifs"
8163 test -z "$ac_dir" && ac_dir=.
8164 if test -f $ac_dir/${ac_tool_prefix}file; then
8165 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8166 if test -n "$file_magic_test_file"; then
8167 case $deplibs_check_method in
8168 "file_magic "*)
8169 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8172 $EGREP "$file_magic_regex" > /dev/null; then
8173 :
8174 else
8175 cat <<_LT_EOF 1>&2
8176
8177 *** Warning: the command libtool uses to detect shared libraries,
8178 *** $file_magic_cmd, produces output that libtool cannot recognize.
8179 *** The result is that libtool may fail to recognize shared libraries
8180 *** as such. This will affect the creation of libtool libraries that
8181 *** depend on shared libraries, but programs linked with such libtool
8182 *** libraries will work regardless of this problem. Nevertheless, you
8183 *** may want to report the problem to your system manager and/or to
8184 *** [email protected]
8185
8186 _LT_EOF
8187 fi ;;
8188 esac
8189 fi
8190 break
8191 fi
8192 done
8193 IFS="$lt_save_ifs"
8194 MAGIC_CMD="$lt_save_MAGIC_CMD"
8195 ;;
8196 esac
8197 fi
8198
8199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8200 if test -n "$MAGIC_CMD"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8202 $as_echo "$MAGIC_CMD" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8206 fi
8207
8208
8209
8210
8211
8212 if test -z "$lt_cv_path_MAGIC_CMD"; then
8213 if test -n "$ac_tool_prefix"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8215 $as_echo_n "checking for file... " >&6; }
8216 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8217 $as_echo_n "(cached) " >&6
8218 else
8219 case $MAGIC_CMD in
8220 [\\/*] | ?:[\\/]*)
8221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8222 ;;
8223 *)
8224 lt_save_MAGIC_CMD="$MAGIC_CMD"
8225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8226 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8227 for ac_dir in $ac_dummy; do
8228 IFS="$lt_save_ifs"
8229 test -z "$ac_dir" && ac_dir=.
8230 if test -f $ac_dir/file; then
8231 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8232 if test -n "$file_magic_test_file"; then
8233 case $deplibs_check_method in
8234 "file_magic "*)
8235 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8238 $EGREP "$file_magic_regex" > /dev/null; then
8239 :
8240 else
8241 cat <<_LT_EOF 1>&2
8242
8243 *** Warning: the command libtool uses to detect shared libraries,
8244 *** $file_magic_cmd, produces output that libtool cannot recognize.
8245 *** The result is that libtool may fail to recognize shared libraries
8246 *** as such. This will affect the creation of libtool libraries that
8247 *** depend on shared libraries, but programs linked with such libtool
8248 *** libraries will work regardless of this problem. Nevertheless, you
8249 *** may want to report the problem to your system manager and/or to
8250 *** [email protected]
8251
8252 _LT_EOF
8253 fi ;;
8254 esac
8255 fi
8256 break
8257 fi
8258 done
8259 IFS="$lt_save_ifs"
8260 MAGIC_CMD="$lt_save_MAGIC_CMD"
8261 ;;
8262 esac
8263 fi
8264
8265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8266 if test -n "$MAGIC_CMD"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8268 $as_echo "$MAGIC_CMD" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8272 fi
8273
8274
8275 else
8276 MAGIC_CMD=:
8277 fi
8278 fi
8279
8280 fi
8281 ;;
8282 esac
8283
8284 # Use C for the default configuration in the libtool script
8285
8286 lt_save_CC="$CC"
8287 ac_ext=c
8288 ac_cpp='$CPP $CPPFLAGS'
8289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8292
8293
8294 # Source file extension for C test sources.
8295 ac_ext=c
8296
8297 # Object file extension for compiled C test sources.
8298 objext=o
8299 objext=$objext
8300
8301 # Code to be used in simple compile tests
8302 lt_simple_compile_test_code="int some_variable = 0;"
8303
8304 # Code to be used in simple link tests
8305 lt_simple_link_test_code='int main(){return(0);}'
8306
8307
8308
8309
8310
8311
8312
8313 # If no C compiler was specified, use CC.
8314 LTCC=${LTCC-"$CC"}
8315
8316 # If no C compiler flags were specified, use CFLAGS.
8317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8318
8319 # Allow CC to be a program name with arguments.
8320 compiler=$CC
8321
8322 # Save the default compiler, since it gets overwritten when the other
8323 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8324 compiler_DEFAULT=$CC
8325
8326 # save warnings/boilerplate of simple test code
8327 ac_outfile=conftest.$ac_objext
8328 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8329 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8330 _lt_compiler_boilerplate=`cat conftest.err`
8331 $RM conftest*
8332
8333 ac_outfile=conftest.$ac_objext
8334 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8335 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8336 _lt_linker_boilerplate=`cat conftest.err`
8337 $RM -r conftest*
8338
8339
8340 ## CAVEAT EMPTOR:
8341 ## There is no encapsulation within the following macros, do not change
8342 ## the running order or otherwise move them around unless you know exactly
8343 ## what you are doing...
8344 if test -n "$compiler"; then
8345
8346 lt_prog_compiler_no_builtin_flag=
8347
8348 if test "$GCC" = yes; then
8349 case $cc_basename in
8350 nvcc*)
8351 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8352 *)
8353 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8354 esac
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8357 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8358 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 lt_cv_prog_compiler_rtti_exceptions=no
8362 ac_outfile=conftest.$ac_objext
8363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8364 lt_compiler_flag="-fno-rtti -fno-exceptions"
8365 # Insert the option either (1) after the last *FLAGS variable, or
8366 # (2) before a word containing "conftest.", or (3) at the end.
8367 # Note that $ac_compile itself does not contain backslashes and begins
8368 # with a dollar sign (not a hyphen), so the echo should work correctly.
8369 # The option is referenced via a variable to avoid confusing sed.
8370 lt_compile=`echo "$ac_compile" | $SED \
8371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8373 -e 's:$: $lt_compiler_flag:'`
8374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8375 (eval "$lt_compile" 2>conftest.err)
8376 ac_status=$?
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 if (exit $ac_status) && test -s "$ac_outfile"; then
8380 # The compiler can only warn and ignore the option if not recognized
8381 # So say no if there are warnings other than the usual output.
8382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8385 lt_cv_prog_compiler_rtti_exceptions=yes
8386 fi
8387 fi
8388 $RM conftest*
8389
8390 fi
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8392 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8393
8394 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8395 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8396 else
8397 :
8398 fi
8399
8400 fi
8401
8402
8403
8404
8405
8406
8407 lt_prog_compiler_wl=
8408 lt_prog_compiler_pic=
8409 lt_prog_compiler_static=
8410
8411
8412 if test "$GCC" = yes; then
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_static='-static'
8415
8416 case $host_os in
8417 aix*)
8418 # All AIX code is PIC.
8419 if test "$host_cpu" = ia64; then
8420 # AIX 5 now supports IA64 processor
8421 lt_prog_compiler_static='-Bstatic'
8422 fi
8423 ;;
8424
8425 amigaos*)
8426 case $host_cpu in
8427 powerpc)
8428 # see comment about AmigaOS4 .so support
8429 lt_prog_compiler_pic='-fPIC'
8430 ;;
8431 m68k)
8432 # FIXME: we need at least 68020 code to build shared libraries, but
8433 # adding the `-m68020' flag to GCC prevents building anything better,
8434 # like `-m68040'.
8435 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8436 ;;
8437 esac
8438 ;;
8439
8440 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8441 # PIC is the default for these OSes.
8442 ;;
8443
8444 mingw* | cygwin* | pw32* | os2* | cegcc*)
8445 # This hack is so that the source file can tell whether it is being
8446 # built for inclusion in a dll (and should export symbols for example).
8447 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8448 # (--disable-auto-import) libraries
8449 lt_prog_compiler_pic='-DDLL_EXPORT'
8450 ;;
8451
8452 darwin* | rhapsody*)
8453 # PIC is the default on this platform
8454 # Common symbols not allowed in MH_DYLIB files
8455 lt_prog_compiler_pic='-fno-common'
8456 ;;
8457
8458 haiku*)
8459 # PIC is the default for Haiku.
8460 # The "-static" flag exists, but is broken.
8461 lt_prog_compiler_static=
8462 ;;
8463
8464 hpux*)
8465 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8466 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8467 # sets the default TLS model and affects inlining.
8468 case $host_cpu in
8469 hppa*64*)
8470 # +Z the default
8471 ;;
8472 *)
8473 lt_prog_compiler_pic='-fPIC'
8474 ;;
8475 esac
8476 ;;
8477
8478 interix[3-9]*)
8479 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8480 # Instead, we relocate shared libraries at runtime.
8481 ;;
8482
8483 msdosdjgpp*)
8484 # Just because we use GCC doesn't mean we suddenly get shared libraries
8485 # on systems that don't support them.
8486 lt_prog_compiler_can_build_shared=no
8487 enable_shared=no
8488 ;;
8489
8490 *nto* | *qnx*)
8491 # QNX uses GNU C++, but need to define -shared option too, otherwise
8492 # it will coredump.
8493 lt_prog_compiler_pic='-fPIC -shared'
8494 ;;
8495
8496 sysv4*MP*)
8497 if test -d /usr/nec; then
8498 lt_prog_compiler_pic=-Kconform_pic
8499 fi
8500 ;;
8501
8502 *)
8503 lt_prog_compiler_pic='-fPIC'
8504 ;;
8505 esac
8506
8507 case $cc_basename in
8508 nvcc*) # Cuda Compiler Driver 2.2
8509 lt_prog_compiler_wl='-Xlinker '
8510 if test -n "$lt_prog_compiler_pic"; then
8511 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8512 fi
8513 ;;
8514 esac
8515 else
8516 # PORTME Check for flag to pass linker flags through the system compiler.
8517 case $host_os in
8518 aix*)
8519 lt_prog_compiler_wl='-Wl,'
8520 if test "$host_cpu" = ia64; then
8521 # AIX 5 now supports IA64 processor
8522 lt_prog_compiler_static='-Bstatic'
8523 else
8524 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8525 fi
8526 ;;
8527
8528 mingw* | cygwin* | pw32* | os2* | cegcc*)
8529 # This hack is so that the source file can tell whether it is being
8530 # built for inclusion in a dll (and should export symbols for example).
8531 lt_prog_compiler_pic='-DDLL_EXPORT'
8532 ;;
8533
8534 hpux9* | hpux10* | hpux11*)
8535 lt_prog_compiler_wl='-Wl,'
8536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8537 # not for PA HP-UX.
8538 case $host_cpu in
8539 hppa*64*|ia64*)
8540 # +Z the default
8541 ;;
8542 *)
8543 lt_prog_compiler_pic='+Z'
8544 ;;
8545 esac
8546 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8547 lt_prog_compiler_static='${wl}-a ${wl}archive'
8548 ;;
8549
8550 irix5* | irix6* | nonstopux*)
8551 lt_prog_compiler_wl='-Wl,'
8552 # PIC (with -KPIC) is the default.
8553 lt_prog_compiler_static='-non_shared'
8554 ;;
8555
8556 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8557 case $cc_basename in
8558 # old Intel for x86_64 which still supported -KPIC.
8559 ecc*)
8560 lt_prog_compiler_wl='-Wl,'
8561 lt_prog_compiler_pic='-KPIC'
8562 lt_prog_compiler_static='-static'
8563 ;;
8564 # icc used to be incompatible with GCC.
8565 # ICC 10 doesn't accept -KPIC any more.
8566 icc* | ifort*)
8567 lt_prog_compiler_wl='-Wl,'
8568 lt_prog_compiler_pic='-fPIC'
8569 lt_prog_compiler_static='-static'
8570 ;;
8571 # Lahey Fortran 8.1.
8572 lf95*)
8573 lt_prog_compiler_wl='-Wl,'
8574 lt_prog_compiler_pic='--shared'
8575 lt_prog_compiler_static='--static'
8576 ;;
8577 nagfor*)
8578 # NAG Fortran compiler
8579 lt_prog_compiler_wl='-Wl,-Wl,,'
8580 lt_prog_compiler_pic='-PIC'
8581 lt_prog_compiler_static='-Bstatic'
8582 ;;
8583 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8584 # Portland Group compilers (*not* the Pentium gcc compiler,
8585 # which looks to be a dead project)
8586 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-fpic'
8588 lt_prog_compiler_static='-Bstatic'
8589 ;;
8590 ccc*)
8591 lt_prog_compiler_wl='-Wl,'
8592 # All Alpha code is PIC.
8593 lt_prog_compiler_static='-non_shared'
8594 ;;
8595 xl* | bgxl* | bgf* | mpixl*)
8596 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='-qpic'
8599 lt_prog_compiler_static='-qstaticlink'
8600 ;;
8601 *)
8602 case `$CC -V 2>&1 | sed 5q` in
8603 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8604 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8605 lt_prog_compiler_pic='-KPIC'
8606 lt_prog_compiler_static='-Bstatic'
8607 lt_prog_compiler_wl=''
8608 ;;
8609 *Sun\ F* | *Sun*Fortran*)
8610 lt_prog_compiler_pic='-KPIC'
8611 lt_prog_compiler_static='-Bstatic'
8612 lt_prog_compiler_wl='-Qoption ld '
8613 ;;
8614 *Sun\ C*)
8615 # Sun C 5.9
8616 lt_prog_compiler_pic='-KPIC'
8617 lt_prog_compiler_static='-Bstatic'
8618 lt_prog_compiler_wl='-Wl,'
8619 ;;
8620 *Intel*\ [CF]*Compiler*)
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_pic='-fPIC'
8623 lt_prog_compiler_static='-static'
8624 ;;
8625 *Portland\ Group*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-fpic'
8628 lt_prog_compiler_static='-Bstatic'
8629 ;;
8630 esac
8631 ;;
8632 esac
8633 ;;
8634
8635 newsos6)
8636 lt_prog_compiler_pic='-KPIC'
8637 lt_prog_compiler_static='-Bstatic'
8638 ;;
8639
8640 *nto* | *qnx*)
8641 # QNX uses GNU C++, but need to define -shared option too, otherwise
8642 # it will coredump.
8643 lt_prog_compiler_pic='-fPIC -shared'
8644 ;;
8645
8646 osf3* | osf4* | osf5*)
8647 lt_prog_compiler_wl='-Wl,'
8648 # All OSF/1 code is PIC.
8649 lt_prog_compiler_static='-non_shared'
8650 ;;
8651
8652 rdos*)
8653 lt_prog_compiler_static='-non_shared'
8654 ;;
8655
8656 solaris*)
8657 lt_prog_compiler_pic='-KPIC'
8658 lt_prog_compiler_static='-Bstatic'
8659 case $cc_basename in
8660 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8661 lt_prog_compiler_wl='-Qoption ld ';;
8662 *)
8663 lt_prog_compiler_wl='-Wl,';;
8664 esac
8665 ;;
8666
8667 sunos4*)
8668 lt_prog_compiler_wl='-Qoption ld '
8669 lt_prog_compiler_pic='-PIC'
8670 lt_prog_compiler_static='-Bstatic'
8671 ;;
8672
8673 sysv4 | sysv4.2uw2* | sysv4.3*)
8674 lt_prog_compiler_wl='-Wl,'
8675 lt_prog_compiler_pic='-KPIC'
8676 lt_prog_compiler_static='-Bstatic'
8677 ;;
8678
8679 sysv4*MP*)
8680 if test -d /usr/nec ;then
8681 lt_prog_compiler_pic='-Kconform_pic'
8682 lt_prog_compiler_static='-Bstatic'
8683 fi
8684 ;;
8685
8686 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8687 lt_prog_compiler_wl='-Wl,'
8688 lt_prog_compiler_pic='-KPIC'
8689 lt_prog_compiler_static='-Bstatic'
8690 ;;
8691
8692 unicos*)
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_can_build_shared=no
8695 ;;
8696
8697 uts4*)
8698 lt_prog_compiler_pic='-pic'
8699 lt_prog_compiler_static='-Bstatic'
8700 ;;
8701
8702 *)
8703 lt_prog_compiler_can_build_shared=no
8704 ;;
8705 esac
8706 fi
8707
8708 case $host_os in
8709 # For platforms which do not support PIC, -DPIC is meaningless:
8710 *djgpp*)
8711 lt_prog_compiler_pic=
8712 ;;
8713 *)
8714 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8715 ;;
8716 esac
8717
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8719 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8720 if ${lt_cv_prog_compiler_pic+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8724 fi
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8726 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8727 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8728
8729 #
8730 # Check to make sure the PIC flag actually works.
8731 #
8732 if test -n "$lt_prog_compiler_pic"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8734 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8735 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 lt_cv_prog_compiler_pic_works=no
8739 ac_outfile=conftest.$ac_objext
8740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8741 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8742 # Insert the option either (1) after the last *FLAGS variable, or
8743 # (2) before a word containing "conftest.", or (3) at the end.
8744 # Note that $ac_compile itself does not contain backslashes and begins
8745 # with a dollar sign (not a hyphen), so the echo should work correctly.
8746 # The option is referenced via a variable to avoid confusing sed.
8747 lt_compile=`echo "$ac_compile" | $SED \
8748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8750 -e 's:$: $lt_compiler_flag:'`
8751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8752 (eval "$lt_compile" 2>conftest.err)
8753 ac_status=$?
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 if (exit $ac_status) && test -s "$ac_outfile"; then
8757 # The compiler can only warn and ignore the option if not recognized
8758 # So say no if there are warnings other than the usual output.
8759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8762 lt_cv_prog_compiler_pic_works=yes
8763 fi
8764 fi
8765 $RM conftest*
8766
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8769 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8770
8771 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8772 case $lt_prog_compiler_pic in
8773 "" | " "*) ;;
8774 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8775 esac
8776 else
8777 lt_prog_compiler_pic=
8778 lt_prog_compiler_can_build_shared=no
8779 fi
8780
8781 fi
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793 #
8794 # Check to make sure the static flag actually works.
8795 #
8796 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8798 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8799 if ${lt_cv_prog_compiler_static_works+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 lt_cv_prog_compiler_static_works=no
8803 save_LDFLAGS="$LDFLAGS"
8804 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8805 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8806 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8807 # The linker can only warn and ignore the option if not recognized
8808 # So say no if there are warnings
8809 if test -s conftest.err; then
8810 # Append any errors to the config.log.
8811 cat conftest.err 1>&5
8812 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8814 if diff conftest.exp conftest.er2 >/dev/null; then
8815 lt_cv_prog_compiler_static_works=yes
8816 fi
8817 else
8818 lt_cv_prog_compiler_static_works=yes
8819 fi
8820 fi
8821 $RM -r conftest*
8822 LDFLAGS="$save_LDFLAGS"
8823
8824 fi
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8826 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8827
8828 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8829 :
8830 else
8831 lt_prog_compiler_static=
8832 fi
8833
8834
8835
8836
8837
8838
8839
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8841 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8842 if ${lt_cv_prog_compiler_c_o+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 lt_cv_prog_compiler_c_o=no
8846 $RM -r conftest 2>/dev/null
8847 mkdir conftest
8848 cd conftest
8849 mkdir out
8850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8851
8852 lt_compiler_flag="-o out/conftest2.$ac_objext"
8853 # Insert the option either (1) after the last *FLAGS variable, or
8854 # (2) before a word containing "conftest.", or (3) at the end.
8855 # Note that $ac_compile itself does not contain backslashes and begins
8856 # with a dollar sign (not a hyphen), so the echo should work correctly.
8857 lt_compile=`echo "$ac_compile" | $SED \
8858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8860 -e 's:$: $lt_compiler_flag:'`
8861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8862 (eval "$lt_compile" 2>out/conftest.err)
8863 ac_status=$?
8864 cat out/conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867 then
8868 # The compiler can only warn and ignore the option if not recognized
8869 # So say no if there are warnings
8870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8873 lt_cv_prog_compiler_c_o=yes
8874 fi
8875 fi
8876 chmod u+w . 2>&5
8877 $RM conftest*
8878 # SGI C++ compiler will create directory out/ii_files/ for
8879 # template instantiation
8880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8881 $RM out/* && rmdir out
8882 cd ..
8883 $RM -r conftest
8884 $RM conftest*
8885
8886 fi
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8888 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8889
8890
8891
8892
8893
8894
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8896 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8897 if ${lt_cv_prog_compiler_c_o+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 lt_cv_prog_compiler_c_o=no
8901 $RM -r conftest 2>/dev/null
8902 mkdir conftest
8903 cd conftest
8904 mkdir out
8905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8906
8907 lt_compiler_flag="-o out/conftest2.$ac_objext"
8908 # Insert the option either (1) after the last *FLAGS variable, or
8909 # (2) before a word containing "conftest.", or (3) at the end.
8910 # Note that $ac_compile itself does not contain backslashes and begins
8911 # with a dollar sign (not a hyphen), so the echo should work correctly.
8912 lt_compile=`echo "$ac_compile" | $SED \
8913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915 -e 's:$: $lt_compiler_flag:'`
8916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917 (eval "$lt_compile" 2>out/conftest.err)
8918 ac_status=$?
8919 cat out/conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8922 then
8923 # The compiler can only warn and ignore the option if not recognized
8924 # So say no if there are warnings
8925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8928 lt_cv_prog_compiler_c_o=yes
8929 fi
8930 fi
8931 chmod u+w . 2>&5
8932 $RM conftest*
8933 # SGI C++ compiler will create directory out/ii_files/ for
8934 # template instantiation
8935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8936 $RM out/* && rmdir out
8937 cd ..
8938 $RM -r conftest
8939 $RM conftest*
8940
8941 fi
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8943 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8944
8945
8946
8947
8948 hard_links="nottested"
8949 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8950 # do not overwrite the value of need_locks provided by the user
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8952 $as_echo_n "checking if we can lock with hard links... " >&6; }
8953 hard_links=yes
8954 $RM conftest*
8955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8956 touch conftest.a
8957 ln conftest.a conftest.b 2>&5 || hard_links=no
8958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8960 $as_echo "$hard_links" >&6; }
8961 if test "$hard_links" = no; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8963 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8964 need_locks=warn
8965 fi
8966 else
8967 need_locks=no
8968 fi
8969
8970
8971
8972
8973
8974
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8976 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8977
8978 runpath_var=
8979 allow_undefined_flag=
8980 always_export_symbols=no
8981 archive_cmds=
8982 archive_expsym_cmds=
8983 compiler_needs_object=no
8984 enable_shared_with_static_runtimes=no
8985 export_dynamic_flag_spec=
8986 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8987 hardcode_automatic=no
8988 hardcode_direct=no
8989 hardcode_direct_absolute=no
8990 hardcode_libdir_flag_spec=
8991 hardcode_libdir_separator=
8992 hardcode_minus_L=no
8993 hardcode_shlibpath_var=unsupported
8994 inherit_rpath=no
8995 link_all_deplibs=unknown
8996 module_cmds=
8997 module_expsym_cmds=
8998 old_archive_from_new_cmds=
8999 old_archive_from_expsyms_cmds=
9000 thread_safe_flag_spec=
9001 whole_archive_flag_spec=
9002 # include_expsyms should be a list of space-separated symbols to be *always*
9003 # included in the symbol list
9004 include_expsyms=
9005 # exclude_expsyms can be an extended regexp of symbols to exclude
9006 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9007 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9008 # as well as any symbol that contains `d'.
9009 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9010 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9011 # platforms (ab)use it in PIC code, but their linkers get confused if
9012 # the symbol is explicitly referenced. Since portable code cannot
9013 # rely on this symbol name, it's probably fine to never include it in
9014 # preloaded symbol tables.
9015 # Exclude shared library initialization/finalization symbols.
9016 extract_expsyms_cmds=
9017
9018 case $host_os in
9019 cygwin* | mingw* | pw32* | cegcc*)
9020 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9021 # When not using gcc, we currently assume that we are using
9022 # Microsoft Visual C++.
9023 if test "$GCC" != yes; then
9024 with_gnu_ld=no
9025 fi
9026 ;;
9027 interix*)
9028 # we just hope/assume this is gcc and not c89 (= MSVC++)
9029 with_gnu_ld=yes
9030 ;;
9031 openbsd*)
9032 with_gnu_ld=no
9033 ;;
9034 linux* | k*bsd*-gnu | gnu*)
9035 link_all_deplibs=no
9036 ;;
9037 esac
9038
9039 ld_shlibs=yes
9040
9041 # On some targets, GNU ld is compatible enough with the native linker
9042 # that we're better off using the native interface for both.
9043 lt_use_gnu_ld_interface=no
9044 if test "$with_gnu_ld" = yes; then
9045 case $host_os in
9046 aix*)
9047 # The AIX port of GNU ld has always aspired to compatibility
9048 # with the native linker. However, as the warning in the GNU ld
9049 # block says, versions before 2.19.5* couldn't really create working
9050 # shared libraries, regardless of the interface used.
9051 case `$LD -v 2>&1` in
9052 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9053 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9054 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9055 *)
9056 lt_use_gnu_ld_interface=yes
9057 ;;
9058 esac
9059 ;;
9060 *)
9061 lt_use_gnu_ld_interface=yes
9062 ;;
9063 esac
9064 fi
9065
9066 if test "$lt_use_gnu_ld_interface" = yes; then
9067 # If archive_cmds runs LD, not CC, wlarc should be empty
9068 wlarc='${wl}'
9069
9070 # Set some defaults for GNU ld with shared library support. These
9071 # are reset later if shared libraries are not supported. Putting them
9072 # here allows them to be overridden if necessary.
9073 runpath_var=LD_RUN_PATH
9074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9075 export_dynamic_flag_spec='${wl}--export-dynamic'
9076 # ancient GNU ld didn't support --whole-archive et. al.
9077 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9078 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9079 else
9080 whole_archive_flag_spec=
9081 fi
9082 supports_anon_versioning=no
9083 case `$LD -v 2>&1` in
9084 *GNU\ gold*) supports_anon_versioning=yes ;;
9085 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9088 *\ 2.11.*) ;; # other 2.11 versions
9089 *) supports_anon_versioning=yes ;;
9090 esac
9091
9092 # See if GNU ld supports shared libraries.
9093 case $host_os in
9094 aix[3-9]*)
9095 # On AIX/PPC, the GNU linker is very broken
9096 if test "$host_cpu" != ia64; then
9097 ld_shlibs=no
9098 cat <<_LT_EOF 1>&2
9099
9100 *** Warning: the GNU linker, at least up to release 2.19, is reported
9101 *** to be unable to reliably create shared libraries on AIX.
9102 *** Therefore, libtool is disabling shared libraries support. If you
9103 *** really care for shared libraries, you may want to install binutils
9104 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9105 *** You will then need to restart the configuration process.
9106
9107 _LT_EOF
9108 fi
9109 ;;
9110
9111 amigaos*)
9112 case $host_cpu in
9113 powerpc)
9114 # see comment about AmigaOS4 .so support
9115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9116 archive_expsym_cmds=''
9117 ;;
9118 m68k)
9119 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)'
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 hardcode_minus_L=yes
9122 ;;
9123 esac
9124 ;;
9125
9126 beos*)
9127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9128 allow_undefined_flag=unsupported
9129 # Joseph Beckenbach <[email protected]> says some releases of gcc
9130 # support --undefined. This deserves some investigation. FIXME
9131 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 else
9133 ld_shlibs=no
9134 fi
9135 ;;
9136
9137 cygwin* | mingw* | pw32* | cegcc*)
9138 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9139 # as there is no search path for DLLs.
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 export_dynamic_flag_spec='${wl}--export-all-symbols'
9142 allow_undefined_flag=unsupported
9143 always_export_symbols=no
9144 enable_shared_with_static_runtimes=yes
9145 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'
9146 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9147
9148 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9150 # If the export-symbols file already is a .def file (1st line
9151 # is EXPORTS), use it as is; otherwise, prepend...
9152 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9153 cp $export_symbols $output_objdir/$soname.def;
9154 else
9155 echo EXPORTS > $output_objdir/$soname.def;
9156 cat $export_symbols >> $output_objdir/$soname.def;
9157 fi~
9158 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9159 else
9160 ld_shlibs=no
9161 fi
9162 ;;
9163
9164 haiku*)
9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166 link_all_deplibs=yes
9167 ;;
9168
9169 interix[3-9]*)
9170 hardcode_direct=no
9171 hardcode_shlibpath_var=no
9172 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9173 export_dynamic_flag_spec='${wl}-E'
9174 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9175 # Instead, shared libraries are loaded at an image base (0x10000000 by
9176 # default) and relocated if they conflict, which is a slow very memory
9177 # consuming and fragmenting process. To avoid this, we pick a random,
9178 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9179 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9180 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9181 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'
9182 ;;
9183
9184 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9185 tmp_diet=no
9186 if test "$host_os" = linux-dietlibc; then
9187 case $cc_basename in
9188 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9189 esac
9190 fi
9191 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9192 && test "$tmp_diet" = no
9193 then
9194 tmp_addflag=' $pic_flag'
9195 tmp_sharedflag='-shared'
9196 case $cc_basename,$host_cpu in
9197 pgcc*) # Portland Group C compiler
9198 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'
9199 tmp_addflag=' $pic_flag'
9200 ;;
9201 pgf77* | pgf90* | pgf95* | pgfortran*)
9202 # Portland Group f77 and f90 compilers
9203 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'
9204 tmp_addflag=' $pic_flag -Mnomain' ;;
9205 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9206 tmp_addflag=' -i_dynamic' ;;
9207 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9208 tmp_addflag=' -i_dynamic -nofor_main' ;;
9209 ifc* | ifort*) # Intel Fortran compiler
9210 tmp_addflag=' -nofor_main' ;;
9211 lf95*) # Lahey Fortran 8.1
9212 whole_archive_flag_spec=
9213 tmp_sharedflag='--shared' ;;
9214 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9215 tmp_sharedflag='-qmkshrobj'
9216 tmp_addflag= ;;
9217 nvcc*) # Cuda Compiler Driver 2.2
9218 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'
9219 compiler_needs_object=yes
9220 ;;
9221 esac
9222 case `$CC -V 2>&1 | sed 5q` in
9223 *Sun\ C*) # Sun C 5.9
9224 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'
9225 compiler_needs_object=yes
9226 tmp_sharedflag='-G' ;;
9227 *Sun\ F*) # Sun Fortran 8.3
9228 tmp_sharedflag='-G' ;;
9229 esac
9230 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231
9232 if test "x$supports_anon_versioning" = xyes; then
9233 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9234 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9235 echo "local: *; };" >> $output_objdir/$libname.ver~
9236 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9237 fi
9238
9239 case $cc_basename in
9240 xlf* | bgf* | bgxlf* | mpixlf*)
9241 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9242 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9245 if test "x$supports_anon_versioning" = xyes; then
9246 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9247 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9248 echo "local: *; };" >> $output_objdir/$libname.ver~
9249 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9250 fi
9251 ;;
9252 esac
9253 else
9254 ld_shlibs=no
9255 fi
9256 ;;
9257
9258 netbsd* | netbsdelf*-gnu)
9259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9260 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9261 wlarc=
9262 else
9263 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9265 fi
9266 ;;
9267
9268 solaris*)
9269 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9270 ld_shlibs=no
9271 cat <<_LT_EOF 1>&2
9272
9273 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9274 *** create shared libraries on Solaris systems. Therefore, libtool
9275 *** is disabling shared libraries support. We urge you to upgrade GNU
9276 *** binutils to release 2.9.1 or newer. Another option is to modify
9277 *** your PATH or compiler configuration so that the native linker is
9278 *** used, and then restart.
9279
9280 _LT_EOF
9281 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9284 else
9285 ld_shlibs=no
9286 fi
9287 ;;
9288
9289 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9290 case `$LD -v 2>&1` in
9291 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9292 ld_shlibs=no
9293 cat <<_LT_EOF 1>&2
9294
9295 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9296 *** reliably create shared libraries on SCO systems. Therefore, libtool
9297 *** is disabling shared libraries support. We urge you to upgrade GNU
9298 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9299 *** your PATH or compiler configuration so that the native linker is
9300 *** used, and then restart.
9301
9302 _LT_EOF
9303 ;;
9304 *)
9305 # For security reasons, it is highly recommended that you always
9306 # use absolute paths for naming shared libraries, and exclude the
9307 # DT_RUNPATH tag from executables and libraries. But doing so
9308 # requires that you compile everything twice, which is a pain.
9309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9313 else
9314 ld_shlibs=no
9315 fi
9316 ;;
9317 esac
9318 ;;
9319
9320 sunos4*)
9321 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322 wlarc=
9323 hardcode_direct=yes
9324 hardcode_shlibpath_var=no
9325 ;;
9326
9327 *)
9328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9329 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9331 else
9332 ld_shlibs=no
9333 fi
9334 ;;
9335 esac
9336
9337 if test "$ld_shlibs" = no; then
9338 runpath_var=
9339 hardcode_libdir_flag_spec=
9340 export_dynamic_flag_spec=
9341 whole_archive_flag_spec=
9342 fi
9343 else
9344 # PORTME fill in a description of your system's linker (not GNU ld)
9345 case $host_os in
9346 aix3*)
9347 allow_undefined_flag=unsupported
9348 always_export_symbols=yes
9349 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'
9350 # Note: this linker hardcodes the directories in LIBPATH if there
9351 # are no directories specified by -L.
9352 hardcode_minus_L=yes
9353 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9354 # Neither direct hardcoding nor static linking is supported with a
9355 # broken collect2.
9356 hardcode_direct=unsupported
9357 fi
9358 ;;
9359
9360 aix[4-9]*)
9361 if test "$host_cpu" = ia64; then
9362 # On IA64, the linker does run time linking by default, so we don't
9363 # have to do anything special.
9364 aix_use_runtimelinking=no
9365 exp_sym_flag='-Bexport'
9366 no_entry_flag=""
9367 else
9368 # If we're using GNU nm, then we don't want the "-C" option.
9369 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9370 # Also, AIX nm treats weak defined symbols like other global
9371 # defined symbols, whereas GNU nm marks them as "W".
9372 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9373 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'
9374 else
9375 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'
9376 fi
9377 aix_use_runtimelinking=no
9378
9379 # Test if we are trying to use run time linking or normal
9380 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9381 # need to do runtime linking.
9382 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9383 for ld_flag in $LDFLAGS; do
9384 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9385 aix_use_runtimelinking=yes
9386 break
9387 fi
9388 done
9389 ;;
9390 esac
9391
9392 exp_sym_flag='-bexport'
9393 no_entry_flag='-bnoentry'
9394 fi
9395
9396 # When large executables or shared objects are built, AIX ld can
9397 # have problems creating the table of contents. If linking a library
9398 # or program results in "error TOC overflow" add -mminimal-toc to
9399 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9400 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9401
9402 archive_cmds=''
9403 hardcode_direct=yes
9404 hardcode_direct_absolute=yes
9405 hardcode_libdir_separator=':'
9406 link_all_deplibs=yes
9407 file_list_spec='${wl}-f,'
9408
9409 if test "$GCC" = yes; then
9410 case $host_os in aix4.[012]|aix4.[012].*)
9411 # We only want to do this on AIX 4.2 and lower, the check
9412 # below for broken collect2 doesn't work under 4.3+
9413 collect2name=`${CC} -print-prog-name=collect2`
9414 if test -f "$collect2name" &&
9415 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9416 then
9417 # We have reworked collect2
9418 :
9419 else
9420 # We have old collect2
9421 hardcode_direct=unsupported
9422 # It fails to find uninstalled libraries when the uninstalled
9423 # path is not listed in the libpath. Setting hardcode_minus_L
9424 # to unsupported forces relinking
9425 hardcode_minus_L=yes
9426 hardcode_libdir_flag_spec='-L$libdir'
9427 hardcode_libdir_separator=
9428 fi
9429 ;;
9430 esac
9431 shared_flag='-shared'
9432 if test "$aix_use_runtimelinking" = yes; then
9433 shared_flag="$shared_flag "'${wl}-G'
9434 fi
9435 link_all_deplibs=no
9436 else
9437 # not using gcc
9438 if test "$host_cpu" = ia64; then
9439 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9440 # chokes on -Wl,-G. The following line is correct:
9441 shared_flag='-G'
9442 else
9443 if test "$aix_use_runtimelinking" = yes; then
9444 shared_flag='${wl}-G'
9445 else
9446 shared_flag='${wl}-bM:SRE'
9447 fi
9448 fi
9449 fi
9450
9451 export_dynamic_flag_spec='${wl}-bexpall'
9452 # It seems that -bexpall does not export symbols beginning with
9453 # underscore (_), so it is better to generate a list of symbols to export.
9454 always_export_symbols=yes
9455 if test "$aix_use_runtimelinking" = yes; then
9456 # Warning - without using the other runtime loading flags (-brtl),
9457 # -berok will link without error, but may produce a broken library.
9458 allow_undefined_flag='-berok'
9459 # Determine the default libpath from the value encoded in an
9460 # empty executable.
9461 if test "${lt_cv_aix_libpath+set}" = set; then
9462 aix_libpath=$lt_cv_aix_libpath
9463 else
9464 if ${lt_cv_aix_libpath_+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469
9470 int
9471 main ()
9472 {
9473
9474 ;
9475 return 0;
9476 }
9477 _ACEOF
9478 if ac_fn_c_try_link "$LINENO"; then :
9479
9480 lt_aix_libpath_sed='
9481 /Import File Strings/,/^$/ {
9482 /^0/ {
9483 s/^0 *\([^ ]*\) *$/\1/
9484 p
9485 }
9486 }'
9487 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9488 # Check for a 64-bit object if we didn't find anything.
9489 if test -z "$lt_cv_aix_libpath_"; then
9490 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9491 fi
9492 fi
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 if test -z "$lt_cv_aix_libpath_"; then
9496 lt_cv_aix_libpath_="/usr/lib:/lib"
9497 fi
9498
9499 fi
9500
9501 aix_libpath=$lt_cv_aix_libpath_
9502 fi
9503
9504 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9505 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"
9506 else
9507 if test "$host_cpu" = ia64; then
9508 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9509 allow_undefined_flag="-z nodefs"
9510 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"
9511 else
9512 # Determine the default libpath from the value encoded in an
9513 # empty executable.
9514 if test "${lt_cv_aix_libpath+set}" = set; then
9515 aix_libpath=$lt_cv_aix_libpath
9516 else
9517 if ${lt_cv_aix_libpath_+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9522
9523 int
9524 main ()
9525 {
9526
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"; then :
9532
9533 lt_aix_libpath_sed='
9534 /Import File Strings/,/^$/ {
9535 /^0/ {
9536 s/^0 *\([^ ]*\) *$/\1/
9537 p
9538 }
9539 }'
9540 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9541 # Check for a 64-bit object if we didn't find anything.
9542 if test -z "$lt_cv_aix_libpath_"; then
9543 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9544 fi
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548 if test -z "$lt_cv_aix_libpath_"; then
9549 lt_cv_aix_libpath_="/usr/lib:/lib"
9550 fi
9551
9552 fi
9553
9554 aix_libpath=$lt_cv_aix_libpath_
9555 fi
9556
9557 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9558 # Warning - without using the other run time loading flags,
9559 # -berok will link without error, but may produce a broken library.
9560 no_undefined_flag=' ${wl}-bernotok'
9561 allow_undefined_flag=' ${wl}-berok'
9562 if test "$with_gnu_ld" = yes; then
9563 # We only use this code for GNU lds that support --whole-archive.
9564 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9565 else
9566 # Exported symbols can be pulled into shared objects from archives
9567 whole_archive_flag_spec='$convenience'
9568 fi
9569 archive_cmds_need_lc=yes
9570 # This is similar to how AIX traditionally builds its shared libraries.
9571 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'
9572 fi
9573 fi
9574 ;;
9575
9576 amigaos*)
9577 case $host_cpu in
9578 powerpc)
9579 # see comment about AmigaOS4 .so support
9580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581 archive_expsym_cmds=''
9582 ;;
9583 m68k)
9584 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)'
9585 hardcode_libdir_flag_spec='-L$libdir'
9586 hardcode_minus_L=yes
9587 ;;
9588 esac
9589 ;;
9590
9591 bsdi[45]*)
9592 export_dynamic_flag_spec=-rdynamic
9593 ;;
9594
9595 cygwin* | mingw* | pw32* | cegcc*)
9596 # When not using gcc, we currently assume that we are using
9597 # Microsoft Visual C++.
9598 # hardcode_libdir_flag_spec is actually meaningless, as there is
9599 # no search path for DLLs.
9600 case $cc_basename in
9601 cl*)
9602 # Native MSVC
9603 hardcode_libdir_flag_spec=' '
9604 allow_undefined_flag=unsupported
9605 always_export_symbols=yes
9606 file_list_spec='@'
9607 # Tell ltmain to make .lib files, not .a files.
9608 libext=lib
9609 # Tell ltmain to make .dll files, not .so files.
9610 shrext_cmds=".dll"
9611 # FIXME: Setting linknames here is a bad hack.
9612 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9613 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9614 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9615 else
9616 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9617 fi~
9618 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9619 linknames='
9620 # The linker will not automatically build a static lib if we build a DLL.
9621 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9622 enable_shared_with_static_runtimes=yes
9623 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9624 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9625 # Don't use ranlib
9626 old_postinstall_cmds='chmod 644 $oldlib'
9627 postlink_cmds='lt_outputfile="@OUTPUT@"~
9628 lt_tool_outputfile="@TOOL_OUTPUT@"~
9629 case $lt_outputfile in
9630 *.exe|*.EXE) ;;
9631 *)
9632 lt_outputfile="$lt_outputfile.exe"
9633 lt_tool_outputfile="$lt_tool_outputfile.exe"
9634 ;;
9635 esac~
9636 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9637 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9638 $RM "$lt_outputfile.manifest";
9639 fi'
9640 ;;
9641 *)
9642 # Assume MSVC wrapper
9643 hardcode_libdir_flag_spec=' '
9644 allow_undefined_flag=unsupported
9645 # Tell ltmain to make .lib files, not .a files.
9646 libext=lib
9647 # Tell ltmain to make .dll files, not .so files.
9648 shrext_cmds=".dll"
9649 # FIXME: Setting linknames here is a bad hack.
9650 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9651 # The linker will automatically build a .lib file if we build a DLL.
9652 old_archive_from_new_cmds='true'
9653 # FIXME: Should let the user specify the lib program.
9654 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9655 enable_shared_with_static_runtimes=yes
9656 ;;
9657 esac
9658 ;;
9659
9660 darwin* | rhapsody*)
9661
9662
9663 archive_cmds_need_lc=no
9664 hardcode_direct=no
9665 hardcode_automatic=yes
9666 hardcode_shlibpath_var=unsupported
9667 if test "$lt_cv_ld_force_load" = "yes"; then
9668 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\"`'
9669
9670 else
9671 whole_archive_flag_spec=''
9672 fi
9673 link_all_deplibs=yes
9674 allow_undefined_flag="$_lt_dar_allow_undefined"
9675 case $cc_basename in
9676 ifort*) _lt_dar_can_shared=yes ;;
9677 *) _lt_dar_can_shared=$GCC ;;
9678 esac
9679 if test "$_lt_dar_can_shared" = "yes"; then
9680 output_verbose_link_cmd=func_echo_all
9681 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9682 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9683 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}"
9684 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}"
9685
9686 else
9687 ld_shlibs=no
9688 fi
9689
9690 ;;
9691
9692 dgux*)
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_shlibpath_var=no
9696 ;;
9697
9698 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9699 # support. Future versions do this automatically, but an explicit c++rt0.o
9700 # does not break anything, and helps significantly (at the cost of a little
9701 # extra space).
9702 freebsd2.2*)
9703 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9704 hardcode_libdir_flag_spec='-R$libdir'
9705 hardcode_direct=yes
9706 hardcode_shlibpath_var=no
9707 ;;
9708
9709 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9710 freebsd2.*)
9711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_direct=yes
9713 hardcode_minus_L=yes
9714 hardcode_shlibpath_var=no
9715 ;;
9716
9717 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9718 freebsd* | dragonfly*)
9719 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9720 hardcode_libdir_flag_spec='-R$libdir'
9721 hardcode_direct=yes
9722 hardcode_shlibpath_var=no
9723 ;;
9724
9725 hpux9*)
9726 if test "$GCC" = yes; then
9727 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'
9728 else
9729 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'
9730 fi
9731 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9732 hardcode_libdir_separator=:
9733 hardcode_direct=yes
9734
9735 # hardcode_minus_L: Not really in the search PATH,
9736 # but as the default location of the library.
9737 hardcode_minus_L=yes
9738 export_dynamic_flag_spec='${wl}-E'
9739 ;;
9740
9741 hpux10*)
9742 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9743 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9744 else
9745 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9746 fi
9747 if test "$with_gnu_ld" = no; then
9748 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9749 hardcode_libdir_separator=:
9750 hardcode_direct=yes
9751 hardcode_direct_absolute=yes
9752 export_dynamic_flag_spec='${wl}-E'
9753 # hardcode_minus_L: Not really in the search PATH,
9754 # but as the default location of the library.
9755 hardcode_minus_L=yes
9756 fi
9757 ;;
9758
9759 hpux11*)
9760 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9761 case $host_cpu in
9762 hppa*64*)
9763 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 ;;
9765 ia64*)
9766 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9767 ;;
9768 *)
9769 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9770 ;;
9771 esac
9772 else
9773 case $host_cpu in
9774 hppa*64*)
9775 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 ;;
9777 ia64*)
9778 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9779 ;;
9780 *)
9781
9782 # Older versions of the 11.00 compiler do not understand -b yet
9783 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9785 $as_echo_n "checking if $CC understands -b... " >&6; }
9786 if ${lt_cv_prog_compiler__b+:} false; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 lt_cv_prog_compiler__b=no
9790 save_LDFLAGS="$LDFLAGS"
9791 LDFLAGS="$LDFLAGS -b"
9792 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9793 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9794 # The linker can only warn and ignore the option if not recognized
9795 # So say no if there are warnings
9796 if test -s conftest.err; then
9797 # Append any errors to the config.log.
9798 cat conftest.err 1>&5
9799 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9801 if diff conftest.exp conftest.er2 >/dev/null; then
9802 lt_cv_prog_compiler__b=yes
9803 fi
9804 else
9805 lt_cv_prog_compiler__b=yes
9806 fi
9807 fi
9808 $RM -r conftest*
9809 LDFLAGS="$save_LDFLAGS"
9810
9811 fi
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9813 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9814
9815 if test x"$lt_cv_prog_compiler__b" = xyes; then
9816 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9817 else
9818 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9819 fi
9820
9821 ;;
9822 esac
9823 fi
9824 if test "$with_gnu_ld" = no; then
9825 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9826 hardcode_libdir_separator=:
9827
9828 case $host_cpu in
9829 hppa*64*|ia64*)
9830 hardcode_direct=no
9831 hardcode_shlibpath_var=no
9832 ;;
9833 *)
9834 hardcode_direct=yes
9835 hardcode_direct_absolute=yes
9836 export_dynamic_flag_spec='${wl}-E'
9837
9838 # hardcode_minus_L: Not really in the search PATH,
9839 # but as the default location of the library.
9840 hardcode_minus_L=yes
9841 ;;
9842 esac
9843 fi
9844 ;;
9845
9846 irix5* | irix6* | nonstopux*)
9847 if test "$GCC" = yes; then
9848 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'
9849 # Try to use the -exported_symbol ld option, if it does not
9850 # work, assume that -exports_file does not work either and
9851 # implicitly export all symbols.
9852 # This should be the same for all languages, so no per-tag cache variable.
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9854 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9855 if ${lt_cv_irix_exported_symbol+:} false; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 save_LDFLAGS="$LDFLAGS"
9859 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 int foo (void) { return 0; }
9863 _ACEOF
9864 if ac_fn_c_try_link "$LINENO"; then :
9865 lt_cv_irix_exported_symbol=yes
9866 else
9867 lt_cv_irix_exported_symbol=no
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871 LDFLAGS="$save_LDFLAGS"
9872 fi
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9874 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9875 if test "$lt_cv_irix_exported_symbol" = yes; then
9876 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'
9877 fi
9878 else
9879 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'
9880 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'
9881 fi
9882 archive_cmds_need_lc='no'
9883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9884 hardcode_libdir_separator=:
9885 inherit_rpath=yes
9886 link_all_deplibs=yes
9887 ;;
9888
9889 netbsd* | netbsdelf*-gnu)
9890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9891 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9892 else
9893 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9894 fi
9895 hardcode_libdir_flag_spec='-R$libdir'
9896 hardcode_direct=yes
9897 hardcode_shlibpath_var=no
9898 ;;
9899
9900 newsos6)
9901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9902 hardcode_direct=yes
9903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9904 hardcode_libdir_separator=:
9905 hardcode_shlibpath_var=no
9906 ;;
9907
9908 *nto* | *qnx*)
9909 ;;
9910
9911 openbsd*)
9912 if test -f /usr/libexec/ld.so; then
9913 hardcode_direct=yes
9914 hardcode_shlibpath_var=no
9915 hardcode_direct_absolute=yes
9916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9919 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9920 export_dynamic_flag_spec='${wl}-E'
9921 else
9922 case $host_os in
9923 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9925 hardcode_libdir_flag_spec='-R$libdir'
9926 ;;
9927 *)
9928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9930 ;;
9931 esac
9932 fi
9933 else
9934 ld_shlibs=no
9935 fi
9936 ;;
9937
9938 os2*)
9939 hardcode_libdir_flag_spec='-L$libdir'
9940 hardcode_minus_L=yes
9941 allow_undefined_flag=unsupported
9942 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'
9943 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9944 ;;
9945
9946 osf3*)
9947 if test "$GCC" = yes; then
9948 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9949 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'
9950 else
9951 allow_undefined_flag=' -expect_unresolved \*'
9952 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'
9953 fi
9954 archive_cmds_need_lc='no'
9955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9956 hardcode_libdir_separator=:
9957 ;;
9958
9959 osf4* | osf5*) # as osf3* with the addition of -msym flag
9960 if test "$GCC" = yes; then
9961 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9962 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'
9963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9964 else
9965 allow_undefined_flag=' -expect_unresolved \*'
9966 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'
9967 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~
9968 $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'
9969
9970 # Both c and cxx compiler support -rpath directly
9971 hardcode_libdir_flag_spec='-rpath $libdir'
9972 fi
9973 archive_cmds_need_lc='no'
9974 hardcode_libdir_separator=:
9975 ;;
9976
9977 solaris*)
9978 no_undefined_flag=' -z defs'
9979 if test "$GCC" = yes; then
9980 wlarc='${wl}'
9981 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9982 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9983 $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'
9984 else
9985 case `$CC -V 2>&1` in
9986 *"Compilers 5.0"*)
9987 wlarc=''
9988 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9990 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9991 ;;
9992 *)
9993 wlarc='${wl}'
9994 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9995 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9996 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9997 ;;
9998 esac
9999 fi
10000 hardcode_libdir_flag_spec='-R$libdir'
10001 hardcode_shlibpath_var=no
10002 case $host_os in
10003 solaris2.[0-5] | solaris2.[0-5].*) ;;
10004 *)
10005 # The compiler driver will combine and reorder linker options,
10006 # but understands `-z linker_flag'. GCC discards it without `$wl',
10007 # but is careful enough not to reorder.
10008 # Supported since Solaris 2.6 (maybe 2.5.1?)
10009 if test "$GCC" = yes; then
10010 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10011 else
10012 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10013 fi
10014 ;;
10015 esac
10016 link_all_deplibs=yes
10017 ;;
10018
10019 sunos4*)
10020 if test "x$host_vendor" = xsequent; then
10021 # Use $CC to link under sequent, because it throws in some extra .o
10022 # files that make .init and .fini sections work.
10023 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10024 else
10025 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10026 fi
10027 hardcode_libdir_flag_spec='-L$libdir'
10028 hardcode_direct=yes
10029 hardcode_minus_L=yes
10030 hardcode_shlibpath_var=no
10031 ;;
10032
10033 sysv4)
10034 case $host_vendor in
10035 sni)
10036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10037 hardcode_direct=yes # is this really true???
10038 ;;
10039 siemens)
10040 ## LD is ld it makes a PLAMLIB
10041 ## CC just makes a GrossModule.
10042 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10043 reload_cmds='$CC -r -o $output$reload_objs'
10044 hardcode_direct=no
10045 ;;
10046 motorola)
10047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10049 ;;
10050 esac
10051 runpath_var='LD_RUN_PATH'
10052 hardcode_shlibpath_var=no
10053 ;;
10054
10055 sysv4.3*)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_shlibpath_var=no
10058 export_dynamic_flag_spec='-Bexport'
10059 ;;
10060
10061 sysv4*MP*)
10062 if test -d /usr/nec; then
10063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_shlibpath_var=no
10065 runpath_var=LD_RUN_PATH
10066 hardcode_runpath_var=yes
10067 ld_shlibs=yes
10068 fi
10069 ;;
10070
10071 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10072 no_undefined_flag='${wl}-z,text'
10073 archive_cmds_need_lc=no
10074 hardcode_shlibpath_var=no
10075 runpath_var='LD_RUN_PATH'
10076
10077 if test "$GCC" = yes; then
10078 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 else
10081 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 fi
10084 ;;
10085
10086 sysv5* | sco3.2v5* | sco5v6*)
10087 # Note: We can NOT use -z defs as we might desire, because we do not
10088 # link with -lc, and that would cause any symbols used from libc to
10089 # always be unresolved, which means just about no library would
10090 # ever link correctly. If we're not using GNU ld we use -z text
10091 # though, which does catch some bad symbols but isn't as heavy-handed
10092 # as -z defs.
10093 no_undefined_flag='${wl}-z,text'
10094 allow_undefined_flag='${wl}-z,nodefs'
10095 archive_cmds_need_lc=no
10096 hardcode_shlibpath_var=no
10097 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10098 hardcode_libdir_separator=':'
10099 link_all_deplibs=yes
10100 export_dynamic_flag_spec='${wl}-Bexport'
10101 runpath_var='LD_RUN_PATH'
10102
10103 if test "$GCC" = yes; then
10104 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 else
10107 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 fi
10110 ;;
10111
10112 uts4*)
10113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114 hardcode_libdir_flag_spec='-L$libdir'
10115 hardcode_shlibpath_var=no
10116 ;;
10117
10118 *)
10119 ld_shlibs=no
10120 ;;
10121 esac
10122
10123 if test x$host_vendor = xsni; then
10124 case $host in
10125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10126 export_dynamic_flag_spec='${wl}-Blargedynsym'
10127 ;;
10128 esac
10129 fi
10130 fi
10131
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10133 $as_echo "$ld_shlibs" >&6; }
10134 test "$ld_shlibs" = no && can_build_shared=no
10135
10136 with_gnu_ld=$with_gnu_ld
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152 #
10153 # Do we need to explicitly link libc?
10154 #
10155 case "x$archive_cmds_need_lc" in
10156 x|xyes)
10157 # Assume -lc should be added
10158 archive_cmds_need_lc=yes
10159
10160 if test "$enable_shared" = yes && test "$GCC" = yes; then
10161 case $archive_cmds in
10162 *'~'*)
10163 # FIXME: we may have to deal with multi-command sequences.
10164 ;;
10165 '$CC '*)
10166 # Test whether the compiler implicitly links with -lc since on some
10167 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10168 # to ld, don't add -lc before -lgcc.
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10170 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10171 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 $RM conftest*
10175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10176
10177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10178 (eval $ac_compile) 2>&5
10179 ac_status=$?
10180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10181 test $ac_status = 0; } 2>conftest.err; then
10182 soname=conftest
10183 lib=conftest
10184 libobjs=conftest.$ac_objext
10185 deplibs=
10186 wl=$lt_prog_compiler_wl
10187 pic_flag=$lt_prog_compiler_pic
10188 compiler_flags=-v
10189 linker_flags=-v
10190 verstring=
10191 output_objdir=.
10192 libname=conftest
10193 lt_save_allow_undefined_flag=$allow_undefined_flag
10194 allow_undefined_flag=
10195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10196 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10197 ac_status=$?
10198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199 test $ac_status = 0; }
10200 then
10201 lt_cv_archive_cmds_need_lc=no
10202 else
10203 lt_cv_archive_cmds_need_lc=yes
10204 fi
10205 allow_undefined_flag=$lt_save_allow_undefined_flag
10206 else
10207 cat conftest.err 1>&5
10208 fi
10209 $RM conftest*
10210
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10213 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10214 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10215 ;;
10216 esac
10217 fi
10218 ;;
10219 esac
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10373 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10374
10375 if test "$GCC" = yes; then
10376 case $host_os in
10377 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10378 *) lt_awk_arg="/^libraries:/" ;;
10379 esac
10380 case $host_os in
10381 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10382 *) lt_sed_strip_eq="s,=/,/,g" ;;
10383 esac
10384 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10385 case $lt_search_path_spec in
10386 *\;*)
10387 # if the path contains ";" then we assume it to be the separator
10388 # otherwise default to the standard path separator (i.e. ":") - it is
10389 # assumed that no part of a normal pathname contains ";" but that should
10390 # okay in the real world where ";" in dirpaths is itself problematic.
10391 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10392 ;;
10393 *)
10394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10395 ;;
10396 esac
10397 # Ok, now we have the path, separated by spaces, we can step through it
10398 # and add multilib dir if necessary.
10399 lt_tmp_lt_search_path_spec=
10400 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10401 for lt_sys_path in $lt_search_path_spec; do
10402 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10403 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10404 else
10405 test -d "$lt_sys_path" && \
10406 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10407 fi
10408 done
10409 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10410 BEGIN {RS=" "; FS="/|\n";} {
10411 lt_foo="";
10412 lt_count=0;
10413 for (lt_i = NF; lt_i > 0; lt_i--) {
10414 if ($lt_i != "" && $lt_i != ".") {
10415 if ($lt_i == "..") {
10416 lt_count++;
10417 } else {
10418 if (lt_count == 0) {
10419 lt_foo="/" $lt_i lt_foo;
10420 } else {
10421 lt_count--;
10422 }
10423 }
10424 }
10425 }
10426 if (lt_foo != "") { lt_freq[lt_foo]++; }
10427 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10428 }'`
10429 # AWK program above erroneously prepends '/' to C:/dos/paths
10430 # for these hosts.
10431 case $host_os in
10432 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10433 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10434 esac
10435 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10436 else
10437 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10438 fi
10439 library_names_spec=
10440 libname_spec='lib$name'
10441 soname_spec=
10442 shrext_cmds=".so"
10443 postinstall_cmds=
10444 postuninstall_cmds=
10445 finish_cmds=
10446 finish_eval=
10447 shlibpath_var=
10448 shlibpath_overrides_runpath=unknown
10449 version_type=none
10450 dynamic_linker="$host_os ld.so"
10451 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10452 need_lib_prefix=unknown
10453 hardcode_into_libs=no
10454
10455 # when you set need_version to no, make sure it does not cause -set_version
10456 # flags to be left without arguments
10457 need_version=unknown
10458
10459 case $host_os in
10460 aix3*)
10461 version_type=linux # correct to gnu/linux during the next big refactor
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10463 shlibpath_var=LIBPATH
10464
10465 # AIX 3 has no versioning support, so we append a major version to the name.
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 ;;
10468
10469 aix[4-9]*)
10470 version_type=linux # correct to gnu/linux during the next big refactor
10471 need_lib_prefix=no
10472 need_version=no
10473 hardcode_into_libs=yes
10474 if test "$host_cpu" = ia64; then
10475 # AIX 5 supports IA64
10476 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10477 shlibpath_var=LD_LIBRARY_PATH
10478 else
10479 # With GCC up to 2.95.x, collect2 would create an import file
10480 # for dependence libraries. The import file would start with
10481 # the line `#! .'. This would cause the generated library to
10482 # depend on `.', always an invalid library. This was fixed in
10483 # development snapshots of GCC prior to 3.0.
10484 case $host_os in
10485 aix4 | aix4.[01] | aix4.[01].*)
10486 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10487 echo ' yes '
10488 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10489 :
10490 else
10491 can_build_shared=no
10492 fi
10493 ;;
10494 esac
10495 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10496 # soname into executable. Probably we can add versioning support to
10497 # collect2, so additional links can be useful in future.
10498 if test "$aix_use_runtimelinking" = yes; then
10499 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10500 # instead of lib<name>.a to let people know that these are not
10501 # typical AIX shared libraries.
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 else
10504 # We preserve .a as extension for shared libraries through AIX4.2
10505 # and later when we are not doing run time linking.
10506 library_names_spec='${libname}${release}.a $libname.a'
10507 soname_spec='${libname}${release}${shared_ext}$major'
10508 fi
10509 shlibpath_var=LIBPATH
10510 fi
10511 ;;
10512
10513 amigaos*)
10514 case $host_cpu in
10515 powerpc)
10516 # Since July 2007 AmigaOS4 officially supports .so libraries.
10517 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 ;;
10520 m68k)
10521 library_names_spec='$libname.ixlibrary $libname.a'
10522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10523 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'
10524 ;;
10525 esac
10526 ;;
10527
10528 beos*)
10529 library_names_spec='${libname}${shared_ext}'
10530 dynamic_linker="$host_os ld.so"
10531 shlibpath_var=LIBRARY_PATH
10532 ;;
10533
10534 bsdi[45]*)
10535 version_type=linux # correct to gnu/linux during the next big refactor
10536 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10543 # the default ld.so.conf also contains /usr/contrib/lib and
10544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10545 # libtool to hard-code these into programs
10546 ;;
10547
10548 cygwin* | mingw* | pw32* | cegcc*)
10549 version_type=windows
10550 shrext_cmds=".dll"
10551 need_version=no
10552 need_lib_prefix=no
10553
10554 case $GCC,$cc_basename in
10555 yes,*)
10556 # gcc
10557 library_names_spec='$libname.dll.a'
10558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10559 postinstall_cmds='base_file=`basename \${file}`~
10560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10561 dldir=$destdir/`dirname \$dlpath`~
10562 test -d \$dldir || mkdir -p \$dldir~
10563 $install_prog $dir/$dlname \$dldir/$dlname~
10564 chmod a+x \$dldir/$dlname~
10565 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10566 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10567 fi'
10568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10569 dlpath=$dir/\$dldll~
10570 $RM \$dlpath'
10571 shlibpath_overrides_runpath=yes
10572
10573 case $host_os in
10574 cygwin*)
10575 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10576 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10577
10578 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10579 ;;
10580 mingw* | cegcc*)
10581 # MinGW DLLs use traditional 'lib' prefix
10582 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10583 ;;
10584 pw32*)
10585 # pw32 DLLs use 'pw' prefix rather than 'lib'
10586 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10587 ;;
10588 esac
10589 dynamic_linker='Win32 ld.exe'
10590 ;;
10591
10592 *,cl*)
10593 # Native MSVC
10594 libname_spec='$name'
10595 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10596 library_names_spec='${libname}.dll.lib'
10597
10598 case $build_os in
10599 mingw*)
10600 sys_lib_search_path_spec=
10601 lt_save_ifs=$IFS
10602 IFS=';'
10603 for lt_path in $LIB
10604 do
10605 IFS=$lt_save_ifs
10606 # Let DOS variable expansion print the short 8.3 style file name.
10607 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10608 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10609 done
10610 IFS=$lt_save_ifs
10611 # Convert to MSYS style.
10612 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10613 ;;
10614 cygwin*)
10615 # Convert to unix form, then to dos form, then back to unix form
10616 # but this time dos style (no spaces!) so that the unix form looks
10617 # like /cygdrive/c/PROGRA~1:/cygdr...
10618 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10619 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10620 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10621 ;;
10622 *)
10623 sys_lib_search_path_spec="$LIB"
10624 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10625 # It is most probably a Windows format PATH.
10626 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10627 else
10628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10629 fi
10630 # FIXME: find the short name or the path components, as spaces are
10631 # common. (e.g. "Program Files" -> "PROGRA~1")
10632 ;;
10633 esac
10634
10635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10636 postinstall_cmds='base_file=`basename \${file}`~
10637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10638 dldir=$destdir/`dirname \$dlpath`~
10639 test -d \$dldir || mkdir -p \$dldir~
10640 $install_prog $dir/$dlname \$dldir/$dlname'
10641 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10642 dlpath=$dir/\$dldll~
10643 $RM \$dlpath'
10644 shlibpath_overrides_runpath=yes
10645 dynamic_linker='Win32 link.exe'
10646 ;;
10647
10648 *)
10649 # Assume MSVC wrapper
10650 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10651 dynamic_linker='Win32 ld.exe'
10652 ;;
10653 esac
10654 # FIXME: first we should search . and the directory the executable is in
10655 shlibpath_var=PATH
10656 ;;
10657
10658 darwin* | rhapsody*)
10659 dynamic_linker="$host_os dyld"
10660 version_type=darwin
10661 need_lib_prefix=no
10662 need_version=no
10663 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10664 soname_spec='${libname}${release}${major}$shared_ext'
10665 shlibpath_overrides_runpath=yes
10666 shlibpath_var=DYLD_LIBRARY_PATH
10667 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10668
10669 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10671 ;;
10672
10673 dgux*)
10674 version_type=linux # correct to gnu/linux during the next big refactor
10675 need_lib_prefix=no
10676 need_version=no
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 ;;
10681
10682 freebsd* | dragonfly*)
10683 # DragonFly does not have aout. When/if they implement a new
10684 # versioning mechanism, adjust this.
10685 if test -x /usr/bin/objformat; then
10686 objformat=`/usr/bin/objformat`
10687 else
10688 case $host_os in
10689 freebsd[23].*) objformat=aout ;;
10690 *) objformat=elf ;;
10691 esac
10692 fi
10693 version_type=freebsd-$objformat
10694 case $version_type in
10695 freebsd-elf*)
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10697 need_version=no
10698 need_lib_prefix=no
10699 ;;
10700 freebsd-*)
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10702 need_version=yes
10703 ;;
10704 esac
10705 shlibpath_var=LD_LIBRARY_PATH
10706 case $host_os in
10707 freebsd2.*)
10708 shlibpath_overrides_runpath=yes
10709 ;;
10710 freebsd3.[01]* | freebsdelf3.[01]*)
10711 shlibpath_overrides_runpath=yes
10712 hardcode_into_libs=yes
10713 ;;
10714 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10715 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10716 shlibpath_overrides_runpath=no
10717 hardcode_into_libs=yes
10718 ;;
10719 *) # from 4.6 on, and DragonFly
10720 shlibpath_overrides_runpath=yes
10721 hardcode_into_libs=yes
10722 ;;
10723 esac
10724 ;;
10725
10726 haiku*)
10727 version_type=linux # correct to gnu/linux during the next big refactor
10728 need_lib_prefix=no
10729 need_version=no
10730 dynamic_linker="$host_os runtime_loader"
10731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10732 soname_spec='${libname}${release}${shared_ext}$major'
10733 shlibpath_var=LIBRARY_PATH
10734 shlibpath_overrides_runpath=yes
10735 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10736 hardcode_into_libs=yes
10737 ;;
10738
10739 hpux9* | hpux10* | hpux11*)
10740 # Give a soname corresponding to the major version so that dld.sl refuses to
10741 # link against other versions.
10742 version_type=sunos
10743 need_lib_prefix=no
10744 need_version=no
10745 case $host_cpu in
10746 ia64*)
10747 shrext_cmds='.so'
10748 hardcode_into_libs=yes
10749 dynamic_linker="$host_os dld.so"
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753 soname_spec='${libname}${release}${shared_ext}$major'
10754 if test "X$HPUX_IA64_MODE" = X32; then
10755 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10756 else
10757 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10758 fi
10759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10760 ;;
10761 hppa*64*)
10762 shrext_cmds='.sl'
10763 hardcode_into_libs=yes
10764 dynamic_linker="$host_os dld.sl"
10765 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768 soname_spec='${libname}${release}${shared_ext}$major'
10769 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10771 ;;
10772 *)
10773 shrext_cmds='.sl'
10774 dynamic_linker="$host_os dld.sl"
10775 shlibpath_var=SHLIB_PATH
10776 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778 soname_spec='${libname}${release}${shared_ext}$major'
10779 ;;
10780 esac
10781 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10782 postinstall_cmds='chmod 555 $lib'
10783 # or fails outright, so override atomically:
10784 install_override_mode=555
10785 ;;
10786
10787 interix[3-9]*)
10788 version_type=linux # correct to gnu/linux during the next big refactor
10789 need_lib_prefix=no
10790 need_version=no
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 shlibpath_overrides_runpath=no
10796 hardcode_into_libs=yes
10797 ;;
10798
10799 irix5* | irix6* | nonstopux*)
10800 case $host_os in
10801 nonstopux*) version_type=nonstopux ;;
10802 *)
10803 if test "$lt_cv_prog_gnu_ld" = yes; then
10804 version_type=linux # correct to gnu/linux during the next big refactor
10805 else
10806 version_type=irix
10807 fi ;;
10808 esac
10809 need_lib_prefix=no
10810 need_version=no
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10813 case $host_os in
10814 irix5* | nonstopux*)
10815 libsuff= shlibsuff=
10816 ;;
10817 *)
10818 case $LD in # libtool.m4 will add one of these switches to LD
10819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10820 libsuff= shlibsuff= libmagic=32-bit;;
10821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10822 libsuff=32 shlibsuff=N32 libmagic=N32;;
10823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10825 *) libsuff= shlibsuff= libmagic=never-match;;
10826 esac
10827 ;;
10828 esac
10829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10830 shlibpath_overrides_runpath=no
10831 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10832 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10833 hardcode_into_libs=yes
10834 ;;
10835
10836 # No shared lib support for Linux oldld, aout, or coff.
10837 linux*oldld* | linux*aout* | linux*coff*)
10838 dynamic_linker=no
10839 ;;
10840
10841 # This must be glibc/ELF.
10842 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10843 version_type=linux # correct to gnu/linux during the next big refactor
10844 need_lib_prefix=no
10845 need_version=no
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10849 shlibpath_var=LD_LIBRARY_PATH
10850 shlibpath_overrides_runpath=no
10851
10852 # Some binutils ld are patched to set DT_RUNPATH
10853 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 lt_cv_shlibpath_overrides_runpath=no
10857 save_LDFLAGS=$LDFLAGS
10858 save_libdir=$libdir
10859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10863
10864 int
10865 main ()
10866 {
10867
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10874 lt_cv_shlibpath_overrides_runpath=yes
10875 fi
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LDFLAGS=$save_LDFLAGS
10880 libdir=$save_libdir
10881
10882 fi
10883
10884 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10885
10886 # This implies no fast_install, which is unacceptable.
10887 # Some rework will be needed to allow for fast_install
10888 # before this can be enabled.
10889 hardcode_into_libs=yes
10890
10891 # Append ld.so.conf contents to the search path
10892 if test -f /etc/ld.so.conf; then
10893 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10894 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10895 fi
10896
10897 # We used to test for /lib/ld.so.1 and disable shared libraries on
10898 # powerpc, because MkLinux only supported shared libraries with the
10899 # GNU dynamic linker. Since this was broken with cross compilers,
10900 # most powerpc-linux boxes support dynamic linking these days and
10901 # people can always --disable-shared, the test was removed, and we
10902 # assume the GNU/Linux dynamic linker is in use.
10903 dynamic_linker='GNU/Linux ld.so'
10904 ;;
10905
10906 netbsdelf*-gnu)
10907 version_type=linux
10908 need_lib_prefix=no
10909 need_version=no
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10911 soname_spec='${libname}${release}${shared_ext}$major'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 shlibpath_overrides_runpath=no
10914 hardcode_into_libs=yes
10915 dynamic_linker='NetBSD ld.elf_so'
10916 ;;
10917
10918 netbsd*)
10919 version_type=sunos
10920 need_lib_prefix=no
10921 need_version=no
10922 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10925 dynamic_linker='NetBSD (a.out) ld.so'
10926 else
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10929 dynamic_linker='NetBSD ld.elf_so'
10930 fi
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=yes
10933 hardcode_into_libs=yes
10934 ;;
10935
10936 newsos6)
10937 version_type=linux # correct to gnu/linux during the next big refactor
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes
10941 ;;
10942
10943 *nto* | *qnx*)
10944 version_type=qnx
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=no
10951 hardcode_into_libs=yes
10952 dynamic_linker='ldqnx.so'
10953 ;;
10954
10955 openbsd*)
10956 version_type=sunos
10957 sys_lib_dlsearch_path_spec="/usr/lib"
10958 need_lib_prefix=no
10959 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10960 case $host_os in
10961 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10962 *) need_version=no ;;
10963 esac
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10966 shlibpath_var=LD_LIBRARY_PATH
10967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10968 case $host_os in
10969 openbsd2.[89] | openbsd2.[89].*)
10970 shlibpath_overrides_runpath=no
10971 ;;
10972 *)
10973 shlibpath_overrides_runpath=yes
10974 ;;
10975 esac
10976 else
10977 shlibpath_overrides_runpath=yes
10978 fi
10979 ;;
10980
10981 os2*)
10982 libname_spec='$name'
10983 shrext_cmds=".dll"
10984 need_lib_prefix=no
10985 library_names_spec='$libname${shared_ext} $libname.a'
10986 dynamic_linker='OS/2 ld.exe'
10987 shlibpath_var=LIBPATH
10988 ;;
10989
10990 osf3* | osf4* | osf5*)
10991 version_type=osf
10992 need_lib_prefix=no
10993 need_version=no
10994 soname_spec='${libname}${release}${shared_ext}$major'
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10998 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10999 ;;
11000
11001 rdos*)
11002 dynamic_linker=no
11003 ;;
11004
11005 solaris*)
11006 version_type=linux # correct to gnu/linux during the next big refactor
11007 need_lib_prefix=no
11008 need_version=no
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010 soname_spec='${libname}${release}${shared_ext}$major'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 shlibpath_overrides_runpath=yes
11013 hardcode_into_libs=yes
11014 # ldd complains unless libraries are executable
11015 postinstall_cmds='chmod +x $lib'
11016 ;;
11017
11018 sunos4*)
11019 version_type=sunos
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes
11024 if test "$with_gnu_ld" = yes; then
11025 need_lib_prefix=no
11026 fi
11027 need_version=yes
11028 ;;
11029
11030 sysv4 | sysv4.3*)
11031 version_type=linux # correct to gnu/linux during the next big refactor
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 case $host_vendor in
11036 sni)
11037 shlibpath_overrides_runpath=no
11038 need_lib_prefix=no
11039 runpath_var=LD_RUN_PATH
11040 ;;
11041 siemens)
11042 need_lib_prefix=no
11043 ;;
11044 motorola)
11045 need_lib_prefix=no
11046 need_version=no
11047 shlibpath_overrides_runpath=no
11048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11049 ;;
11050 esac
11051 ;;
11052
11053 sysv4*MP*)
11054 if test -d /usr/nec ;then
11055 version_type=linux # correct to gnu/linux during the next big refactor
11056 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11057 soname_spec='$libname${shared_ext}.$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 fi
11060 ;;
11061
11062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11063 version_type=freebsd-elf
11064 need_lib_prefix=no
11065 need_version=no
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 shlibpath_overrides_runpath=yes
11070 hardcode_into_libs=yes
11071 if test "$with_gnu_ld" = yes; then
11072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11073 else
11074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11075 case $host_os in
11076 sco3.2v5*)
11077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11078 ;;
11079 esac
11080 fi
11081 sys_lib_dlsearch_path_spec='/usr/lib'
11082 ;;
11083
11084 tpf*)
11085 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11086 version_type=linux # correct to gnu/linux during the next big refactor
11087 need_lib_prefix=no
11088 need_version=no
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=no
11092 hardcode_into_libs=yes
11093 ;;
11094
11095 uts4*)
11096 version_type=linux # correct to gnu/linux during the next big refactor
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 ;;
11101
11102 *)
11103 dynamic_linker=no
11104 ;;
11105 esac
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11107 $as_echo "$dynamic_linker" >&6; }
11108 test "$dynamic_linker" = no && can_build_shared=no
11109
11110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11111 if test "$GCC" = yes; then
11112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11113 fi
11114
11115 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11116 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11117 fi
11118 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11119 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11120 fi
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11214 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11215 hardcode_action=
11216 if test -n "$hardcode_libdir_flag_spec" ||
11217 test -n "$runpath_var" ||
11218 test "X$hardcode_automatic" = "Xyes" ; then
11219
11220 # We can hardcode non-existent directories.
11221 if test "$hardcode_direct" != no &&
11222 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11223 # have to relink, otherwise we might link with an installed library
11224 # when we should be linking with a yet-to-be-installed one
11225 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11226 test "$hardcode_minus_L" != no; then
11227 # Linking always hardcodes the temporary library directory.
11228 hardcode_action=relink
11229 else
11230 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11231 hardcode_action=immediate
11232 fi
11233 else
11234 # We cannot hardcode anything, or else we can only hardcode existing
11235 # directories.
11236 hardcode_action=unsupported
11237 fi
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11239 $as_echo "$hardcode_action" >&6; }
11240
11241 if test "$hardcode_action" = relink ||
11242 test "$inherit_rpath" = yes; then
11243 # Fast installation is not supported
11244 enable_fast_install=no
11245 elif test "$shlibpath_overrides_runpath" = yes ||
11246 test "$enable_shared" = no; then
11247 # Fast installation is not necessary
11248 enable_fast_install=needless
11249 fi
11250
11251
11252
11253
11254
11255
11256 if test "x$enable_dlopen" != xyes; then
11257 enable_dlopen=unknown
11258 enable_dlopen_self=unknown
11259 enable_dlopen_self_static=unknown
11260 else
11261 lt_cv_dlopen=no
11262 lt_cv_dlopen_libs=
11263
11264 case $host_os in
11265 beos*)
11266 lt_cv_dlopen="load_add_on"
11267 lt_cv_dlopen_libs=
11268 lt_cv_dlopen_self=yes
11269 ;;
11270
11271 mingw* | pw32* | cegcc*)
11272 lt_cv_dlopen="LoadLibrary"
11273 lt_cv_dlopen_libs=
11274 ;;
11275
11276 cygwin*)
11277 lt_cv_dlopen="dlopen"
11278 lt_cv_dlopen_libs=
11279 ;;
11280
11281 darwin*)
11282 # if libdl is installed we need to link against it
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11284 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11285 if ${ac_cv_lib_dl_dlopen+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 ac_check_lib_save_LIBS=$LIBS
11289 LIBS="-ldl $LIBS"
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11292
11293 /* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11296 #ifdef __cplusplus
11297 extern "C"
11298 #endif
11299 char dlopen ();
11300 int
11301 main ()
11302 {
11303 return dlopen ();
11304 ;
11305 return 0;
11306 }
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"; then :
11309 ac_cv_lib_dl_dlopen=yes
11310 else
11311 ac_cv_lib_dl_dlopen=no
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext \
11314 conftest$ac_exeext conftest.$ac_ext
11315 LIBS=$ac_check_lib_save_LIBS
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11318 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11319 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11321 else
11322
11323 lt_cv_dlopen="dyld"
11324 lt_cv_dlopen_libs=
11325 lt_cv_dlopen_self=yes
11326
11327 fi
11328
11329 ;;
11330
11331 *)
11332 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11333 if test "x$ac_cv_func_shl_load" = xyes; then :
11334 lt_cv_dlopen="shl_load"
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11337 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11338 if ${ac_cv_lib_dld_shl_load+:} false; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 ac_check_lib_save_LIBS=$LIBS
11342 LIBS="-ldld $LIBS"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char shl_load ();
11353 int
11354 main ()
11355 {
11356 return shl_load ();
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 if ac_fn_c_try_link "$LINENO"; then :
11362 ac_cv_lib_dld_shl_load=yes
11363 else
11364 ac_cv_lib_dld_shl_load=no
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11371 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11372 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11373 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11374 else
11375 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11376 if test "x$ac_cv_func_dlopen" = xyes; then :
11377 lt_cv_dlopen="dlopen"
11378 else
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11380 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11381 if ${ac_cv_lib_dl_dlopen+:} false; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 ac_check_lib_save_LIBS=$LIBS
11385 LIBS="-ldl $LIBS"
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11388
11389 /* Override any GCC internal prototype to avoid an error.
11390 Use char because int might match the return type of a GCC
11391 builtin and then its argument prototype would still apply. */
11392 #ifdef __cplusplus
11393 extern "C"
11394 #endif
11395 char dlopen ();
11396 int
11397 main ()
11398 {
11399 return dlopen ();
11400 ;
11401 return 0;
11402 }
11403 _ACEOF
11404 if ac_fn_c_try_link "$LINENO"; then :
11405 ac_cv_lib_dl_dlopen=yes
11406 else
11407 ac_cv_lib_dl_dlopen=no
11408 fi
11409 rm -f core conftest.err conftest.$ac_objext \
11410 conftest$ac_exeext conftest.$ac_ext
11411 LIBS=$ac_check_lib_save_LIBS
11412 fi
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11414 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11415 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11417 else
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11419 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11420 if ${ac_cv_lib_svld_dlopen+:} false; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-lsvld $LIBS"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char dlopen ();
11435 int
11436 main ()
11437 {
11438 return dlopen ();
11439 ;
11440 return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444 ac_cv_lib_svld_dlopen=yes
11445 else
11446 ac_cv_lib_svld_dlopen=no
11447 fi
11448 rm -f core conftest.err conftest.$ac_objext \
11449 conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11451 fi
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11453 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11454 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11455 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11458 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11459 if ${ac_cv_lib_dld_dld_link+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 ac_check_lib_save_LIBS=$LIBS
11463 LIBS="-ldld $LIBS"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11470 #ifdef __cplusplus
11471 extern "C"
11472 #endif
11473 char dld_link ();
11474 int
11475 main ()
11476 {
11477 return dld_link ();
11478 ;
11479 return 0;
11480 }
11481 _ACEOF
11482 if ac_fn_c_try_link "$LINENO"; then :
11483 ac_cv_lib_dld_dld_link=yes
11484 else
11485 ac_cv_lib_dld_dld_link=no
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LIBS=$ac_check_lib_save_LIBS
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11492 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11493 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11494 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11495 fi
11496
11497
11498 fi
11499
11500
11501 fi
11502
11503
11504 fi
11505
11506
11507 fi
11508
11509
11510 fi
11511
11512 ;;
11513 esac
11514
11515 if test "x$lt_cv_dlopen" != xno; then
11516 enable_dlopen=yes
11517 else
11518 enable_dlopen=no
11519 fi
11520
11521 case $lt_cv_dlopen in
11522 dlopen)
11523 save_CPPFLAGS="$CPPFLAGS"
11524 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11525
11526 save_LDFLAGS="$LDFLAGS"
11527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11528
11529 save_LIBS="$LIBS"
11530 LIBS="$lt_cv_dlopen_libs $LIBS"
11531
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11533 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11534 if ${lt_cv_dlopen_self+:} false; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 if test "$cross_compiling" = yes; then :
11538 lt_cv_dlopen_self=cross
11539 else
11540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11541 lt_status=$lt_dlunknown
11542 cat > conftest.$ac_ext <<_LT_EOF
11543 #line $LINENO "configure"
11544 #include "confdefs.h"
11545
11546 #if HAVE_DLFCN_H
11547 #include <dlfcn.h>
11548 #endif
11549
11550 #include <stdio.h>
11551
11552 #ifdef RTLD_GLOBAL
11553 # define LT_DLGLOBAL RTLD_GLOBAL
11554 #else
11555 # ifdef DL_GLOBAL
11556 # define LT_DLGLOBAL DL_GLOBAL
11557 # else
11558 # define LT_DLGLOBAL 0
11559 # endif
11560 #endif
11561
11562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11563 find out it does not work in some platform. */
11564 #ifndef LT_DLLAZY_OR_NOW
11565 # ifdef RTLD_LAZY
11566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11567 # else
11568 # ifdef DL_LAZY
11569 # define LT_DLLAZY_OR_NOW DL_LAZY
11570 # else
11571 # ifdef RTLD_NOW
11572 # define LT_DLLAZY_OR_NOW RTLD_NOW
11573 # else
11574 # ifdef DL_NOW
11575 # define LT_DLLAZY_OR_NOW DL_NOW
11576 # else
11577 # define LT_DLLAZY_OR_NOW 0
11578 # endif
11579 # endif
11580 # endif
11581 # endif
11582 #endif
11583
11584 /* When -fvisbility=hidden is used, assume the code has been annotated
11585 correspondingly for the symbols needed. */
11586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11587 int fnord () __attribute__((visibility("default")));
11588 #endif
11589
11590 int fnord () { return 42; }
11591 int main ()
11592 {
11593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11594 int status = $lt_dlunknown;
11595
11596 if (self)
11597 {
11598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11599 else
11600 {
11601 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11602 else puts (dlerror ());
11603 }
11604 /* dlclose (self); */
11605 }
11606 else
11607 puts (dlerror ());
11608
11609 return status;
11610 }
11611 _LT_EOF
11612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11613 (eval $ac_link) 2>&5
11614 ac_status=$?
11615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11617 (./conftest; exit; ) >&5 2>/dev/null
11618 lt_status=$?
11619 case x$lt_status in
11620 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11621 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11622 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11623 esac
11624 else :
11625 # compilation failed
11626 lt_cv_dlopen_self=no
11627 fi
11628 fi
11629 rm -fr conftest*
11630
11631
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11634 $as_echo "$lt_cv_dlopen_self" >&6; }
11635
11636 if test "x$lt_cv_dlopen_self" = xyes; then
11637 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11639 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11640 if ${lt_cv_dlopen_self_static+:} false; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 if test "$cross_compiling" = yes; then :
11644 lt_cv_dlopen_self_static=cross
11645 else
11646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11647 lt_status=$lt_dlunknown
11648 cat > conftest.$ac_ext <<_LT_EOF
11649 #line $LINENO "configure"
11650 #include "confdefs.h"
11651
11652 #if HAVE_DLFCN_H
11653 #include <dlfcn.h>
11654 #endif
11655
11656 #include <stdio.h>
11657
11658 #ifdef RTLD_GLOBAL
11659 # define LT_DLGLOBAL RTLD_GLOBAL
11660 #else
11661 # ifdef DL_GLOBAL
11662 # define LT_DLGLOBAL DL_GLOBAL
11663 # else
11664 # define LT_DLGLOBAL 0
11665 # endif
11666 #endif
11667
11668 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11669 find out it does not work in some platform. */
11670 #ifndef LT_DLLAZY_OR_NOW
11671 # ifdef RTLD_LAZY
11672 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11673 # else
11674 # ifdef DL_LAZY
11675 # define LT_DLLAZY_OR_NOW DL_LAZY
11676 # else
11677 # ifdef RTLD_NOW
11678 # define LT_DLLAZY_OR_NOW RTLD_NOW
11679 # else
11680 # ifdef DL_NOW
11681 # define LT_DLLAZY_OR_NOW DL_NOW
11682 # else
11683 # define LT_DLLAZY_OR_NOW 0
11684 # endif
11685 # endif
11686 # endif
11687 # endif
11688 #endif
11689
11690 /* When -fvisbility=hidden is used, assume the code has been annotated
11691 correspondingly for the symbols needed. */
11692 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11693 int fnord () __attribute__((visibility("default")));
11694 #endif
11695
11696 int fnord () { return 42; }
11697 int main ()
11698 {
11699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11700 int status = $lt_dlunknown;
11701
11702 if (self)
11703 {
11704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11705 else
11706 {
11707 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11708 else puts (dlerror ());
11709 }
11710 /* dlclose (self); */
11711 }
11712 else
11713 puts (dlerror ());
11714
11715 return status;
11716 }
11717 _LT_EOF
11718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11719 (eval $ac_link) 2>&5
11720 ac_status=$?
11721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11723 (./conftest; exit; ) >&5 2>/dev/null
11724 lt_status=$?
11725 case x$lt_status in
11726 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11727 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11728 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11729 esac
11730 else :
11731 # compilation failed
11732 lt_cv_dlopen_self_static=no
11733 fi
11734 fi
11735 rm -fr conftest*
11736
11737
11738 fi
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11740 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11741 fi
11742
11743 CPPFLAGS="$save_CPPFLAGS"
11744 LDFLAGS="$save_LDFLAGS"
11745 LIBS="$save_LIBS"
11746 ;;
11747 esac
11748
11749 case $lt_cv_dlopen_self in
11750 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11751 *) enable_dlopen_self=unknown ;;
11752 esac
11753
11754 case $lt_cv_dlopen_self_static in
11755 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11756 *) enable_dlopen_self_static=unknown ;;
11757 esac
11758 fi
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776 striplib=
11777 old_striplib=
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11779 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11780 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11781 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11782 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11784 $as_echo "yes" >&6; }
11785 else
11786 # FIXME - insert some real tests, host_os isn't really good enough
11787 case $host_os in
11788 darwin*)
11789 if test -n "$STRIP" ; then
11790 striplib="$STRIP -x"
11791 old_striplib="$STRIP -S"
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11793 $as_echo "yes" >&6; }
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797 fi
11798 ;;
11799 *)
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11802 ;;
11803 esac
11804 fi
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817 # Report which library types will actually be built
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11819 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11821 $as_echo "$can_build_shared" >&6; }
11822
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11824 $as_echo_n "checking whether to build shared libraries... " >&6; }
11825 test "$can_build_shared" = "no" && enable_shared=no
11826
11827 # On AIX, shared libraries and static libraries use the same namespace, and
11828 # are all built from PIC.
11829 case $host_os in
11830 aix3*)
11831 test "$enable_shared" = yes && enable_static=no
11832 if test -n "$RANLIB"; then
11833 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11834 postinstall_cmds='$RANLIB $lib'
11835 fi
11836 ;;
11837
11838 aix[4-9]*)
11839 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11840 test "$enable_shared" = yes && enable_static=no
11841 fi
11842 ;;
11843 esac
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11845 $as_echo "$enable_shared" >&6; }
11846
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11848 $as_echo_n "checking whether to build static libraries... " >&6; }
11849 # Make sure either enable_shared or enable_static is yes.
11850 test "$enable_shared" = yes || enable_static=yes
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11852 $as_echo "$enable_static" >&6; }
11853
11854
11855
11856
11857 fi
11858 ac_ext=c
11859 ac_cpp='$CPP $CPPFLAGS'
11860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11863
11864 CC="$lt_save_CC"
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880 ac_config_commands="$ac_config_commands libtool"
11881
11882
11883
11884
11885 # Only expand once:
11886
11887
11888
11889
11890
11891 # Check for C++ compiler and use it to compile the tests.
11892 #
11893 ac_ext=cpp
11894 ac_cpp='$CXXCPP $CPPFLAGS'
11895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11898 if test -z "$CXX"; then
11899 if test -n "$CCC"; then
11900 CXX=$CCC
11901 else
11902 if test -n "$ac_tool_prefix"; then
11903 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11904 do
11905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 $as_echo_n "checking for $ac_word... " >&6; }
11909 if ${ac_cv_prog_CXX+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 if test -n "$CXX"; then
11913 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11914 else
11915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916 for as_dir in $PATH
11917 do
11918 IFS=$as_save_IFS
11919 test -z "$as_dir" && as_dir=.
11920 for ac_exec_ext in '' $ac_executable_extensions; do
11921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11922 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 break 2
11925 fi
11926 done
11927 done
11928 IFS=$as_save_IFS
11929
11930 fi
11931 fi
11932 CXX=$ac_cv_prog_CXX
11933 if test -n "$CXX"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11935 $as_echo "$CXX" >&6; }
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11939 fi
11940
11941
11942 test -n "$CXX" && break
11943 done
11944 fi
11945 if test -z "$CXX"; then
11946 ac_ct_CXX=$CXX
11947 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11948 do
11949 # Extract the first word of "$ac_prog", so it can be a program name with args.
11950 set dummy $ac_prog; ac_word=$2
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952 $as_echo_n "checking for $ac_word... " >&6; }
11953 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 if test -n "$ac_ct_CXX"; then
11957 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11958 else
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11961 do
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11966 ac_cv_prog_ac_ct_CXX="$ac_prog"
11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11968 break 2
11969 fi
11970 done
11971 done
11972 IFS=$as_save_IFS
11973
11974 fi
11975 fi
11976 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11977 if test -n "$ac_ct_CXX"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11979 $as_echo "$ac_ct_CXX" >&6; }
11980 else
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11983 fi
11984
11985
11986 test -n "$ac_ct_CXX" && break
11987 done
11988
11989 if test "x$ac_ct_CXX" = x; then
11990 CXX="g++"
11991 else
11992 case $cross_compiling:$ac_tool_warned in
11993 yes:)
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11996 ac_tool_warned=yes ;;
11997 esac
11998 CXX=$ac_ct_CXX
11999 fi
12000 fi
12001
12002 fi
12003 fi
12004 # Provide some information about the compiler.
12005 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12006 set X $ac_compile
12007 ac_compiler=$2
12008 for ac_option in --version -v -V -qversion; do
12009 { { ac_try="$ac_compiler $ac_option >&5"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12015 $as_echo "$ac_try_echo"; } >&5
12016 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12017 ac_status=$?
12018 if test -s conftest.err; then
12019 sed '10a\
12020 ... rest of stderr output deleted ...
12021 10q' conftest.err >conftest.er1
12022 cat conftest.er1 >&5
12023 fi
12024 rm -f conftest.er1 conftest.err
12025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12026 test $ac_status = 0; }
12027 done
12028
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12030 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12031 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036
12037 int
12038 main ()
12039 {
12040 #ifndef __GNUC__
12041 choke me
12042 #endif
12043
12044 ;
12045 return 0;
12046 }
12047 _ACEOF
12048 if ac_fn_cxx_try_compile "$LINENO"; then :
12049 ac_compiler_gnu=yes
12050 else
12051 ac_compiler_gnu=no
12052 fi
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12055
12056 fi
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12058 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12059 if test $ac_compiler_gnu = yes; then
12060 GXX=yes
12061 else
12062 GXX=
12063 fi
12064 ac_test_CXXFLAGS=${CXXFLAGS+set}
12065 ac_save_CXXFLAGS=$CXXFLAGS
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12067 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12068 if ${ac_cv_prog_cxx_g+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12072 ac_cxx_werror_flag=yes
12073 ac_cv_prog_cxx_g=no
12074 CXXFLAGS="-g"
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12077
12078 int
12079 main ()
12080 {
12081
12082 ;
12083 return 0;
12084 }
12085 _ACEOF
12086 if ac_fn_cxx_try_compile "$LINENO"; then :
12087 ac_cv_prog_cxx_g=yes
12088 else
12089 CXXFLAGS=""
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12092
12093 int
12094 main ()
12095 {
12096
12097 ;
12098 return 0;
12099 }
12100 _ACEOF
12101 if ac_fn_cxx_try_compile "$LINENO"; then :
12102
12103 else
12104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12105 CXXFLAGS="-g"
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12108
12109 int
12110 main ()
12111 {
12112
12113 ;
12114 return 0;
12115 }
12116 _ACEOF
12117 if ac_fn_cxx_try_compile "$LINENO"; then :
12118 ac_cv_prog_cxx_g=yes
12119 fi
12120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121 fi
12122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123 fi
12124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12125 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12126 fi
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12128 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12129 if test "$ac_test_CXXFLAGS" = set; then
12130 CXXFLAGS=$ac_save_CXXFLAGS
12131 elif test $ac_cv_prog_cxx_g = yes; then
12132 if test "$GXX" = yes; then
12133 CXXFLAGS="-g -O2"
12134 else
12135 CXXFLAGS="-g"
12136 fi
12137 else
12138 if test "$GXX" = yes; then
12139 CXXFLAGS="-O2"
12140 else
12141 CXXFLAGS=
12142 fi
12143 fi
12144 ac_ext=c
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149
12150 depcc="$CXX" am_compiler_list=
12151
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12153 $as_echo_n "checking dependency style of $depcc... " >&6; }
12154 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12158 # We make a subdir and do the tests there. Otherwise we can end up
12159 # making bogus files that we don't know about and never remove. For
12160 # instance it was reported that on HP-UX the gcc test will end up
12161 # making a dummy file named 'D' -- because '-MD' means "put the output
12162 # in D".
12163 rm -rf conftest.dir
12164 mkdir conftest.dir
12165 # Copy depcomp to subdir because otherwise we won't find it if we're
12166 # using a relative directory.
12167 cp "$am_depcomp" conftest.dir
12168 cd conftest.dir
12169 # We will build objects and dependencies in a subdirectory because
12170 # it helps to detect inapplicable dependency modes. For instance
12171 # both Tru64's cc and ICC support -MD to output dependencies as a
12172 # side effect of compilation, but ICC will put the dependencies in
12173 # the current directory while Tru64 will put them in the object
12174 # directory.
12175 mkdir sub
12176
12177 am_cv_CXX_dependencies_compiler_type=none
12178 if test "$am_compiler_list" = ""; then
12179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12180 fi
12181 am__universal=false
12182 case " $depcc " in #(
12183 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12184 esac
12185
12186 for depmode in $am_compiler_list; do
12187 # Setup a source with many dependencies, because some compilers
12188 # like to wrap large dependency lists on column 80 (with \), and
12189 # we should not choose a depcomp mode which is confused by this.
12190 #
12191 # We need to recreate these files for each test, as the compiler may
12192 # overwrite some of them when testing with obscure command lines.
12193 # This happens at least with the AIX C compiler.
12194 : > sub/conftest.c
12195 for i in 1 2 3 4 5 6; do
12196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12197 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12198 # Solaris 10 /bin/sh.
12199 echo '/* dummy */' > sub/conftst$i.h
12200 done
12201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12202
12203 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12204 # mode. It turns out that the SunPro C++ compiler does not properly
12205 # handle '-M -o', and we need to detect this. Also, some Intel
12206 # versions had trouble with output in subdirs.
12207 am__obj=sub/conftest.${OBJEXT-o}
12208 am__minus_obj="-o $am__obj"
12209 case $depmode in
12210 gcc)
12211 # This depmode causes a compiler race in universal mode.
12212 test "$am__universal" = false || continue
12213 ;;
12214 nosideeffect)
12215 # After this tag, mechanisms are not by side-effect, so they'll
12216 # only be used when explicitly requested.
12217 if test "x$enable_dependency_tracking" = xyes; then
12218 continue
12219 else
12220 break
12221 fi
12222 ;;
12223 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12224 # This compiler won't grok '-c -o', but also, the minuso test has
12225 # not run yet. These depmodes are late enough in the game, and
12226 # so weak that their functioning should not be impacted.
12227 am__obj=conftest.${OBJEXT-o}
12228 am__minus_obj=
12229 ;;
12230 none) break ;;
12231 esac
12232 if depmode=$depmode \
12233 source=sub/conftest.c object=$am__obj \
12234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12235 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12236 >/dev/null 2>conftest.err &&
12237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12239 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12241 # icc doesn't choke on unknown options, it will just issue warnings
12242 # or remarks (even with -Werror). So we grep stderr for any message
12243 # that says an option was ignored or not supported.
12244 # When given -MP, icc 7.0 and 7.1 complain thusly:
12245 # icc: Command line warning: ignoring option '-M'; no argument required
12246 # The diagnosis changed in icc 8.0:
12247 # icc: Command line remark: option '-MP' not supported
12248 if (grep 'ignoring option' conftest.err ||
12249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12250 am_cv_CXX_dependencies_compiler_type=$depmode
12251 break
12252 fi
12253 fi
12254 done
12255
12256 cd ..
12257 rm -rf conftest.dir
12258 else
12259 am_cv_CXX_dependencies_compiler_type=none
12260 fi
12261
12262 fi
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12264 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12265 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12266
12267 if
12268 test "x$enable_dependency_tracking" != xno \
12269 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12270 am__fastdepCXX_TRUE=
12271 am__fastdepCXX_FALSE='#'
12272 else
12273 am__fastdepCXX_TRUE='#'
12274 am__fastdepCXX_FALSE=
12275 fi
12276
12277
12278
12279
12280 func_stripname_cnf ()
12281 {
12282 case ${2} in
12283 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12284 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12285 esac
12286 } # func_stripname_cnf
12287
12288 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12289 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12290 (test "X$CXX" != "Xg++"))) ; then
12291 ac_ext=cpp
12292 ac_cpp='$CXXCPP $CPPFLAGS'
12293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12297 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12298 if test -z "$CXXCPP"; then
12299 if ${ac_cv_prog_CXXCPP+:} false; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 # Double quotes because CXXCPP needs to be expanded
12303 for CXXCPP in "$CXX -E" "/lib/cpp"
12304 do
12305 ac_preproc_ok=false
12306 for ac_cxx_preproc_warn_flag in '' yes
12307 do
12308 # Use a header file that comes with gcc, so configuring glibc
12309 # with a fresh cross-compiler works.
12310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12311 # <limits.h> exists even on freestanding compilers.
12312 # On the NeXT, cc -E runs the code through the compiler's parser,
12313 # not just through cpp. "Syntax error" is here to catch this case.
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12316 #ifdef __STDC__
12317 # include <limits.h>
12318 #else
12319 # include <assert.h>
12320 #endif
12321 Syntax error
12322 _ACEOF
12323 if ac_fn_cxx_try_cpp "$LINENO"; then :
12324
12325 else
12326 # Broken: fails on valid input.
12327 continue
12328 fi
12329 rm -f conftest.err conftest.i conftest.$ac_ext
12330
12331 # OK, works on sane cases. Now check whether nonexistent headers
12332 # can be detected and how.
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12335 #include <ac_nonexistent.h>
12336 _ACEOF
12337 if ac_fn_cxx_try_cpp "$LINENO"; then :
12338 # Broken: success on invalid input.
12339 continue
12340 else
12341 # Passes both tests.
12342 ac_preproc_ok=:
12343 break
12344 fi
12345 rm -f conftest.err conftest.i conftest.$ac_ext
12346
12347 done
12348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12349 rm -f conftest.i conftest.err conftest.$ac_ext
12350 if $ac_preproc_ok; then :
12351 break
12352 fi
12353
12354 done
12355 ac_cv_prog_CXXCPP=$CXXCPP
12356
12357 fi
12358 CXXCPP=$ac_cv_prog_CXXCPP
12359 else
12360 ac_cv_prog_CXXCPP=$CXXCPP
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12363 $as_echo "$CXXCPP" >&6; }
12364 ac_preproc_ok=false
12365 for ac_cxx_preproc_warn_flag in '' yes
12366 do
12367 # Use a header file that comes with gcc, so configuring glibc
12368 # with a fresh cross-compiler works.
12369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12370 # <limits.h> exists even on freestanding compilers.
12371 # On the NeXT, cc -E runs the code through the compiler's parser,
12372 # not just through cpp. "Syntax error" is here to catch this case.
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375 #ifdef __STDC__
12376 # include <limits.h>
12377 #else
12378 # include <assert.h>
12379 #endif
12380 Syntax error
12381 _ACEOF
12382 if ac_fn_cxx_try_cpp "$LINENO"; then :
12383
12384 else
12385 # Broken: fails on valid input.
12386 continue
12387 fi
12388 rm -f conftest.err conftest.i conftest.$ac_ext
12389
12390 # OK, works on sane cases. Now check whether nonexistent headers
12391 # can be detected and how.
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12394 #include <ac_nonexistent.h>
12395 _ACEOF
12396 if ac_fn_cxx_try_cpp "$LINENO"; then :
12397 # Broken: success on invalid input.
12398 continue
12399 else
12400 # Passes both tests.
12401 ac_preproc_ok=:
12402 break
12403 fi
12404 rm -f conftest.err conftest.i conftest.$ac_ext
12405
12406 done
12407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12408 rm -f conftest.i conftest.err conftest.$ac_ext
12409 if $ac_preproc_ok; then :
12410
12411 else
12412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12414 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12415 See \`config.log' for more details" "$LINENO" 5; }
12416 fi
12417
12418 ac_ext=c
12419 ac_cpp='$CPP $CPPFLAGS'
12420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12423
12424 else
12425 _lt_caught_CXX_error=yes
12426 fi
12427
12428 ac_ext=cpp
12429 ac_cpp='$CXXCPP $CPPFLAGS'
12430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12433
12434 archive_cmds_need_lc_CXX=no
12435 allow_undefined_flag_CXX=
12436 always_export_symbols_CXX=no
12437 archive_expsym_cmds_CXX=
12438 compiler_needs_object_CXX=no
12439 export_dynamic_flag_spec_CXX=
12440 hardcode_direct_CXX=no
12441 hardcode_direct_absolute_CXX=no
12442 hardcode_libdir_flag_spec_CXX=
12443 hardcode_libdir_separator_CXX=
12444 hardcode_minus_L_CXX=no
12445 hardcode_shlibpath_var_CXX=unsupported
12446 hardcode_automatic_CXX=no
12447 inherit_rpath_CXX=no
12448 module_cmds_CXX=
12449 module_expsym_cmds_CXX=
12450 link_all_deplibs_CXX=unknown
12451 old_archive_cmds_CXX=$old_archive_cmds
12452 reload_flag_CXX=$reload_flag
12453 reload_cmds_CXX=$reload_cmds
12454 no_undefined_flag_CXX=
12455 whole_archive_flag_spec_CXX=
12456 enable_shared_with_static_runtimes_CXX=no
12457
12458 # Source file extension for C++ test sources.
12459 ac_ext=cpp
12460
12461 # Object file extension for compiled C++ test sources.
12462 objext=o
12463 objext_CXX=$objext
12464
12465 # No sense in running all these tests if we already determined that
12466 # the CXX compiler isn't working. Some variables (like enable_shared)
12467 # are currently assumed to apply to all compilers on this platform,
12468 # and will be corrupted by setting them based on a non-working compiler.
12469 if test "$_lt_caught_CXX_error" != yes; then
12470 # Code to be used in simple compile tests
12471 lt_simple_compile_test_code="int some_variable = 0;"
12472
12473 # Code to be used in simple link tests
12474 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12475
12476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12477
12478
12479
12480
12481
12482
12483 # If no C compiler was specified, use CC.
12484 LTCC=${LTCC-"$CC"}
12485
12486 # If no C compiler flags were specified, use CFLAGS.
12487 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12488
12489 # Allow CC to be a program name with arguments.
12490 compiler=$CC
12491
12492
12493 # save warnings/boilerplate of simple test code
12494 ac_outfile=conftest.$ac_objext
12495 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12496 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12497 _lt_compiler_boilerplate=`cat conftest.err`
12498 $RM conftest*
12499
12500 ac_outfile=conftest.$ac_objext
12501 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12502 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12503 _lt_linker_boilerplate=`cat conftest.err`
12504 $RM -r conftest*
12505
12506
12507 # Allow CC to be a program name with arguments.
12508 lt_save_CC=$CC
12509 lt_save_CFLAGS=$CFLAGS
12510 lt_save_LD=$LD
12511 lt_save_GCC=$GCC
12512 GCC=$GXX
12513 lt_save_with_gnu_ld=$with_gnu_ld
12514 lt_save_path_LD=$lt_cv_path_LD
12515 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12516 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12517 else
12518 $as_unset lt_cv_prog_gnu_ld
12519 fi
12520 if test -n "${lt_cv_path_LDCXX+set}"; then
12521 lt_cv_path_LD=$lt_cv_path_LDCXX
12522 else
12523 $as_unset lt_cv_path_LD
12524 fi
12525 test -z "${LDCXX+set}" || LD=$LDCXX
12526 CC=${CXX-"c++"}
12527 CFLAGS=$CXXFLAGS
12528 compiler=$CC
12529 compiler_CXX=$CC
12530 for cc_temp in $compiler""; do
12531 case $cc_temp in
12532 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12533 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12534 \-*) ;;
12535 *) break;;
12536 esac
12537 done
12538 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12539
12540
12541 if test -n "$compiler"; then
12542 # We don't want -fno-exception when compiling C++ code, so set the
12543 # no_builtin_flag separately
12544 if test "$GXX" = yes; then
12545 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12546 else
12547 lt_prog_compiler_no_builtin_flag_CXX=
12548 fi
12549
12550 if test "$GXX" = yes; then
12551 # Set up default GNU C++ configuration
12552
12553
12554
12555 # Check whether --with-gnu-ld was given.
12556 if test "${with_gnu_ld+set}" = set; then :
12557 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12558 else
12559 with_gnu_ld=no
12560 fi
12561
12562 ac_prog=ld
12563 if test "$GCC" = yes; then
12564 # Check if gcc -print-prog-name=ld gives a path.
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12566 $as_echo_n "checking for ld used by $CC... " >&6; }
12567 case $host in
12568 *-*-mingw*)
12569 # gcc leaves a trailing carriage return which upsets mingw
12570 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12571 *)
12572 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12573 esac
12574 case $ac_prog in
12575 # Accept absolute paths.
12576 [\\/]* | ?:[\\/]*)
12577 re_direlt='/[^/][^/]*/\.\./'
12578 # Canonicalize the pathname of ld
12579 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12580 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12581 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12582 done
12583 test -z "$LD" && LD="$ac_prog"
12584 ;;
12585 "")
12586 # If it fails, then pretend we aren't using GCC.
12587 ac_prog=ld
12588 ;;
12589 *)
12590 # If it is relative, then search for the first ld in PATH.
12591 with_gnu_ld=unknown
12592 ;;
12593 esac
12594 elif test "$with_gnu_ld" = yes; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12596 $as_echo_n "checking for GNU ld... " >&6; }
12597 else
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12599 $as_echo_n "checking for non-GNU ld... " >&6; }
12600 fi
12601 if ${lt_cv_path_LD+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 if test -z "$LD"; then
12605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12606 for ac_dir in $PATH; do
12607 IFS="$lt_save_ifs"
12608 test -z "$ac_dir" && ac_dir=.
12609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12610 lt_cv_path_LD="$ac_dir/$ac_prog"
12611 # Check to see if the program is GNU ld. I'd rather use --version,
12612 # but apparently some variants of GNU ld only accept -v.
12613 # Break only if it was the GNU/non-GNU ld that we prefer.
12614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12615 *GNU* | *'with BFD'*)
12616 test "$with_gnu_ld" != no && break
12617 ;;
12618 *)
12619 test "$with_gnu_ld" != yes && break
12620 ;;
12621 esac
12622 fi
12623 done
12624 IFS="$lt_save_ifs"
12625 else
12626 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12627 fi
12628 fi
12629
12630 LD="$lt_cv_path_LD"
12631 if test -n "$LD"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12633 $as_echo "$LD" >&6; }
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12637 fi
12638 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12640 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12641 if ${lt_cv_prog_gnu_ld+:} false; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12645 case `$LD -v 2>&1 </dev/null` in
12646 *GNU* | *'with BFD'*)
12647 lt_cv_prog_gnu_ld=yes
12648 ;;
12649 *)
12650 lt_cv_prog_gnu_ld=no
12651 ;;
12652 esac
12653 fi
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12655 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12656 with_gnu_ld=$lt_cv_prog_gnu_ld
12657
12658
12659
12660
12661
12662
12663
12664 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12665 # archiving commands below assume that GNU ld is being used.
12666 if test "$with_gnu_ld" = yes; then
12667 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12668 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'
12669
12670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12671 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12672
12673 # If archive_cmds runs LD, not CC, wlarc should be empty
12674 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12675 # investigate it a little bit more. (MM)
12676 wlarc='${wl}'
12677
12678 # ancient GNU ld didn't support --whole-archive et. al.
12679 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12680 $GREP 'no-whole-archive' > /dev/null; then
12681 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12682 else
12683 whole_archive_flag_spec_CXX=
12684 fi
12685 else
12686 with_gnu_ld=no
12687 wlarc=
12688
12689 # A generic and very simple default shared library creation
12690 # command for GNU C++ for the case where it uses the native
12691 # linker, instead of GNU ld. If possible, this setting should
12692 # overridden to take advantage of the native linker features on
12693 # the platform it is being used on.
12694 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12695 fi
12696
12697 # Commands to make compiler produce verbose output that lists
12698 # what "hidden" libraries, object files and flags are used when
12699 # linking a shared library.
12700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12701
12702 else
12703 GXX=no
12704 with_gnu_ld=no
12705 wlarc=
12706 fi
12707
12708 # PORTME: fill in a description of your system's C++ link characteristics
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12710 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12711 ld_shlibs_CXX=yes
12712 case $host_os in
12713 aix3*)
12714 # FIXME: insert proper C++ library support
12715 ld_shlibs_CXX=no
12716 ;;
12717 aix[4-9]*)
12718 if test "$host_cpu" = ia64; then
12719 # On IA64, the linker does run time linking by default, so we don't
12720 # have to do anything special.
12721 aix_use_runtimelinking=no
12722 exp_sym_flag='-Bexport'
12723 no_entry_flag=""
12724 else
12725 aix_use_runtimelinking=no
12726
12727 # Test if we are trying to use run time linking or normal
12728 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12729 # need to do runtime linking.
12730 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12731 for ld_flag in $LDFLAGS; do
12732 case $ld_flag in
12733 *-brtl*)
12734 aix_use_runtimelinking=yes
12735 break
12736 ;;
12737 esac
12738 done
12739 ;;
12740 esac
12741
12742 exp_sym_flag='-bexport'
12743 no_entry_flag='-bnoentry'
12744 fi
12745
12746 # When large executables or shared objects are built, AIX ld can
12747 # have problems creating the table of contents. If linking a library
12748 # or program results in "error TOC overflow" add -mminimal-toc to
12749 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12750 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12751
12752 archive_cmds_CXX=''
12753 hardcode_direct_CXX=yes
12754 hardcode_direct_absolute_CXX=yes
12755 hardcode_libdir_separator_CXX=':'
12756 link_all_deplibs_CXX=yes
12757 file_list_spec_CXX='${wl}-f,'
12758
12759 if test "$GXX" = yes; then
12760 case $host_os in aix4.[012]|aix4.[012].*)
12761 # We only want to do this on AIX 4.2 and lower, the check
12762 # below for broken collect2 doesn't work under 4.3+
12763 collect2name=`${CC} -print-prog-name=collect2`
12764 if test -f "$collect2name" &&
12765 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12766 then
12767 # We have reworked collect2
12768 :
12769 else
12770 # We have old collect2
12771 hardcode_direct_CXX=unsupported
12772 # It fails to find uninstalled libraries when the uninstalled
12773 # path is not listed in the libpath. Setting hardcode_minus_L
12774 # to unsupported forces relinking
12775 hardcode_minus_L_CXX=yes
12776 hardcode_libdir_flag_spec_CXX='-L$libdir'
12777 hardcode_libdir_separator_CXX=
12778 fi
12779 esac
12780 shared_flag='-shared'
12781 if test "$aix_use_runtimelinking" = yes; then
12782 shared_flag="$shared_flag "'${wl}-G'
12783 fi
12784 else
12785 # not using gcc
12786 if test "$host_cpu" = ia64; then
12787 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12788 # chokes on -Wl,-G. The following line is correct:
12789 shared_flag='-G'
12790 else
12791 if test "$aix_use_runtimelinking" = yes; then
12792 shared_flag='${wl}-G'
12793 else
12794 shared_flag='${wl}-bM:SRE'
12795 fi
12796 fi
12797 fi
12798
12799 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12800 # It seems that -bexpall does not export symbols beginning with
12801 # underscore (_), so it is better to generate a list of symbols to
12802 # export.
12803 always_export_symbols_CXX=yes
12804 if test "$aix_use_runtimelinking" = yes; then
12805 # Warning - without using the other runtime loading flags (-brtl),
12806 # -berok will link without error, but may produce a broken library.
12807 allow_undefined_flag_CXX='-berok'
12808 # Determine the default libpath from the value encoded in an empty
12809 # executable.
12810 if test "${lt_cv_aix_libpath+set}" = set; then
12811 aix_libpath=$lt_cv_aix_libpath
12812 else
12813 if ${lt_cv_aix_libpath__CXX+:} false; then :
12814 $as_echo_n "(cached) " >&6
12815 else
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818
12819 int
12820 main ()
12821 {
12822
12823 ;
12824 return 0;
12825 }
12826 _ACEOF
12827 if ac_fn_cxx_try_link "$LINENO"; then :
12828
12829 lt_aix_libpath_sed='
12830 /Import File Strings/,/^$/ {
12831 /^0/ {
12832 s/^0 *\([^ ]*\) *$/\1/
12833 p
12834 }
12835 }'
12836 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12837 # Check for a 64-bit object if we didn't find anything.
12838 if test -z "$lt_cv_aix_libpath__CXX"; then
12839 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12840 fi
12841 fi
12842 rm -f core conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12844 if test -z "$lt_cv_aix_libpath__CXX"; then
12845 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12846 fi
12847
12848 fi
12849
12850 aix_libpath=$lt_cv_aix_libpath__CXX
12851 fi
12852
12853 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12854
12855 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"
12856 else
12857 if test "$host_cpu" = ia64; then
12858 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12859 allow_undefined_flag_CXX="-z nodefs"
12860 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"
12861 else
12862 # Determine the default libpath from the value encoded in an
12863 # empty executable.
12864 if test "${lt_cv_aix_libpath+set}" = set; then
12865 aix_libpath=$lt_cv_aix_libpath
12866 else
12867 if ${lt_cv_aix_libpath__CXX+:} false; then :
12868 $as_echo_n "(cached) " >&6
12869 else
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12872
12873 int
12874 main ()
12875 {
12876
12877 ;
12878 return 0;
12879 }
12880 _ACEOF
12881 if ac_fn_cxx_try_link "$LINENO"; then :
12882
12883 lt_aix_libpath_sed='
12884 /Import File Strings/,/^$/ {
12885 /^0/ {
12886 s/^0 *\([^ ]*\) *$/\1/
12887 p
12888 }
12889 }'
12890 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12891 # Check for a 64-bit object if we didn't find anything.
12892 if test -z "$lt_cv_aix_libpath__CXX"; then
12893 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12894 fi
12895 fi
12896 rm -f core conftest.err conftest.$ac_objext \
12897 conftest$ac_exeext conftest.$ac_ext
12898 if test -z "$lt_cv_aix_libpath__CXX"; then
12899 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12900 fi
12901
12902 fi
12903
12904 aix_libpath=$lt_cv_aix_libpath__CXX
12905 fi
12906
12907 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12908 # Warning - without using the other run time loading flags,
12909 # -berok will link without error, but may produce a broken library.
12910 no_undefined_flag_CXX=' ${wl}-bernotok'
12911 allow_undefined_flag_CXX=' ${wl}-berok'
12912 if test "$with_gnu_ld" = yes; then
12913 # We only use this code for GNU lds that support --whole-archive.
12914 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12915 else
12916 # Exported symbols can be pulled into shared objects from archives
12917 whole_archive_flag_spec_CXX='$convenience'
12918 fi
12919 archive_cmds_need_lc_CXX=yes
12920 # This is similar to how AIX traditionally builds its shared
12921 # libraries.
12922 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'
12923 fi
12924 fi
12925 ;;
12926
12927 beos*)
12928 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12929 allow_undefined_flag_CXX=unsupported
12930 # Joseph Beckenbach <[email protected]> says some releases of gcc
12931 # support --undefined. This deserves some investigation. FIXME
12932 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12933 else
12934 ld_shlibs_CXX=no
12935 fi
12936 ;;
12937
12938 chorus*)
12939 case $cc_basename in
12940 *)
12941 # FIXME: insert proper C++ library support
12942 ld_shlibs_CXX=no
12943 ;;
12944 esac
12945 ;;
12946
12947 cygwin* | mingw* | pw32* | cegcc*)
12948 case $GXX,$cc_basename in
12949 ,cl* | no,cl*)
12950 # Native MSVC
12951 # hardcode_libdir_flag_spec is actually meaningless, as there is
12952 # no search path for DLLs.
12953 hardcode_libdir_flag_spec_CXX=' '
12954 allow_undefined_flag_CXX=unsupported
12955 always_export_symbols_CXX=yes
12956 file_list_spec_CXX='@'
12957 # Tell ltmain to make .lib files, not .a files.
12958 libext=lib
12959 # Tell ltmain to make .dll files, not .so files.
12960 shrext_cmds=".dll"
12961 # FIXME: Setting linknames here is a bad hack.
12962 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12963 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12964 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12965 else
12966 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12967 fi~
12968 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12969 linknames='
12970 # The linker will not automatically build a static lib if we build a DLL.
12971 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12972 enable_shared_with_static_runtimes_CXX=yes
12973 # Don't use ranlib
12974 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12975 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12976 lt_tool_outputfile="@TOOL_OUTPUT@"~
12977 case $lt_outputfile in
12978 *.exe|*.EXE) ;;
12979 *)
12980 lt_outputfile="$lt_outputfile.exe"
12981 lt_tool_outputfile="$lt_tool_outputfile.exe"
12982 ;;
12983 esac~
12984 func_to_tool_file "$lt_outputfile"~
12985 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12986 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12987 $RM "$lt_outputfile.manifest";
12988 fi'
12989 ;;
12990 *)
12991 # g++
12992 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12993 # as there is no search path for DLLs.
12994 hardcode_libdir_flag_spec_CXX='-L$libdir'
12995 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12996 allow_undefined_flag_CXX=unsupported
12997 always_export_symbols_CXX=no
12998 enable_shared_with_static_runtimes_CXX=yes
12999
13000 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13001 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'
13002 # If the export-symbols file already is a .def file (1st line
13003 # is EXPORTS), use it as is; otherwise, prepend...
13004 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13005 cp $export_symbols $output_objdir/$soname.def;
13006 else
13007 echo EXPORTS > $output_objdir/$soname.def;
13008 cat $export_symbols >> $output_objdir/$soname.def;
13009 fi~
13010 $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'
13011 else
13012 ld_shlibs_CXX=no
13013 fi
13014 ;;
13015 esac
13016 ;;
13017 darwin* | rhapsody*)
13018
13019
13020 archive_cmds_need_lc_CXX=no
13021 hardcode_direct_CXX=no
13022 hardcode_automatic_CXX=yes
13023 hardcode_shlibpath_var_CXX=unsupported
13024 if test "$lt_cv_ld_force_load" = "yes"; then
13025 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\"`'
13026
13027 else
13028 whole_archive_flag_spec_CXX=''
13029 fi
13030 link_all_deplibs_CXX=yes
13031 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13032 case $cc_basename in
13033 ifort*) _lt_dar_can_shared=yes ;;
13034 *) _lt_dar_can_shared=$GCC ;;
13035 esac
13036 if test "$_lt_dar_can_shared" = "yes"; then
13037 output_verbose_link_cmd=func_echo_all
13038 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}"
13039 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13040 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}"
13041 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}"
13042 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13043 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}"
13044 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}"
13045 fi
13046
13047 else
13048 ld_shlibs_CXX=no
13049 fi
13050
13051 ;;
13052
13053 dgux*)
13054 case $cc_basename in
13055 ec++*)
13056 # FIXME: insert proper C++ library support
13057 ld_shlibs_CXX=no
13058 ;;
13059 ghcx*)
13060 # Green Hills C++ Compiler
13061 # FIXME: insert proper C++ library support
13062 ld_shlibs_CXX=no
13063 ;;
13064 *)
13065 # FIXME: insert proper C++ library support
13066 ld_shlibs_CXX=no
13067 ;;
13068 esac
13069 ;;
13070
13071 freebsd2.*)
13072 # C++ shared libraries reported to be fairly broken before
13073 # switch to ELF
13074 ld_shlibs_CXX=no
13075 ;;
13076
13077 freebsd-elf*)
13078 archive_cmds_need_lc_CXX=no
13079 ;;
13080
13081 freebsd* | dragonfly*)
13082 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13083 # conventions
13084 ld_shlibs_CXX=yes
13085 ;;
13086
13087 haiku*)
13088 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13089 link_all_deplibs_CXX=yes
13090 ;;
13091
13092 hpux9*)
13093 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13094 hardcode_libdir_separator_CXX=:
13095 export_dynamic_flag_spec_CXX='${wl}-E'
13096 hardcode_direct_CXX=yes
13097 hardcode_minus_L_CXX=yes # Not in the search PATH,
13098 # but as the default
13099 # location of the library.
13100
13101 case $cc_basename in
13102 CC*)
13103 # FIXME: insert proper C++ library support
13104 ld_shlibs_CXX=no
13105 ;;
13106 aCC*)
13107 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'
13108 # Commands to make compiler produce verbose output that lists
13109 # what "hidden" libraries, object files and flags are used when
13110 # linking a shared library.
13111 #
13112 # There doesn't appear to be a way to prevent this compiler from
13113 # explicitly linking system object files so we need to strip them
13114 # from the output so that they don't get included in the library
13115 # dependencies.
13116 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"'
13117 ;;
13118 *)
13119 if test "$GXX" = yes; then
13120 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'
13121 else
13122 # FIXME: insert proper C++ library support
13123 ld_shlibs_CXX=no
13124 fi
13125 ;;
13126 esac
13127 ;;
13128
13129 hpux10*|hpux11*)
13130 if test $with_gnu_ld = no; then
13131 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13132 hardcode_libdir_separator_CXX=:
13133
13134 case $host_cpu in
13135 hppa*64*|ia64*)
13136 ;;
13137 *)
13138 export_dynamic_flag_spec_CXX='${wl}-E'
13139 ;;
13140 esac
13141 fi
13142 case $host_cpu in
13143 hppa*64*|ia64*)
13144 hardcode_direct_CXX=no
13145 hardcode_shlibpath_var_CXX=no
13146 ;;
13147 *)
13148 hardcode_direct_CXX=yes
13149 hardcode_direct_absolute_CXX=yes
13150 hardcode_minus_L_CXX=yes # Not in the search PATH,
13151 # but as the default
13152 # location of the library.
13153 ;;
13154 esac
13155
13156 case $cc_basename in
13157 CC*)
13158 # FIXME: insert proper C++ library support
13159 ld_shlibs_CXX=no
13160 ;;
13161 aCC*)
13162 case $host_cpu in
13163 hppa*64*)
13164 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13165 ;;
13166 ia64*)
13167 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13168 ;;
13169 *)
13170 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13171 ;;
13172 esac
13173 # Commands to make compiler produce verbose output that lists
13174 # what "hidden" libraries, object files and flags are used when
13175 # linking a shared library.
13176 #
13177 # There doesn't appear to be a way to prevent this compiler from
13178 # explicitly linking system object files so we need to strip them
13179 # from the output so that they don't get included in the library
13180 # dependencies.
13181 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"'
13182 ;;
13183 *)
13184 if test "$GXX" = yes; then
13185 if test $with_gnu_ld = no; then
13186 case $host_cpu in
13187 hppa*64*)
13188 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13189 ;;
13190 ia64*)
13191 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13192 ;;
13193 *)
13194 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'
13195 ;;
13196 esac
13197 fi
13198 else
13199 # FIXME: insert proper C++ library support
13200 ld_shlibs_CXX=no
13201 fi
13202 ;;
13203 esac
13204 ;;
13205
13206 interix[3-9]*)
13207 hardcode_direct_CXX=no
13208 hardcode_shlibpath_var_CXX=no
13209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13210 export_dynamic_flag_spec_CXX='${wl}-E'
13211 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13212 # Instead, shared libraries are loaded at an image base (0x10000000 by
13213 # default) and relocated if they conflict, which is a slow very memory
13214 # consuming and fragmenting process. To avoid this, we pick a random,
13215 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13216 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13217 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'
13218 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'
13219 ;;
13220 irix5* | irix6*)
13221 case $cc_basename in
13222 CC*)
13223 # SGI C++
13224 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'
13225
13226 # Archives containing C++ object files must be created using
13227 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13228 # necessary to make sure instantiated templates are included
13229 # in the archive.
13230 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13231 ;;
13232 *)
13233 if test "$GXX" = yes; then
13234 if test "$with_gnu_ld" = no; then
13235 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'
13236 else
13237 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'
13238 fi
13239 fi
13240 link_all_deplibs_CXX=yes
13241 ;;
13242 esac
13243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13244 hardcode_libdir_separator_CXX=:
13245 inherit_rpath_CXX=yes
13246 ;;
13247
13248 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13249 case $cc_basename in
13250 KCC*)
13251 # Kuck and Associates, Inc. (KAI) C++ Compiler
13252
13253 # KCC will only create a shared library if the output file
13254 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13255 # to its proper name (with version) after linking.
13256 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'
13257 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'
13258 # Commands to make compiler produce verbose output that lists
13259 # what "hidden" libraries, object files and flags are used when
13260 # linking a shared library.
13261 #
13262 # There doesn't appear to be a way to prevent this compiler from
13263 # explicitly linking system object files so we need to strip them
13264 # from the output so that they don't get included in the library
13265 # dependencies.
13266 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"'
13267
13268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13270
13271 # Archives containing C++ object files must be created using
13272 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13273 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13274 ;;
13275 icpc* | ecpc* )
13276 # Intel C++
13277 with_gnu_ld=yes
13278 # version 8.0 and above of icpc choke on multiply defined symbols
13279 # if we add $predep_objects and $postdep_objects, however 7.1 and
13280 # earlier do not add the objects themselves.
13281 case `$CC -V 2>&1` in
13282 *"Version 7."*)
13283 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13284 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'
13285 ;;
13286 *) # Version 8.0 or newer
13287 tmp_idyn=
13288 case $host_cpu in
13289 ia64*) tmp_idyn=' -i_dynamic';;
13290 esac
13291 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13292 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'
13293 ;;
13294 esac
13295 archive_cmds_need_lc_CXX=no
13296 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13297 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13298 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13299 ;;
13300 pgCC* | pgcpp*)
13301 # Portland Group C++ compiler
13302 case `$CC -V` in
13303 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13304 prelink_cmds_CXX='tpldir=Template.dir~
13305 rm -rf $tpldir~
13306 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13307 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13308 old_archive_cmds_CXX='tpldir=Template.dir~
13309 rm -rf $tpldir~
13310 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13311 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13312 $RANLIB $oldlib'
13313 archive_cmds_CXX='tpldir=Template.dir~
13314 rm -rf $tpldir~
13315 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13316 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13317 archive_expsym_cmds_CXX='tpldir=Template.dir~
13318 rm -rf $tpldir~
13319 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13320 $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'
13321 ;;
13322 *) # Version 6 and above use weak symbols
13323 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13324 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'
13325 ;;
13326 esac
13327
13328 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13329 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13330 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'
13331 ;;
13332 cxx*)
13333 # Compaq C++
13334 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13335 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'
13336
13337 runpath_var=LD_RUN_PATH
13338 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13339 hardcode_libdir_separator_CXX=:
13340
13341 # Commands to make compiler produce verbose output that lists
13342 # what "hidden" libraries, object files and flags are used when
13343 # linking a shared library.
13344 #
13345 # There doesn't appear to be a way to prevent this compiler from
13346 # explicitly linking system object files so we need to strip them
13347 # from the output so that they don't get included in the library
13348 # dependencies.
13349 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'
13350 ;;
13351 xl* | mpixl* | bgxl*)
13352 # IBM XL 8.0 on PPC, with GNU ld
13353 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13355 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13356 if test "x$supports_anon_versioning" = xyes; then
13357 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13359 echo "local: *; };" >> $output_objdir/$libname.ver~
13360 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13361 fi
13362 ;;
13363 *)
13364 case `$CC -V 2>&1 | sed 5q` in
13365 *Sun\ C*)
13366 # Sun C++ 5.9
13367 no_undefined_flag_CXX=' -zdefs'
13368 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13369 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'
13370 hardcode_libdir_flag_spec_CXX='-R$libdir'
13371 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'
13372 compiler_needs_object_CXX=yes
13373
13374 # Not sure whether something based on
13375 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13376 # would be better.
13377 output_verbose_link_cmd='func_echo_all'
13378
13379 # Archives containing C++ object files must be created using
13380 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13381 # necessary to make sure instantiated templates are included
13382 # in the archive.
13383 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13384 ;;
13385 esac
13386 ;;
13387 esac
13388 ;;
13389
13390 lynxos*)
13391 # FIXME: insert proper C++ library support
13392 ld_shlibs_CXX=no
13393 ;;
13394
13395 m88k*)
13396 # FIXME: insert proper C++ library support
13397 ld_shlibs_CXX=no
13398 ;;
13399
13400 mvs*)
13401 case $cc_basename in
13402 cxx*)
13403 # FIXME: insert proper C++ library support
13404 ld_shlibs_CXX=no
13405 ;;
13406 *)
13407 # FIXME: insert proper C++ library support
13408 ld_shlibs_CXX=no
13409 ;;
13410 esac
13411 ;;
13412
13413 netbsd*)
13414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13415 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13416 wlarc=
13417 hardcode_libdir_flag_spec_CXX='-R$libdir'
13418 hardcode_direct_CXX=yes
13419 hardcode_shlibpath_var_CXX=no
13420 fi
13421 # Workaround some broken pre-1.5 toolchains
13422 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13423 ;;
13424
13425 *nto* | *qnx*)
13426 ld_shlibs_CXX=yes
13427 ;;
13428
13429 openbsd2*)
13430 # C++ shared libraries are fairly broken
13431 ld_shlibs_CXX=no
13432 ;;
13433
13434 openbsd*)
13435 if test -f /usr/libexec/ld.so; then
13436 hardcode_direct_CXX=yes
13437 hardcode_shlibpath_var_CXX=no
13438 hardcode_direct_absolute_CXX=yes
13439 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13440 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13442 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13443 export_dynamic_flag_spec_CXX='${wl}-E'
13444 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13445 fi
13446 output_verbose_link_cmd=func_echo_all
13447 else
13448 ld_shlibs_CXX=no
13449 fi
13450 ;;
13451
13452 osf3* | osf4* | osf5*)
13453 case $cc_basename in
13454 KCC*)
13455 # Kuck and Associates, Inc. (KAI) C++ Compiler
13456
13457 # KCC will only create a shared library if the output file
13458 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13459 # to its proper name (with version) after linking.
13460 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'
13461
13462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13463 hardcode_libdir_separator_CXX=:
13464
13465 # Archives containing C++ object files must be created using
13466 # the KAI C++ compiler.
13467 case $host in
13468 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13469 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13470 esac
13471 ;;
13472 RCC*)
13473 # Rational C++ 2.4.1
13474 # FIXME: insert proper C++ library support
13475 ld_shlibs_CXX=no
13476 ;;
13477 cxx*)
13478 case $host in
13479 osf3*)
13480 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13481 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'
13482 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13483 ;;
13484 *)
13485 allow_undefined_flag_CXX=' -expect_unresolved \*'
13486 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'
13487 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13488 echo "-hidden">> $lib.exp~
13489 $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~
13490 $RM $lib.exp'
13491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13492 ;;
13493 esac
13494
13495 hardcode_libdir_separator_CXX=:
13496
13497 # Commands to make compiler produce verbose output that lists
13498 # what "hidden" libraries, object files and flags are used when
13499 # linking a shared library.
13500 #
13501 # There doesn't appear to be a way to prevent this compiler from
13502 # explicitly linking system object files so we need to strip them
13503 # from the output so that they don't get included in the library
13504 # dependencies.
13505 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"'
13506 ;;
13507 *)
13508 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13509 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13510 case $host in
13511 osf3*)
13512 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'
13513 ;;
13514 *)
13515 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'
13516 ;;
13517 esac
13518
13519 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13520 hardcode_libdir_separator_CXX=:
13521
13522 # Commands to make compiler produce verbose output that lists
13523 # what "hidden" libraries, object files and flags are used when
13524 # linking a shared library.
13525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13526
13527 else
13528 # FIXME: insert proper C++ library support
13529 ld_shlibs_CXX=no
13530 fi
13531 ;;
13532 esac
13533 ;;
13534
13535 psos*)
13536 # FIXME: insert proper C++ library support
13537 ld_shlibs_CXX=no
13538 ;;
13539
13540 sunos4*)
13541 case $cc_basename in
13542 CC*)
13543 # Sun C++ 4.x
13544 # FIXME: insert proper C++ library support
13545 ld_shlibs_CXX=no
13546 ;;
13547 lcc*)
13548 # Lucid
13549 # FIXME: insert proper C++ library support
13550 ld_shlibs_CXX=no
13551 ;;
13552 *)
13553 # FIXME: insert proper C++ library support
13554 ld_shlibs_CXX=no
13555 ;;
13556 esac
13557 ;;
13558
13559 solaris*)
13560 case $cc_basename in
13561 CC* | sunCC*)
13562 # Sun C++ 4.2, 5.x and Centerline C++
13563 archive_cmds_need_lc_CXX=yes
13564 no_undefined_flag_CXX=' -zdefs'
13565 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13566 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13567 $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'
13568
13569 hardcode_libdir_flag_spec_CXX='-R$libdir'
13570 hardcode_shlibpath_var_CXX=no
13571 case $host_os in
13572 solaris2.[0-5] | solaris2.[0-5].*) ;;
13573 *)
13574 # The compiler driver will combine and reorder linker options,
13575 # but understands `-z linker_flag'.
13576 # Supported since Solaris 2.6 (maybe 2.5.1?)
13577 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13578 ;;
13579 esac
13580 link_all_deplibs_CXX=yes
13581
13582 output_verbose_link_cmd='func_echo_all'
13583
13584 # Archives containing C++ object files must be created using
13585 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13586 # necessary to make sure instantiated templates are included
13587 # in the archive.
13588 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13589 ;;
13590 gcx*)
13591 # Green Hills C++ Compiler
13592 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13593
13594 # The C++ compiler must be used to create the archive.
13595 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13596 ;;
13597 *)
13598 # GNU C++ compiler with Solaris linker
13599 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13600 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13601 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13602 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13603 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13604 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13605
13606 # Commands to make compiler produce verbose output that lists
13607 # what "hidden" libraries, object files and flags are used when
13608 # linking a shared library.
13609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13610 else
13611 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13612 # platform.
13613 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13614 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13615 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13616
13617 # Commands to make compiler produce verbose output that lists
13618 # what "hidden" libraries, object files and flags are used when
13619 # linking a shared library.
13620 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13621 fi
13622
13623 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13624 case $host_os in
13625 solaris2.[0-5] | solaris2.[0-5].*) ;;
13626 *)
13627 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13628 ;;
13629 esac
13630 fi
13631 ;;
13632 esac
13633 ;;
13634
13635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13636 no_undefined_flag_CXX='${wl}-z,text'
13637 archive_cmds_need_lc_CXX=no
13638 hardcode_shlibpath_var_CXX=no
13639 runpath_var='LD_RUN_PATH'
13640
13641 case $cc_basename in
13642 CC*)
13643 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 ;;
13646 *)
13647 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 ;;
13650 esac
13651 ;;
13652
13653 sysv5* | sco3.2v5* | sco5v6*)
13654 # Note: We can NOT use -z defs as we might desire, because we do not
13655 # link with -lc, and that would cause any symbols used from libc to
13656 # always be unresolved, which means just about no library would
13657 # ever link correctly. If we're not using GNU ld we use -z text
13658 # though, which does catch some bad symbols but isn't as heavy-handed
13659 # as -z defs.
13660 no_undefined_flag_CXX='${wl}-z,text'
13661 allow_undefined_flag_CXX='${wl}-z,nodefs'
13662 archive_cmds_need_lc_CXX=no
13663 hardcode_shlibpath_var_CXX=no
13664 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13665 hardcode_libdir_separator_CXX=':'
13666 link_all_deplibs_CXX=yes
13667 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13668 runpath_var='LD_RUN_PATH'
13669
13670 case $cc_basename in
13671 CC*)
13672 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13674 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13675 '"$old_archive_cmds_CXX"
13676 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13677 '"$reload_cmds_CXX"
13678 ;;
13679 *)
13680 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13681 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 ;;
13683 esac
13684 ;;
13685
13686 tandem*)
13687 case $cc_basename in
13688 NCC*)
13689 # NonStop-UX NCC 3.20
13690 # FIXME: insert proper C++ library support
13691 ld_shlibs_CXX=no
13692 ;;
13693 *)
13694 # FIXME: insert proper C++ library support
13695 ld_shlibs_CXX=no
13696 ;;
13697 esac
13698 ;;
13699
13700 vxworks*)
13701 # FIXME: insert proper C++ library support
13702 ld_shlibs_CXX=no
13703 ;;
13704
13705 *)
13706 # FIXME: insert proper C++ library support
13707 ld_shlibs_CXX=no
13708 ;;
13709 esac
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13712 $as_echo "$ld_shlibs_CXX" >&6; }
13713 test "$ld_shlibs_CXX" = no && can_build_shared=no
13714
13715 GCC_CXX="$GXX"
13716 LD_CXX="$LD"
13717
13718 ## CAVEAT EMPTOR:
13719 ## There is no encapsulation within the following macros, do not change
13720 ## the running order or otherwise move them around unless you know exactly
13721 ## what you are doing...
13722 # Dependencies to place before and after the object being linked:
13723 predep_objects_CXX=
13724 postdep_objects_CXX=
13725 predeps_CXX=
13726 postdeps_CXX=
13727 compiler_lib_search_path_CXX=
13728
13729 cat > conftest.$ac_ext <<_LT_EOF
13730 class Foo
13731 {
13732 public:
13733 Foo (void) { a = 0; }
13734 private:
13735 int a;
13736 };
13737 _LT_EOF
13738
13739
13740 _lt_libdeps_save_CFLAGS=$CFLAGS
13741 case "$CC $CFLAGS " in #(
13742 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13743 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13744 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13745 esac
13746
13747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13748 (eval $ac_compile) 2>&5
13749 ac_status=$?
13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751 test $ac_status = 0; }; then
13752 # Parse the compiler output and extract the necessary
13753 # objects, libraries and library flags.
13754
13755 # Sentinel used to keep track of whether or not we are before
13756 # the conftest object file.
13757 pre_test_object_deps_done=no
13758
13759 for p in `eval "$output_verbose_link_cmd"`; do
13760 case ${prev}${p} in
13761
13762 -L* | -R* | -l*)
13763 # Some compilers place space between "-{L,R}" and the path.
13764 # Remove the space.
13765 if test $p = "-L" ||
13766 test $p = "-R"; then
13767 prev=$p
13768 continue
13769 fi
13770
13771 # Expand the sysroot to ease extracting the directories later.
13772 if test -z "$prev"; then
13773 case $p in
13774 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13775 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13776 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13777 esac
13778 fi
13779 case $p in
13780 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13781 esac
13782 if test "$pre_test_object_deps_done" = no; then
13783 case ${prev} in
13784 -L | -R)
13785 # Internal compiler library paths should come after those
13786 # provided the user. The postdeps already come after the
13787 # user supplied libs so there is no need to process them.
13788 if test -z "$compiler_lib_search_path_CXX"; then
13789 compiler_lib_search_path_CXX="${prev}${p}"
13790 else
13791 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13792 fi
13793 ;;
13794 # The "-l" case would never come before the object being
13795 # linked, so don't bother handling this case.
13796 esac
13797 else
13798 if test -z "$postdeps_CXX"; then
13799 postdeps_CXX="${prev}${p}"
13800 else
13801 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13802 fi
13803 fi
13804 prev=
13805 ;;
13806
13807 *.lto.$objext) ;; # Ignore GCC LTO objects
13808 *.$objext)
13809 # This assumes that the test object file only shows up
13810 # once in the compiler output.
13811 if test "$p" = "conftest.$objext"; then
13812 pre_test_object_deps_done=yes
13813 continue
13814 fi
13815
13816 if test "$pre_test_object_deps_done" = no; then
13817 if test -z "$predep_objects_CXX"; then
13818 predep_objects_CXX="$p"
13819 else
13820 predep_objects_CXX="$predep_objects_CXX $p"
13821 fi
13822 else
13823 if test -z "$postdep_objects_CXX"; then
13824 postdep_objects_CXX="$p"
13825 else
13826 postdep_objects_CXX="$postdep_objects_CXX $p"
13827 fi
13828 fi
13829 ;;
13830
13831 *) ;; # Ignore the rest.
13832
13833 esac
13834 done
13835
13836 # Clean up.
13837 rm -f a.out a.exe
13838 else
13839 echo "libtool.m4: error: problem compiling CXX test program"
13840 fi
13841
13842 $RM -f confest.$objext
13843 CFLAGS=$_lt_libdeps_save_CFLAGS
13844
13845 # PORTME: override above test on systems where it is broken
13846 case $host_os in
13847 interix[3-9]*)
13848 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13849 # hack all around it, let's just trust "g++" to DTRT.
13850 predep_objects_CXX=
13851 postdep_objects_CXX=
13852 postdeps_CXX=
13853 ;;
13854
13855 linux*)
13856 case `$CC -V 2>&1 | sed 5q` in
13857 *Sun\ C*)
13858 # Sun C++ 5.9
13859
13860 # The more standards-conforming stlport4 library is
13861 # incompatible with the Cstd library. Avoid specifying
13862 # it if it's in CXXFLAGS. Ignore libCrun as
13863 # -library=stlport4 depends on it.
13864 case " $CXX $CXXFLAGS " in
13865 *" -library=stlport4 "*)
13866 solaris_use_stlport4=yes
13867 ;;
13868 esac
13869
13870 if test "$solaris_use_stlport4" != yes; then
13871 postdeps_CXX='-library=Cstd -library=Crun'
13872 fi
13873 ;;
13874 esac
13875 ;;
13876
13877 solaris*)
13878 case $cc_basename in
13879 CC* | sunCC*)
13880 # The more standards-conforming stlport4 library is
13881 # incompatible with the Cstd library. Avoid specifying
13882 # it if it's in CXXFLAGS. Ignore libCrun as
13883 # -library=stlport4 depends on it.
13884 case " $CXX $CXXFLAGS " in
13885 *" -library=stlport4 "*)
13886 solaris_use_stlport4=yes
13887 ;;
13888 esac
13889
13890 # Adding this requires a known-good setup of shared libraries for
13891 # Sun compiler versions before 5.6, else PIC objects from an old
13892 # archive will be linked into the output, leading to subtle bugs.
13893 if test "$solaris_use_stlport4" != yes; then
13894 postdeps_CXX='-library=Cstd -library=Crun'
13895 fi
13896 ;;
13897 esac
13898 ;;
13899 esac
13900
13901
13902 case " $postdeps_CXX " in
13903 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13904 esac
13905 compiler_lib_search_dirs_CXX=
13906 if test -n "${compiler_lib_search_path_CXX}"; then
13907 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13908 fi
13909
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 lt_prog_compiler_wl_CXX=
13941 lt_prog_compiler_pic_CXX=
13942 lt_prog_compiler_static_CXX=
13943
13944
13945 # C++ specific cases for pic, static, wl, etc.
13946 if test "$GXX" = yes; then
13947 lt_prog_compiler_wl_CXX='-Wl,'
13948 lt_prog_compiler_static_CXX='-static'
13949
13950 case $host_os in
13951 aix*)
13952 # All AIX code is PIC.
13953 if test "$host_cpu" = ia64; then
13954 # AIX 5 now supports IA64 processor
13955 lt_prog_compiler_static_CXX='-Bstatic'
13956 fi
13957 ;;
13958
13959 amigaos*)
13960 case $host_cpu in
13961 powerpc)
13962 # see comment about AmigaOS4 .so support
13963 lt_prog_compiler_pic_CXX='-fPIC'
13964 ;;
13965 m68k)
13966 # FIXME: we need at least 68020 code to build shared libraries, but
13967 # adding the `-m68020' flag to GCC prevents building anything better,
13968 # like `-m68040'.
13969 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13970 ;;
13971 esac
13972 ;;
13973
13974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13975 # PIC is the default for these OSes.
13976 ;;
13977 mingw* | cygwin* | os2* | pw32* | cegcc*)
13978 # This hack is so that the source file can tell whether it is being
13979 # built for inclusion in a dll (and should export symbols for example).
13980 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13981 # (--disable-auto-import) libraries
13982 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13983 ;;
13984 darwin* | rhapsody*)
13985 # PIC is the default on this platform
13986 # Common symbols not allowed in MH_DYLIB files
13987 lt_prog_compiler_pic_CXX='-fno-common'
13988 ;;
13989 *djgpp*)
13990 # DJGPP does not support shared libraries at all
13991 lt_prog_compiler_pic_CXX=
13992 ;;
13993 haiku*)
13994 # PIC is the default for Haiku.
13995 # The "-static" flag exists, but is broken.
13996 lt_prog_compiler_static_CXX=
13997 ;;
13998 interix[3-9]*)
13999 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14000 # Instead, we relocate shared libraries at runtime.
14001 ;;
14002 sysv4*MP*)
14003 if test -d /usr/nec; then
14004 lt_prog_compiler_pic_CXX=-Kconform_pic
14005 fi
14006 ;;
14007 hpux*)
14008 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14009 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14010 # sets the default TLS model and affects inlining.
14011 case $host_cpu in
14012 hppa*64*)
14013 ;;
14014 *)
14015 lt_prog_compiler_pic_CXX='-fPIC'
14016 ;;
14017 esac
14018 ;;
14019 *qnx* | *nto*)
14020 # QNX uses GNU C++, but need to define -shared option too, otherwise
14021 # it will coredump.
14022 lt_prog_compiler_pic_CXX='-fPIC -shared'
14023 ;;
14024 *)
14025 lt_prog_compiler_pic_CXX='-fPIC'
14026 ;;
14027 esac
14028 else
14029 case $host_os in
14030 aix[4-9]*)
14031 # All AIX code is PIC.
14032 if test "$host_cpu" = ia64; then
14033 # AIX 5 now supports IA64 processor
14034 lt_prog_compiler_static_CXX='-Bstatic'
14035 else
14036 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14037 fi
14038 ;;
14039 chorus*)
14040 case $cc_basename in
14041 cxch68*)
14042 # Green Hills C++ Compiler
14043 # _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"
14044 ;;
14045 esac
14046 ;;
14047 mingw* | cygwin* | os2* | pw32* | cegcc*)
14048 # This hack is so that the source file can tell whether it is being
14049 # built for inclusion in a dll (and should export symbols for example).
14050 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14051 ;;
14052 dgux*)
14053 case $cc_basename in
14054 ec++*)
14055 lt_prog_compiler_pic_CXX='-KPIC'
14056 ;;
14057 ghcx*)
14058 # Green Hills C++ Compiler
14059 lt_prog_compiler_pic_CXX='-pic'
14060 ;;
14061 *)
14062 ;;
14063 esac
14064 ;;
14065 freebsd* | dragonfly*)
14066 # FreeBSD uses GNU C++
14067 ;;
14068 hpux9* | hpux10* | hpux11*)
14069 case $cc_basename in
14070 CC*)
14071 lt_prog_compiler_wl_CXX='-Wl,'
14072 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14073 if test "$host_cpu" != ia64; then
14074 lt_prog_compiler_pic_CXX='+Z'
14075 fi
14076 ;;
14077 aCC*)
14078 lt_prog_compiler_wl_CXX='-Wl,'
14079 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14080 case $host_cpu in
14081 hppa*64*|ia64*)
14082 # +Z the default
14083 ;;
14084 *)
14085 lt_prog_compiler_pic_CXX='+Z'
14086 ;;
14087 esac
14088 ;;
14089 *)
14090 ;;
14091 esac
14092 ;;
14093 interix*)
14094 # This is c89, which is MS Visual C++ (no shared libs)
14095 # Anyone wants to do a port?
14096 ;;
14097 irix5* | irix6* | nonstopux*)
14098 case $cc_basename in
14099 CC*)
14100 lt_prog_compiler_wl_CXX='-Wl,'
14101 lt_prog_compiler_static_CXX='-non_shared'
14102 # CC pic flag -KPIC is the default.
14103 ;;
14104 *)
14105 ;;
14106 esac
14107 ;;
14108 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14109 case $cc_basename in
14110 KCC*)
14111 # KAI C++ Compiler
14112 lt_prog_compiler_wl_CXX='--backend -Wl,'
14113 lt_prog_compiler_pic_CXX='-fPIC'
14114 ;;
14115 ecpc* )
14116 # old Intel C++ for x86_64 which still supported -KPIC.
14117 lt_prog_compiler_wl_CXX='-Wl,'
14118 lt_prog_compiler_pic_CXX='-KPIC'
14119 lt_prog_compiler_static_CXX='-static'
14120 ;;
14121 icpc* )
14122 # Intel C++, used to be incompatible with GCC.
14123 # ICC 10 doesn't accept -KPIC any more.
14124 lt_prog_compiler_wl_CXX='-Wl,'
14125 lt_prog_compiler_pic_CXX='-fPIC'
14126 lt_prog_compiler_static_CXX='-static'
14127 ;;
14128 pgCC* | pgcpp*)
14129 # Portland Group C++ compiler
14130 lt_prog_compiler_wl_CXX='-Wl,'
14131 lt_prog_compiler_pic_CXX='-fpic'
14132 lt_prog_compiler_static_CXX='-Bstatic'
14133 ;;
14134 cxx*)
14135 # Compaq C++
14136 # Make sure the PIC flag is empty. It appears that all Alpha
14137 # Linux and Compaq Tru64 Unix objects are PIC.
14138 lt_prog_compiler_pic_CXX=
14139 lt_prog_compiler_static_CXX='-non_shared'
14140 ;;
14141 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14142 # IBM XL 8.0, 9.0 on PPC and BlueGene
14143 lt_prog_compiler_wl_CXX='-Wl,'
14144 lt_prog_compiler_pic_CXX='-qpic'
14145 lt_prog_compiler_static_CXX='-qstaticlink'
14146 ;;
14147 *)
14148 case `$CC -V 2>&1 | sed 5q` in
14149 *Sun\ C*)
14150 # Sun C++ 5.9
14151 lt_prog_compiler_pic_CXX='-KPIC'
14152 lt_prog_compiler_static_CXX='-Bstatic'
14153 lt_prog_compiler_wl_CXX='-Qoption ld '
14154 ;;
14155 esac
14156 ;;
14157 esac
14158 ;;
14159 lynxos*)
14160 ;;
14161 m88k*)
14162 ;;
14163 mvs*)
14164 case $cc_basename in
14165 cxx*)
14166 lt_prog_compiler_pic_CXX='-W c,exportall'
14167 ;;
14168 *)
14169 ;;
14170 esac
14171 ;;
14172 netbsd* | netbsdelf*-gnu)
14173 ;;
14174 *qnx* | *nto*)
14175 # QNX uses GNU C++, but need to define -shared option too, otherwise
14176 # it will coredump.
14177 lt_prog_compiler_pic_CXX='-fPIC -shared'
14178 ;;
14179 osf3* | osf4* | osf5*)
14180 case $cc_basename in
14181 KCC*)
14182 lt_prog_compiler_wl_CXX='--backend -Wl,'
14183 ;;
14184 RCC*)
14185 # Rational C++ 2.4.1
14186 lt_prog_compiler_pic_CXX='-pic'
14187 ;;
14188 cxx*)
14189 # Digital/Compaq C++
14190 lt_prog_compiler_wl_CXX='-Wl,'
14191 # Make sure the PIC flag is empty. It appears that all Alpha
14192 # Linux and Compaq Tru64 Unix objects are PIC.
14193 lt_prog_compiler_pic_CXX=
14194 lt_prog_compiler_static_CXX='-non_shared'
14195 ;;
14196 *)
14197 ;;
14198 esac
14199 ;;
14200 psos*)
14201 ;;
14202 solaris*)
14203 case $cc_basename in
14204 CC* | sunCC*)
14205 # Sun C++ 4.2, 5.x and Centerline C++
14206 lt_prog_compiler_pic_CXX='-KPIC'
14207 lt_prog_compiler_static_CXX='-Bstatic'
14208 lt_prog_compiler_wl_CXX='-Qoption ld '
14209 ;;
14210 gcx*)
14211 # Green Hills C++ Compiler
14212 lt_prog_compiler_pic_CXX='-PIC'
14213 ;;
14214 *)
14215 ;;
14216 esac
14217 ;;
14218 sunos4*)
14219 case $cc_basename in
14220 CC*)
14221 # Sun C++ 4.x
14222 lt_prog_compiler_pic_CXX='-pic'
14223 lt_prog_compiler_static_CXX='-Bstatic'
14224 ;;
14225 lcc*)
14226 # Lucid
14227 lt_prog_compiler_pic_CXX='-pic'
14228 ;;
14229 *)
14230 ;;
14231 esac
14232 ;;
14233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14234 case $cc_basename in
14235 CC*)
14236 lt_prog_compiler_wl_CXX='-Wl,'
14237 lt_prog_compiler_pic_CXX='-KPIC'
14238 lt_prog_compiler_static_CXX='-Bstatic'
14239 ;;
14240 esac
14241 ;;
14242 tandem*)
14243 case $cc_basename in
14244 NCC*)
14245 # NonStop-UX NCC 3.20
14246 lt_prog_compiler_pic_CXX='-KPIC'
14247 ;;
14248 *)
14249 ;;
14250 esac
14251 ;;
14252 vxworks*)
14253 ;;
14254 *)
14255 lt_prog_compiler_can_build_shared_CXX=no
14256 ;;
14257 esac
14258 fi
14259
14260 case $host_os in
14261 # For platforms which do not support PIC, -DPIC is meaningless:
14262 *djgpp*)
14263 lt_prog_compiler_pic_CXX=
14264 ;;
14265 *)
14266 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14267 ;;
14268 esac
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14271 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14272 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14273 $as_echo_n "(cached) " >&6
14274 else
14275 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14276 fi
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14278 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14279 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14280
14281 #
14282 # Check to make sure the PIC flag actually works.
14283 #
14284 if test -n "$lt_prog_compiler_pic_CXX"; then
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14286 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14287 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 lt_cv_prog_compiler_pic_works_CXX=no
14291 ac_outfile=conftest.$ac_objext
14292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14293 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14294 # Insert the option either (1) after the last *FLAGS variable, or
14295 # (2) before a word containing "conftest.", or (3) at the end.
14296 # Note that $ac_compile itself does not contain backslashes and begins
14297 # with a dollar sign (not a hyphen), so the echo should work correctly.
14298 # The option is referenced via a variable to avoid confusing sed.
14299 lt_compile=`echo "$ac_compile" | $SED \
14300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14302 -e 's:$: $lt_compiler_flag:'`
14303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14304 (eval "$lt_compile" 2>conftest.err)
14305 ac_status=$?
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 if (exit $ac_status) && test -s "$ac_outfile"; then
14309 # The compiler can only warn and ignore the option if not recognized
14310 # So say no if there are warnings other than the usual output.
14311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14314 lt_cv_prog_compiler_pic_works_CXX=yes
14315 fi
14316 fi
14317 $RM conftest*
14318
14319 fi
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14321 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14322
14323 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14324 case $lt_prog_compiler_pic_CXX in
14325 "" | " "*) ;;
14326 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14327 esac
14328 else
14329 lt_prog_compiler_pic_CXX=
14330 lt_prog_compiler_can_build_shared_CXX=no
14331 fi
14332
14333 fi
14334
14335
14336
14337
14338
14339 #
14340 # Check to make sure the static flag actually works.
14341 #
14342 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14344 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14345 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 lt_cv_prog_compiler_static_works_CXX=no
14349 save_LDFLAGS="$LDFLAGS"
14350 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14351 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14353 # The linker can only warn and ignore the option if not recognized
14354 # So say no if there are warnings
14355 if test -s conftest.err; then
14356 # Append any errors to the config.log.
14357 cat conftest.err 1>&5
14358 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14360 if diff conftest.exp conftest.er2 >/dev/null; then
14361 lt_cv_prog_compiler_static_works_CXX=yes
14362 fi
14363 else
14364 lt_cv_prog_compiler_static_works_CXX=yes
14365 fi
14366 fi
14367 $RM -r conftest*
14368 LDFLAGS="$save_LDFLAGS"
14369
14370 fi
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14372 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14373
14374 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14375 :
14376 else
14377 lt_prog_compiler_static_CXX=
14378 fi
14379
14380
14381
14382
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14384 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14385 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 lt_cv_prog_compiler_c_o_CXX=no
14389 $RM -r conftest 2>/dev/null
14390 mkdir conftest
14391 cd conftest
14392 mkdir out
14393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14394
14395 lt_compiler_flag="-o out/conftest2.$ac_objext"
14396 # Insert the option either (1) after the last *FLAGS variable, or
14397 # (2) before a word containing "conftest.", or (3) at the end.
14398 # Note that $ac_compile itself does not contain backslashes and begins
14399 # with a dollar sign (not a hyphen), so the echo should work correctly.
14400 lt_compile=`echo "$ac_compile" | $SED \
14401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14403 -e 's:$: $lt_compiler_flag:'`
14404 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14405 (eval "$lt_compile" 2>out/conftest.err)
14406 ac_status=$?
14407 cat out/conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14410 then
14411 # The compiler can only warn and ignore the option if not recognized
14412 # So say no if there are warnings
14413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14416 lt_cv_prog_compiler_c_o_CXX=yes
14417 fi
14418 fi
14419 chmod u+w . 2>&5
14420 $RM conftest*
14421 # SGI C++ compiler will create directory out/ii_files/ for
14422 # template instantiation
14423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14424 $RM out/* && rmdir out
14425 cd ..
14426 $RM -r conftest
14427 $RM conftest*
14428
14429 fi
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14431 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14432
14433
14434
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14436 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14437 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440 lt_cv_prog_compiler_c_o_CXX=no
14441 $RM -r conftest 2>/dev/null
14442 mkdir conftest
14443 cd conftest
14444 mkdir out
14445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14446
14447 lt_compiler_flag="-o out/conftest2.$ac_objext"
14448 # Insert the option either (1) after the last *FLAGS variable, or
14449 # (2) before a word containing "conftest.", or (3) at the end.
14450 # Note that $ac_compile itself does not contain backslashes and begins
14451 # with a dollar sign (not a hyphen), so the echo should work correctly.
14452 lt_compile=`echo "$ac_compile" | $SED \
14453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14455 -e 's:$: $lt_compiler_flag:'`
14456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14457 (eval "$lt_compile" 2>out/conftest.err)
14458 ac_status=$?
14459 cat out/conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14462 then
14463 # The compiler can only warn and ignore the option if not recognized
14464 # So say no if there are warnings
14465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14468 lt_cv_prog_compiler_c_o_CXX=yes
14469 fi
14470 fi
14471 chmod u+w . 2>&5
14472 $RM conftest*
14473 # SGI C++ compiler will create directory out/ii_files/ for
14474 # template instantiation
14475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14476 $RM out/* && rmdir out
14477 cd ..
14478 $RM -r conftest
14479 $RM conftest*
14480
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14483 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14484
14485
14486
14487
14488 hard_links="nottested"
14489 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14490 # do not overwrite the value of need_locks provided by the user
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14492 $as_echo_n "checking if we can lock with hard links... " >&6; }
14493 hard_links=yes
14494 $RM conftest*
14495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14496 touch conftest.a
14497 ln conftest.a conftest.b 2>&5 || hard_links=no
14498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14500 $as_echo "$hard_links" >&6; }
14501 if test "$hard_links" = no; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14503 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14504 need_locks=warn
14505 fi
14506 else
14507 need_locks=no
14508 fi
14509
14510
14511
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14513 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14514
14515 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14516 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14517 case $host_os in
14518 aix[4-9]*)
14519 # If we're using GNU nm, then we don't want the "-C" option.
14520 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14521 # Also, AIX nm treats weak defined symbols like other global defined
14522 # symbols, whereas GNU nm marks them as "W".
14523 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14524 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'
14525 else
14526 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'
14527 fi
14528 ;;
14529 pw32*)
14530 export_symbols_cmds_CXX="$ltdll_cmds"
14531 ;;
14532 cygwin* | mingw* | cegcc*)
14533 case $cc_basename in
14534 cl*)
14535 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14536 ;;
14537 *)
14538 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'
14539 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14540 ;;
14541 esac
14542 ;;
14543 linux* | k*bsd*-gnu | gnu*)
14544 link_all_deplibs_CXX=no
14545 ;;
14546 *)
14547 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14548 ;;
14549 esac
14550
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14552 $as_echo "$ld_shlibs_CXX" >&6; }
14553 test "$ld_shlibs_CXX" = no && can_build_shared=no
14554
14555 with_gnu_ld_CXX=$with_gnu_ld
14556
14557
14558
14559
14560
14561
14562 #
14563 # Do we need to explicitly link libc?
14564 #
14565 case "x$archive_cmds_need_lc_CXX" in
14566 x|xyes)
14567 # Assume -lc should be added
14568 archive_cmds_need_lc_CXX=yes
14569
14570 if test "$enable_shared" = yes && test "$GCC" = yes; then
14571 case $archive_cmds_CXX in
14572 *'~'*)
14573 # FIXME: we may have to deal with multi-command sequences.
14574 ;;
14575 '$CC '*)
14576 # Test whether the compiler implicitly links with -lc since on some
14577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14578 # to ld, don't add -lc before -lgcc.
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14580 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14581 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14582 $as_echo_n "(cached) " >&6
14583 else
14584 $RM conftest*
14585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14586
14587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14588 (eval $ac_compile) 2>&5
14589 ac_status=$?
14590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591 test $ac_status = 0; } 2>conftest.err; then
14592 soname=conftest
14593 lib=conftest
14594 libobjs=conftest.$ac_objext
14595 deplibs=
14596 wl=$lt_prog_compiler_wl_CXX
14597 pic_flag=$lt_prog_compiler_pic_CXX
14598 compiler_flags=-v
14599 linker_flags=-v
14600 verstring=
14601 output_objdir=.
14602 libname=conftest
14603 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14604 allow_undefined_flag_CXX=
14605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14606 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14607 ac_status=$?
14608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609 test $ac_status = 0; }
14610 then
14611 lt_cv_archive_cmds_need_lc_CXX=no
14612 else
14613 lt_cv_archive_cmds_need_lc_CXX=yes
14614 fi
14615 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14616 else
14617 cat conftest.err 1>&5
14618 fi
14619 $RM conftest*
14620
14621 fi
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14623 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14624 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14625 ;;
14626 esac
14627 fi
14628 ;;
14629 esac
14630
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14693 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14694
14695 library_names_spec=
14696 libname_spec='lib$name'
14697 soname_spec=
14698 shrext_cmds=".so"
14699 postinstall_cmds=
14700 postuninstall_cmds=
14701 finish_cmds=
14702 finish_eval=
14703 shlibpath_var=
14704 shlibpath_overrides_runpath=unknown
14705 version_type=none
14706 dynamic_linker="$host_os ld.so"
14707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14708 need_lib_prefix=unknown
14709 hardcode_into_libs=no
14710
14711 # when you set need_version to no, make sure it does not cause -set_version
14712 # flags to be left without arguments
14713 need_version=unknown
14714
14715 case $host_os in
14716 aix3*)
14717 version_type=linux # correct to gnu/linux during the next big refactor
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14719 shlibpath_var=LIBPATH
14720
14721 # AIX 3 has no versioning support, so we append a major version to the name.
14722 soname_spec='${libname}${release}${shared_ext}$major'
14723 ;;
14724
14725 aix[4-9]*)
14726 version_type=linux # correct to gnu/linux during the next big refactor
14727 need_lib_prefix=no
14728 need_version=no
14729 hardcode_into_libs=yes
14730 if test "$host_cpu" = ia64; then
14731 # AIX 5 supports IA64
14732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14733 shlibpath_var=LD_LIBRARY_PATH
14734 else
14735 # With GCC up to 2.95.x, collect2 would create an import file
14736 # for dependence libraries. The import file would start with
14737 # the line `#! .'. This would cause the generated library to
14738 # depend on `.', always an invalid library. This was fixed in
14739 # development snapshots of GCC prior to 3.0.
14740 case $host_os in
14741 aix4 | aix4.[01] | aix4.[01].*)
14742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14743 echo ' yes '
14744 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14745 :
14746 else
14747 can_build_shared=no
14748 fi
14749 ;;
14750 esac
14751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14752 # soname into executable. Probably we can add versioning support to
14753 # collect2, so additional links can be useful in future.
14754 if test "$aix_use_runtimelinking" = yes; then
14755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14756 # instead of lib<name>.a to let people know that these are not
14757 # typical AIX shared libraries.
14758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14759 else
14760 # We preserve .a as extension for shared libraries through AIX4.2
14761 # and later when we are not doing run time linking.
14762 library_names_spec='${libname}${release}.a $libname.a'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 fi
14765 shlibpath_var=LIBPATH
14766 fi
14767 ;;
14768
14769 amigaos*)
14770 case $host_cpu in
14771 powerpc)
14772 # Since July 2007 AmigaOS4 officially supports .so libraries.
14773 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14775 ;;
14776 m68k)
14777 library_names_spec='$libname.ixlibrary $libname.a'
14778 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14779 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'
14780 ;;
14781 esac
14782 ;;
14783
14784 beos*)
14785 library_names_spec='${libname}${shared_ext}'
14786 dynamic_linker="$host_os ld.so"
14787 shlibpath_var=LIBRARY_PATH
14788 ;;
14789
14790 bsdi[45]*)
14791 version_type=linux # correct to gnu/linux during the next big refactor
14792 need_version=no
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794 soname_spec='${libname}${release}${shared_ext}$major'
14795 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14796 shlibpath_var=LD_LIBRARY_PATH
14797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14799 # the default ld.so.conf also contains /usr/contrib/lib and
14800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14801 # libtool to hard-code these into programs
14802 ;;
14803
14804 cygwin* | mingw* | pw32* | cegcc*)
14805 version_type=windows
14806 shrext_cmds=".dll"
14807 need_version=no
14808 need_lib_prefix=no
14809
14810 case $GCC,$cc_basename in
14811 yes,*)
14812 # gcc
14813 library_names_spec='$libname.dll.a'
14814 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14815 postinstall_cmds='base_file=`basename \${file}`~
14816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14817 dldir=$destdir/`dirname \$dlpath`~
14818 test -d \$dldir || mkdir -p \$dldir~
14819 $install_prog $dir/$dlname \$dldir/$dlname~
14820 chmod a+x \$dldir/$dlname~
14821 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14822 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14823 fi'
14824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14825 dlpath=$dir/\$dldll~
14826 $RM \$dlpath'
14827 shlibpath_overrides_runpath=yes
14828
14829 case $host_os in
14830 cygwin*)
14831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14833
14834 ;;
14835 mingw* | cegcc*)
14836 # MinGW DLLs use traditional 'lib' prefix
14837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14838 ;;
14839 pw32*)
14840 # pw32 DLLs use 'pw' prefix rather than 'lib'
14841 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14842 ;;
14843 esac
14844 dynamic_linker='Win32 ld.exe'
14845 ;;
14846
14847 *,cl*)
14848 # Native MSVC
14849 libname_spec='$name'
14850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14851 library_names_spec='${libname}.dll.lib'
14852
14853 case $build_os in
14854 mingw*)
14855 sys_lib_search_path_spec=
14856 lt_save_ifs=$IFS
14857 IFS=';'
14858 for lt_path in $LIB
14859 do
14860 IFS=$lt_save_ifs
14861 # Let DOS variable expansion print the short 8.3 style file name.
14862 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14863 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14864 done
14865 IFS=$lt_save_ifs
14866 # Convert to MSYS style.
14867 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14868 ;;
14869 cygwin*)
14870 # Convert to unix form, then to dos form, then back to unix form
14871 # but this time dos style (no spaces!) so that the unix form looks
14872 # like /cygdrive/c/PROGRA~1:/cygdr...
14873 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14874 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14875 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14876 ;;
14877 *)
14878 sys_lib_search_path_spec="$LIB"
14879 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14880 # It is most probably a Windows format PATH.
14881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14882 else
14883 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14884 fi
14885 # FIXME: find the short name or the path components, as spaces are
14886 # common. (e.g. "Program Files" -> "PROGRA~1")
14887 ;;
14888 esac
14889
14890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14891 postinstall_cmds='base_file=`basename \${file}`~
14892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14893 dldir=$destdir/`dirname \$dlpath`~
14894 test -d \$dldir || mkdir -p \$dldir~
14895 $install_prog $dir/$dlname \$dldir/$dlname'
14896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14897 dlpath=$dir/\$dldll~
14898 $RM \$dlpath'
14899 shlibpath_overrides_runpath=yes
14900 dynamic_linker='Win32 link.exe'
14901 ;;
14902
14903 *)
14904 # Assume MSVC wrapper
14905 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14906 dynamic_linker='Win32 ld.exe'
14907 ;;
14908 esac
14909 # FIXME: first we should search . and the directory the executable is in
14910 shlibpath_var=PATH
14911 ;;
14912
14913 darwin* | rhapsody*)
14914 dynamic_linker="$host_os dyld"
14915 version_type=darwin
14916 need_lib_prefix=no
14917 need_version=no
14918 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14919 soname_spec='${libname}${release}${major}$shared_ext'
14920 shlibpath_overrides_runpath=yes
14921 shlibpath_var=DYLD_LIBRARY_PATH
14922 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14923
14924 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14925 ;;
14926
14927 dgux*)
14928 version_type=linux # correct to gnu/linux during the next big refactor
14929 need_lib_prefix=no
14930 need_version=no
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14932 soname_spec='${libname}${release}${shared_ext}$major'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 ;;
14935
14936 freebsd* | dragonfly*)
14937 # DragonFly does not have aout. When/if they implement a new
14938 # versioning mechanism, adjust this.
14939 if test -x /usr/bin/objformat; then
14940 objformat=`/usr/bin/objformat`
14941 else
14942 case $host_os in
14943 freebsd[23].*) objformat=aout ;;
14944 *) objformat=elf ;;
14945 esac
14946 fi
14947 version_type=freebsd-$objformat
14948 case $version_type in
14949 freebsd-elf*)
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14951 need_version=no
14952 need_lib_prefix=no
14953 ;;
14954 freebsd-*)
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14956 need_version=yes
14957 ;;
14958 esac
14959 shlibpath_var=LD_LIBRARY_PATH
14960 case $host_os in
14961 freebsd2.*)
14962 shlibpath_overrides_runpath=yes
14963 ;;
14964 freebsd3.[01]* | freebsdelf3.[01]*)
14965 shlibpath_overrides_runpath=yes
14966 hardcode_into_libs=yes
14967 ;;
14968 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14969 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14970 shlibpath_overrides_runpath=no
14971 hardcode_into_libs=yes
14972 ;;
14973 *) # from 4.6 on, and DragonFly
14974 shlibpath_overrides_runpath=yes
14975 hardcode_into_libs=yes
14976 ;;
14977 esac
14978 ;;
14979
14980 haiku*)
14981 version_type=linux # correct to gnu/linux during the next big refactor
14982 need_lib_prefix=no
14983 need_version=no
14984 dynamic_linker="$host_os runtime_loader"
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14986 soname_spec='${libname}${release}${shared_ext}$major'
14987 shlibpath_var=LIBRARY_PATH
14988 shlibpath_overrides_runpath=yes
14989 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14990 hardcode_into_libs=yes
14991 ;;
14992
14993 hpux9* | hpux10* | hpux11*)
14994 # Give a soname corresponding to the major version so that dld.sl refuses to
14995 # link against other versions.
14996 version_type=sunos
14997 need_lib_prefix=no
14998 need_version=no
14999 case $host_cpu in
15000 ia64*)
15001 shrext_cmds='.so'
15002 hardcode_into_libs=yes
15003 dynamic_linker="$host_os dld.so"
15004 shlibpath_var=LD_LIBRARY_PATH
15005 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 if test "X$HPUX_IA64_MODE" = X32; then
15009 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15010 else
15011 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15012 fi
15013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15014 ;;
15015 hppa*64*)
15016 shrext_cmds='.sl'
15017 hardcode_into_libs=yes
15018 dynamic_linker="$host_os dld.sl"
15019 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022 soname_spec='${libname}${release}${shared_ext}$major'
15023 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15025 ;;
15026 *)
15027 shrext_cmds='.sl'
15028 dynamic_linker="$host_os dld.sl"
15029 shlibpath_var=SHLIB_PATH
15030 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 ;;
15034 esac
15035 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15036 postinstall_cmds='chmod 555 $lib'
15037 # or fails outright, so override atomically:
15038 install_override_mode=555
15039 ;;
15040
15041 interix[3-9]*)
15042 version_type=linux # correct to gnu/linux during the next big refactor
15043 need_lib_prefix=no
15044 need_version=no
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15048 shlibpath_var=LD_LIBRARY_PATH
15049 shlibpath_overrides_runpath=no
15050 hardcode_into_libs=yes
15051 ;;
15052
15053 irix5* | irix6* | nonstopux*)
15054 case $host_os in
15055 nonstopux*) version_type=nonstopux ;;
15056 *)
15057 if test "$lt_cv_prog_gnu_ld" = yes; then
15058 version_type=linux # correct to gnu/linux during the next big refactor
15059 else
15060 version_type=irix
15061 fi ;;
15062 esac
15063 need_lib_prefix=no
15064 need_version=no
15065 soname_spec='${libname}${release}${shared_ext}$major'
15066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15067 case $host_os in
15068 irix5* | nonstopux*)
15069 libsuff= shlibsuff=
15070 ;;
15071 *)
15072 case $LD in # libtool.m4 will add one of these switches to LD
15073 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15074 libsuff= shlibsuff= libmagic=32-bit;;
15075 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15076 libsuff=32 shlibsuff=N32 libmagic=N32;;
15077 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15078 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15079 *) libsuff= shlibsuff= libmagic=never-match;;
15080 esac
15081 ;;
15082 esac
15083 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15084 shlibpath_overrides_runpath=no
15085 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15086 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15087 hardcode_into_libs=yes
15088 ;;
15089
15090 # No shared lib support for Linux oldld, aout, or coff.
15091 linux*oldld* | linux*aout* | linux*coff*)
15092 dynamic_linker=no
15093 ;;
15094
15095 # This must be glibc/ELF.
15096 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15097 version_type=linux # correct to gnu/linux during the next big refactor
15098 need_lib_prefix=no
15099 need_version=no
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 shlibpath_overrides_runpath=no
15105
15106 # Some binutils ld are patched to set DT_RUNPATH
15107 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15108 $as_echo_n "(cached) " >&6
15109 else
15110 lt_cv_shlibpath_overrides_runpath=no
15111 save_LDFLAGS=$LDFLAGS
15112 save_libdir=$libdir
15113 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15114 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117
15118 int
15119 main ()
15120 {
15121
15122 ;
15123 return 0;
15124 }
15125 _ACEOF
15126 if ac_fn_cxx_try_link "$LINENO"; then :
15127 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15128 lt_cv_shlibpath_overrides_runpath=yes
15129 fi
15130 fi
15131 rm -f core conftest.err conftest.$ac_objext \
15132 conftest$ac_exeext conftest.$ac_ext
15133 LDFLAGS=$save_LDFLAGS
15134 libdir=$save_libdir
15135
15136 fi
15137
15138 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15139
15140 # This implies no fast_install, which is unacceptable.
15141 # Some rework will be needed to allow for fast_install
15142 # before this can be enabled.
15143 hardcode_into_libs=yes
15144
15145 # Append ld.so.conf contents to the search path
15146 if test -f /etc/ld.so.conf; then
15147 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' ' '`
15148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15149 fi
15150
15151 # We used to test for /lib/ld.so.1 and disable shared libraries on
15152 # powerpc, because MkLinux only supported shared libraries with the
15153 # GNU dynamic linker. Since this was broken with cross compilers,
15154 # most powerpc-linux boxes support dynamic linking these days and
15155 # people can always --disable-shared, the test was removed, and we
15156 # assume the GNU/Linux dynamic linker is in use.
15157 dynamic_linker='GNU/Linux ld.so'
15158 ;;
15159
15160 netbsdelf*-gnu)
15161 version_type=linux
15162 need_lib_prefix=no
15163 need_version=no
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 shlibpath_var=LD_LIBRARY_PATH
15167 shlibpath_overrides_runpath=no
15168 hardcode_into_libs=yes
15169 dynamic_linker='NetBSD ld.elf_so'
15170 ;;
15171
15172 netbsd*)
15173 version_type=sunos
15174 need_lib_prefix=no
15175 need_version=no
15176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15179 dynamic_linker='NetBSD (a.out) ld.so'
15180 else
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 dynamic_linker='NetBSD ld.elf_so'
15184 fi
15185 shlibpath_var=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath=yes
15187 hardcode_into_libs=yes
15188 ;;
15189
15190 newsos6)
15191 version_type=linux # correct to gnu/linux during the next big refactor
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193 shlibpath_var=LD_LIBRARY_PATH
15194 shlibpath_overrides_runpath=yes
15195 ;;
15196
15197 *nto* | *qnx*)
15198 version_type=qnx
15199 need_lib_prefix=no
15200 need_version=no
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202 soname_spec='${libname}${release}${shared_ext}$major'
15203 shlibpath_var=LD_LIBRARY_PATH
15204 shlibpath_overrides_runpath=no
15205 hardcode_into_libs=yes
15206 dynamic_linker='ldqnx.so'
15207 ;;
15208
15209 openbsd*)
15210 version_type=sunos
15211 sys_lib_dlsearch_path_spec="/usr/lib"
15212 need_lib_prefix=no
15213 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15214 case $host_os in
15215 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15216 *) need_version=no ;;
15217 esac
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15222 case $host_os in
15223 openbsd2.[89] | openbsd2.[89].*)
15224 shlibpath_overrides_runpath=no
15225 ;;
15226 *)
15227 shlibpath_overrides_runpath=yes
15228 ;;
15229 esac
15230 else
15231 shlibpath_overrides_runpath=yes
15232 fi
15233 ;;
15234
15235 os2*)
15236 libname_spec='$name'
15237 shrext_cmds=".dll"
15238 need_lib_prefix=no
15239 library_names_spec='$libname${shared_ext} $libname.a'
15240 dynamic_linker='OS/2 ld.exe'
15241 shlibpath_var=LIBPATH
15242 ;;
15243
15244 osf3* | osf4* | osf5*)
15245 version_type=osf
15246 need_lib_prefix=no
15247 need_version=no
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15252 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15253 ;;
15254
15255 rdos*)
15256 dynamic_linker=no
15257 ;;
15258
15259 solaris*)
15260 version_type=linux # correct to gnu/linux during the next big refactor
15261 need_lib_prefix=no
15262 need_version=no
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 shlibpath_overrides_runpath=yes
15267 hardcode_into_libs=yes
15268 # ldd complains unless libraries are executable
15269 postinstall_cmds='chmod +x $lib'
15270 ;;
15271
15272 sunos4*)
15273 version_type=sunos
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15275 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 shlibpath_overrides_runpath=yes
15278 if test "$with_gnu_ld" = yes; then
15279 need_lib_prefix=no
15280 fi
15281 need_version=yes
15282 ;;
15283
15284 sysv4 | sysv4.3*)
15285 version_type=linux # correct to gnu/linux during the next big refactor
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15287 soname_spec='${libname}${release}${shared_ext}$major'
15288 shlibpath_var=LD_LIBRARY_PATH
15289 case $host_vendor in
15290 sni)
15291 shlibpath_overrides_runpath=no
15292 need_lib_prefix=no
15293 runpath_var=LD_RUN_PATH
15294 ;;
15295 siemens)
15296 need_lib_prefix=no
15297 ;;
15298 motorola)
15299 need_lib_prefix=no
15300 need_version=no
15301 shlibpath_overrides_runpath=no
15302 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15303 ;;
15304 esac
15305 ;;
15306
15307 sysv4*MP*)
15308 if test -d /usr/nec ;then
15309 version_type=linux # correct to gnu/linux during the next big refactor
15310 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15311 soname_spec='$libname${shared_ext}.$major'
15312 shlibpath_var=LD_LIBRARY_PATH
15313 fi
15314 ;;
15315
15316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15317 version_type=freebsd-elf
15318 need_lib_prefix=no
15319 need_version=no
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 shlibpath_var=LD_LIBRARY_PATH
15323 shlibpath_overrides_runpath=yes
15324 hardcode_into_libs=yes
15325 if test "$with_gnu_ld" = yes; then
15326 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15327 else
15328 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15329 case $host_os in
15330 sco3.2v5*)
15331 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15332 ;;
15333 esac
15334 fi
15335 sys_lib_dlsearch_path_spec='/usr/lib'
15336 ;;
15337
15338 tpf*)
15339 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15340 version_type=linux # correct to gnu/linux during the next big refactor
15341 need_lib_prefix=no
15342 need_version=no
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 shlibpath_overrides_runpath=no
15346 hardcode_into_libs=yes
15347 ;;
15348
15349 uts4*)
15350 version_type=linux # correct to gnu/linux during the next big refactor
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 ;;
15355
15356 *)
15357 dynamic_linker=no
15358 ;;
15359 esac
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15361 $as_echo "$dynamic_linker" >&6; }
15362 test "$dynamic_linker" = no && can_build_shared=no
15363
15364 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15365 if test "$GCC" = yes; then
15366 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15367 fi
15368
15369 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15370 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15371 fi
15372 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15373 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15374 fi
15375
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15414 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15415 hardcode_action_CXX=
15416 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15417 test -n "$runpath_var_CXX" ||
15418 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15419
15420 # We can hardcode non-existent directories.
15421 if test "$hardcode_direct_CXX" != no &&
15422 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15423 # have to relink, otherwise we might link with an installed library
15424 # when we should be linking with a yet-to-be-installed one
15425 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15426 test "$hardcode_minus_L_CXX" != no; then
15427 # Linking always hardcodes the temporary library directory.
15428 hardcode_action_CXX=relink
15429 else
15430 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15431 hardcode_action_CXX=immediate
15432 fi
15433 else
15434 # We cannot hardcode anything, or else we can only hardcode existing
15435 # directories.
15436 hardcode_action_CXX=unsupported
15437 fi
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15439 $as_echo "$hardcode_action_CXX" >&6; }
15440
15441 if test "$hardcode_action_CXX" = relink ||
15442 test "$inherit_rpath_CXX" = yes; then
15443 # Fast installation is not supported
15444 enable_fast_install=no
15445 elif test "$shlibpath_overrides_runpath" = yes ||
15446 test "$enable_shared" = no; then
15447 # Fast installation is not necessary
15448 enable_fast_install=needless
15449 fi
15450
15451
15452
15453
15454
15455
15456
15457 fi # test -n "$compiler"
15458
15459 CC=$lt_save_CC
15460 CFLAGS=$lt_save_CFLAGS
15461 LDCXX=$LD
15462 LD=$lt_save_LD
15463 GCC=$lt_save_GCC
15464 with_gnu_ld=$lt_save_with_gnu_ld
15465 lt_cv_path_LDCXX=$lt_cv_path_LD
15466 lt_cv_path_LD=$lt_save_path_LD
15467 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15468 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15469 fi # test "$_lt_caught_CXX_error" != yes
15470
15471 ac_ext=c
15472 ac_cpp='$CPP $CPPFLAGS'
15473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15476
15477
15478 ac_ext=cpp
15479 ac_cpp='$CXXCPP $CPPFLAGS'
15480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15483
15484
15485 # Create the libtool executable so that we can use it in further tests.
15486 #
15487 : ${CONFIG_LT=./config.lt}
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
15489 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
15490 as_write_fail=0
15491 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
15492 #! $SHELL
15493 # Generated by $as_me.
15494 # Run this file to recreate a libtool stub with the current configuration.
15495 SHELL=\${CONFIG_SHELL-$SHELL}
15496 export SHELL
15497 _ASEOF
15498 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
15499 ## -------------------- ##
15500 ## M4sh Initialization. ##
15501 ## -------------------- ##
15502
15503 # Be more Bourne compatible
15504 DUALCASE=1; export DUALCASE # for MKS sh
15505 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15506 emulate sh
15507 NULLCMD=:
15508 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15509 # is contrary to our usage. Disable this feature.
15510 alias -g '${1+"$@"}'='"$@"'
15511 setopt NO_GLOB_SUBST
15512 else
15513 case `(set -o) 2>/dev/null` in #(
15514 *posix*) :
15515 set -o posix ;; #(
15516 *) :
15517 ;;
15518 esac
15519 fi
15520
15521
15522 as_nl='
15523 '
15524 export as_nl
15525 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15526 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15527 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15529 # Prefer a ksh shell builtin over an external printf program on Solaris,
15530 # but without wasting forks for bash or zsh.
15531 if test -z "$BASH_VERSION$ZSH_VERSION" \
15532 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15533 as_echo='print -r --'
15534 as_echo_n='print -rn --'
15535 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15536 as_echo='printf %s\n'
15537 as_echo_n='printf %s'
15538 else
15539 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15540 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15541 as_echo_n='/usr/ucb/echo -n'
15542 else
15543 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15544 as_echo_n_body='eval
15545 arg=$1;
15546 case $arg in #(
15547 *"$as_nl"*)
15548 expr "X$arg" : "X\\(.*\\)$as_nl";
15549 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15550 esac;
15551 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15552 '
15553 export as_echo_n_body
15554 as_echo_n='sh -c $as_echo_n_body as_echo'
15555 fi
15556 export as_echo_body
15557 as_echo='sh -c $as_echo_body as_echo'
15558 fi
15559
15560 # The user is always right.
15561 if test "${PATH_SEPARATOR+set}" != set; then
15562 PATH_SEPARATOR=:
15563 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15564 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15565 PATH_SEPARATOR=';'
15566 }
15567 fi
15568
15569
15570 # IFS
15571 # We need space, tab and new line, in precisely that order. Quoting is
15572 # there to prevent editors from complaining about space-tab.
15573 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15574 # splitting by setting IFS to empty value.)
15575 IFS=" "" $as_nl"
15576
15577 # Find who we are. Look in the path if we contain no directory separator.
15578 as_myself=
15579 case $0 in #((
15580 *[\\/]* ) as_myself=$0 ;;
15581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15582 for as_dir in $PATH
15583 do
15584 IFS=$as_save_IFS
15585 test -z "$as_dir" && as_dir=.
15586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15587 done
15588 IFS=$as_save_IFS
15589
15590 ;;
15591 esac
15592 # We did not find ourselves, most probably we were run as `sh COMMAND'
15593 # in which case we are not to be found in the path.
15594 if test "x$as_myself" = x; then
15595 as_myself=$0
15596 fi
15597 if test ! -f "$as_myself"; then
15598 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15599 exit 1
15600 fi
15601
15602 # Unset variables that we do not need and which cause bugs (e.g. in
15603 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15604 # suppresses any "Segmentation fault" message there. '((' could
15605 # trigger a bug in pdksh 5.2.14.
15606 for as_var in BASH_ENV ENV MAIL MAILPATH
15607 do eval test x\${$as_var+set} = xset \
15608 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15609 done
15610 PS1='$ '
15611 PS2='> '
15612 PS4='+ '
15613
15614 # NLS nuisances.
15615 LC_ALL=C
15616 export LC_ALL
15617 LANGUAGE=C
15618 export LANGUAGE
15619
15620 # CDPATH.
15621 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15622
15623
15624 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15625 # ----------------------------------------
15626 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15627 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15628 # script with STATUS, using 1 if that was 0.
15629 as_fn_error ()
15630 {
15631 as_status=$1; test $as_status -eq 0 && as_status=1
15632 if test "$4"; then
15633 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15634 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15635 fi
15636 $as_echo "$as_me: error: $2" >&2
15637 as_fn_exit $as_status
15638 } # as_fn_error
15639
15640
15641 # as_fn_set_status STATUS
15642 # -----------------------
15643 # Set $? to STATUS, without forking.
15644 as_fn_set_status ()
15645 {
15646 return $1
15647 } # as_fn_set_status
15648
15649 # as_fn_exit STATUS
15650 # -----------------
15651 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15652 as_fn_exit ()
15653 {
15654 set +e
15655 as_fn_set_status $1
15656 exit $1
15657 } # as_fn_exit
15658
15659 # as_fn_unset VAR
15660 # ---------------
15661 # Portably unset VAR.
15662 as_fn_unset ()
15663 {
15664 { eval $1=; unset $1;}
15665 }
15666 as_unset=as_fn_unset
15667 # as_fn_append VAR VALUE
15668 # ----------------------
15669 # Append the text in VALUE to the end of the definition contained in VAR. Take
15670 # advantage of any shell optimizations that allow amortized linear growth over
15671 # repeated appends, instead of the typical quadratic growth present in naive
15672 # implementations.
15673 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15674 eval 'as_fn_append ()
15675 {
15676 eval $1+=\$2
15677 }'
15678 else
15679 as_fn_append ()
15680 {
15681 eval $1=\$$1\$2
15682 }
15683 fi # as_fn_append
15684
15685 # as_fn_arith ARG...
15686 # ------------------
15687 # Perform arithmetic evaluation on the ARGs, and store the result in the
15688 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15689 # must be portable across $(()) and expr.
15690 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15691 eval 'as_fn_arith ()
15692 {
15693 as_val=$(( $* ))
15694 }'
15695 else
15696 as_fn_arith ()
15697 {
15698 as_val=`expr "$@" || test $? -eq 1`
15699 }
15700 fi # as_fn_arith
15701
15702
15703 if expr a : '\(a\)' >/dev/null 2>&1 &&
15704 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15705 as_expr=expr
15706 else
15707 as_expr=false
15708 fi
15709
15710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15711 as_basename=basename
15712 else
15713 as_basename=false
15714 fi
15715
15716 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15717 as_dirname=dirname
15718 else
15719 as_dirname=false
15720 fi
15721
15722 as_me=`$as_basename -- "$0" ||
15723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15724 X"$0" : 'X\(//\)$' \| \
15725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15726 $as_echo X/"$0" |
15727 sed '/^.*\/\([^/][^/]*\)\/*$/{
15728 s//\1/
15729 q
15730 }
15731 /^X\/\(\/\/\)$/{
15732 s//\1/
15733 q
15734 }
15735 /^X\/\(\/\).*/{
15736 s//\1/
15737 q
15738 }
15739 s/.*/./; q'`
15740
15741 # Avoid depending upon Character Ranges.
15742 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15745 as_cr_digits='0123456789'
15746 as_cr_alnum=$as_cr_Letters$as_cr_digits
15747
15748 ECHO_C= ECHO_N= ECHO_T=
15749 case `echo -n x` in #(((((
15750 -n*)
15751 case `echo 'xy\c'` in
15752 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15753 xy) ECHO_C='\c';;
15754 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15755 ECHO_T=' ';;
15756 esac;;
15757 *)
15758 ECHO_N='-n';;
15759 esac
15760
15761 rm -f conf$$ conf$$.exe conf$$.file
15762 if test -d conf$$.dir; then
15763 rm -f conf$$.dir/conf$$.file
15764 else
15765 rm -f conf$$.dir
15766 mkdir conf$$.dir 2>/dev/null
15767 fi
15768 if (echo >conf$$.file) 2>/dev/null; then
15769 if ln -s conf$$.file conf$$ 2>/dev/null; then
15770 as_ln_s='ln -s'
15771 # ... but there are two gotchas:
15772 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15773 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15774 # In both cases, we have to default to `cp -pR'.
15775 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15776 as_ln_s='cp -pR'
15777 elif ln conf$$.file conf$$ 2>/dev/null; then
15778 as_ln_s=ln
15779 else
15780 as_ln_s='cp -pR'
15781 fi
15782 else
15783 as_ln_s='cp -pR'
15784 fi
15785 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15786 rmdir conf$$.dir 2>/dev/null
15787
15788
15789 # as_fn_mkdir_p
15790 # -------------
15791 # Create "$as_dir" as a directory, including parents if necessary.
15792 as_fn_mkdir_p ()
15793 {
15794
15795 case $as_dir in #(
15796 -*) as_dir=./$as_dir;;
15797 esac
15798 test -d "$as_dir" || eval $as_mkdir_p || {
15799 as_dirs=
15800 while :; do
15801 case $as_dir in #(
15802 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15803 *) as_qdir=$as_dir;;
15804 esac
15805 as_dirs="'$as_qdir' $as_dirs"
15806 as_dir=`$as_dirname -- "$as_dir" ||
15807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15808 X"$as_dir" : 'X\(//\)[^/]' \| \
15809 X"$as_dir" : 'X\(//\)$' \| \
15810 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15811 $as_echo X"$as_dir" |
15812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15813 s//\1/
15814 q
15815 }
15816 /^X\(\/\/\)[^/].*/{
15817 s//\1/
15818 q
15819 }
15820 /^X\(\/\/\)$/{
15821 s//\1/
15822 q
15823 }
15824 /^X\(\/\).*/{
15825 s//\1/
15826 q
15827 }
15828 s/.*/./; q'`
15829 test -d "$as_dir" && break
15830 done
15831 test -z "$as_dirs" || eval "mkdir $as_dirs"
15832 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15833
15834
15835 } # as_fn_mkdir_p
15836 if mkdir -p . 2>/dev/null; then
15837 as_mkdir_p='mkdir -p "$as_dir"'
15838 else
15839 test -d ./-p && rmdir ./-p
15840 as_mkdir_p=false
15841 fi
15842
15843
15844 # as_fn_executable_p FILE
15845 # -----------------------
15846 # Test if FILE is an executable regular file.
15847 as_fn_executable_p ()
15848 {
15849 test -f "$1" && test -x "$1"
15850 } # as_fn_executable_p
15851 as_test_x='test -x'
15852 as_executable_p=as_fn_executable_p
15853
15854 # Sed expression to map a string onto a valid CPP name.
15855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15856
15857 # Sed expression to map a string onto a valid variable name.
15858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15859
15860
15861 exec 6>&1
15862 ## --------------------------------- ##
15863 ## Main body of "$CONFIG_LT" script. ##
15864 ## --------------------------------- ##
15865 _ASEOF
15866 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
15867
15868 cat >>"$CONFIG_LT" <<\_LTEOF
15869 lt_cl_silent=false
15870 exec 5>>config.log
15871 {
15872 echo
15873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15874 ## Running $as_me. ##
15875 _ASBOX
15876 } >&5
15877
15878 lt_cl_help="\
15879 \`$as_me' creates a local libtool stub from the current configuration,
15880 for use in further configure time tests before the real libtool is
15881 generated.
15882
15883 Usage: $0 [OPTIONS]
15884
15885 -h, --help print this help, then exit
15886 -V, --version print version number, then exit
15887 -q, --quiet do not print progress messages
15888 -d, --debug don't remove temporary files
15889
15890 Report bugs to <[email protected]>."
15891
15892 lt_cl_version="\
15893 libodb-qt config.lt 2.4.0
15894 configured by $0, generated by GNU Autoconf 2.69.
15895
15896 Copyright (C) 2011 Free Software Foundation, Inc.
15897 This config.lt script is free software; the Free Software Foundation
15898 gives unlimited permision to copy, distribute and modify it."
15899
15900 while test $# != 0
15901 do
15902 case $1 in
15903 --version | --v* | -V )
15904 echo "$lt_cl_version"; exit 0 ;;
15905 --help | --h* | -h )
15906 echo "$lt_cl_help"; exit 0 ;;
15907 --debug | --d* | -d )
15908 debug=: ;;
15909 --quiet | --q* | --silent | --s* | -q )
15910 lt_cl_silent=: ;;
15911
15912 -*) as_fn_error $? "unrecognized option: $1
15913 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15914
15915 *) as_fn_error $? "unrecognized argument: $1
15916 Try \`$0 --help' for more information." "$LINENO" 5 ;;
15917 esac
15918 shift
15919 done
15920
15921 if $lt_cl_silent; then
15922 exec 6>/dev/null
15923 fi
15924 _LTEOF
15925
15926 cat >>"$CONFIG_LT" <<_LTEOF
15927
15928
15929 # The HP-UX ksh and POSIX shell print the target directory to stdout
15930 # if CDPATH is set.
15931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15932
15933 sed_quote_subst='$sed_quote_subst'
15934 double_quote_subst='$double_quote_subst'
15935 delay_variable_subst='$delay_variable_subst'
15936 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15937 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15938 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15939 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15940 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15941 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15942 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15943 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15944 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15945 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15946 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15947 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15948 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15949 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15950 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15951 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15952 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15953 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15954 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15955 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15956 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15957 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15958 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15959 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15960 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15961 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15962 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15963 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15964 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15965 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15966 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15967 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15968 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15969 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15970 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15971 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15972 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15973 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15974 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15975 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15976 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15977 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15978 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15979 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15980 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15981 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15982 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15983 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15984 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15985 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15986 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15987 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15988 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15989 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15990 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15991 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15992 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15993 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"`'
15994 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15995 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15996 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15997 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15998 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15999 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16000 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16001 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16002 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16003 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16004 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16005 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16006 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16007 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16008 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16009 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16010 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16011 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16012 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16013 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16014 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16015 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16016 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16017 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16018 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16019 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16020 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16021 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16022 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16023 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16024 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16025 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16026 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16027 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16028 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16029 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16030 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16031 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16032 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16033 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16034 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16035 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16036 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16037 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16038 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16039 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16040 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16041 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16042 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16043 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16044 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16045 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16046 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16047 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16048 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16049 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16050 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16051 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16052 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16053 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16054 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16055 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16056 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16057 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16058 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16059 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16060 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16061 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16062 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16063 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16064 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16065 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16066 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16067 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16068 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16069 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16070 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16071 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16072 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16073 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16074 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16075 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16076 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16077 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16078 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16079 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16080 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16081 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16082 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16083 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16084 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16085 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16086 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16087 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16088 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16089 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16090 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16091 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16092 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16093 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16094 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16095 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16096 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16097 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16098 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16099 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16100 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16101 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16102 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16103 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16104 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16105 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16106 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16107 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16108 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16109 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16110 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16111 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16112 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16113 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16114 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16115 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16116 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16117 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16118 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16119 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16120 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16121
16122 LTCC='$LTCC'
16123 LTCFLAGS='$LTCFLAGS'
16124 compiler='$compiler_DEFAULT'
16125
16126 # A function that is used when there is no print builtin or printf.
16127 func_fallback_echo ()
16128 {
16129 eval 'cat <<_LTECHO_EOF
16130 \$1
16131 _LTECHO_EOF'
16132 }
16133
16134 # Quote evaled strings.
16135 for var in AS \
16136 DLLTOOL \
16137 OBJDUMP \
16138 SHELL \
16139 ECHO \
16140 PATH_SEPARATOR \
16141 SED \
16142 GREP \
16143 EGREP \
16144 FGREP \
16145 LD \
16146 NM \
16147 LN_S \
16148 lt_SP2NL \
16149 lt_NL2SP \
16150 reload_flag \
16151 deplibs_check_method \
16152 file_magic_cmd \
16153 file_magic_glob \
16154 want_nocaseglob \
16155 sharedlib_from_linklib_cmd \
16156 AR \
16157 AR_FLAGS \
16158 archiver_list_spec \
16159 STRIP \
16160 RANLIB \
16161 CC \
16162 CFLAGS \
16163 compiler \
16164 lt_cv_sys_global_symbol_pipe \
16165 lt_cv_sys_global_symbol_to_cdecl \
16166 lt_cv_sys_global_symbol_to_c_name_address \
16167 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16168 nm_file_list_spec \
16169 lt_prog_compiler_no_builtin_flag \
16170 lt_prog_compiler_pic \
16171 lt_prog_compiler_wl \
16172 lt_prog_compiler_static \
16173 lt_cv_prog_compiler_c_o \
16174 need_locks \
16175 MANIFEST_TOOL \
16176 DSYMUTIL \
16177 NMEDIT \
16178 LIPO \
16179 OTOOL \
16180 OTOOL64 \
16181 shrext_cmds \
16182 export_dynamic_flag_spec \
16183 whole_archive_flag_spec \
16184 compiler_needs_object \
16185 with_gnu_ld \
16186 allow_undefined_flag \
16187 no_undefined_flag \
16188 hardcode_libdir_flag_spec \
16189 hardcode_libdir_separator \
16190 exclude_expsyms \
16191 include_expsyms \
16192 file_list_spec \
16193 variables_saved_for_relink \
16194 libname_spec \
16195 library_names_spec \
16196 soname_spec \
16197 install_override_mode \
16198 finish_eval \
16199 old_striplib \
16200 striplib \
16201 compiler_lib_search_dirs \
16202 predep_objects \
16203 postdep_objects \
16204 predeps \
16205 postdeps \
16206 compiler_lib_search_path \
16207 LD_CXX \
16208 reload_flag_CXX \
16209 compiler_CXX \
16210 lt_prog_compiler_no_builtin_flag_CXX \
16211 lt_prog_compiler_pic_CXX \
16212 lt_prog_compiler_wl_CXX \
16213 lt_prog_compiler_static_CXX \
16214 lt_cv_prog_compiler_c_o_CXX \
16215 export_dynamic_flag_spec_CXX \
16216 whole_archive_flag_spec_CXX \
16217 compiler_needs_object_CXX \
16218 with_gnu_ld_CXX \
16219 allow_undefined_flag_CXX \
16220 no_undefined_flag_CXX \
16221 hardcode_libdir_flag_spec_CXX \
16222 hardcode_libdir_separator_CXX \
16223 exclude_expsyms_CXX \
16224 include_expsyms_CXX \
16225 file_list_spec_CXX \
16226 compiler_lib_search_dirs_CXX \
16227 predep_objects_CXX \
16228 postdep_objects_CXX \
16229 predeps_CXX \
16230 postdeps_CXX \
16231 compiler_lib_search_path_CXX; do
16232 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16233 *[\\\\\\\`\\"\\\$]*)
16234 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16235 ;;
16236 *)
16237 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16238 ;;
16239 esac
16240 done
16241
16242 # Double-quote double-evaled strings.
16243 for var in reload_cmds \
16244 old_postinstall_cmds \
16245 old_postuninstall_cmds \
16246 old_archive_cmds \
16247 extract_expsyms_cmds \
16248 old_archive_from_new_cmds \
16249 old_archive_from_expsyms_cmds \
16250 archive_cmds \
16251 archive_expsym_cmds \
16252 module_cmds \
16253 module_expsym_cmds \
16254 export_symbols_cmds \
16255 prelink_cmds \
16256 postlink_cmds \
16257 postinstall_cmds \
16258 postuninstall_cmds \
16259 finish_cmds \
16260 sys_lib_search_path_spec \
16261 sys_lib_dlsearch_path_spec \
16262 reload_cmds_CXX \
16263 old_archive_cmds_CXX \
16264 old_archive_from_new_cmds_CXX \
16265 old_archive_from_expsyms_cmds_CXX \
16266 archive_cmds_CXX \
16267 archive_expsym_cmds_CXX \
16268 module_cmds_CXX \
16269 module_expsym_cmds_CXX \
16270 export_symbols_cmds_CXX \
16271 prelink_cmds_CXX \
16272 postlink_cmds_CXX; do
16273 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16274 *[\\\\\\\`\\"\\\$]*)
16275 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16276 ;;
16277 *)
16278 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16279 ;;
16280 esac
16281 done
16282
16283 ac_aux_dir='$ac_aux_dir'
16284 xsi_shell='$xsi_shell'
16285 lt_shell_append='$lt_shell_append'
16286
16287 # See if we are running on zsh, and set the options which allow our
16288 # commands through without removal of \ escapes INIT.
16289 if test -n "\${ZSH_VERSION+set}" ; then
16290 setopt NO_GLOB_SUBST
16291 fi
16292
16293
16294 PACKAGE='$PACKAGE'
16295 VERSION='$VERSION'
16296 TIMESTAMP='$TIMESTAMP'
16297 RM='$RM'
16298 ofile='$ofile'
16299
16300
16301
16302
16303
16304 _LTEOF
16305
16306 cat >>"$CONFIG_LT" <<\_LTEOF
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
16308 $as_echo "$as_me: creating $ofile" >&6;}
16309
16310
16311 # See if we are running on zsh, and set the options which allow our
16312 # commands through without removal of \ escapes.
16313 if test -n "${ZSH_VERSION+set}" ; then
16314 setopt NO_GLOB_SUBST
16315 fi
16316
16317 cfgfile="${ofile}T"
16318 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16319 $RM "$cfgfile"
16320
16321 cat <<_LT_EOF >> "$cfgfile"
16322 #! $SHELL
16323
16324 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16325 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16326 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16327 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16328 #
16329 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16330 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16331 # Foundation, Inc.
16332 # Written by Gordon Matzigkeit, 1996
16333 #
16334 # This file is part of GNU Libtool.
16335 #
16336 # GNU Libtool is free software; you can redistribute it and/or
16337 # modify it under the terms of the GNU General Public License as
16338 # published by the Free Software Foundation; either version 2 of
16339 # the License, or (at your option) any later version.
16340 #
16341 # As a special exception to the GNU General Public License,
16342 # if you distribute this file as part of a program or library that
16343 # is built using GNU Libtool, you may include this file under the
16344 # same distribution terms that you use for the rest of that program.
16345 #
16346 # GNU Libtool is distributed in the hope that it will be useful,
16347 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16348 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16349 # GNU General Public License for more details.
16350 #
16351 # You should have received a copy of the GNU General Public License
16352 # along with GNU Libtool; see the file COPYING. If not, a copy
16353 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16354 # obtained by writing to the Free Software Foundation, Inc.,
16355 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16356
16357
16358 # The names of the tagged configurations supported by this script.
16359 available_tags="CXX "
16360
16361 # ### BEGIN LIBTOOL CONFIG
16362
16363 # Which release of libtool.m4 was used?
16364 macro_version=$macro_version
16365 macro_revision=$macro_revision
16366
16367 # Assembler program.
16368 AS=$lt_AS
16369
16370 # DLL creation program.
16371 DLLTOOL=$lt_DLLTOOL
16372
16373 # Object dumper program.
16374 OBJDUMP=$lt_OBJDUMP
16375
16376 # Whether or not to build shared libraries.
16377 build_libtool_libs=$enable_shared
16378
16379 # Whether or not to build static libraries.
16380 build_old_libs=$enable_static
16381
16382 # What type of objects to build.
16383 pic_mode=$pic_mode
16384
16385 # Whether or not to optimize for fast installation.
16386 fast_install=$enable_fast_install
16387
16388 # Shell to use when invoking shell scripts.
16389 SHELL=$lt_SHELL
16390
16391 # An echo program that protects backslashes.
16392 ECHO=$lt_ECHO
16393
16394 # The PATH separator for the build system.
16395 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16396
16397 # The host system.
16398 host_alias=$host_alias
16399 host=$host
16400 host_os=$host_os
16401
16402 # The build system.
16403 build_alias=$build_alias
16404 build=$build
16405 build_os=$build_os
16406
16407 # A sed program that does not truncate output.
16408 SED=$lt_SED
16409
16410 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16411 Xsed="\$SED -e 1s/^X//"
16412
16413 # A grep program that handles long lines.
16414 GREP=$lt_GREP
16415
16416 # An ERE matcher.
16417 EGREP=$lt_EGREP
16418
16419 # A literal string matcher.
16420 FGREP=$lt_FGREP
16421
16422 # A BSD- or MS-compatible name lister.
16423 NM=$lt_NM
16424
16425 # Whether we need soft or hard links.
16426 LN_S=$lt_LN_S
16427
16428 # What is the maximum length of a command?
16429 max_cmd_len=$max_cmd_len
16430
16431 # Object file suffix (normally "o").
16432 objext=$ac_objext
16433
16434 # Executable file suffix (normally "").
16435 exeext=$exeext
16436
16437 # whether the shell understands "unset".
16438 lt_unset=$lt_unset
16439
16440 # turn spaces into newlines.
16441 SP2NL=$lt_lt_SP2NL
16442
16443 # turn newlines into spaces.
16444 NL2SP=$lt_lt_NL2SP
16445
16446 # convert \$build file names to \$host format.
16447 to_host_file_cmd=$lt_cv_to_host_file_cmd
16448
16449 # convert \$build files to toolchain format.
16450 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16451
16452 # Method to check whether dependent libraries are shared objects.
16453 deplibs_check_method=$lt_deplibs_check_method
16454
16455 # Command to use when deplibs_check_method = "file_magic".
16456 file_magic_cmd=$lt_file_magic_cmd
16457
16458 # How to find potential files when deplibs_check_method = "file_magic".
16459 file_magic_glob=$lt_file_magic_glob
16460
16461 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16462 want_nocaseglob=$lt_want_nocaseglob
16463
16464 # Command to associate shared and link libraries.
16465 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16466
16467 # The archiver.
16468 AR=$lt_AR
16469
16470 # Flags to create an archive.
16471 AR_FLAGS=$lt_AR_FLAGS
16472
16473 # How to feed a file listing to the archiver.
16474 archiver_list_spec=$lt_archiver_list_spec
16475
16476 # A symbol stripping program.
16477 STRIP=$lt_STRIP
16478
16479 # Commands used to install an old-style archive.
16480 RANLIB=$lt_RANLIB
16481 old_postinstall_cmds=$lt_old_postinstall_cmds
16482 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16483
16484 # Whether to use a lock for old archive extraction.
16485 lock_old_archive_extraction=$lock_old_archive_extraction
16486
16487 # A C compiler.
16488 LTCC=$lt_CC
16489
16490 # LTCC compiler flags.
16491 LTCFLAGS=$lt_CFLAGS
16492
16493 # Take the output of nm and produce a listing of raw symbols and C names.
16494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16495
16496 # Transform the output of nm in a proper C declaration.
16497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16498
16499 # Transform the output of nm in a C name address pair.
16500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16501
16502 # Transform the output of nm in a C name address pair when lib prefix is needed.
16503 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16504
16505 # Specify filename containing input files for \$NM.
16506 nm_file_list_spec=$lt_nm_file_list_spec
16507
16508 # The root where to search for dependent libraries,and in which our libraries should be installed.
16509 lt_sysroot=$lt_sysroot
16510
16511 # The name of the directory that contains temporary libtool files.
16512 objdir=$objdir
16513
16514 # Used to examine libraries when file_magic_cmd begins with "file".
16515 MAGIC_CMD=$MAGIC_CMD
16516
16517 # Must we lock files when doing compilation?
16518 need_locks=$lt_need_locks
16519
16520 # Manifest tool.
16521 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16522
16523 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16524 DSYMUTIL=$lt_DSYMUTIL
16525
16526 # Tool to change global to local symbols on Mac OS X.
16527 NMEDIT=$lt_NMEDIT
16528
16529 # Tool to manipulate fat objects and archives on Mac OS X.
16530 LIPO=$lt_LIPO
16531
16532 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16533 OTOOL=$lt_OTOOL
16534
16535 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16536 OTOOL64=$lt_OTOOL64
16537
16538 # Old archive suffix (normally "a").
16539 libext=$libext
16540
16541 # Shared library suffix (normally ".so").
16542 shrext_cmds=$lt_shrext_cmds
16543
16544 # The commands to extract the exported symbol list from a shared archive.
16545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16546
16547 # Variables whose values should be saved in libtool wrapper scripts and
16548 # restored at link time.
16549 variables_saved_for_relink=$lt_variables_saved_for_relink
16550
16551 # Do we need the "lib" prefix for modules?
16552 need_lib_prefix=$need_lib_prefix
16553
16554 # Do we need a version for libraries?
16555 need_version=$need_version
16556
16557 # Library versioning type.
16558 version_type=$version_type
16559
16560 # Shared library runtime path variable.
16561 runpath_var=$runpath_var
16562
16563 # Shared library path variable.
16564 shlibpath_var=$shlibpath_var
16565
16566 # Is shlibpath searched before the hard-coded library search path?
16567 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16568
16569 # Format of library name prefix.
16570 libname_spec=$lt_libname_spec
16571
16572 # List of archive names. First name is the real one, the rest are links.
16573 # The last name is the one that the linker finds with -lNAME
16574 library_names_spec=$lt_library_names_spec
16575
16576 # The coded name of the library, if different from the real name.
16577 soname_spec=$lt_soname_spec
16578
16579 # Permission mode override for installation of shared libraries.
16580 install_override_mode=$lt_install_override_mode
16581
16582 # Command to use after installation of a shared archive.
16583 postinstall_cmds=$lt_postinstall_cmds
16584
16585 # Command to use after uninstallation of a shared archive.
16586 postuninstall_cmds=$lt_postuninstall_cmds
16587
16588 # Commands used to finish a libtool library installation in a directory.
16589 finish_cmds=$lt_finish_cmds
16590
16591 # As "finish_cmds", except a single script fragment to be evaled but
16592 # not shown.
16593 finish_eval=$lt_finish_eval
16594
16595 # Whether we should hardcode library paths into libraries.
16596 hardcode_into_libs=$hardcode_into_libs
16597
16598 # Compile-time system search path for libraries.
16599 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16600
16601 # Run-time system search path for libraries.
16602 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16603
16604 # Whether dlopen is supported.
16605 dlopen_support=$enable_dlopen
16606
16607 # Whether dlopen of programs is supported.
16608 dlopen_self=$enable_dlopen_self
16609
16610 # Whether dlopen of statically linked programs is supported.
16611 dlopen_self_static=$enable_dlopen_self_static
16612
16613 # Commands to strip libraries.
16614 old_striplib=$lt_old_striplib
16615 striplib=$lt_striplib
16616
16617
16618 # The linker used to build libraries.
16619 LD=$lt_LD
16620
16621 # How to create reloadable object files.
16622 reload_flag=$lt_reload_flag
16623 reload_cmds=$lt_reload_cmds
16624
16625 # Commands used to build an old-style archive.
16626 old_archive_cmds=$lt_old_archive_cmds
16627
16628 # A language specific compiler.
16629 CC=$lt_compiler
16630
16631 # Is the compiler the GNU compiler?
16632 with_gcc=$GCC
16633
16634 # Compiler flag to turn off builtin functions.
16635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16636
16637 # Additional compiler flags for building library objects.
16638 pic_flag=$lt_lt_prog_compiler_pic
16639
16640 # How to pass a linker flag through the compiler.
16641 wl=$lt_lt_prog_compiler_wl
16642
16643 # Compiler flag to prevent dynamic linking.
16644 link_static_flag=$lt_lt_prog_compiler_static
16645
16646 # Does compiler simultaneously support -c and -o options?
16647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16648
16649 # Whether or not to add -lc for building shared libraries.
16650 build_libtool_need_lc=$archive_cmds_need_lc
16651
16652 # Whether or not to disallow shared libs when runtime libs are static.
16653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16654
16655 # Compiler flag to allow reflexive dlopens.
16656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16657
16658 # Compiler flag to generate shared objects directly from archives.
16659 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16660
16661 # Whether the compiler copes with passing no objects directly.
16662 compiler_needs_object=$lt_compiler_needs_object
16663
16664 # Create an old-style archive from a shared archive.
16665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16666
16667 # Create a temporary old-style archive to link instead of a shared archive.
16668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16669
16670 # Commands used to build a shared archive.
16671 archive_cmds=$lt_archive_cmds
16672 archive_expsym_cmds=$lt_archive_expsym_cmds
16673
16674 # Commands used to build a loadable module if different from building
16675 # a shared archive.
16676 module_cmds=$lt_module_cmds
16677 module_expsym_cmds=$lt_module_expsym_cmds
16678
16679 # Whether we are building with GNU ld or not.
16680 with_gnu_ld=$lt_with_gnu_ld
16681
16682 # Flag that allows shared libraries with undefined symbols to be built.
16683 allow_undefined_flag=$lt_allow_undefined_flag
16684
16685 # Flag that enforces no undefined symbols.
16686 no_undefined_flag=$lt_no_undefined_flag
16687
16688 # Flag to hardcode \$libdir into a binary during linking.
16689 # This must work even if \$libdir does not exist
16690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16691
16692 # Whether we need a single "-rpath" flag with a separated argument.
16693 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16694
16695 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16696 # DIR into the resulting binary.
16697 hardcode_direct=$hardcode_direct
16698
16699 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16700 # DIR into the resulting binary and the resulting library dependency is
16701 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16702 # library is relocated.
16703 hardcode_direct_absolute=$hardcode_direct_absolute
16704
16705 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16706 # into the resulting binary.
16707 hardcode_minus_L=$hardcode_minus_L
16708
16709 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16710 # into the resulting binary.
16711 hardcode_shlibpath_var=$hardcode_shlibpath_var
16712
16713 # Set to "yes" if building a shared library automatically hardcodes DIR
16714 # into the library and all subsequent libraries and executables linked
16715 # against it.
16716 hardcode_automatic=$hardcode_automatic
16717
16718 # Set to yes if linker adds runtime paths of dependent libraries
16719 # to runtime path list.
16720 inherit_rpath=$inherit_rpath
16721
16722 # Whether libtool must link a program against all its dependency libraries.
16723 link_all_deplibs=$link_all_deplibs
16724
16725 # Set to "yes" if exported symbols are required.
16726 always_export_symbols=$always_export_symbols
16727
16728 # The commands to list exported symbols.
16729 export_symbols_cmds=$lt_export_symbols_cmds
16730
16731 # Symbols that should not be listed in the preloaded symbols.
16732 exclude_expsyms=$lt_exclude_expsyms
16733
16734 # Symbols that must always be exported.
16735 include_expsyms=$lt_include_expsyms
16736
16737 # Commands necessary for linking programs (against libraries) with templates.
16738 prelink_cmds=$lt_prelink_cmds
16739
16740 # Commands necessary for finishing linking programs.
16741 postlink_cmds=$lt_postlink_cmds
16742
16743 # Specify filename containing input files.
16744 file_list_spec=$lt_file_list_spec
16745
16746 # How to hardcode a shared library path into an executable.
16747 hardcode_action=$hardcode_action
16748
16749 # The directories searched by this compiler when creating a shared library.
16750 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16751
16752 # Dependencies to place before and after the objects being linked to
16753 # create a shared library.
16754 predep_objects=$lt_predep_objects
16755 postdep_objects=$lt_postdep_objects
16756 predeps=$lt_predeps
16757 postdeps=$lt_postdeps
16758
16759 # The library search path used internally by the compiler when linking
16760 # a shared library.
16761 compiler_lib_search_path=$lt_compiler_lib_search_path
16762
16763 # ### END LIBTOOL CONFIG
16764
16765 _LT_EOF
16766
16767 case $host_os in
16768 aix3*)
16769 cat <<\_LT_EOF >> "$cfgfile"
16770 # AIX sometimes has problems with the GCC collect2 program. For some
16771 # reason, if we set the COLLECT_NAMES environment variable, the problems
16772 # vanish in a puff of smoke.
16773 if test "X${COLLECT_NAMES+set}" != Xset; then
16774 COLLECT_NAMES=
16775 export COLLECT_NAMES
16776 fi
16777 _LT_EOF
16778 ;;
16779 esac
16780
16781
16782 ltmain="$ac_aux_dir/ltmain.sh"
16783
16784
16785 # We use sed instead of cat because bash on DJGPP gets confused if
16786 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16787 # text mode, it properly converts lines to CR/LF. This bash problem
16788 # is reportedly fixed, but why not run on old versions too?
16789 sed '$q' "$ltmain" >> "$cfgfile" \
16790 || (rm -f "$cfgfile"; exit 1)
16791
16792 if test x"$xsi_shell" = xyes; then
16793 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16794 func_dirname ()\
16795 {\
16796 \ case ${1} in\
16797 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16798 \ * ) func_dirname_result="${3}" ;;\
16799 \ esac\
16800 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16801 && mv -f "$cfgfile.tmp" "$cfgfile" \
16802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16803 test 0 -eq $? || _lt_function_replace_fail=:
16804
16805
16806 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16807 func_basename ()\
16808 {\
16809 \ func_basename_result="${1##*/}"\
16810 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16811 && mv -f "$cfgfile.tmp" "$cfgfile" \
16812 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16813 test 0 -eq $? || _lt_function_replace_fail=:
16814
16815
16816 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16817 func_dirname_and_basename ()\
16818 {\
16819 \ case ${1} in\
16820 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16821 \ * ) func_dirname_result="${3}" ;;\
16822 \ esac\
16823 \ func_basename_result="${1##*/}"\
16824 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16825 && mv -f "$cfgfile.tmp" "$cfgfile" \
16826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16827 test 0 -eq $? || _lt_function_replace_fail=:
16828
16829
16830 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16831 func_stripname ()\
16832 {\
16833 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16834 \ # positional parameters, so assign one to ordinary parameter first.\
16835 \ func_stripname_result=${3}\
16836 \ func_stripname_result=${func_stripname_result#"${1}"}\
16837 \ func_stripname_result=${func_stripname_result%"${2}"}\
16838 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16839 && mv -f "$cfgfile.tmp" "$cfgfile" \
16840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16841 test 0 -eq $? || _lt_function_replace_fail=:
16842
16843
16844 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16845 func_split_long_opt ()\
16846 {\
16847 \ func_split_long_opt_name=${1%%=*}\
16848 \ func_split_long_opt_arg=${1#*=}\
16849 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16850 && mv -f "$cfgfile.tmp" "$cfgfile" \
16851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16852 test 0 -eq $? || _lt_function_replace_fail=:
16853
16854
16855 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16856 func_split_short_opt ()\
16857 {\
16858 \ func_split_short_opt_arg=${1#??}\
16859 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16860 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16861 && mv -f "$cfgfile.tmp" "$cfgfile" \
16862 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16863 test 0 -eq $? || _lt_function_replace_fail=:
16864
16865
16866 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16867 func_lo2o ()\
16868 {\
16869 \ case ${1} in\
16870 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16871 \ *) func_lo2o_result=${1} ;;\
16872 \ esac\
16873 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16874 && mv -f "$cfgfile.tmp" "$cfgfile" \
16875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16876 test 0 -eq $? || _lt_function_replace_fail=:
16877
16878
16879 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16880 func_xform ()\
16881 {\
16882 func_xform_result=${1%.*}.lo\
16883 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16884 && mv -f "$cfgfile.tmp" "$cfgfile" \
16885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16886 test 0 -eq $? || _lt_function_replace_fail=:
16887
16888
16889 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16890 func_arith ()\
16891 {\
16892 func_arith_result=$(( $* ))\
16893 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16894 && mv -f "$cfgfile.tmp" "$cfgfile" \
16895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16896 test 0 -eq $? || _lt_function_replace_fail=:
16897
16898
16899 sed -e '/^func_len ()$/,/^} # func_len /c\
16900 func_len ()\
16901 {\
16902 func_len_result=${#1}\
16903 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16904 && mv -f "$cfgfile.tmp" "$cfgfile" \
16905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16906 test 0 -eq $? || _lt_function_replace_fail=:
16907
16908 fi
16909
16910 if test x"$lt_shell_append" = xyes; then
16911 sed -e '/^func_append ()$/,/^} # func_append /c\
16912 func_append ()\
16913 {\
16914 eval "${1}+=\\${2}"\
16915 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16916 && mv -f "$cfgfile.tmp" "$cfgfile" \
16917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16918 test 0 -eq $? || _lt_function_replace_fail=:
16919
16920
16921 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16922 func_append_quoted ()\
16923 {\
16924 \ func_quote_for_eval "${2}"\
16925 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16926 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16927 && mv -f "$cfgfile.tmp" "$cfgfile" \
16928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16929 test 0 -eq $? || _lt_function_replace_fail=:
16930
16931
16932 # Save a `func_append' function call where possible by direct use of '+='
16933 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16934 && mv -f "$cfgfile.tmp" "$cfgfile" \
16935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16936 test 0 -eq $? || _lt_function_replace_fail=:
16937 else
16938 # Save a `func_append' function call even when '+=' is not available
16939 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16940 && mv -f "$cfgfile.tmp" "$cfgfile" \
16941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16942 test 0 -eq $? || _lt_function_replace_fail=:
16943 fi
16944
16945 if test x"$_lt_function_replace_fail" = x":"; then
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16947 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16948 fi
16949
16950
16951 mv -f "$cfgfile" "$ofile" ||
16952 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16953 chmod +x "$ofile"
16954
16955
16956 cat <<_LT_EOF >> "$ofile"
16957
16958 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16959
16960 # The linker used to build libraries.
16961 LD=$lt_LD_CXX
16962
16963 # How to create reloadable object files.
16964 reload_flag=$lt_reload_flag_CXX
16965 reload_cmds=$lt_reload_cmds_CXX
16966
16967 # Commands used to build an old-style archive.
16968 old_archive_cmds=$lt_old_archive_cmds_CXX
16969
16970 # A language specific compiler.
16971 CC=$lt_compiler_CXX
16972
16973 # Is the compiler the GNU compiler?
16974 with_gcc=$GCC_CXX
16975
16976 # Compiler flag to turn off builtin functions.
16977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16978
16979 # Additional compiler flags for building library objects.
16980 pic_flag=$lt_lt_prog_compiler_pic_CXX
16981
16982 # How to pass a linker flag through the compiler.
16983 wl=$lt_lt_prog_compiler_wl_CXX
16984
16985 # Compiler flag to prevent dynamic linking.
16986 link_static_flag=$lt_lt_prog_compiler_static_CXX
16987
16988 # Does compiler simultaneously support -c and -o options?
16989 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16990
16991 # Whether or not to add -lc for building shared libraries.
16992 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16993
16994 # Whether or not to disallow shared libs when runtime libs are static.
16995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16996
16997 # Compiler flag to allow reflexive dlopens.
16998 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16999
17000 # Compiler flag to generate shared objects directly from archives.
17001 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17002
17003 # Whether the compiler copes with passing no objects directly.
17004 compiler_needs_object=$lt_compiler_needs_object_CXX
17005
17006 # Create an old-style archive from a shared archive.
17007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17008
17009 # Create a temporary old-style archive to link instead of a shared archive.
17010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17011
17012 # Commands used to build a shared archive.
17013 archive_cmds=$lt_archive_cmds_CXX
17014 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17015
17016 # Commands used to build a loadable module if different from building
17017 # a shared archive.
17018 module_cmds=$lt_module_cmds_CXX
17019 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17020
17021 # Whether we are building with GNU ld or not.
17022 with_gnu_ld=$lt_with_gnu_ld_CXX
17023
17024 # Flag that allows shared libraries with undefined symbols to be built.
17025 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17026
17027 # Flag that enforces no undefined symbols.
17028 no_undefined_flag=$lt_no_undefined_flag_CXX
17029
17030 # Flag to hardcode \$libdir into a binary during linking.
17031 # This must work even if \$libdir does not exist
17032 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17033
17034 # Whether we need a single "-rpath" flag with a separated argument.
17035 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17036
17037 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17038 # DIR into the resulting binary.
17039 hardcode_direct=$hardcode_direct_CXX
17040
17041 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17042 # DIR into the resulting binary and the resulting library dependency is
17043 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17044 # library is relocated.
17045 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17046
17047 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17048 # into the resulting binary.
17049 hardcode_minus_L=$hardcode_minus_L_CXX
17050
17051 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17052 # into the resulting binary.
17053 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17054
17055 # Set to "yes" if building a shared library automatically hardcodes DIR
17056 # into the library and all subsequent libraries and executables linked
17057 # against it.
17058 hardcode_automatic=$hardcode_automatic_CXX
17059
17060 # Set to yes if linker adds runtime paths of dependent libraries
17061 # to runtime path list.
17062 inherit_rpath=$inherit_rpath_CXX
17063
17064 # Whether libtool must link a program against all its dependency libraries.
17065 link_all_deplibs=$link_all_deplibs_CXX
17066
17067 # Set to "yes" if exported symbols are required.
17068 always_export_symbols=$always_export_symbols_CXX
17069
17070 # The commands to list exported symbols.
17071 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17072
17073 # Symbols that should not be listed in the preloaded symbols.
17074 exclude_expsyms=$lt_exclude_expsyms_CXX
17075
17076 # Symbols that must always be exported.
17077 include_expsyms=$lt_include_expsyms_CXX
17078
17079 # Commands necessary for linking programs (against libraries) with templates.
17080 prelink_cmds=$lt_prelink_cmds_CXX
17081
17082 # Commands necessary for finishing linking programs.
17083 postlink_cmds=$lt_postlink_cmds_CXX
17084
17085 # Specify filename containing input files.
17086 file_list_spec=$lt_file_list_spec_CXX
17087
17088 # How to hardcode a shared library path into an executable.
17089 hardcode_action=$hardcode_action_CXX
17090
17091 # The directories searched by this compiler when creating a shared library.
17092 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17093
17094 # Dependencies to place before and after the objects being linked to
17095 # create a shared library.
17096 predep_objects=$lt_predep_objects_CXX
17097 postdep_objects=$lt_postdep_objects_CXX
17098 predeps=$lt_predeps_CXX
17099 postdeps=$lt_postdeps_CXX
17100
17101 # The library search path used internally by the compiler when linking
17102 # a shared library.
17103 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17104
17105 # ### END LIBTOOL TAG CONFIG: CXX
17106 _LT_EOF
17107
17108
17109 as_fn_exit 0
17110 _LTEOF
17111 chmod +x "$CONFIG_LT"
17112
17113 # configure is writing to config.log, but config.lt does its own redirection,
17114 # appending to config.log, which fails on DOS, as config.log is still kept
17115 # open by configure. Here we exec the FD to /dev/null, effectively closing
17116 # config.log, so it can be properly (re)opened and appended to by config.lt.
17117 lt_cl_success=:
17118 test "$silent" = yes &&
17119 lt_config_lt_args="$lt_config_lt_args --quiet"
17120 exec 5>/dev/null
17121 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
17122 exec 5>>config.log
17123 $lt_cl_success || as_fn_exit 1
17124
17125
17126 # Check for threads.
17127 #
17128
17129
17130 threads_thread_keyword=no
17131
17132 # Check whether --enable-threads was given.
17133 if test "${enable_threads+set}" = set; then :
17134 enableval=$enable_threads; if test x"$enableval" = xno; then :
17135 threads=none
17136 else
17137 threads=check
17138 fi
17139 else
17140 threads=check
17141 fi
17142
17143
17144 # If thread support is not disabled by the user, figure out what we can use.
17145 #
17146 if test x$threads = xcheck; then
17147 case $host_os in
17148 windows* | mingw*)
17149 case $host_os in
17150 mingw*)
17151 CXXFLAGS="$CXXFLAGS -mthreads"
17152 ;;
17153 esac
17154
17155 # Newer versions of GCC can be configured to use either Win32 or POSIX
17156 # threads. It appears that -mthreads should be used in both cases but
17157 # if the model is POSIX then GCC will also link -lpthread by default.
17158 # Use that fact to test which model we have.
17159 #
17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h. */
17162 #include <pthread.h>
17163 int
17164 main ()
17165 {
17166 pthread_create(0,0,0,0);
17167 ;
17168 return 0;
17169 }
17170 _ACEOF
17171 if ac_fn_cxx_try_link "$LINENO"; then :
17172 threads=posix
17173 else
17174 threads=win32
17175 fi
17176 rm -f core conftest.err conftest.$ac_objext \
17177 conftest$ac_exeext conftest.$ac_ext
17178 ;;
17179 *)
17180
17181
17182
17183 ac_ext=cpp
17184 ac_cpp='$CXXCPP $CPPFLAGS'
17185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17188
17189 acx_pthread_ok=no
17190
17191 # We used to check for pthread.h first, but this fails if pthread.h
17192 # requires special compiler flags (e.g. on True64 or Sequent).
17193 # It gets checked for in the link test anyway.
17194
17195 # First of all, check if the user has set any of the PTHREAD_LIBS,
17196 # etcetera environment variables, and if threads linking works using
17197 # them:
17198 if test x"$PTHREAD_LIBS$PTHREAD_CXXFLAGS" != x; then
17199 save_CXXFLAGS="$CXXFLAGS"
17200 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17201 save_LIBS="$LIBS"
17202 LIBS="$PTHREAD_LIBS $LIBS"
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS" >&5
17204 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS... " >&6; }
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17207
17208 /* Override any GCC internal prototype to avoid an error.
17209 Use char because int might match the return type of a GCC
17210 builtin and then its argument prototype would still apply. */
17211 #ifdef __cplusplus
17212 extern "C"
17213 #endif
17214 char pthread_join ();
17215 int
17216 main ()
17217 {
17218 return pthread_join ();
17219 ;
17220 return 0;
17221 }
17222 _ACEOF
17223 if ac_fn_cxx_try_link "$LINENO"; then :
17224 acx_pthread_ok=yes
17225 fi
17226 rm -f core conftest.err conftest.$ac_objext \
17227 conftest$ac_exeext conftest.$ac_ext
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17229 $as_echo "$acx_pthread_ok" >&6; }
17230 if test x"$acx_pthread_ok" = xno; then
17231 PTHREAD_LIBS=""
17232 PTHREAD_CXXFLAGS=""
17233 fi
17234 LIBS="$save_LIBS"
17235 CXXFLAGS="$save_CXXFLAGS"
17236 fi
17237
17238 # We must check for the threads library under a number of different
17239 # names; the ordering is very important because some systems
17240 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17241 # libraries is broken (non-POSIX).
17242
17243 # Create a list of thread flags to try. Items starting with a "-" are
17244 # C compiler flags, and other items are library names, except for "none"
17245 # which indicates that we try without any flags at all, and "pthread-config"
17246 # which is a program returning the flags for the Pth emulation library.
17247
17248 # CS: On GNU/Linux with gcc both -pthread and -lpthread are valid.
17249 # However, libtool links libraries with -nostdlib which results in
17250 # -pthread being stripped from the linker command line. To resolve
17251 # this we move pthread from after -mthreads to after pthreads.
17252 #
17253 acx_pthread_flags="pthreads pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
17254
17255 # The ordering *is* (sometimes) important. Some notes on the
17256 # individual items follow:
17257
17258 # pthreads: AIX (must check this before -lpthread)
17259 # none: in case threads are in libc; should be tried before -Kthread and
17260 # other compiler flags to prevent continual compiler warnings
17261 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17262 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17263 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17264 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17265 # -pthreads: Solaris/gcc
17266 # -mthreads: Mingw32/gcc, Lynx/gcc
17267 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17268 # doesn't hurt to check since this sometimes defines pthreads too;
17269 # also defines -D_REENTRANT)
17270 # ... -mt is also the pthreads flag for HP/aCC
17271 # pthread: Linux, etcetera
17272 # --thread-safe: KAI C++
17273 # pthread-config: use pthread-config program (for GNU Pth library)
17274
17275 case "${host_cpu}-${host_os}" in
17276 *solaris*)
17277
17278 # On Solaris (at least, for some versions), libc contains stubbed
17279 # (non-functional) versions of the pthreads routines, so link-based
17280 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
17281 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
17282 # a function called by this macro, so we could check for that, but
17283 # who knows whether they'll stub that too in a future libc.) So,
17284 # we'll just look for -pthreads and -lpthread first:
17285
17286 # CS: Move -mt to the front of the list; Sun CC will use -mt,
17287 # gcc will use -pthreads.
17288 #
17289 acx_pthread_flags="-mt -pthreads pthread -pthread $acx_pthread_flags"
17290 ;;
17291 esac
17292
17293 if test x"$acx_pthread_ok" = xno; then
17294 for flag in $acx_pthread_flags; do
17295
17296 case $flag in
17297 none)
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17299 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
17300 ;;
17301
17302 -*)
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17304 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
17305 PTHREAD_CXXFLAGS="$flag"
17306 ;;
17307
17308 pthread-config)
17309 # Extract the first word of "pthread-config", so it can be a program name with args.
17310 set dummy pthread-config; ac_word=$2
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17312 $as_echo_n "checking for $ac_word... " >&6; }
17313 if ${ac_cv_prog_acx_pthread_config+:} false; then :
17314 $as_echo_n "(cached) " >&6
17315 else
17316 if test -n "$acx_pthread_config"; then
17317 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17318 else
17319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17320 for as_dir in $PATH
17321 do
17322 IFS=$as_save_IFS
17323 test -z "$as_dir" && as_dir=.
17324 for ac_exec_ext in '' $ac_executable_extensions; do
17325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17326 ac_cv_prog_acx_pthread_config="yes"
17327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17328 break 2
17329 fi
17330 done
17331 done
17332 IFS=$as_save_IFS
17333
17334 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17335 fi
17336 fi
17337 acx_pthread_config=$ac_cv_prog_acx_pthread_config
17338 if test -n "$acx_pthread_config"; then
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17340 $as_echo "$acx_pthread_config" >&6; }
17341 else
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17343 $as_echo "no" >&6; }
17344 fi
17345
17346
17347 if test x"$acx_pthread_config" = xno; then continue; fi
17348 PTHREAD_CXXFLAGS="`pthread-config --cflags`"
17349 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17350 ;;
17351
17352 *)
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17354 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17355 PTHREAD_LIBS="-l$flag"
17356 ;;
17357 esac
17358
17359 save_LIBS="$LIBS"
17360 save_CXXFLAGS="$CXXFLAGS"
17361 LIBS="$PTHREAD_LIBS $LIBS"
17362 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17363
17364 # Check for various functions. We must include pthread.h,
17365 # since some functions may be macros. (On the Sequent, we
17366 # need a special flag -Kthread to make this header compile.)
17367 # We check for pthread_join because it is in -lpthread on IRIX
17368 # while pthread_create is in libc. We check for pthread_attr_init
17369 # due to DEC craziness with -lpthreads. We check for
17370 # pthread_cleanup_push because it is one of the few pthread
17371 # functions on Solaris that doesn't have a non-functional libc stub.
17372 # We try pthread_create on general principles.
17373 #
17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375 /* end confdefs.h. */
17376 #include <pthread.h>
17377 int
17378 main ()
17379 {
17380 pthread_t th; pthread_join(th, 0);
17381 pthread_attr_init(0); pthread_cleanup_push(0, 0);
17382 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17383 ;
17384 return 0;
17385 }
17386 _ACEOF
17387 if ac_fn_cxx_try_link "$LINENO"; then :
17388 acx_pthread_ok=yes
17389 fi
17390 rm -f core conftest.err conftest.$ac_objext \
17391 conftest$ac_exeext conftest.$ac_ext
17392
17393 LIBS="$save_LIBS"
17394 CXXFLAGS="$save_CXXFLAGS"
17395
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17397 $as_echo "$acx_pthread_ok" >&6; }
17398 if test "x$acx_pthread_ok" = xyes; then
17399 break;
17400 fi
17401
17402 PTHREAD_LIBS=""
17403 PTHREAD_CXXFLAGS=""
17404 done
17405 fi
17406
17407 # Various other checks:
17408 if test "x$acx_pthread_ok" = xyes; then
17409 save_LIBS="$LIBS"
17410 LIBS="$PTHREAD_LIBS $LIBS"
17411 save_CXXFLAGS="$CXXFLAGS"
17412 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17413
17414
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17416 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17417 flag=no
17418 case "${host_cpu}-${host_os}" in
17419 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17420 # CS: Add _REENTRANT in Linux to emulate -pthread.
17421 #
17422 *-linux* | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17423 esac
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17425 $as_echo "${flag}" >&6; }
17426 if test "x$flag" != xno; then
17427 PTHREAD_CXXFLAGS="$flag $PTHREAD_CXXFLAGS"
17428 fi
17429
17430 LIBS="$save_LIBS"
17431 CXXFLAGS="$save_CXXFLAGS"
17432
17433
17434 else
17435 PTHREAD_CXX="$CXX"
17436 fi
17437
17438
17439
17440
17441
17442 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17443 if test x"$acx_pthread_ok" = xyes; then
17444
17445 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17446
17447 :
17448 else
17449 acx_pthread_ok=no
17450
17451 fi
17452 ac_ext=cpp
17453 ac_cpp='$CXXCPP $CPPFLAGS'
17454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17457
17458
17459
17460 if test x$acx_pthread_ok = xyes; then
17461 threads=posix
17462 LIBS="$LIBS $PTHREAD_LIBS"
17463 CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
17464
17465 # Check if we can use the __thread keyword.
17466 #
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread keyword" >&5
17468 $as_echo_n "checking for __thread keyword... " >&6; }
17469
17470
17471
17472 ac_ext=cpp
17473 ac_cpp='$CXXCPP $CPPFLAGS'
17474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17477
17478
17479 if test -d .libs; then
17480 delete_libs_dir=no
17481 else
17482 delete_libs_dir=yes
17483 fi
17484
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17487
17488
17489 __thread int tls_var;
17490
17491 int
17492 main ()
17493 {
17494 tls_var = 0;
17495 }
17496
17497 _ACEOF
17498 if ac_fn_cxx_try_compile "$LINENO"; then :
17499
17500 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17501 if { { case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504 esac
17505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17506 $as_echo "$ac_try_echo"; } >&5
17507 (eval "$ac_try") 2>&5
17508 ac_status=$?
17509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17510 test $ac_status = 0; }; then
17511 libtool_link_ok=yes
17512 else
17513 libtool_link_ok=no
17514 fi
17515
17516 else
17517
17518 libtool_link_ok=no
17519
17520 fi
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522
17523 if test x"$delete_libs_dir" = xyes; then
17524 rm -rf .libs
17525 fi
17526
17527 if test x"$libtool_link_ok" = xyes; then
17528 threads_thread_keyword=yes
17529 :
17530 else
17531
17532 :
17533 fi
17534
17535 ac_ext=cpp
17536 ac_cpp='$CXXCPP $CPPFLAGS'
17537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17540
17541
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $threads_thread_keyword" >&5
17543 $as_echo "$threads_thread_keyword" >&6; }
17544 fi
17545 ;;
17546 esac
17547 fi
17548
17549 if test x$threads = xcheck; then
17550 as_fn_error $? "thread support not available; use --disable-threads to force single-threaded mode" "$LINENO" 5
17551 fi
17552
17553
17554 # Check for Qt.
17555 #
17556
17557 libqt_found=no
17558
17559 # QtCore libraries and pkg-config names in the order we should try
17560 # them.
17561 #
17562 libqt_lib_names="Qt5Core QtCore5 QtCore Qt4Core QtCore4"
17563 libqt_pkg_names="Qt5Core QtCore"
17564
17565 # Extract the first word of "pkg-config", so it can be a program name with args.
17566 set dummy pkg-config; ac_word=$2
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17568 $as_echo_n "checking for $ac_word... " >&6; }
17569 if ${ac_cv_path_pkg_config+:} false; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572 case $pkg_config in
17573 [\\/]* | ?:[\\/]*)
17574 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
17575 ;;
17576 *)
17577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17578 for as_dir in $PATH
17579 do
17580 IFS=$as_save_IFS
17581 test -z "$as_dir" && as_dir=.
17582 for ac_exec_ext in '' $ac_executable_extensions; do
17583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17584 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
17585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17586 break 2
17587 fi
17588 done
17589 done
17590 IFS=$as_save_IFS
17591
17592 ;;
17593 esac
17594 fi
17595 pkg_config=$ac_cv_path_pkg_config
17596 if test -n "$pkg_config"; then
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config" >&5
17598 $as_echo "$pkg_config" >&6; }
17599 else
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17601 $as_echo "no" >&6; }
17602 fi
17603
17604
17605
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore" >&5
17607 $as_echo_n "checking for QtCore... " >&6; }
17608
17609 # First check for QtCore using default CPPFLAGS/LDFLAGS/LIBS. This
17610 # test allows the user to override the QtCore library name (e.g.,
17611 # QtCored4, Qt5Core) via the LIBS variable.
17612 #
17613
17614
17615
17616 ac_ext=cpp
17617 ac_cpp='$CXXCPP $CPPFLAGS'
17618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17621
17622
17623 if test -d .libs; then
17624 delete_libs_dir=no
17625 else
17626 delete_libs_dir=yes
17627 fi
17628
17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630 /* end confdefs.h. */
17631
17632
17633 // See libodb-qt/odb/qt/details/config.hxx for more information on
17634 // what's going on here.
17635 //
17636 # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__)
17637 # include <QtCore/qconfig.h> // QT_REDUCE_RELOCATIONS
17638 # ifdef QT_REDUCE_RELOCATIONS
17639 # define __PIE__
17640 # endif
17641 # endif
17642 #include <string>
17643 #include <QtCore/QString>
17644
17645 int
17646 main ()
17647 {
17648 QString qs ("test");
17649 std::string ss (qs.toStdString ());
17650 return ss.size () != 0;
17651 }
17652
17653 _ACEOF
17654 if ac_fn_cxx_try_compile "$LINENO"; then :
17655
17656 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17657 if { { case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17660 esac
17661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17662 $as_echo "$ac_try_echo"; } >&5
17663 (eval "$ac_try") 2>&5
17664 ac_status=$?
17665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17666 test $ac_status = 0; }; then
17667 libtool_link_ok=yes
17668 else
17669 libtool_link_ok=no
17670 fi
17671
17672 else
17673
17674 libtool_link_ok=no
17675
17676 fi
17677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17678
17679 if test x"$delete_libs_dir" = xyes; then
17680 rm -rf .libs
17681 fi
17682
17683 if test x"$libtool_link_ok" = xyes; then
17684 libqt_found=yes
17685 :
17686 else
17687
17688 :
17689 fi
17690
17691 ac_ext=cpp
17692 ac_cpp='$CXXCPP $CPPFLAGS'
17693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17696
17697
17698
17699 # Then check for QtCore using default CPPFLAGS/LDFLAGS.
17700 #
17701 if test x"$libqt_found" = xno; then
17702 for lib in $libqt_lib_names; do
17703 save_LIBS="$LIBS"
17704 LIBS="-l$lib $LIBS"
17705
17706
17707
17708
17709 ac_ext=cpp
17710 ac_cpp='$CXXCPP $CPPFLAGS'
17711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17714
17715
17716 if test -d .libs; then
17717 delete_libs_dir=no
17718 else
17719 delete_libs_dir=yes
17720 fi
17721
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17724
17725
17726 // See libodb-qt/odb/qt/details/config.hxx for more information on
17727 // what's going on here.
17728 //
17729 # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__)
17730 # include <QtCore/qconfig.h> // QT_REDUCE_RELOCATIONS
17731 # ifdef QT_REDUCE_RELOCATIONS
17732 # define __PIE__
17733 # endif
17734 # endif
17735 #include <string>
17736 #include <QtCore/QString>
17737
17738 int
17739 main ()
17740 {
17741 QString qs ("test");
17742 std::string ss (qs.toStdString ());
17743 return ss.size () != 0;
17744 }
17745
17746 _ACEOF
17747 if ac_fn_cxx_try_compile "$LINENO"; then :
17748
17749 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17750 if { { case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17753 esac
17754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17755 $as_echo "$ac_try_echo"; } >&5
17756 (eval "$ac_try") 2>&5
17757 ac_status=$?
17758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17759 test $ac_status = 0; }; then
17760 libtool_link_ok=yes
17761 else
17762 libtool_link_ok=no
17763 fi
17764
17765 else
17766
17767 libtool_link_ok=no
17768
17769 fi
17770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17771
17772 if test x"$delete_libs_dir" = xyes; then
17773 rm -rf .libs
17774 fi
17775
17776 if test x"$libtool_link_ok" = xyes; then
17777 libqt_found=yes
17778 :
17779 else
17780
17781 :
17782 fi
17783
17784 ac_ext=cpp
17785 ac_cpp='$CXXCPP $CPPFLAGS'
17786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17789
17790
17791
17792 if test x"$libqt_found" = xno; then
17793 LIBS="$save_LIBS"
17794 else
17795 break
17796 fi
17797 done
17798 fi
17799
17800 # Try framework in case we are on Mac OS X.
17801 #
17802 if test x"$libqt_found" = xno; then
17803 save_LIBS="$LIBS"
17804 LIBS="-framework QtCore $LIBS"
17805
17806
17807
17808
17809 ac_ext=cpp
17810 ac_cpp='$CXXCPP $CPPFLAGS'
17811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17814
17815
17816 if test -d .libs; then
17817 delete_libs_dir=no
17818 else
17819 delete_libs_dir=yes
17820 fi
17821
17822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823 /* end confdefs.h. */
17824
17825
17826 // See libodb-qt/odb/qt/details/config.hxx for more information on
17827 // what's going on here.
17828 //
17829 # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__)
17830 # include <QtCore/qconfig.h> // QT_REDUCE_RELOCATIONS
17831 # ifdef QT_REDUCE_RELOCATIONS
17832 # define __PIE__
17833 # endif
17834 # endif
17835 #include <string>
17836 #include <QtCore/QString>
17837
17838 int
17839 main ()
17840 {
17841 QString qs ("test");
17842 std::string ss (qs.toStdString ());
17843 return ss.size () != 0;
17844 }
17845
17846 _ACEOF
17847 if ac_fn_cxx_try_compile "$LINENO"; then :
17848
17849 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17850 if { { case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17853 esac
17854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17855 $as_echo "$ac_try_echo"; } >&5
17856 (eval "$ac_try") 2>&5
17857 ac_status=$?
17858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17859 test $ac_status = 0; }; then
17860 libtool_link_ok=yes
17861 else
17862 libtool_link_ok=no
17863 fi
17864
17865 else
17866
17867 libtool_link_ok=no
17868
17869 fi
17870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871
17872 if test x"$delete_libs_dir" = xyes; then
17873 rm -rf .libs
17874 fi
17875
17876 if test x"$libtool_link_ok" = xyes; then
17877 libqt_found=yes
17878 :
17879 else
17880
17881 :
17882 fi
17883
17884 ac_ext=cpp
17885 ac_cpp='$CXXCPP $CPPFLAGS'
17886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17889
17890
17891
17892 if test x"$libqt_found" = xno; then
17893 LIBS="$save_LIBS"
17894 fi
17895 fi
17896
17897 # If default CPPFLAGS/LDFLAGS didn't work, try to discover
17898 # them using pkg-config.
17899 #
17900 if test x"$libqt_found" = xno; then
17901 if test x"$pkg_config" != x; then
17902 for pkg in $libqt_pkg_names; do
17903 if $pkg_config --exists $pkg; then
17904 save_CPPFLAGS="$CPPFLAGS"
17905 save_LIBS="$LIBS"
17906
17907 CPPFLAGS=`$pkg_config --cflags $pkg`
17908 LIBS=`$pkg_config --libs $pkg`
17909
17910 CPPFLAGS="$CPPFLAGS $save_CPPFLAGS"
17911 LIBS="$LIBS $save_LIBS"
17912
17913
17914
17915
17916 ac_ext=cpp
17917 ac_cpp='$CXXCPP $CPPFLAGS'
17918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17921
17922
17923 if test -d .libs; then
17924 delete_libs_dir=no
17925 else
17926 delete_libs_dir=yes
17927 fi
17928
17929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17930 /* end confdefs.h. */
17931
17932
17933 // See libodb-qt/odb/qt/details/config.hxx for more information on
17934 // what's going on here.
17935 //
17936 # if defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__)
17937 # include <QtCore/qconfig.h> // QT_REDUCE_RELOCATIONS
17938 # ifdef QT_REDUCE_RELOCATIONS
17939 # define __PIE__
17940 # endif
17941 # endif
17942 #include <string>
17943 #include <QtCore/QString>
17944
17945 int
17946 main ()
17947 {
17948 QString qs ("test");
17949 std::string ss (qs.toStdString ());
17950 return ss.size () != 0;
17951 }
17952
17953 _ACEOF
17954 if ac_fn_cxx_try_compile "$LINENO"; then :
17955
17956 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
17957 if { { case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17960 esac
17961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17962 $as_echo "$ac_try_echo"; } >&5
17963 (eval "$ac_try") 2>&5
17964 ac_status=$?
17965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17966 test $ac_status = 0; }; then
17967 libtool_link_ok=yes
17968 else
17969 libtool_link_ok=no
17970 fi
17971
17972 else
17973
17974 libtool_link_ok=no
17975
17976 fi
17977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978
17979 if test x"$delete_libs_dir" = xyes; then
17980 rm -rf .libs
17981 fi
17982
17983 if test x"$libtool_link_ok" = xyes; then
17984 libqt_found=yes
17985 :
17986 else
17987
17988 :
17989 fi
17990
17991 ac_ext=cpp
17992 ac_cpp='$CXXCPP $CPPFLAGS'
17993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17996
17997
17998
17999 if test x"$libqt_found" = xno; then
18000 CPPFLAGS="$save_CPPFLAGS"
18001 LIBS="$save_LIBS"
18002 else
18003 break
18004 fi
18005 fi
18006 done
18007 fi
18008 fi
18009
18010 if test x"$libqt_found" = xyes; then
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18012 $as_echo "yes" >&6; }
18013
18014 else
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18016 $as_echo "no" >&6; }
18017 as_fn_error $? "QtCore is not found; consider using CPPFLAGS/LDFLAGS to specify its location" "$LINENO" 5
18018 fi
18019
18020
18021 # Check for libodb.
18022 #
18023
18024 libodb_found=no
18025
18026
18027 # Check whether --with-libodb was given.
18028 if test "${with_libodb+set}" = set; then :
18029 withval=$with_libodb; libodb_dir=${withval}
18030 else
18031 libodb_dir=
18032 fi
18033
18034
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libodb" >&5
18036 $as_echo_n "checking for libodb... " >&6; }
18037
18038 # If libodb_dir was given, add the necessary preprocessor and linker flags.
18039 #
18040 if test x"$libodb_dir" != x; then
18041 save_CPPFLAGS="$CPPFLAGS"
18042 save_LDFLAGS="$LDFLAGS"
18043
18044 case $ac_pwd in #((
18045 .) abs_libodb_dir=$libodb_dir;;
18046 *)
18047 case $libodb_dir in #(((
18048 .) abs_libodb_dir=$ac_pwd;;
18049 [\\/]* | ?:[\\/]* ) abs_libodb_dir=$libodb_dir;;
18050 *) abs_libodb_dir=$ac_pwd/$libodb_dir;;
18051 esac;;
18052 esac
18053
18054 CPPFLAGS="$CPPFLAGS -I$abs_libodb_dir"
18055 LDFLAGS="$LDFLAGS -L$abs_libodb_dir/odb"
18056 fi
18057
18058 save_LIBS="$LIBS"
18059 LIBS="-lodb $LIBS"
18060
18061
18062
18063 ac_ext=cpp
18064 ac_cpp='$CXXCPP $CPPFLAGS'
18065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18068
18069
18070 if test -d .libs; then
18071 delete_libs_dir=no
18072 else
18073 delete_libs_dir=yes
18074 fi
18075
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078
18079
18080 #include <odb/exception.hxx>
18081
18082 void
18083 f ()
18084 {
18085 }
18086
18087 const char*
18088 g ()
18089 {
18090 try
18091 {
18092 f ();
18093 }
18094 catch (const odb::exception& e)
18095 {
18096 return e.what ();
18097 }
18098 return 0;
18099 }
18100
18101 int
18102 main ()
18103 {
18104 const char* m (g ());
18105 return m != 0;
18106 }
18107
18108 _ACEOF
18109 if ac_fn_cxx_try_compile "$LINENO"; then :
18110
18111 ac_try='./libtool --tag=CXX --mode=link $CXX -no-install $CXXFLAGS $LDFLAGS -o conftest conftest.$OBJEXT $LIBS >&5'
18112 if { { case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115 esac
18116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18117 $as_echo "$ac_try_echo"; } >&5
18118 (eval "$ac_try") 2>&5
18119 ac_status=$?
18120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18121 test $ac_status = 0; }; then
18122 libtool_link_ok=yes
18123 else
18124 libtool_link_ok=no
18125 fi
18126
18127 else
18128
18129 libtool_link_ok=no
18130
18131 fi
18132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18133
18134 if test x"$delete_libs_dir" = xyes; then
18135 rm -rf .libs
18136 fi
18137
18138 if test x"$libtool_link_ok" = xyes; then
18139 libodb_found=yes
18140 :
18141 else
18142
18143 :
18144 fi
18145
18146 ac_ext=cpp
18147 ac_cpp='$CXXCPP $CPPFLAGS'
18148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18151
18152
18153 if test x"$libodb_found" = xno; then
18154 LIBS="$save_LIBS"
18155
18156 if test x"$libodb_dir" != x; then
18157 CPPFLAGS="$save_CPPFLAGS"
18158 LDFLAGS="$save_LDFLAGS"
18159 fi
18160 fi
18161
18162 if test x"$libodb_found" = xyes; then
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18164 $as_echo "yes" >&6; }
18165
18166 else
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18168 $as_echo "no" >&6; }
18169 as_fn_error $? "libodb is not found; consider using --with-libodb=DIR" "$LINENO" 5
18170 fi
18171
18172
18173 # Define LIBODB_QT_STATIC_LIB if we are build static library on certain
18174 # platforms.
18175 #
18176
18177 if test x$enable_shared = xno; then
18178 case $host_os in
18179 mingw*)
18180
18181 $as_echo "#define LIBODB_QT_STATIC_LIB 1" >>confdefs.h
18182
18183 ;;
18184 esac
18185 fi
18186
18187
18188 # Allow the user to specify the pkgconfig directory.
18189 #
18190
18191
18192 # Check whether --with-pkgconfigdir was given.
18193 if test "${with_pkgconfigdir+set}" = set; then :
18194 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
18195 else
18196 pkgconfigdir='${libdir}/pkgconfig'
18197 fi
18198
18199
18200
18201
18202 # Check if we should disable rpath.
18203 #
18204
18205
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
18207 $as_echo_n "checking whether to use rpath... " >&6; }
18208 # Check whether --enable-rpath was given.
18209 if test "${enable_rpath+set}" = set; then :
18210 enableval=$enable_rpath; libtool_rpath="$enable_rpath"
18211 else
18212 libtool_rpath="yes"
18213 fi
18214
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libtool_rpath" >&5
18216 $as_echo "$libtool_rpath" >&6; }
18217
18218 # Patch libtool to not use rpath if requested.
18219 #
18220 ac_config_commands="$ac_config_commands libtool-rpath-patch"
18221
18222
18223
18224 # Output.
18225 #
18226 ac_config_headers="$ac_config_headers odb/qt/config.h odb/qt/details/config.h"
18227
18228 ac_config_files="$ac_config_files libodb-qt.pc Makefile odb/qt/Makefile"
18229
18230 cat >confcache <<\_ACEOF
18231 # This file is a shell script that caches the results of configure
18232 # tests run on this system so they can be shared between configure
18233 # scripts and configure runs, see configure's option --config-cache.
18234 # It is not useful on other systems. If it contains results you don't
18235 # want to keep, you may remove or edit it.
18236 #
18237 # config.status only pays attention to the cache file if you give it
18238 # the --recheck option to rerun configure.
18239 #
18240 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18241 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18242 # following values.
18243
18244 _ACEOF
18245
18246 # The following way of writing the cache mishandles newlines in values,
18247 # but we know of no workaround that is simple, portable, and efficient.
18248 # So, we kill variables containing newlines.
18249 # Ultrix sh set writes to stderr and can't be redirected directly,
18250 # and sets the high bit in the cache file unless we assign to the vars.
18251 (
18252 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18253 eval ac_val=\$$ac_var
18254 case $ac_val in #(
18255 *${as_nl}*)
18256 case $ac_var in #(
18257 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18258 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18259 esac
18260 case $ac_var in #(
18261 _ | IFS | as_nl) ;; #(
18262 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18263 *) { eval $ac_var=; unset $ac_var;} ;;
18264 esac ;;
18265 esac
18266 done
18267
18268 (set) 2>&1 |
18269 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18270 *${as_nl}ac_space=\ *)
18271 # `set' does not quote correctly, so add quotes: double-quote
18272 # substitution turns \\\\ into \\, and sed turns \\ into \.
18273 sed -n \
18274 "s/'/'\\\\''/g;
18275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18276 ;; #(
18277 *)
18278 # `set' quotes correctly as required by POSIX, so do not add quotes.
18279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18280 ;;
18281 esac |
18282 sort
18283 ) |
18284 sed '
18285 /^ac_cv_env_/b end
18286 t clear
18287 :clear
18288 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18289 t end
18290 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18291 :end' >>confcache
18292 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18293 if test -w "$cache_file"; then
18294 if test "x$cache_file" != "x/dev/null"; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18296 $as_echo "$as_me: updating cache $cache_file" >&6;}
18297 if test ! -f "$cache_file" || test -h "$cache_file"; then
18298 cat confcache >"$cache_file"
18299 else
18300 case $cache_file in #(
18301 */* | ?:*)
18302 mv -f confcache "$cache_file"$$ &&
18303 mv -f "$cache_file"$$ "$cache_file" ;; #(
18304 *)
18305 mv -f confcache "$cache_file" ;;
18306 esac
18307 fi
18308 fi
18309 else
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18311 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18312 fi
18313 fi
18314 rm -f confcache
18315
18316 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18317 # Let make expand exec_prefix.
18318 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18319
18320 DEFS=-DHAVE_CONFIG_H
18321
18322 ac_libobjs=
18323 ac_ltlibobjs=
18324 U=
18325 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18326 # 1. Remove the extension, and $U if already installed.
18327 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18328 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18329 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18330 # will be set to the directory where LIBOBJS objects are built.
18331 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18332 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18333 done
18334 LIBOBJS=$ac_libobjs
18335
18336 LTLIBOBJS=$ac_ltlibobjs
18337
18338
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18340 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18341 if test -n "$am_sleep_pid"; then
18342 # Hide warnings about reused PIDs.
18343 wait $am_sleep_pid 2>/dev/null
18344 fi
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18346 $as_echo "done" >&6; }
18347 if test -n "$EXEEXT"; then
18348 am__EXEEXT_TRUE=
18349 am__EXEEXT_FALSE='#'
18350 else
18351 am__EXEEXT_TRUE='#'
18352 am__EXEEXT_FALSE=
18353 fi
18354
18355 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18356 as_fn_error $? "conditional \"AMDEP\" was never defined.
18357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18358 fi
18359 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18360 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18362 fi
18363 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18364 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
18365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18366 fi
18367
18368 : "${CONFIG_STATUS=./config.status}"
18369 ac_write_fail=0
18370 ac_clean_files_save=$ac_clean_files
18371 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18373 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18374 as_write_fail=0
18375 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18376 #! $SHELL
18377 # Generated by $as_me.
18378 # Run this file to recreate the current configuration.
18379 # Compiler output produced by configure, useful for debugging
18380 # configure, is in config.log if it exists.
18381
18382 debug=false
18383 ac_cs_recheck=false
18384 ac_cs_silent=false
18385
18386 SHELL=\${CONFIG_SHELL-$SHELL}
18387 export SHELL
18388 _ASEOF
18389 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18390 ## -------------------- ##
18391 ## M4sh Initialization. ##
18392 ## -------------------- ##
18393
18394 # Be more Bourne compatible
18395 DUALCASE=1; export DUALCASE # for MKS sh
18396 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18397 emulate sh
18398 NULLCMD=:
18399 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18400 # is contrary to our usage. Disable this feature.
18401 alias -g '${1+"$@"}'='"$@"'
18402 setopt NO_GLOB_SUBST
18403 else
18404 case `(set -o) 2>/dev/null` in #(
18405 *posix*) :
18406 set -o posix ;; #(
18407 *) :
18408 ;;
18409 esac
18410 fi
18411
18412
18413 as_nl='
18414 '
18415 export as_nl
18416 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18417 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18418 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18419 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18420 # Prefer a ksh shell builtin over an external printf program on Solaris,
18421 # but without wasting forks for bash or zsh.
18422 if test -z "$BASH_VERSION$ZSH_VERSION" \
18423 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18424 as_echo='print -r --'
18425 as_echo_n='print -rn --'
18426 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18427 as_echo='printf %s\n'
18428 as_echo_n='printf %s'
18429 else
18430 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18431 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18432 as_echo_n='/usr/ucb/echo -n'
18433 else
18434 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18435 as_echo_n_body='eval
18436 arg=$1;
18437 case $arg in #(
18438 *"$as_nl"*)
18439 expr "X$arg" : "X\\(.*\\)$as_nl";
18440 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18441 esac;
18442 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18443 '
18444 export as_echo_n_body
18445 as_echo_n='sh -c $as_echo_n_body as_echo'
18446 fi
18447 export as_echo_body
18448 as_echo='sh -c $as_echo_body as_echo'
18449 fi
18450
18451 # The user is always right.
18452 if test "${PATH_SEPARATOR+set}" != set; then
18453 PATH_SEPARATOR=:
18454 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18455 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18456 PATH_SEPARATOR=';'
18457 }
18458 fi
18459
18460
18461 # IFS
18462 # We need space, tab and new line, in precisely that order. Quoting is
18463 # there to prevent editors from complaining about space-tab.
18464 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18465 # splitting by setting IFS to empty value.)
18466 IFS=" "" $as_nl"
18467
18468 # Find who we are. Look in the path if we contain no directory separator.
18469 as_myself=
18470 case $0 in #((
18471 *[\\/]* ) as_myself=$0 ;;
18472 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18473 for as_dir in $PATH
18474 do
18475 IFS=$as_save_IFS
18476 test -z "$as_dir" && as_dir=.
18477 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18478 done
18479 IFS=$as_save_IFS
18480
18481 ;;
18482 esac
18483 # We did not find ourselves, most probably we were run as `sh COMMAND'
18484 # in which case we are not to be found in the path.
18485 if test "x$as_myself" = x; then
18486 as_myself=$0
18487 fi
18488 if test ! -f "$as_myself"; then
18489 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18490 exit 1
18491 fi
18492
18493 # Unset variables that we do not need and which cause bugs (e.g. in
18494 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18495 # suppresses any "Segmentation fault" message there. '((' could
18496 # trigger a bug in pdksh 5.2.14.
18497 for as_var in BASH_ENV ENV MAIL MAILPATH
18498 do eval test x\${$as_var+set} = xset \
18499 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18500 done
18501 PS1='$ '
18502 PS2='> '
18503 PS4='+ '
18504
18505 # NLS nuisances.
18506 LC_ALL=C
18507 export LC_ALL
18508 LANGUAGE=C
18509 export LANGUAGE
18510
18511 # CDPATH.
18512 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18513
18514
18515 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18516 # ----------------------------------------
18517 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18518 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18519 # script with STATUS, using 1 if that was 0.
18520 as_fn_error ()
18521 {
18522 as_status=$1; test $as_status -eq 0 && as_status=1
18523 if test "$4"; then
18524 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18525 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18526 fi
18527 $as_echo "$as_me: error: $2" >&2
18528 as_fn_exit $as_status
18529 } # as_fn_error
18530
18531
18532 # as_fn_set_status STATUS
18533 # -----------------------
18534 # Set $? to STATUS, without forking.
18535 as_fn_set_status ()
18536 {
18537 return $1
18538 } # as_fn_set_status
18539
18540 # as_fn_exit STATUS
18541 # -----------------
18542 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18543 as_fn_exit ()
18544 {
18545 set +e
18546 as_fn_set_status $1
18547 exit $1
18548 } # as_fn_exit
18549
18550 # as_fn_unset VAR
18551 # ---------------
18552 # Portably unset VAR.
18553 as_fn_unset ()
18554 {
18555 { eval $1=; unset $1;}
18556 }
18557 as_unset=as_fn_unset
18558 # as_fn_append VAR VALUE
18559 # ----------------------
18560 # Append the text in VALUE to the end of the definition contained in VAR. Take
18561 # advantage of any shell optimizations that allow amortized linear growth over
18562 # repeated appends, instead of the typical quadratic growth present in naive
18563 # implementations.
18564 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18565 eval 'as_fn_append ()
18566 {
18567 eval $1+=\$2
18568 }'
18569 else
18570 as_fn_append ()
18571 {
18572 eval $1=\$$1\$2
18573 }
18574 fi # as_fn_append
18575
18576 # as_fn_arith ARG...
18577 # ------------------
18578 # Perform arithmetic evaluation on the ARGs, and store the result in the
18579 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18580 # must be portable across $(()) and expr.
18581 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18582 eval 'as_fn_arith ()
18583 {
18584 as_val=$(( $* ))
18585 }'
18586 else
18587 as_fn_arith ()
18588 {
18589 as_val=`expr "$@" || test $? -eq 1`
18590 }
18591 fi # as_fn_arith
18592
18593
18594 if expr a : '\(a\)' >/dev/null 2>&1 &&
18595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18596 as_expr=expr
18597 else
18598 as_expr=false
18599 fi
18600
18601 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18602 as_basename=basename
18603 else
18604 as_basename=false
18605 fi
18606
18607 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18608 as_dirname=dirname
18609 else
18610 as_dirname=false
18611 fi
18612
18613 as_me=`$as_basename -- "$0" ||
18614 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18615 X"$0" : 'X\(//\)$' \| \
18616 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18617 $as_echo X/"$0" |
18618 sed '/^.*\/\([^/][^/]*\)\/*$/{
18619 s//\1/
18620 q
18621 }
18622 /^X\/\(\/\/\)$/{
18623 s//\1/
18624 q
18625 }
18626 /^X\/\(\/\).*/{
18627 s//\1/
18628 q
18629 }
18630 s/.*/./; q'`
18631
18632 # Avoid depending upon Character Ranges.
18633 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18634 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18635 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18636 as_cr_digits='0123456789'
18637 as_cr_alnum=$as_cr_Letters$as_cr_digits
18638
18639 ECHO_C= ECHO_N= ECHO_T=
18640 case `echo -n x` in #(((((
18641 -n*)
18642 case `echo 'xy\c'` in
18643 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18644 xy) ECHO_C='\c';;
18645 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18646 ECHO_T=' ';;
18647 esac;;
18648 *)
18649 ECHO_N='-n';;
18650 esac
18651
18652 rm -f conf$$ conf$$.exe conf$$.file
18653 if test -d conf$$.dir; then
18654 rm -f conf$$.dir/conf$$.file
18655 else
18656 rm -f conf$$.dir
18657 mkdir conf$$.dir 2>/dev/null
18658 fi
18659 if (echo >conf$$.file) 2>/dev/null; then
18660 if ln -s conf$$.file conf$$ 2>/dev/null; then
18661 as_ln_s='ln -s'
18662 # ... but there are two gotchas:
18663 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18664 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18665 # In both cases, we have to default to `cp -pR'.
18666 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18667 as_ln_s='cp -pR'
18668 elif ln conf$$.file conf$$ 2>/dev/null; then
18669 as_ln_s=ln
18670 else
18671 as_ln_s='cp -pR'
18672 fi
18673 else
18674 as_ln_s='cp -pR'
18675 fi
18676 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18677 rmdir conf$$.dir 2>/dev/null
18678
18679
18680 # as_fn_mkdir_p
18681 # -------------
18682 # Create "$as_dir" as a directory, including parents if necessary.
18683 as_fn_mkdir_p ()
18684 {
18685
18686 case $as_dir in #(
18687 -*) as_dir=./$as_dir;;
18688 esac
18689 test -d "$as_dir" || eval $as_mkdir_p || {
18690 as_dirs=
18691 while :; do
18692 case $as_dir in #(
18693 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18694 *) as_qdir=$as_dir;;
18695 esac
18696 as_dirs="'$as_qdir' $as_dirs"
18697 as_dir=`$as_dirname -- "$as_dir" ||
18698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18699 X"$as_dir" : 'X\(//\)[^/]' \| \
18700 X"$as_dir" : 'X\(//\)$' \| \
18701 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18702 $as_echo X"$as_dir" |
18703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18704 s//\1/
18705 q
18706 }
18707 /^X\(\/\/\)[^/].*/{
18708 s//\1/
18709 q
18710 }
18711 /^X\(\/\/\)$/{
18712 s//\1/
18713 q
18714 }
18715 /^X\(\/\).*/{
18716 s//\1/
18717 q
18718 }
18719 s/.*/./; q'`
18720 test -d "$as_dir" && break
18721 done
18722 test -z "$as_dirs" || eval "mkdir $as_dirs"
18723 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18724
18725
18726 } # as_fn_mkdir_p
18727 if mkdir -p . 2>/dev/null; then
18728 as_mkdir_p='mkdir -p "$as_dir"'
18729 else
18730 test -d ./-p && rmdir ./-p
18731 as_mkdir_p=false
18732 fi
18733
18734
18735 # as_fn_executable_p FILE
18736 # -----------------------
18737 # Test if FILE is an executable regular file.
18738 as_fn_executable_p ()
18739 {
18740 test -f "$1" && test -x "$1"
18741 } # as_fn_executable_p
18742 as_test_x='test -x'
18743 as_executable_p=as_fn_executable_p
18744
18745 # Sed expression to map a string onto a valid CPP name.
18746 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18747
18748 # Sed expression to map a string onto a valid variable name.
18749 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18750
18751
18752 exec 6>&1
18753 ## ----------------------------------- ##
18754 ## Main body of $CONFIG_STATUS script. ##
18755 ## ----------------------------------- ##
18756 _ASEOF
18757 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18758
18759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18760 # Save the log message, to keep $0 and so on meaningful, and to
18761 # report actual input values of CONFIG_FILES etc. instead of their
18762 # values after options handling.
18763 ac_log="
18764 This file was extended by libodb-qt $as_me 2.4.0, which was
18765 generated by GNU Autoconf 2.69. Invocation command line was
18766
18767 CONFIG_FILES = $CONFIG_FILES
18768 CONFIG_HEADERS = $CONFIG_HEADERS
18769 CONFIG_LINKS = $CONFIG_LINKS
18770 CONFIG_COMMANDS = $CONFIG_COMMANDS
18771 $ $0 $@
18772
18773 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18774 "
18775
18776 _ACEOF
18777
18778 case $ac_config_files in *"
18779 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18780 esac
18781
18782 case $ac_config_headers in *"
18783 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18784 esac
18785
18786
18787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18788 # Files that config.status was made for.
18789 config_files="$ac_config_files"
18790 config_headers="$ac_config_headers"
18791 config_commands="$ac_config_commands"
18792
18793 _ACEOF
18794
18795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18796 ac_cs_usage="\
18797 \`$as_me' instantiates files and other configuration actions
18798 from templates according to the current configuration. Unless the files
18799 and actions are specified as TAGs, all are instantiated by default.
18800
18801 Usage: $0 [OPTION]... [TAG]...
18802
18803 -h, --help print this help, then exit
18804 -V, --version print version number and configuration settings, then exit
18805 --config print configuration, then exit
18806 -q, --quiet, --silent
18807 do not print progress messages
18808 -d, --debug don't remove temporary files
18809 --recheck update $as_me by reconfiguring in the same conditions
18810 --file=FILE[:TEMPLATE]
18811 instantiate the configuration file FILE
18812 --header=FILE[:TEMPLATE]
18813 instantiate the configuration header FILE
18814
18815 Configuration files:
18816 $config_files
18817
18818 Configuration headers:
18819 $config_headers
18820
18821 Configuration commands:
18822 $config_commands
18823
18824 Report bugs to <[email protected]>."
18825
18826 _ACEOF
18827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18828 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18829 ac_cs_version="\\
18830 libodb-qt config.status 2.4.0
18831 configured by $0, generated by GNU Autoconf 2.69,
18832 with options \\"\$ac_cs_config\\"
18833
18834 Copyright (C) 2012 Free Software Foundation, Inc.
18835 This config.status script is free software; the Free Software Foundation
18836 gives unlimited permission to copy, distribute and modify it."
18837
18838 ac_pwd='$ac_pwd'
18839 srcdir='$srcdir'
18840 INSTALL='$INSTALL'
18841 MKDIR_P='$MKDIR_P'
18842 AWK='$AWK'
18843 test -n "\$AWK" || AWK=awk
18844 _ACEOF
18845
18846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18847 # The default lists apply if the user does not specify any file.
18848 ac_need_defaults=:
18849 while test $# != 0
18850 do
18851 case $1 in
18852 --*=?*)
18853 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18854 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18855 ac_shift=:
18856 ;;
18857 --*=)
18858 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18859 ac_optarg=
18860 ac_shift=:
18861 ;;
18862 *)
18863 ac_option=$1
18864 ac_optarg=$2
18865 ac_shift=shift
18866 ;;
18867 esac
18868
18869 case $ac_option in
18870 # Handling of the options.
18871 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18872 ac_cs_recheck=: ;;
18873 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18874 $as_echo "$ac_cs_version"; exit ;;
18875 --config | --confi | --conf | --con | --co | --c )
18876 $as_echo "$ac_cs_config"; exit ;;
18877 --debug | --debu | --deb | --de | --d | -d )
18878 debug=: ;;
18879 --file | --fil | --fi | --f )
18880 $ac_shift
18881 case $ac_optarg in
18882 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18883 '') as_fn_error $? "missing file argument" ;;
18884 esac
18885 as_fn_append CONFIG_FILES " '$ac_optarg'"
18886 ac_need_defaults=false;;
18887 --header | --heade | --head | --hea )
18888 $ac_shift
18889 case $ac_optarg in
18890 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18891 esac
18892 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18893 ac_need_defaults=false;;
18894 --he | --h)
18895 # Conflict between --help and --header
18896 as_fn_error $? "ambiguous option: \`$1'
18897 Try \`$0 --help' for more information.";;
18898 --help | --hel | -h )
18899 $as_echo "$ac_cs_usage"; exit ;;
18900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18901 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18902 ac_cs_silent=: ;;
18903
18904 # This is an error.
18905 -*) as_fn_error $? "unrecognized option: \`$1'
18906 Try \`$0 --help' for more information." ;;
18907
18908 *) as_fn_append ac_config_targets " $1"
18909 ac_need_defaults=false ;;
18910
18911 esac
18912 shift
18913 done
18914
18915 ac_configure_extra_args=
18916
18917 if $ac_cs_silent; then
18918 exec 6>/dev/null
18919 ac_configure_extra_args="$ac_configure_extra_args --silent"
18920 fi
18921
18922 _ACEOF
18923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18924 if \$ac_cs_recheck; then
18925 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18926 shift
18927 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18928 CONFIG_SHELL='$SHELL'
18929 export CONFIG_SHELL
18930 exec "\$@"
18931 fi
18932
18933 _ACEOF
18934 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18935 exec 5>>config.log
18936 {
18937 echo
18938 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18939 ## Running $as_me. ##
18940 _ASBOX
18941 $as_echo "$ac_log"
18942 } >&5
18943
18944 _ACEOF
18945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18946 #
18947 # INIT-COMMANDS
18948 #
18949 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18950
18951
18952 # The HP-UX ksh and POSIX shell print the target directory to stdout
18953 # if CDPATH is set.
18954 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18955
18956 sed_quote_subst='$sed_quote_subst'
18957 double_quote_subst='$double_quote_subst'
18958 delay_variable_subst='$delay_variable_subst'
18959 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18960 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18961 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18962 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18963 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18964 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18965 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18966 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18967 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18968 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18969 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18970 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18971 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18972 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18973 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18974 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18975 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18976 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18977 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18978 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18979 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18980 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18981 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18982 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18983 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18984 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18985 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18986 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18987 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18988 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18989 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18990 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18991 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18992 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18993 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18994 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18995 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18996 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18997 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18998 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18999 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19000 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19001 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19002 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19003 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19004 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19005 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19006 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19007 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19008 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19009 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19010 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19011 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19012 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19013 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19014 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19015 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19016 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"`'
19017 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19018 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19019 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19020 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19021 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19022 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19023 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19024 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19025 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19026 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19027 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19028 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19029 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19030 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19031 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19032 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19033 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19034 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19035 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19036 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19037 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19038 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19039 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19040 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19041 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19042 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19043 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19044 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19045 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19046 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19047 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19048 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19049 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19050 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19051 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19052 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19053 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19054 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19055 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19056 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19057 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19058 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19059 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19060 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19061 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19062 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19063 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19064 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19065 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19066 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19067 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19068 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19069 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19070 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19071 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19072 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19073 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19074 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19075 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19076 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19077 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19078 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19079 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19080 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19081 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19082 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19083 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19084 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19085 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19086 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19087 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19088 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19089 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19090 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19091 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19092 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19093 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19094 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19095 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19096 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19097 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19098 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19099 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19100 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19101 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19102 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19103 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19104 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19105 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19106 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19107 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19108 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19109 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19110 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19111 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19112 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19113 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19114 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19115 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19116 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19117 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19118 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19119 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19120 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19121 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19122 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19123 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19124 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19125 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19126 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19127 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19128 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19129 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19130 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19131 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19132 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19133 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19134 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19135 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19136 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19137 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19138 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19139 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19140 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19141 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19142 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19143 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19144
19145 LTCC='$LTCC'
19146 LTCFLAGS='$LTCFLAGS'
19147 compiler='$compiler_DEFAULT'
19148
19149 # A function that is used when there is no print builtin or printf.
19150 func_fallback_echo ()
19151 {
19152 eval 'cat <<_LTECHO_EOF
19153 \$1
19154 _LTECHO_EOF'
19155 }
19156
19157 # Quote evaled strings.
19158 for var in AS \
19159 DLLTOOL \
19160 OBJDUMP \
19161 SHELL \
19162 ECHO \
19163 PATH_SEPARATOR \
19164 SED \
19165 GREP \
19166 EGREP \
19167 FGREP \
19168 LD \
19169 NM \
19170 LN_S \
19171 lt_SP2NL \
19172 lt_NL2SP \
19173 reload_flag \
19174 deplibs_check_method \
19175 file_magic_cmd \
19176 file_magic_glob \
19177 want_nocaseglob \
19178 sharedlib_from_linklib_cmd \
19179 AR \
19180 AR_FLAGS \
19181 archiver_list_spec \
19182 STRIP \
19183 RANLIB \
19184 CC \
19185 CFLAGS \
19186 compiler \
19187 lt_cv_sys_global_symbol_pipe \
19188 lt_cv_sys_global_symbol_to_cdecl \
19189 lt_cv_sys_global_symbol_to_c_name_address \
19190 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19191 nm_file_list_spec \
19192 lt_prog_compiler_no_builtin_flag \
19193 lt_prog_compiler_pic \
19194 lt_prog_compiler_wl \
19195 lt_prog_compiler_static \
19196 lt_cv_prog_compiler_c_o \
19197 need_locks \
19198 MANIFEST_TOOL \
19199 DSYMUTIL \
19200 NMEDIT \
19201 LIPO \
19202 OTOOL \
19203 OTOOL64 \
19204 shrext_cmds \
19205 export_dynamic_flag_spec \
19206 whole_archive_flag_spec \
19207 compiler_needs_object \
19208 with_gnu_ld \
19209 allow_undefined_flag \
19210 no_undefined_flag \
19211 hardcode_libdir_flag_spec \
19212 hardcode_libdir_separator \
19213 exclude_expsyms \
19214 include_expsyms \
19215 file_list_spec \
19216 variables_saved_for_relink \
19217 libname_spec \
19218 library_names_spec \
19219 soname_spec \
19220 install_override_mode \
19221 finish_eval \
19222 old_striplib \
19223 striplib \
19224 compiler_lib_search_dirs \
19225 predep_objects \
19226 postdep_objects \
19227 predeps \
19228 postdeps \
19229 compiler_lib_search_path \
19230 LD_CXX \
19231 reload_flag_CXX \
19232 compiler_CXX \
19233 lt_prog_compiler_no_builtin_flag_CXX \
19234 lt_prog_compiler_pic_CXX \
19235 lt_prog_compiler_wl_CXX \
19236 lt_prog_compiler_static_CXX \
19237 lt_cv_prog_compiler_c_o_CXX \
19238 export_dynamic_flag_spec_CXX \
19239 whole_archive_flag_spec_CXX \
19240 compiler_needs_object_CXX \
19241 with_gnu_ld_CXX \
19242 allow_undefined_flag_CXX \
19243 no_undefined_flag_CXX \
19244 hardcode_libdir_flag_spec_CXX \
19245 hardcode_libdir_separator_CXX \
19246 exclude_expsyms_CXX \
19247 include_expsyms_CXX \
19248 file_list_spec_CXX \
19249 compiler_lib_search_dirs_CXX \
19250 predep_objects_CXX \
19251 postdep_objects_CXX \
19252 predeps_CXX \
19253 postdeps_CXX \
19254 compiler_lib_search_path_CXX; do
19255 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19256 *[\\\\\\\`\\"\\\$]*)
19257 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19258 ;;
19259 *)
19260 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19261 ;;
19262 esac
19263 done
19264
19265 # Double-quote double-evaled strings.
19266 for var in reload_cmds \
19267 old_postinstall_cmds \
19268 old_postuninstall_cmds \
19269 old_archive_cmds \
19270 extract_expsyms_cmds \
19271 old_archive_from_new_cmds \
19272 old_archive_from_expsyms_cmds \
19273 archive_cmds \
19274 archive_expsym_cmds \
19275 module_cmds \
19276 module_expsym_cmds \
19277 export_symbols_cmds \
19278 prelink_cmds \
19279 postlink_cmds \
19280 postinstall_cmds \
19281 postuninstall_cmds \
19282 finish_cmds \
19283 sys_lib_search_path_spec \
19284 sys_lib_dlsearch_path_spec \
19285 reload_cmds_CXX \
19286 old_archive_cmds_CXX \
19287 old_archive_from_new_cmds_CXX \
19288 old_archive_from_expsyms_cmds_CXX \
19289 archive_cmds_CXX \
19290 archive_expsym_cmds_CXX \
19291 module_cmds_CXX \
19292 module_expsym_cmds_CXX \
19293 export_symbols_cmds_CXX \
19294 prelink_cmds_CXX \
19295 postlink_cmds_CXX; do
19296 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19297 *[\\\\\\\`\\"\\\$]*)
19298 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19299 ;;
19300 *)
19301 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19302 ;;
19303 esac
19304 done
19305
19306 ac_aux_dir='$ac_aux_dir'
19307 xsi_shell='$xsi_shell'
19308 lt_shell_append='$lt_shell_append'
19309
19310 # See if we are running on zsh, and set the options which allow our
19311 # commands through without removal of \ escapes INIT.
19312 if test -n "\${ZSH_VERSION+set}" ; then
19313 setopt NO_GLOB_SUBST
19314 fi
19315
19316
19317 PACKAGE='$PACKAGE'
19318 VERSION='$VERSION'
19319 TIMESTAMP='$TIMESTAMP'
19320 RM='$RM'
19321 ofile='$ofile'
19322
19323
19324
19325 ac_aux_dir='$ac_aux_dir'
19326
19327
19328 libtool_use_rpath=$libtool_rpath
19329
19330 _ACEOF
19331
19332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19333
19334 # Handling of arguments.
19335 for ac_config_target in $ac_config_targets
19336 do
19337 case $ac_config_target in
19338 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19339 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19340 "libtool-rpath-patch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool-rpath-patch" ;;
19341 "odb/qt/config.h") CONFIG_HEADERS="$CONFIG_HEADERS odb/qt/config.h" ;;
19342 "odb/qt/details/config.h") CONFIG_HEADERS="$CONFIG_HEADERS odb/qt/details/config.h" ;;
19343 "libodb-qt.pc") CONFIG_FILES="$CONFIG_FILES libodb-qt.pc" ;;
19344 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19345 "odb/qt/Makefile") CONFIG_FILES="$CONFIG_FILES odb/qt/Makefile" ;;
19346
19347 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19348 esac
19349 done
19350
19351
19352 # If the user did not use the arguments to specify the items to instantiate,
19353 # then the envvar interface is used. Set only those that are not.
19354 # We use the long form for the default assignment because of an extremely
19355 # bizarre bug on SunOS 4.1.3.
19356 if $ac_need_defaults; then
19357 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19358 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19359 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19360 fi
19361
19362 # Have a temporary directory for convenience. Make it in the build tree
19363 # simply because there is no reason against having it here, and in addition,
19364 # creating and moving files from /tmp can sometimes cause problems.
19365 # Hook for its removal unless debugging.
19366 # Note that there is a small window in which the directory will not be cleaned:
19367 # after its creation but before its name has been assigned to `$tmp'.
19368 $debug ||
19369 {
19370 tmp= ac_tmp=
19371 trap 'exit_status=$?
19372 : "${ac_tmp:=$tmp}"
19373 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19374 ' 0
19375 trap 'as_fn_exit 1' 1 2 13 15
19376 }
19377 # Create a (secure) tmp directory for tmp files.
19378
19379 {
19380 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19381 test -d "$tmp"
19382 } ||
19383 {
19384 tmp=./conf$$-$RANDOM
19385 (umask 077 && mkdir "$tmp")
19386 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19387 ac_tmp=$tmp
19388
19389 # Set up the scripts for CONFIG_FILES section.
19390 # No need to generate them if there are no CONFIG_FILES.
19391 # This happens for instance with `./config.status config.h'.
19392 if test -n "$CONFIG_FILES"; then
19393
19394
19395 ac_cr=`echo X | tr X '\015'`
19396 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19397 # But we know of no other shell where ac_cr would be empty at this
19398 # point, so we can use a bashism as a fallback.
19399 if test "x$ac_cr" = x; then
19400 eval ac_cr=\$\'\\r\'
19401 fi
19402 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19403 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19404 ac_cs_awk_cr='\\r'
19405 else
19406 ac_cs_awk_cr=$ac_cr
19407 fi
19408
19409 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19410 _ACEOF
19411
19412
19413 {
19414 echo "cat >conf$$subs.awk <<_ACEOF" &&
19415 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19416 echo "_ACEOF"
19417 } >conf$$subs.sh ||
19418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19419 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19420 ac_delim='%!_!# '
19421 for ac_last_try in false false false false false :; do
19422 . ./conf$$subs.sh ||
19423 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19424
19425 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19426 if test $ac_delim_n = $ac_delim_num; then
19427 break
19428 elif $ac_last_try; then
19429 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19430 else
19431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19432 fi
19433 done
19434 rm -f conf$$subs.sh
19435
19436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19437 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19438 _ACEOF
19439 sed -n '
19440 h
19441 s/^/S["/; s/!.*/"]=/
19442 p
19443 g
19444 s/^[^!]*!//
19445 :repl
19446 t repl
19447 s/'"$ac_delim"'$//
19448 t delim
19449 :nl
19450 h
19451 s/\(.\{148\}\)..*/\1/
19452 t more1
19453 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19454 p
19455 n
19456 b repl
19457 :more1
19458 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19459 p
19460 g
19461 s/.\{148\}//
19462 t nl
19463 :delim
19464 h
19465 s/\(.\{148\}\)..*/\1/
19466 t more2
19467 s/["\\]/\\&/g; s/^/"/; s/$/"/
19468 p
19469 b
19470 :more2
19471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19472 p
19473 g
19474 s/.\{148\}//
19475 t delim
19476 ' <conf$$subs.awk | sed '
19477 /^[^""]/{
19478 N
19479 s/\n//
19480 }
19481 ' >>$CONFIG_STATUS || ac_write_fail=1
19482 rm -f conf$$subs.awk
19483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19484 _ACAWK
19485 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19486 for (key in S) S_is_set[key] = 1
19487 FS = ""
19488
19489 }
19490 {
19491 line = $ 0
19492 nfields = split(line, field, "@")
19493 substed = 0
19494 len = length(field[1])
19495 for (i = 2; i < nfields; i++) {
19496 key = field[i]
19497 keylen = length(key)
19498 if (S_is_set[key]) {
19499 value = S[key]
19500 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19501 len += length(value) + length(field[++i])
19502 substed = 1
19503 } else
19504 len += 1 + keylen
19505 }
19506
19507 print line
19508 }
19509
19510 _ACAWK
19511 _ACEOF
19512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19513 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19514 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19515 else
19516 cat
19517 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19518 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19519 _ACEOF
19520
19521 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19522 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19523 # trailing colons and then remove the whole line if VPATH becomes empty
19524 # (actually we leave an empty line to preserve line numbers).
19525 if test "x$srcdir" = x.; then
19526 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19527 h
19528 s///
19529 s/^/:/
19530 s/[ ]*$/:/
19531 s/:\$(srcdir):/:/g
19532 s/:\${srcdir}:/:/g
19533 s/:@srcdir@:/:/g
19534 s/^:*//
19535 s/:*$//
19536 x
19537 s/\(=[ ]*\).*/\1/
19538 G
19539 s/\n//
19540 s/^[^=]*=[ ]*$//
19541 }'
19542 fi
19543
19544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19545 fi # test -n "$CONFIG_FILES"
19546
19547 # Set up the scripts for CONFIG_HEADERS section.
19548 # No need to generate them if there are no CONFIG_HEADERS.
19549 # This happens for instance with `./config.status Makefile'.
19550 if test -n "$CONFIG_HEADERS"; then
19551 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19552 BEGIN {
19553 _ACEOF
19554
19555 # Transform confdefs.h into an awk script `defines.awk', embedded as
19556 # here-document in config.status, that substitutes the proper values into
19557 # config.h.in to produce config.h.
19558
19559 # Create a delimiter string that does not exist in confdefs.h, to ease
19560 # handling of long lines.
19561 ac_delim='%!_!# '
19562 for ac_last_try in false false :; do
19563 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19564 if test -z "$ac_tt"; then
19565 break
19566 elif $ac_last_try; then
19567 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19568 else
19569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19570 fi
19571 done
19572
19573 # For the awk script, D is an array of macro values keyed by name,
19574 # likewise P contains macro parameters if any. Preserve backslash
19575 # newline sequences.
19576
19577 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19578 sed -n '
19579 s/.\{148\}/&'"$ac_delim"'/g
19580 t rset
19581 :rset
19582 s/^[ ]*#[ ]*define[ ][ ]*/ /
19583 t def
19584 d
19585 :def
19586 s/\\$//
19587 t bsnl
19588 s/["\\]/\\&/g
19589 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19590 D["\1"]=" \3"/p
19591 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19592 d
19593 :bsnl
19594 s/["\\]/\\&/g
19595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19596 D["\1"]=" \3\\\\\\n"\\/p
19597 t cont
19598 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19599 t cont
19600 d
19601 :cont
19602 n
19603 s/.\{148\}/&'"$ac_delim"'/g
19604 t clear
19605 :clear
19606 s/\\$//
19607 t bsnlc
19608 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19609 d
19610 :bsnlc
19611 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19612 b cont
19613 ' <confdefs.h | sed '
19614 s/'"$ac_delim"'/"\\\
19615 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19616
19617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19618 for (key in D) D_is_set[key] = 1
19619 FS = ""
19620 }
19621 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19622 line = \$ 0
19623 split(line, arg, " ")
19624 if (arg[1] == "#") {
19625 defundef = arg[2]
19626 mac1 = arg[3]
19627 } else {
19628 defundef = substr(arg[1], 2)
19629 mac1 = arg[2]
19630 }
19631 split(mac1, mac2, "(") #)
19632 macro = mac2[1]
19633 prefix = substr(line, 1, index(line, defundef) - 1)
19634 if (D_is_set[macro]) {
19635 # Preserve the white space surrounding the "#".
19636 print prefix "define", macro P[macro] D[macro]
19637 next
19638 } else {
19639 # Replace #undef with comments. This is necessary, for example,
19640 # in the case of _POSIX_SOURCE, which is predefined and required
19641 # on some systems where configure will not decide to define it.
19642 if (defundef == "undef") {
19643 print "/*", prefix defundef, macro, "*/"
19644 next
19645 }
19646 }
19647 }
19648 { print }
19649 _ACAWK
19650 _ACEOF
19651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19652 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19653 fi # test -n "$CONFIG_HEADERS"
19654
19655
19656 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19657 shift
19658 for ac_tag
19659 do
19660 case $ac_tag in
19661 :[FHLC]) ac_mode=$ac_tag; continue;;
19662 esac
19663 case $ac_mode$ac_tag in
19664 :[FHL]*:*);;
19665 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19666 :[FH]-) ac_tag=-:-;;
19667 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19668 esac
19669 ac_save_IFS=$IFS
19670 IFS=:
19671 set x $ac_tag
19672 IFS=$ac_save_IFS
19673 shift
19674 ac_file=$1
19675 shift
19676
19677 case $ac_mode in
19678 :L) ac_source=$1;;
19679 :[FH])
19680 ac_file_inputs=
19681 for ac_f
19682 do
19683 case $ac_f in
19684 -) ac_f="$ac_tmp/stdin";;
19685 *) # Look for the file first in the build tree, then in the source tree
19686 # (if the path is not absolute). The absolute path cannot be DOS-style,
19687 # because $ac_f cannot contain `:'.
19688 test -f "$ac_f" ||
19689 case $ac_f in
19690 [\\/$]*) false;;
19691 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19692 esac ||
19693 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19694 esac
19695 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19696 as_fn_append ac_file_inputs " '$ac_f'"
19697 done
19698
19699 # Let's still pretend it is `configure' which instantiates (i.e., don't
19700 # use $as_me), people would be surprised to read:
19701 # /* config.h. Generated by config.status. */
19702 configure_input='Generated from '`
19703 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19704 `' by configure.'
19705 if test x"$ac_file" != x-; then
19706 configure_input="$ac_file. $configure_input"
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19708 $as_echo "$as_me: creating $ac_file" >&6;}
19709 fi
19710 # Neutralize special characters interpreted by sed in replacement strings.
19711 case $configure_input in #(
19712 *\&* | *\|* | *\\* )
19713 ac_sed_conf_input=`$as_echo "$configure_input" |
19714 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19715 *) ac_sed_conf_input=$configure_input;;
19716 esac
19717
19718 case $ac_tag in
19719 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19721 esac
19722 ;;
19723 esac
19724
19725 ac_dir=`$as_dirname -- "$ac_file" ||
19726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19727 X"$ac_file" : 'X\(//\)[^/]' \| \
19728 X"$ac_file" : 'X\(//\)$' \| \
19729 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19730 $as_echo X"$ac_file" |
19731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19732 s//\1/
19733 q
19734 }
19735 /^X\(\/\/\)[^/].*/{
19736 s//\1/
19737 q
19738 }
19739 /^X\(\/\/\)$/{
19740 s//\1/
19741 q
19742 }
19743 /^X\(\/\).*/{
19744 s//\1/
19745 q
19746 }
19747 s/.*/./; q'`
19748 as_dir="$ac_dir"; as_fn_mkdir_p
19749 ac_builddir=.
19750
19751 case "$ac_dir" in
19752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19753 *)
19754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19755 # A ".." for each directory in $ac_dir_suffix.
19756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19757 case $ac_top_builddir_sub in
19758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19760 esac ;;
19761 esac
19762 ac_abs_top_builddir=$ac_pwd
19763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19764 # for backward compatibility:
19765 ac_top_builddir=$ac_top_build_prefix
19766
19767 case $srcdir in
19768 .) # We are building in place.
19769 ac_srcdir=.
19770 ac_top_srcdir=$ac_top_builddir_sub
19771 ac_abs_top_srcdir=$ac_pwd ;;
19772 [\\/]* | ?:[\\/]* ) # Absolute name.
19773 ac_srcdir=$srcdir$ac_dir_suffix;
19774 ac_top_srcdir=$srcdir
19775 ac_abs_top_srcdir=$srcdir ;;
19776 *) # Relative name.
19777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19778 ac_top_srcdir=$ac_top_build_prefix$srcdir
19779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19780 esac
19781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19782
19783
19784 case $ac_mode in
19785 :F)
19786 #
19787 # CONFIG_FILE
19788 #
19789
19790 case $INSTALL in
19791 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19792 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19793 esac
19794 ac_MKDIR_P=$MKDIR_P
19795 case $MKDIR_P in
19796 [\\/$]* | ?:[\\/]* ) ;;
19797 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19798 esac
19799 _ACEOF
19800
19801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19802 # If the template does not know about datarootdir, expand it.
19803 # FIXME: This hack should be removed a few years after 2.60.
19804 ac_datarootdir_hack=; ac_datarootdir_seen=
19805 ac_sed_dataroot='
19806 /datarootdir/ {
19807 p
19808 q
19809 }
19810 /@datadir@/p
19811 /@docdir@/p
19812 /@infodir@/p
19813 /@localedir@/p
19814 /@mandir@/p'
19815 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19816 *datarootdir*) ac_datarootdir_seen=yes;;
19817 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19819 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19820 _ACEOF
19821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19822 ac_datarootdir_hack='
19823 s&@datadir@&$datadir&g
19824 s&@docdir@&$docdir&g
19825 s&@infodir@&$infodir&g
19826 s&@localedir@&$localedir&g
19827 s&@mandir@&$mandir&g
19828 s&\\\${datarootdir}&$datarootdir&g' ;;
19829 esac
19830 _ACEOF
19831
19832 # Neutralize VPATH when `$srcdir' = `.'.
19833 # Shell code in configure.ac might set extrasub.
19834 # FIXME: do we really want to maintain this feature?
19835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19836 ac_sed_extra="$ac_vpsub
19837 $extrasub
19838 _ACEOF
19839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19840 :t
19841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19842 s|@configure_input@|$ac_sed_conf_input|;t t
19843 s&@top_builddir@&$ac_top_builddir_sub&;t t
19844 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19845 s&@srcdir@&$ac_srcdir&;t t
19846 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19847 s&@top_srcdir@&$ac_top_srcdir&;t t
19848 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19849 s&@builddir@&$ac_builddir&;t t
19850 s&@abs_builddir@&$ac_abs_builddir&;t t
19851 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19852 s&@INSTALL@&$ac_INSTALL&;t t
19853 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19854 $ac_datarootdir_hack
19855 "
19856 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19857 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19858
19859 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19860 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19861 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19862 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19864 which seems to be undefined. Please make sure it is defined" >&5
19865 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19866 which seems to be undefined. Please make sure it is defined" >&2;}
19867
19868 rm -f "$ac_tmp/stdin"
19869 case $ac_file in
19870 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19871 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19872 esac \
19873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19874 ;;
19875 :H)
19876 #
19877 # CONFIG_HEADER
19878 #
19879 if test x"$ac_file" != x-; then
19880 {
19881 $as_echo "/* $configure_input */" \
19882 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19883 } >"$ac_tmp/config.h" \
19884 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19885 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19887 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19888 else
19889 rm -f "$ac_file"
19890 mv "$ac_tmp/config.h" "$ac_file" \
19891 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19892 fi
19893 else
19894 $as_echo "/* $configure_input */" \
19895 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19896 || as_fn_error $? "could not create -" "$LINENO" 5
19897 fi
19898 # Compute "$ac_file"'s index in $config_headers.
19899 _am_arg="$ac_file"
19900 _am_stamp_count=1
19901 for _am_header in $config_headers :; do
19902 case $_am_header in
19903 $_am_arg | $_am_arg:* )
19904 break ;;
19905 * )
19906 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19907 esac
19908 done
19909 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19910 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19911 X"$_am_arg" : 'X\(//\)[^/]' \| \
19912 X"$_am_arg" : 'X\(//\)$' \| \
19913 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19914 $as_echo X"$_am_arg" |
19915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19916 s//\1/
19917 q
19918 }
19919 /^X\(\/\/\)[^/].*/{
19920 s//\1/
19921 q
19922 }
19923 /^X\(\/\/\)$/{
19924 s//\1/
19925 q
19926 }
19927 /^X\(\/\).*/{
19928 s//\1/
19929 q
19930 }
19931 s/.*/./; q'`/stamp-h$_am_stamp_count
19932 ;;
19933
19934 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19935 $as_echo "$as_me: executing $ac_file commands" >&6;}
19936 ;;
19937 esac
19938
19939
19940 case $ac_file$ac_mode in
19941 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19942 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19943 # are listed without --file. Let's play safe and only enable the eval
19944 # if we detect the quoting.
19945 case $CONFIG_FILES in
19946 *\'*) eval set x "$CONFIG_FILES" ;;
19947 *) set x $CONFIG_FILES ;;
19948 esac
19949 shift
19950 for mf
19951 do
19952 # Strip MF so we end up with the name of the file.
19953 mf=`echo "$mf" | sed -e 's/:.*$//'`
19954 # Check whether this is an Automake generated Makefile or not.
19955 # We used to match only the files named 'Makefile.in', but
19956 # some people rename them; so instead we look at the file content.
19957 # Grep'ing the first line is not enough: some people post-process
19958 # each Makefile.in and add a new line on top of each file to say so.
19959 # Grep'ing the whole file is not good either: AIX grep has a line
19960 # limit of 2048, but all sed's we know have understand at least 4000.
19961 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19962 dirpart=`$as_dirname -- "$mf" ||
19963 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19964 X"$mf" : 'X\(//\)[^/]' \| \
19965 X"$mf" : 'X\(//\)$' \| \
19966 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19967 $as_echo X"$mf" |
19968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19969 s//\1/
19970 q
19971 }
19972 /^X\(\/\/\)[^/].*/{
19973 s//\1/
19974 q
19975 }
19976 /^X\(\/\/\)$/{
19977 s//\1/
19978 q
19979 }
19980 /^X\(\/\).*/{
19981 s//\1/
19982 q
19983 }
19984 s/.*/./; q'`
19985 else
19986 continue
19987 fi
19988 # Extract the definition of DEPDIR, am__include, and am__quote
19989 # from the Makefile without running 'make'.
19990 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19991 test -z "$DEPDIR" && continue
19992 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19993 test -z "am__include" && continue
19994 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19995 # Find all dependency output files, they are included files with
19996 # $(DEPDIR) in their names. We invoke sed twice because it is the
19997 # simplest approach to changing $(DEPDIR) to its actual value in the
19998 # expansion.
19999 for file in `sed -n "
20000 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20001 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20002 # Make sure the directory exists.
20003 test -f "$dirpart/$file" && continue
20004 fdir=`$as_dirname -- "$file" ||
20005 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20006 X"$file" : 'X\(//\)[^/]' \| \
20007 X"$file" : 'X\(//\)$' \| \
20008 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20009 $as_echo X"$file" |
20010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20011 s//\1/
20012 q
20013 }
20014 /^X\(\/\/\)[^/].*/{
20015 s//\1/
20016 q
20017 }
20018 /^X\(\/\/\)$/{
20019 s//\1/
20020 q
20021 }
20022 /^X\(\/\).*/{
20023 s//\1/
20024 q
20025 }
20026 s/.*/./; q'`
20027 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20028 # echo "creating $dirpart/$file"
20029 echo '# dummy' > "$dirpart/$file"
20030 done
20031 done
20032 }
20033 ;;
20034 "libtool":C)
20035
20036 # See if we are running on zsh, and set the options which allow our
20037 # commands through without removal of \ escapes.
20038 if test -n "${ZSH_VERSION+set}" ; then
20039 setopt NO_GLOB_SUBST
20040 fi
20041
20042 cfgfile="${ofile}T"
20043 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20044 $RM "$cfgfile"
20045
20046 cat <<_LT_EOF >> "$cfgfile"
20047 #! $SHELL
20048
20049 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20050 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20051 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20052 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20053 #
20054 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20055 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20056 # Foundation, Inc.
20057 # Written by Gordon Matzigkeit, 1996
20058 #
20059 # This file is part of GNU Libtool.
20060 #
20061 # GNU Libtool is free software; you can redistribute it and/or
20062 # modify it under the terms of the GNU General Public License as
20063 # published by the Free Software Foundation; either version 2 of
20064 # the License, or (at your option) any later version.
20065 #
20066 # As a special exception to the GNU General Public License,
20067 # if you distribute this file as part of a program or library that
20068 # is built using GNU Libtool, you may include this file under the
20069 # same distribution terms that you use for the rest of that program.
20070 #
20071 # GNU Libtool is distributed in the hope that it will be useful,
20072 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20073 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20074 # GNU General Public License for more details.
20075 #
20076 # You should have received a copy of the GNU General Public License
20077 # along with GNU Libtool; see the file COPYING. If not, a copy
20078 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20079 # obtained by writing to the Free Software Foundation, Inc.,
20080 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20081
20082
20083 # The names of the tagged configurations supported by this script.
20084 available_tags="CXX "
20085
20086 # ### BEGIN LIBTOOL CONFIG
20087
20088 # Which release of libtool.m4 was used?
20089 macro_version=$macro_version
20090 macro_revision=$macro_revision
20091
20092 # Assembler program.
20093 AS=$lt_AS
20094
20095 # DLL creation program.
20096 DLLTOOL=$lt_DLLTOOL
20097
20098 # Object dumper program.
20099 OBJDUMP=$lt_OBJDUMP
20100
20101 # Whether or not to build shared libraries.
20102 build_libtool_libs=$enable_shared
20103
20104 # Whether or not to build static libraries.
20105 build_old_libs=$enable_static
20106
20107 # What type of objects to build.
20108 pic_mode=$pic_mode
20109
20110 # Whether or not to optimize for fast installation.
20111 fast_install=$enable_fast_install
20112
20113 # Shell to use when invoking shell scripts.
20114 SHELL=$lt_SHELL
20115
20116 # An echo program that protects backslashes.
20117 ECHO=$lt_ECHO
20118
20119 # The PATH separator for the build system.
20120 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20121
20122 # The host system.
20123 host_alias=$host_alias
20124 host=$host
20125 host_os=$host_os
20126
20127 # The build system.
20128 build_alias=$build_alias
20129 build=$build
20130 build_os=$build_os
20131
20132 # A sed program that does not truncate output.
20133 SED=$lt_SED
20134
20135 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20136 Xsed="\$SED -e 1s/^X//"
20137
20138 # A grep program that handles long lines.
20139 GREP=$lt_GREP
20140
20141 # An ERE matcher.
20142 EGREP=$lt_EGREP
20143
20144 # A literal string matcher.
20145 FGREP=$lt_FGREP
20146
20147 # A BSD- or MS-compatible name lister.
20148 NM=$lt_NM
20149
20150 # Whether we need soft or hard links.
20151 LN_S=$lt_LN_S
20152
20153 # What is the maximum length of a command?
20154 max_cmd_len=$max_cmd_len
20155
20156 # Object file suffix (normally "o").
20157 objext=$ac_objext
20158
20159 # Executable file suffix (normally "").
20160 exeext=$exeext
20161
20162 # whether the shell understands "unset".
20163 lt_unset=$lt_unset
20164
20165 # turn spaces into newlines.
20166 SP2NL=$lt_lt_SP2NL
20167
20168 # turn newlines into spaces.
20169 NL2SP=$lt_lt_NL2SP
20170
20171 # convert \$build file names to \$host format.
20172 to_host_file_cmd=$lt_cv_to_host_file_cmd
20173
20174 # convert \$build files to toolchain format.
20175 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20176
20177 # Method to check whether dependent libraries are shared objects.
20178 deplibs_check_method=$lt_deplibs_check_method
20179
20180 # Command to use when deplibs_check_method = "file_magic".
20181 file_magic_cmd=$lt_file_magic_cmd
20182
20183 # How to find potential files when deplibs_check_method = "file_magic".
20184 file_magic_glob=$lt_file_magic_glob
20185
20186 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20187 want_nocaseglob=$lt_want_nocaseglob
20188
20189 # Command to associate shared and link libraries.
20190 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20191
20192 # The archiver.
20193 AR=$lt_AR
20194
20195 # Flags to create an archive.
20196 AR_FLAGS=$lt_AR_FLAGS
20197
20198 # How to feed a file listing to the archiver.
20199 archiver_list_spec=$lt_archiver_list_spec
20200
20201 # A symbol stripping program.
20202 STRIP=$lt_STRIP
20203
20204 # Commands used to install an old-style archive.
20205 RANLIB=$lt_RANLIB
20206 old_postinstall_cmds=$lt_old_postinstall_cmds
20207 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20208
20209 # Whether to use a lock for old archive extraction.
20210 lock_old_archive_extraction=$lock_old_archive_extraction
20211
20212 # A C compiler.
20213 LTCC=$lt_CC
20214
20215 # LTCC compiler flags.
20216 LTCFLAGS=$lt_CFLAGS
20217
20218 # Take the output of nm and produce a listing of raw symbols and C names.
20219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20220
20221 # Transform the output of nm in a proper C declaration.
20222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20223
20224 # Transform the output of nm in a C name address pair.
20225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20226
20227 # Transform the output of nm in a C name address pair when lib prefix is needed.
20228 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20229
20230 # Specify filename containing input files for \$NM.
20231 nm_file_list_spec=$lt_nm_file_list_spec
20232
20233 # The root where to search for dependent libraries,and in which our libraries should be installed.
20234 lt_sysroot=$lt_sysroot
20235
20236 # The name of the directory that contains temporary libtool files.
20237 objdir=$objdir
20238
20239 # Used to examine libraries when file_magic_cmd begins with "file".
20240 MAGIC_CMD=$MAGIC_CMD
20241
20242 # Must we lock files when doing compilation?
20243 need_locks=$lt_need_locks
20244
20245 # Manifest tool.
20246 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20247
20248 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20249 DSYMUTIL=$lt_DSYMUTIL
20250
20251 # Tool to change global to local symbols on Mac OS X.
20252 NMEDIT=$lt_NMEDIT
20253
20254 # Tool to manipulate fat objects and archives on Mac OS X.
20255 LIPO=$lt_LIPO
20256
20257 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20258 OTOOL=$lt_OTOOL
20259
20260 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20261 OTOOL64=$lt_OTOOL64
20262
20263 # Old archive suffix (normally "a").
20264 libext=$libext
20265
20266 # Shared library suffix (normally ".so").
20267 shrext_cmds=$lt_shrext_cmds
20268
20269 # The commands to extract the exported symbol list from a shared archive.
20270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20271
20272 # Variables whose values should be saved in libtool wrapper scripts and
20273 # restored at link time.
20274 variables_saved_for_relink=$lt_variables_saved_for_relink
20275
20276 # Do we need the "lib" prefix for modules?
20277 need_lib_prefix=$need_lib_prefix
20278
20279 # Do we need a version for libraries?
20280 need_version=$need_version
20281
20282 # Library versioning type.
20283 version_type=$version_type
20284
20285 # Shared library runtime path variable.
20286 runpath_var=$runpath_var
20287
20288 # Shared library path variable.
20289 shlibpath_var=$shlibpath_var
20290
20291 # Is shlibpath searched before the hard-coded library search path?
20292 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20293
20294 # Format of library name prefix.
20295 libname_spec=$lt_libname_spec
20296
20297 # List of archive names. First name is the real one, the rest are links.
20298 # The last name is the one that the linker finds with -lNAME
20299 library_names_spec=$lt_library_names_spec
20300
20301 # The coded name of the library, if different from the real name.
20302 soname_spec=$lt_soname_spec
20303
20304 # Permission mode override for installation of shared libraries.
20305 install_override_mode=$lt_install_override_mode
20306
20307 # Command to use after installation of a shared archive.
20308 postinstall_cmds=$lt_postinstall_cmds
20309
20310 # Command to use after uninstallation of a shared archive.
20311 postuninstall_cmds=$lt_postuninstall_cmds
20312
20313 # Commands used to finish a libtool library installation in a directory.
20314 finish_cmds=$lt_finish_cmds
20315
20316 # As "finish_cmds", except a single script fragment to be evaled but
20317 # not shown.
20318 finish_eval=$lt_finish_eval
20319
20320 # Whether we should hardcode library paths into libraries.
20321 hardcode_into_libs=$hardcode_into_libs
20322
20323 # Compile-time system search path for libraries.
20324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20325
20326 # Run-time system search path for libraries.
20327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20328
20329 # Whether dlopen is supported.
20330 dlopen_support=$enable_dlopen
20331
20332 # Whether dlopen of programs is supported.
20333 dlopen_self=$enable_dlopen_self
20334
20335 # Whether dlopen of statically linked programs is supported.
20336 dlopen_self_static=$enable_dlopen_self_static
20337
20338 # Commands to strip libraries.
20339 old_striplib=$lt_old_striplib
20340 striplib=$lt_striplib
20341
20342
20343 # The linker used to build libraries.
20344 LD=$lt_LD
20345
20346 # How to create reloadable object files.
20347 reload_flag=$lt_reload_flag
20348 reload_cmds=$lt_reload_cmds
20349
20350 # Commands used to build an old-style archive.
20351 old_archive_cmds=$lt_old_archive_cmds
20352
20353 # A language specific compiler.
20354 CC=$lt_compiler
20355
20356 # Is the compiler the GNU compiler?
20357 with_gcc=$GCC
20358
20359 # Compiler flag to turn off builtin functions.
20360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20361
20362 # Additional compiler flags for building library objects.
20363 pic_flag=$lt_lt_prog_compiler_pic
20364
20365 # How to pass a linker flag through the compiler.
20366 wl=$lt_lt_prog_compiler_wl
20367
20368 # Compiler flag to prevent dynamic linking.
20369 link_static_flag=$lt_lt_prog_compiler_static
20370
20371 # Does compiler simultaneously support -c and -o options?
20372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20373
20374 # Whether or not to add -lc for building shared libraries.
20375 build_libtool_need_lc=$archive_cmds_need_lc
20376
20377 # Whether or not to disallow shared libs when runtime libs are static.
20378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20379
20380 # Compiler flag to allow reflexive dlopens.
20381 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20382
20383 # Compiler flag to generate shared objects directly from archives.
20384 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20385
20386 # Whether the compiler copes with passing no objects directly.
20387 compiler_needs_object=$lt_compiler_needs_object
20388
20389 # Create an old-style archive from a shared archive.
20390 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20391
20392 # Create a temporary old-style archive to link instead of a shared archive.
20393 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20394
20395 # Commands used to build a shared archive.
20396 archive_cmds=$lt_archive_cmds
20397 archive_expsym_cmds=$lt_archive_expsym_cmds
20398
20399 # Commands used to build a loadable module if different from building
20400 # a shared archive.
20401 module_cmds=$lt_module_cmds
20402 module_expsym_cmds=$lt_module_expsym_cmds
20403
20404 # Whether we are building with GNU ld or not.
20405 with_gnu_ld=$lt_with_gnu_ld
20406
20407 # Flag that allows shared libraries with undefined symbols to be built.
20408 allow_undefined_flag=$lt_allow_undefined_flag
20409
20410 # Flag that enforces no undefined symbols.
20411 no_undefined_flag=$lt_no_undefined_flag
20412
20413 # Flag to hardcode \$libdir into a binary during linking.
20414 # This must work even if \$libdir does not exist
20415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20416
20417 # Whether we need a single "-rpath" flag with a separated argument.
20418 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20419
20420 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20421 # DIR into the resulting binary.
20422 hardcode_direct=$hardcode_direct
20423
20424 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20425 # DIR into the resulting binary and the resulting library dependency is
20426 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20427 # library is relocated.
20428 hardcode_direct_absolute=$hardcode_direct_absolute
20429
20430 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20431 # into the resulting binary.
20432 hardcode_minus_L=$hardcode_minus_L
20433
20434 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20435 # into the resulting binary.
20436 hardcode_shlibpath_var=$hardcode_shlibpath_var
20437
20438 # Set to "yes" if building a shared library automatically hardcodes DIR
20439 # into the library and all subsequent libraries and executables linked
20440 # against it.
20441 hardcode_automatic=$hardcode_automatic
20442
20443 # Set to yes if linker adds runtime paths of dependent libraries
20444 # to runtime path list.
20445 inherit_rpath=$inherit_rpath
20446
20447 # Whether libtool must link a program against all its dependency libraries.
20448 link_all_deplibs=$link_all_deplibs
20449
20450 # Set to "yes" if exported symbols are required.
20451 always_export_symbols=$always_export_symbols
20452
20453 # The commands to list exported symbols.
20454 export_symbols_cmds=$lt_export_symbols_cmds
20455
20456 # Symbols that should not be listed in the preloaded symbols.
20457 exclude_expsyms=$lt_exclude_expsyms
20458
20459 # Symbols that must always be exported.
20460 include_expsyms=$lt_include_expsyms
20461
20462 # Commands necessary for linking programs (against libraries) with templates.
20463 prelink_cmds=$lt_prelink_cmds
20464
20465 # Commands necessary for finishing linking programs.
20466 postlink_cmds=$lt_postlink_cmds
20467
20468 # Specify filename containing input files.
20469 file_list_spec=$lt_file_list_spec
20470
20471 # How to hardcode a shared library path into an executable.
20472 hardcode_action=$hardcode_action
20473
20474 # The directories searched by this compiler when creating a shared library.
20475 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20476
20477 # Dependencies to place before and after the objects being linked to
20478 # create a shared library.
20479 predep_objects=$lt_predep_objects
20480 postdep_objects=$lt_postdep_objects
20481 predeps=$lt_predeps
20482 postdeps=$lt_postdeps
20483
20484 # The library search path used internally by the compiler when linking
20485 # a shared library.
20486 compiler_lib_search_path=$lt_compiler_lib_search_path
20487
20488 # ### END LIBTOOL CONFIG
20489
20490 _LT_EOF
20491
20492 case $host_os in
20493 aix3*)
20494 cat <<\_LT_EOF >> "$cfgfile"
20495 # AIX sometimes has problems with the GCC collect2 program. For some
20496 # reason, if we set the COLLECT_NAMES environment variable, the problems
20497 # vanish in a puff of smoke.
20498 if test "X${COLLECT_NAMES+set}" != Xset; then
20499 COLLECT_NAMES=
20500 export COLLECT_NAMES
20501 fi
20502 _LT_EOF
20503 ;;
20504 esac
20505
20506
20507 ltmain="$ac_aux_dir/ltmain.sh"
20508
20509
20510 # We use sed instead of cat because bash on DJGPP gets confused if
20511 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20512 # text mode, it properly converts lines to CR/LF. This bash problem
20513 # is reportedly fixed, but why not run on old versions too?
20514 sed '$q' "$ltmain" >> "$cfgfile" \
20515 || (rm -f "$cfgfile"; exit 1)
20516
20517 if test x"$xsi_shell" = xyes; then
20518 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20519 func_dirname ()\
20520 {\
20521 \ case ${1} in\
20522 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20523 \ * ) func_dirname_result="${3}" ;;\
20524 \ esac\
20525 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20526 && mv -f "$cfgfile.tmp" "$cfgfile" \
20527 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20528 test 0 -eq $? || _lt_function_replace_fail=:
20529
20530
20531 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20532 func_basename ()\
20533 {\
20534 \ func_basename_result="${1##*/}"\
20535 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20536 && mv -f "$cfgfile.tmp" "$cfgfile" \
20537 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20538 test 0 -eq $? || _lt_function_replace_fail=:
20539
20540
20541 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20542 func_dirname_and_basename ()\
20543 {\
20544 \ case ${1} in\
20545 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20546 \ * ) func_dirname_result="${3}" ;;\
20547 \ esac\
20548 \ func_basename_result="${1##*/}"\
20549 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20550 && mv -f "$cfgfile.tmp" "$cfgfile" \
20551 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20552 test 0 -eq $? || _lt_function_replace_fail=:
20553
20554
20555 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20556 func_stripname ()\
20557 {\
20558 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20559 \ # positional parameters, so assign one to ordinary parameter first.\
20560 \ func_stripname_result=${3}\
20561 \ func_stripname_result=${func_stripname_result#"${1}"}\
20562 \ func_stripname_result=${func_stripname_result%"${2}"}\
20563 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20564 && mv -f "$cfgfile.tmp" "$cfgfile" \
20565 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20566 test 0 -eq $? || _lt_function_replace_fail=:
20567
20568
20569 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20570 func_split_long_opt ()\
20571 {\
20572 \ func_split_long_opt_name=${1%%=*}\
20573 \ func_split_long_opt_arg=${1#*=}\
20574 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20575 && mv -f "$cfgfile.tmp" "$cfgfile" \
20576 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20577 test 0 -eq $? || _lt_function_replace_fail=:
20578
20579
20580 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20581 func_split_short_opt ()\
20582 {\
20583 \ func_split_short_opt_arg=${1#??}\
20584 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20585 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20586 && mv -f "$cfgfile.tmp" "$cfgfile" \
20587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20588 test 0 -eq $? || _lt_function_replace_fail=:
20589
20590
20591 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20592 func_lo2o ()\
20593 {\
20594 \ case ${1} in\
20595 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20596 \ *) func_lo2o_result=${1} ;;\
20597 \ esac\
20598 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20599 && mv -f "$cfgfile.tmp" "$cfgfile" \
20600 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20601 test 0 -eq $? || _lt_function_replace_fail=:
20602
20603
20604 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20605 func_xform ()\
20606 {\
20607 func_xform_result=${1%.*}.lo\
20608 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20609 && mv -f "$cfgfile.tmp" "$cfgfile" \
20610 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20611 test 0 -eq $? || _lt_function_replace_fail=:
20612
20613
20614 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20615 func_arith ()\
20616 {\
20617 func_arith_result=$(( $* ))\
20618 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20619 && mv -f "$cfgfile.tmp" "$cfgfile" \
20620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20621 test 0 -eq $? || _lt_function_replace_fail=:
20622
20623
20624 sed -e '/^func_len ()$/,/^} # func_len /c\
20625 func_len ()\
20626 {\
20627 func_len_result=${#1}\
20628 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20629 && mv -f "$cfgfile.tmp" "$cfgfile" \
20630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20631 test 0 -eq $? || _lt_function_replace_fail=:
20632
20633 fi
20634
20635 if test x"$lt_shell_append" = xyes; then
20636 sed -e '/^func_append ()$/,/^} # func_append /c\
20637 func_append ()\
20638 {\
20639 eval "${1}+=\\${2}"\
20640 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20641 && mv -f "$cfgfile.tmp" "$cfgfile" \
20642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20643 test 0 -eq $? || _lt_function_replace_fail=:
20644
20645
20646 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20647 func_append_quoted ()\
20648 {\
20649 \ func_quote_for_eval "${2}"\
20650 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20651 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20652 && mv -f "$cfgfile.tmp" "$cfgfile" \
20653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20654 test 0 -eq $? || _lt_function_replace_fail=:
20655
20656
20657 # Save a `func_append' function call where possible by direct use of '+='
20658 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20659 && mv -f "$cfgfile.tmp" "$cfgfile" \
20660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20661 test 0 -eq $? || _lt_function_replace_fail=:
20662 else
20663 # Save a `func_append' function call even when '+=' is not available
20664 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20665 && mv -f "$cfgfile.tmp" "$cfgfile" \
20666 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20667 test 0 -eq $? || _lt_function_replace_fail=:
20668 fi
20669
20670 if test x"$_lt_function_replace_fail" = x":"; then
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20672 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20673 fi
20674
20675
20676 mv -f "$cfgfile" "$ofile" ||
20677 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20678 chmod +x "$ofile"
20679
20680
20681 cat <<_LT_EOF >> "$ofile"
20682
20683 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20684
20685 # The linker used to build libraries.
20686 LD=$lt_LD_CXX
20687
20688 # How to create reloadable object files.
20689 reload_flag=$lt_reload_flag_CXX
20690 reload_cmds=$lt_reload_cmds_CXX
20691
20692 # Commands used to build an old-style archive.
20693 old_archive_cmds=$lt_old_archive_cmds_CXX
20694
20695 # A language specific compiler.
20696 CC=$lt_compiler_CXX
20697
20698 # Is the compiler the GNU compiler?
20699 with_gcc=$GCC_CXX
20700
20701 # Compiler flag to turn off builtin functions.
20702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20703
20704 # Additional compiler flags for building library objects.
20705 pic_flag=$lt_lt_prog_compiler_pic_CXX
20706
20707 # How to pass a linker flag through the compiler.
20708 wl=$lt_lt_prog_compiler_wl_CXX
20709
20710 # Compiler flag to prevent dynamic linking.
20711 link_static_flag=$lt_lt_prog_compiler_static_CXX
20712
20713 # Does compiler simultaneously support -c and -o options?
20714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20715
20716 # Whether or not to add -lc for building shared libraries.
20717 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20718
20719 # Whether or not to disallow shared libs when runtime libs are static.
20720 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20721
20722 # Compiler flag to allow reflexive dlopens.
20723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20724
20725 # Compiler flag to generate shared objects directly from archives.
20726 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20727
20728 # Whether the compiler copes with passing no objects directly.
20729 compiler_needs_object=$lt_compiler_needs_object_CXX
20730
20731 # Create an old-style archive from a shared archive.
20732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20733
20734 # Create a temporary old-style archive to link instead of a shared archive.
20735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20736
20737 # Commands used to build a shared archive.
20738 archive_cmds=$lt_archive_cmds_CXX
20739 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20740
20741 # Commands used to build a loadable module if different from building
20742 # a shared archive.
20743 module_cmds=$lt_module_cmds_CXX
20744 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20745
20746 # Whether we are building with GNU ld or not.
20747 with_gnu_ld=$lt_with_gnu_ld_CXX
20748
20749 # Flag that allows shared libraries with undefined symbols to be built.
20750 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20751
20752 # Flag that enforces no undefined symbols.
20753 no_undefined_flag=$lt_no_undefined_flag_CXX
20754
20755 # Flag to hardcode \$libdir into a binary during linking.
20756 # This must work even if \$libdir does not exist
20757 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20758
20759 # Whether we need a single "-rpath" flag with a separated argument.
20760 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20761
20762 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20763 # DIR into the resulting binary.
20764 hardcode_direct=$hardcode_direct_CXX
20765
20766 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20767 # DIR into the resulting binary and the resulting library dependency is
20768 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20769 # library is relocated.
20770 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20771
20772 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20773 # into the resulting binary.
20774 hardcode_minus_L=$hardcode_minus_L_CXX
20775
20776 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20777 # into the resulting binary.
20778 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20779
20780 # Set to "yes" if building a shared library automatically hardcodes DIR
20781 # into the library and all subsequent libraries and executables linked
20782 # against it.
20783 hardcode_automatic=$hardcode_automatic_CXX
20784
20785 # Set to yes if linker adds runtime paths of dependent libraries
20786 # to runtime path list.
20787 inherit_rpath=$inherit_rpath_CXX
20788
20789 # Whether libtool must link a program against all its dependency libraries.
20790 link_all_deplibs=$link_all_deplibs_CXX
20791
20792 # Set to "yes" if exported symbols are required.
20793 always_export_symbols=$always_export_symbols_CXX
20794
20795 # The commands to list exported symbols.
20796 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20797
20798 # Symbols that should not be listed in the preloaded symbols.
20799 exclude_expsyms=$lt_exclude_expsyms_CXX
20800
20801 # Symbols that must always be exported.
20802 include_expsyms=$lt_include_expsyms_CXX
20803
20804 # Commands necessary for linking programs (against libraries) with templates.
20805 prelink_cmds=$lt_prelink_cmds_CXX
20806
20807 # Commands necessary for finishing linking programs.
20808 postlink_cmds=$lt_postlink_cmds_CXX
20809
20810 # Specify filename containing input files.
20811 file_list_spec=$lt_file_list_spec_CXX
20812
20813 # How to hardcode a shared library path into an executable.
20814 hardcode_action=$hardcode_action_CXX
20815
20816 # The directories searched by this compiler when creating a shared library.
20817 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20818
20819 # Dependencies to place before and after the objects being linked to
20820 # create a shared library.
20821 predep_objects=$lt_predep_objects_CXX
20822 postdep_objects=$lt_postdep_objects_CXX
20823 predeps=$lt_predeps_CXX
20824 postdeps=$lt_postdeps_CXX
20825
20826 # The library search path used internally by the compiler when linking
20827 # a shared library.
20828 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20829
20830 # ### END LIBTOOL TAG CONFIG: CXX
20831 _LT_EOF
20832
20833 ;;
20834 "libtool-rpath-patch":C) if test "$libtool_use_rpath" = "no"; then
20835 sed < libtool > libtool-2 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_NO_RPATH__ "/'
20836 mv libtool-2 libtool
20837 chmod 755 libtool
20838 fi ;;
20839
20840 esac
20841 done # for ac_tag
20842
20843
20844 as_fn_exit 0
20845 _ACEOF
20846 ac_clean_files=$ac_clean_files_save
20847
20848 test $ac_write_fail = 0 ||
20849 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20850
20851
20852 # configure is writing to config.log, and then calls config.status.
20853 # config.status does its own redirection, appending to config.log.
20854 # Unfortunately, on DOS this fails, as config.log is still kept open
20855 # by configure, so config.status won't be able to write to it; its
20856 # output is simply discarded. So we exec the FD to /dev/null,
20857 # effectively closing config.log, so it can be properly (re)opened and
20858 # appended to by config.status. When coming back to configure, we
20859 # need to make the FD available again.
20860 if test "$no_create" != yes; then
20861 ac_cs_success=:
20862 ac_config_status_args=
20863 test "$silent" = yes &&
20864 ac_config_status_args="$ac_config_status_args --quiet"
20865 exec 5>/dev/null
20866 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20867 exec 5>>config.log
20868 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20869 # would make configure fail if this is the last instruction.
20870 $ac_cs_success || as_fn_exit 1
20871 fi
20872 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20874 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20875 fi
20876